FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to replace the object mapping?

Go down

How to replace the object mapping? Empty How to replace the object mapping?

Post  LuisLee on Sun Sep 13, 2009 8:30 pm

For example:

In the scene, there is a cube object,His map is: wood.png.

In the program load a tree.png,Replace the original map(wood.png).

sio2 can do it? What are the specific ideas? thank you !

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 33

Back to top Go down

How to replace the object mapping? Empty Re: How to replace the object mapping?

Post  uprise78 on Sun Sep 13, 2009 9:36 pm

All sio2Objects have an image property in the stucruct, well 2 to be exact. All you need to do is replace one or both of the images with a new sio2Image. Check out the tutorials to see how to load an sio2Image.

uprise78

Posts : 228
Join date : 2008-10-31

Back to top Go down

How to replace the object mapping? Empty Re: How to replace the object mapping?

Post  LuisLee on Sun Sep 13, 2009 9:46 pm

uprise78 wrote:All sio2Objects have an image property in the stucruct, well 2 to be exact. All you need to do is replace one or both of the images with a new sio2Image. Check out the tutorials to see how to load an sio2Image.
Thank you for your reply!I have been successful!

To change the Image's address on it.
Code:

yourMaterial->_SIO2image[0]= AnotherMaterial->_SIO2image[ SIO2_MATERIAL_CHANNEL0 ];

LuisLee

Posts : 85
Join date : 2009-04-26
Age : 33

Back to top Go down

How to replace the object mapping? Empty Re: How to replace the object mapping?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum