Hey again!

I'm not sure. I thought it was the fact that the bounding sphere grew due to 
the particle effect and made the TrackballManipulator zoom out to render the 
entire scene.

Here's a way to test if it is the viewer: make the particle effect very, 
very small. If the other object doesn't shrink it's because the manipulator 
can fit the scene without zooming. Other than that I'm clueless.

/Peter


On 2007-07-31 (Tue) 18:24, Franclin Foping wrote:
> Hi, 
> unfortunately your answer did not sort out the issue.
>  So here is what happens: 
>  I create a root node with a child to render a fish (or an object).  I am 
> using osgProducer/viewer
>  But when I  render the scene with only one object, everything is perfect BUT 
> when I add a particle system or  something else, the fish appears too small 
> on screen.  
>  Why?
> 
> Peter Gebauer <[EMAIL PROTECTED]> a écrit : Hello!
> 
> Are you using a viewer? If so, are you using a matrix manipulator for your 
> viewer? The viewer automatically transforms the matrix to fit the bounding 
> sphere of the scene data.
> 
> You can test if this is the case by setting a fixed home position of the 
> manipulator. If you're calling viewer.run() it will setup a trackball 
> manipulator as a default. You can use the trackball manipulator (or any 
> other) and set a fixed home position instead of getting an auto calculated 
> one:
> 
>     osgGA::TrackballManipulator *manipulator = new 
> osgGA::TrackballManipulator();
>     // Change coordinates to something that will work for your scene
>     manipulator->setHomePosition(osg::Vec3d(50.0, 50.0, 400.0),
>                                  osg::Vec3d(50.0, 50.0, 0.0),
>                                  osg::Vec3d(0.0, 0.0, 1.0),
>                                  false); // do not auto calculate home
>     viewer.setCameraManipulator(manipulator);
> 
> Could be the answer or maybe I just misunderstood your problem.
> 
> /Peter
> 
> 
> On 2007-07-31 (Tue) 02:08, Franclin Foping wrote:
> > Hi All,
> >  I have got a very simple scene graph consisting of a root node (Group), a 
> > node object and a particle system.
> >  I have noticed that when I add the particle system node (containing the 
> > Geode for particle system) to the root, the other object of the scene 
> > appears shrink. 
> >  What could be the problem? 
> > 
> >  My scene graph looks like: root->addChild(node); 
> >                                                      
> > root->addChild(ParticleSystem);
> > 
> >  Thanks for your help!
> >  
> >  
> >        
> > ---------------------------------
> >  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! 
> > Mail 
> > _______________________________________________
> > osg-users mailing list
> > [email protected]
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 
> 
>        
> ---------------------------------
>  Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to