Hi Brian,
I just upgraded from OSG 0.9.7 to 1.1.0 ...
1.2 is the latest.
...the new OpenFlight loader is discarding materials defined for geometry
that has lighting turned off.
This is a bug. The code :
// Material
if (isLit())
should be changed to something like:
// Material
if (materialIndex>=0)
in the Face class.
Then you can enable lighting and create missing normals in your
application and your models should be OK.
1) create a custom version of the new loader to preserve the materials
2) use the old loader
3) edit all my legacy flt files to enable lighting on the specific geometry
so that the material is preserved
4) Fix the code and make a submission.
Can anyone tell me if removing the materials is by design or an oversight?
The idea with the new loader is to be able to recreate the information
in the OpenFlight file as close as possible. By default the reader
performs some optimization but a few reader options should do the
trick.
Regards,
Brede
2006/10/5, Brian R Hill <[EMAIL PROTECTED]>:
Folks,
I just upgraded from OSG 0.9.7 to 1.1.0 and found that the new OpenFlight
loader is discarding materials defined for geometry that has lighting turned
off. Our application uses the materials and toggles the lighting on/off
through runtime controls and we have a large number of legacy flt files
modeled this way. I don't see a loader option that preservers the materials.
I'm trying to decide if I want to:
1) create a custom version of the new loader to preserve the materials
2) use the old loader
3) edit all my legacy flt files to enable lighting on the specific geometry
so that the material is preserved
If removing the materials is by design, then I'll probably use the old
loader for the short term and edit the legacy files over time.
If removing the materials is an oversight, then I'll look into modifying the
new loader.
Can anyone tell me if removing the materials is by design or an oversight?
Brian
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to bind
CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/