As Robert says there are no stored coordinates

You could write a node visitor to traverse the tree of node of your 3ds
model once it has loaded and walk thru all the bounding boxes to calculate a
center for the 3d model. But his would be the center of the geometry, and
not necessarily what he modeler considered the origin center of the model

__________________________________________________________
Gordon Tomlinson 
www.vis-sim.com 
www.gordontomlinson.com 
__________________________________________________________

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Saturday, July 26, 2008 4:13 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] How to read out the coordinate info from model
files

Hi Fangqin,

There is no extra coordinate stored in the scene graph when loading
from 3ds files.

Robert.

On Sat, Jul 26, 2008 at 5:31 AM, TANG Fangqin <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm trying to import some 3ds models (using osgDB::readNodeFile) into an
osg
> programme.
> Now the problem is that:
> Is there any way that we can read the coordinate information out from the
> models since 3ds models have saved the position (the model center)
> coordinate information themselves?
> Is there any API in osg::Node class which we can call to get such
> information?
>
> I hope I make my question clear.
> Thanks for your advices in advance.
>
> With best regards,
> Fangqin
>
> _______________________________________________
> 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

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

Reply via email to