How to replace the object mapping?

View previous topic View next topic Go down

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 : 30

View user profile

Back to top Go down

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

View user profile

Back to top Go down

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 : 30

View user profile

Back to top Go down

Re: How to replace the object mapping?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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