Probably the easiest (and perhaps only sensible) way is to use osgconv
to adjust the model transformations before loading them into your app,
and not to address the issue at all with any kind of code. Its really up
to the asset to encode this information consistently within itself...

        osgconv -h

...will tell you almost everything  you ever wanted to know. :)

On Thu, 2007-12-06 at 17:13 +0100, Stephane DUGUET wrote:
> Hi all, 
> 
>  
> 
> I have a general question about model orientation.
> 
> If I get several models from several sources (flt, 3ds etc…). Their
> original orientation may be different depending on how they have been
> built. 
> 
> Is there a way to convert them automatically to follow a terrain
> orientation for ex?
> 
> For instance, I’m working today with a plane and a copter. 
> 
> If I place these two models at origin one is pointing head to north
> and the second is pointing head to east. 
> 
> Meaning that the views, position and transformations for plane and
> copter have to be different. Is it possible to make it generic (at
> least linked to a terrain)?
> 
>  
> 
> Best regards,
> 
> 
> Stephane 
> 
> 
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

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

Reply via email to