Hi Farshid, hi Jean-Sébastien,
I'll let you choose the separator, even if I'd vote for tabs or vertical bars, 
not spaces.

About where to place the descriptions and the syntax for them, let's keep in 
mind that each description is treated as a separate string, so I'd say each one 
must bring all the info it needs. Which now seems to include also the material 
ID. So each line should probably be something like (still using bars for now):
Material_32|Diffuse|Unit_0|myFile.jpg|80

It's true we could have quite a bunch of these depending on how many materials 
are in your exported file. But if we can't have them on the single stateset, 
then to me it would much better to see them all in a single place rather them 
spread on various geodes. This could mean we will see a long section in the 
beginning of the file that contains ALL the material definitions for the whole 
file. The code on our side would just have to get the root node of the imported 
file, get all these description and process them in a single shot. And even for 
debugging purposes, being able to open the file and check all the materials at 
one is easier.

Bottom line for me is: everything at the root node is better...

   Luca

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to