Frederic Bouvier a écrit :
> Hi,
>
> I am migrating fgrun to use OSG to preview aircrafts. The integration of the
> osgViewer classes inside fltk went flawlessly. Then I copied the sgLoad3DModel
> from simgear/scene/model/model.cxx.
>
> The problem I have is that it seems that axis Y and Z are inverted for AC3C
> models. It is very visible ( and annoying ) when models have submodels, since
> model orientation doesn't match model placement from the .xml file. As an
> illustration, look at the image below ( from Emmanuel Baranger ) :
>
> http://frbouvi.free.fr/flightsim/fgrun-YZ-axis.png
>
> I copied verbatim the code in Simgear, so I want to ask to OSG specialist what
> can explain that. Is there some preample code I should call before loading
> models ?
>
> People wanting to try can extract the "osg_migration" branch of fgrun svn ( 
> url
> : https://fgrun.svn.sourceforge.net/svnroot/fgrun/branches/osg_migration )
>
> I am using OSG 2.3.1 . The same thing happens under Windows and under Linux
>
> Thanks for your help
>
>   

Ok, I learned that the hard way : by looking the source. I finally
discovered the usefulness of the ModelRegistry class and linked that to
fgrun.

-Fred

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/   Photo gallery
http://fgsd.sourceforge.net/    FlightGear Scenery Designer


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to