Re: [osg-users] Shrink/Enlarge whole osg::Groups ?

2010-05-14 Thread Ku Krapox
That does the trick, thanks a lot!

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27880#27880





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shrink/Enlarge whole osg::Groups ?

2010-05-12 Thread Ku Krapox
Hi,

Thanks for your response, and you're right, I'm not as clear as I thought...

Let me explain what I want : I have a scene with an osg::Cylinder that 
represents a tray, and complex objects placed upon it (typically some Groups 
containing Text, Geometry and Shapes...).
Everything is in a PAT and I just want it to be displayed bigger or smaller, 
with the same proportions, without changing its content and with the rest of 
the scene keeping a fixed size.

So from what you say, I understand I should use the setScale method?
If so, how do I set the Vec3d parameter?

Thank you!

Cheers,
Ku

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27782#27782





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shrink/Enlarge whole osg::Groups ?

2010-05-12 Thread Jason Daly

Ku Krapox wrote:

So from what you say, I understand I should use the setScale method?
If so, how do I set the Vec3d parameter?
  


The Vec3d parameter specifies the scale factor in each direction, so 
Vec3d(2.0, 2.0, 2.0) is twice as big, for example.


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Shrink/Enlarge whole osg::Groups ?

2010-05-11 Thread Tomlinson, Gordon
Maybe I missing something in what you're asking

If you add and remove more data then you simply remove all the child of
the group or PAT and then add the new nodes you want

If you mean you want to actually scale everything under a PAT or group
then you can set the scaling on a PAT, on a group you will have to
insert a matrix above the Groups to scale the group and its children


BTW I don't think it's all in the title you offer too little information
I would suggest expanding on what you mean in this case because what you
ask could be interpreted in many ways 


Gordon Tomlinson
Product Manager 3d Technology  Project Wyvern
Overwatch(r)
An Operating Unit of Textron Systems
-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Ku
Krapox
Sent: Tuesday, May 11, 2010 9:08 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Shrink/Enlarge whole osg::Groups ?

Hi all,

Everything is in the title : how would you change the size of the whole
content of an osg::Group (or a PAT) as if it was a single object? Is
this possible?

Thank you!

Cheers,
Ku

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=27748#27748





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.or
g
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org