Hi Miguel, Have a look at the osgstereoimage example for an example of setting cull traversal masks.
Robert. On 1/12/07, Miguel Martinez <[EMAIL PROTECTED]> wrote:
Thanks Robert! That's not the solution I expected to solve it but I'm trying to do it that way. The only think I still haven't found is the way to set the Traversal Mask to a camera. I mean, I haven't found the way to make a Producer::Camera::SetTraversalMask or something similar. Where do I set the traversal mask for each camera? Has each camera its own traversal mask or must I use a global traversal mask for the osgProducer::Viewer ? What is the function to set the Traversal Mask ?? Thanks again. // Miguel Martinez > Hi Miguel, > > I don't know if you can solve the problem without forcing the > AutoTransform to reorientate and scale itself for the intersection > traversal. The problem lies in the fact that AutoTransform only > > > stores one set of scales/orientations, so using it with multiple > cameras will cause the its state to jump as each new cull traversal > tries to set it to its point of view. > > The only workaround for this behavior would be to have a seperate > > > AutoTransform for each camera, and use a traversal mask to select the > appropriate one for each camera view. > > Robert. > > On 1/12/07, Miguel Martinez < > > rodilla at gmail.com> wrote: > > In my scene I have: > > - a Geode hanging from an AutoTransform node. > > - 4 cameras, with the same render surface. > > - The autotransform has AutoScaleToScreen set to TRUE > > > > > > When I'm using these four cameras, and the AutoScaleToScreen is set to TRUE, > > the osgProducer::Viewer::computeIntersections(x, y, > > camera_index, node, hits); > > > > doesn't work correctly, excepting the last enabled camera (the fourth), > > where it works fine. > > > > This happens only when the AutoScaleToScreen is set to TRUE. > > > > If AutoScaleToScreen is set to FALSE, the computeIntersections works > > correctly > > in the four cameras. > > > > Someone can help ? > > > > // Miguel Martinez > > > > > > _______________________________________________ > > osg-users mailing list > > > osg-users at openscenegraph.net > > > http://openscenegraph.net/mailman/listinfo/osg-users > > > http://www.openscenegraph.org/ > > > > > > _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/