On Monday 25 August 2008 23:08, Martin Spott wrote:
> Now, finally the secret behind the funny behaviour was disclosed to me
> - and it's so bizarre that I'd like to share it with you:
> The AC3D loader in OSG works properly - obviously. But FlightGear has
> to switch the orientation when loading AC3D models in order to comply
> with the mis-behaviour of the formerly used AC3D loader in PLIB.
> Instead, for all the other file formats, FlightGear relies on proper
> orientation - which is why the Golden Gate bridge looks so strange when
> converted into .ive

Well you need to say why this happes:

The old FlightGear scenegraph did that axis conversion in the plain model 
loader. So that happened at a time where you were not able to get rid of that 
effect. Therefore we have magnitudes of models that are oriented wrong. So 
this happens for compatibility with existing models in flightgear in the read 
callback of osgdb.

Note that this callback also modifies the materials that are read as is from 
the ac file by osg's ac loader. But the old plib stuff did not use one of the 
color components as is but replaced that with something different. So to have 
the same appearance of ac models in flightgear, the reader callback also 
cripples that materials past loading ...

Backward compatibility is something really good ...

Greetings

Mathias

-- 
Dr. Mathias Fröhlich, science + computing ag, Software Solutions
Hagellocher Weg 71-75, D-72070 Tuebingen, Germany
Phone: +49 7071 9457-268, Fax: +49 7071 9457-511
-- 
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Florian Geyer,
Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Prof. Dr. Hanns Ruder
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196 


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to