Hi,
I want to build a 3d Gizmo controller that will place on top of an 3d object and bypass the z order.
How this can be done?
GizmoSoftware: Away3D 4.x |
||
cyberix3d, Jr. Member
Posted: 27 July 2012 12:28 PM Total Posts: 34 |
||
Richard Olsson, Administrator
Posted: 28 July 2012 09:27 AM Total Posts: 1192 [ # 1 ] There is no functionality exposed in Away3D to ignore z-sorting for a particular object. If you want it to be rendered in front of another object, you have to modify it’s position in the scene to make sure that it actually is in front of it. Someone did something similar by hacking Away3D to expose the depth test configuration in a public method, and we merged a pull request that implemented this. So it is something that you can achieve, but it’s not something that is a “feature” of Away3D, as much as it is a way to hack it without hacking it. |
||
|
||
Richard Olsson, Administrator
Posted: 29 July 2012 09:17 AM Total Posts: 1192 [ # 3 ] No, there is no layering in Away3D in the sense that you could control depth at which objects are rendered. Rendering to a texture won’t help you. You have to either disable depth testing while rendering the gizmo (as suggested before) or make sure that the gizmo is actually in front of the objects that it needs to be rendered in front of. You could use starling (or another Away3D instance) to do a sort of layering, but that would be a huge performance hog for something so relatively simple. Can you post a sketch or a screenshot of what you want to achieve, and we will be able to recommend the most suitable approach. |
||
kurono, Sr. Member
Posted: 29 July 2012 03:39 PM Total Posts: 103 [ # 4 ] http://away3d.com/forum/viewthread/1853/ |
||
|