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