Hi Miguel,

I made a bug fix to osg::AutoTransform recently relating to its
support for NodeMask, so if you arn't using CVS try it out out as
there is good chance it'll solve your problem withe the node masks not
being honoured.

Robert

On 2/15/07, Miguel Martinez <[EMAIL PROTECTED]> wrote:
Hi everyone.
I don't know if you remember the question I posted some time ago.

http://openscenegraph.net/pipermail/osg-users/2007-January/072886.html


Robert gave me one solution:

"The only workaround for this behavior would be to have a separate
AutoTransform for each camera, and use a traversal mask to select the
appropriate one for each camera view."

So, now I have 4 times the same geometry, as shown int the picture
http://www.dibujando.net/captura.jpg

Each node has a different nodemask, and depending on the camera
the mouse is over, the ComputeIntersections is lauched over one
or another branch (indicating the properly Mask depending on the camera).
This is made using:
viewer->computeIntersections(x, y, focused_camera_index, first_node, hits,
traversalMask);

The results are the same as before. Just works correctly over the last
camera,
or when the AutoScaleToScreen parameter is set to false.

any idea ?

     // Miguel

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to