[osg-users] Switch on statesets

2010-07-15 Thread Roman Grigoriev
Hi,guys! I try to manage my models and find some problem. So I have one model with summer textures and winter textures. My goal to create one ive file with embedded summer and winter textures. As far as I understand I can have only one stateset per geomentry and can't make some switches to

Re: [osg-users] Switch on statesets

2010-07-15 Thread Ulrich Hertlein
On 15/07/10 18:48 , Roman Grigoriev wrote: Hi,guys! I try to manage my models and find some problem. So I have one model with summer textures and winter textures. My goal to create one ive file with embedded summer and winter textures. As far as I understand I can have only one stateset

Re: [osg-users] Switch on statesets

2010-07-15 Thread Jean-Sébastien Guay
Hi Roman, There are many ways to do this, how you do it will depend on what you find more convenient... Ulrich's solution is one. You could create two Geodes with different textures (summer/winter) that share the same geometry. Or you could have two Geometry objects that share the same

Re: [osg-users] Switch on statesets

2010-07-15 Thread Roman Grigoriev
Hi,guys! Thanx for your replies. My models are imported from FBX and import/export plugin placed statesets under geometry. So in this situation I have to write nodevisitor that traverse scenegraph to get stateset of geometry, after get parent geode, add another geode with different stateset and