HI
 
A loaded model/node  really does not in itself have a normal, its
surfaces/tris etc that make up a model will have (or should have ) normal's.
So sorry its not possible to retrieve a nodes normal's.
 
In all my years of being involved with vis-sim, you really have to know
before hand how your models are orientated, scaled etc , typically your
modelling specs should state what is north, what is up, what units are used
etc, then these need to be enforced on and followed by the content creators.

 
Personally I don't know a way of figuring out, in arbitary models what are
north, up, right etc.. you have a chance with scale/units. you have to know
the orientation details of the models 
 
Sorry not much help really
 

__________________________________________________________
Gordon Tomlinson 

Email   : [EMAIL PROTECTED]
Website : www.vis-sim.com www.gordontomlinson.com 


__________________________________________________________

"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
-Master Tambo Tetsura 

 

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of CG
Sent: 04 June 2008 17:27
To: OpenSceneGraph Users
Subject: [osg-users] finding normal of models


Hi,
 
Is it possible to retrieve the Normal of a loaded node (i.e. an aircraft in
openflt format)? I need to find out the normal to compute the forward and
right axis to construct my rotation matrix to rotate the aircraft correctly
in every tick. Right now, when I roll my aircraft to 90 degrees follow by a
90 degrees pitch, the aircraft instead of banking to the right, it rolls 90
degrees to the right and pitches up 90 degrees (as the rotation axis is
unchanged). I'm using positiontransformattitude node for the setting of
Attitude. Thanks.
 
Regards,
Cg


  _____  

Always-on security tools provide safer ways to connect and share anywhere.
Find out more. Windows Live <http://get.live.com/familysafety/overview>  
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to