The code clues are in the OpenFlight Loader/Exporter plug-in

As to accessing the Palettes, I do not believe they are available once
the file has been full loaded they are just used as a reference during
loading to create the states for the nodes.

I believe you would have to write a loader callback to capture and store
the palette data if you wanted this 

All palettes in Creator are there for modeling purpose and not run-time,
I'm not aware of any run-time/Scenegraph  that keeps the palettes date
around


Gordon
Product Manager 3d
__________________________________________________________
Gordon Tomlinson
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________


-----Original Message-----
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Roger
Rawls
Sent: Tuesday, October 13, 2009 1:51 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] How to access Material Palette of flt file at
runtime?

Hi,

In creator, I defiened several materials in  Material Palette, and set
one of them to model.

At OSG runtime, Can I access the Material Palette and use materials in
it? say, set another material in palette to loaded model.

are there any code clues or examples?

Any help will be appreciated.

Thank you!

Cheers,
Roger

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





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

Reply via email to