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,

[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.