Re: [Flightgear-devel] Need help with OSG model loading in fgrun

2008-01-20 Thread Ron Jensen
On Sun, 2008-01-20 at 15:56 +0100, Frederic Bouvier wrote:
> 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
> 

Fred,

Looking forward to seeing OSG in FGRun, thanks!

One kind of out-of-the-box thing I use FGRun for is checking submodel
placement.  For that purpose I hacked the display code so the model
doesn't constantly spin...  While you're in that code it would be neat
to have a button to start and stop rotation, and maybe a way to switch
camera views, at least to the cockpit view...

Thanks again,

Ron



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


Re: [Flightgear-devel] Need help with OSG model loading in fgrun

2008-01-20 Thread Frederic Bouvier
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/vse012070mrt/direct/01/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel


[Flightgear-devel] Need help with OSG model loading in fgrun

2008-01-16 Thread Frederic Bouvier
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

-Fred

-- 
Frédéric Bouvier
http://my.fotolia.com/frfoto/  Photo gallery - album photo
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/vse012070mrt/direct/01/
___
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel