[osg-users] How to read out the coordinate info from model files
gordon at gordon-tomlinson.com
Sat Jul 26 06:16:12 PDT 2008
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
From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of Robert
Sent: Saturday, July 26, 2008 4:13 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] How to read out the coordinate info from model
There is no extra coordinate stored in the scene graph when loading
from 3ds files.
On Sat, Jul 26, 2008 at 5:31 AM, TANG Fangqin <fqtang at gmail.com> wrote:
> Hi all,
> I'm trying to import some 3ds models (using osgDB::readNodeFile) into an
> 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
> I hope I make my question clear.
> Thanks for your advices in advance.
> With best regards,
> osg-users mailing list
> osg-users at lists.openscenegraph.org
osg-users mailing list
osg-users at lists.openscenegraph.org
More information about the osg-users