Gizmo

Software: Away3D 4.x

cyberix3d, Jr. Member
Posted: 27 July 2012 12:28 PM   Total Posts: 34

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?

   

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. smile

   

cyberix3d, Jr. Member
Posted: 29 July 2012 04:40 AM   Total Posts: 34   [ # 2 ]

Can I use layers somehow?

Can I render the Gizmo into a texture and use it as a layer?

   

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.

   

Avatar
kurono, Sr. Member
Posted: 29 July 2012 03:39 PM   Total Posts: 103   [ # 4 ]

http://away3d.com/forum/viewthread/1853/
That’s what you are looking for. Thanks to John Brookes smile
http://www.shrewballooba.co.uk/infront/
Red cube is always on top.

   

cyberix3d, Jr. Member
Posted: 02 August 2012 01:38 PM   Total Posts: 34   [ # 5 ]

Thank you very much this is very helpful
smile

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X