Hello Jaideep,

Jaideep Khadilkar wrote:
> HI,,,,,,,
> 
> I am using Manipulator in my program. I am parenting it to the target 
> object.
> But when my target object is large, my manipulator gets occluded by the 
> target object and I want to avoid that. Whatever may be the size of the 
> target object my Manipulator has to be always visible.  Can I change the 
> order in which the objects are drawn on the scene.

that could be achieved by changing the material that is used to draw the 
manipulator handles (Manipulator::setMaterial{X,Y,Z}) to one that has a 
  sort key that forces it to be drawn last and adding a DepthChunk to it 
to disable the depth test when drawing the handles.
The tricky part then is to still be able to do picking of the handles, 
though.
Hm, looking through the code, it seems that the setLength function could 
in theory help here, but the length value is only evaluated during 
onCreate, i.e. by the time you actually can modify the value it will 
never be evaluated again :(  -- at least that is the way it looks to me, 
feel free to give it a try.

> I am using SSM.
> Also, One thing that I observed in Maya, that manipulator size is linked 
> to the camera. The projection of the Manipulator on the screen remains 
> constant. How to do that??

That is not easily possible, as one would have to dynamically resize the 
handle-geometry during rendering, while being careful to actually only 
resize the handle, not everything below it in the scene.

        Carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to