Re: [osg-users] How to access Material Palette of flt file at runtime?

2009-10-16 Thread Roger Rawls
Thank you,Gordon. Seems, I need to change my design. Originally, I just want to set plant leave's color,ambient and diffuse value in palette, and change one set to another at runtime. for now, I don't know if I need to write them in an xml file. If I do, then modeling is an troublesome thing,

Re: [osg-users] How to access Material Palette of flt file at runtime?

2009-10-13 Thread Tomlinson, Gordon
tober 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 mate

[osg-users] How to access Material Palette of flt file at runtime?

2009-10-12 Thread Roger Rawls
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.