Look at the example code see how textures are applied using state and
state sets
 
Then load a texture you want see examples code
 
Then you need to find the state sets on your geometry ( see sample code
)
 
And replace the texture on the states that need to be changed
 
Most of this is covering examples , source code and previous postings to
the email list
 
Also See guides at www.osgbooks.com,  the intro will show what a state
set it is what a geometry node is etc
 
 

Gordon

__________________________________________________________
Gordon Tomlinson

Product Manager 3D
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________
(C): (+1) 571-265-2612
(W): (+1) 703-437-7651

"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
- Master Tambo Tetsura

 
 

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tuan Do
Sent: Tuesday, December 09, 2008 1:57 PM
To: [email protected]
Subject: [osg-users] Simple question about loading Texture!



Hi all!


I have an .flt model file with some of its textures. In my program,
first I load this model with a texture, after that, I want to change to
another texture of this model. I don't know how to do it.

Please support me, thank you!

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to