How do I do a 3D object be always on top?

Software: Away3D 4.x

HowlingBard, Newbie
Posted: 11 November 2011 06:26 PM   Total Posts: 20

Hi, everybody! I’m working on a trident made of segments and wiredframecubes. I’m having problems to display this object always on top.
Can anyone help me?

   

Avatar
theMightyAtom, Sr. Member
Posted: 12 November 2011 07:58 AM   Total Posts: 669   [ # 1 ]

The Stage3D in Flash is always at the back of the ordinary display list. Is this the problem? Within the Stage3D (i.e. within Away3d 4.0), z sorting is handled automatically by the GPU, so currently there’s no way to override z-order to make an object appear infront, if it is further from the camera.

If you describe a little more about your problem, maybe there’s a work around.

Cheers

   

HowlingBard, Newbie
Posted: 16 November 2011 11:15 AM   Total Posts: 20   [ # 2 ]

Hi, theMightyAtom!
Thanks for the information. Well, I need to implement a scale editor like the one of the 3D Max.
I’ve been trying to do that with LineSegment. Although, I have no success yet.

   

Avatar
theMightyAtom, Sr. Member
Posted: 16 November 2011 11:44 AM   Total Posts: 669   [ # 3 ]

Interesting challenge smile
So you want the scaling gizmo to always appear infront, although it’s actually at the pivot center of the object? I would try unprojecting the 3D coordinates and have them in ordinary Flash, in a layer on top of you 3D window. Then they will be nice pretty lines.

   

HowlingBard, Newbie
Posted: 16 November 2011 12:02 PM   Total Posts: 20   [ # 4 ]

That’s exactly what I need. I’ll try to do what you suggested.
Thanks wink

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X