Hi,

when exporting from osg to flt the OpenFlight-Plugin is adding a Material to 
every StateSet even if there was no Material defined before. After a look in 
the source code I found out two things:

1) In file ExpGeometryRecords.cpp line 235 a material (index) is generated even 
if the material of the stateset is set to OFF. (I do not know if this is really 
wanted)

2) File FltExportVisitor.cpp line 86: The constructor of FltExportVisitor 
initializes a default StateSet which has a material assigned even though it is 
set to OFF. This material is attached to every node's StateSet, when merging 
the parent StateSet with its own  (happens in pushStateSet of 
FltExportVisitor). Because of 1) it gets also in the final flt-File, which is 
definitly not wanted (at least by me).

To solve this problem you could either change adding of materials which are set 
to OFF or you could remove the default material from the default StateSet. Or 
do both. 

I am not quite sure, which way would be the best...?! 
(Would be great if someone whith better understanding could fix this. Its only 
a small change in code. Thanks!)


Also it seems that when exporting to OpenFlight a primaryColor is set, but no 
index (index is always -1). Shouldn't there be a Reference to a color Palette?


Cheers,
Katharina

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=17524#17524





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

Reply via email to