mix texture (have picture)

sry my english

Picture A

Cap

Shirt

Sleeve

cap/shirt/sleeve can change

i want to mix texture cap/shirt/sleeve to Picture A in runtime
put mixed picture A to jockey object.

how to do it ??

http://www.hk-game.com/iHorseBettingDemo/Web.html

make id’s in 3ds max, and place a new material containing only 1 texture (or smt like that) for each oft he changeable component (cap, sleeve, shirt), then change renderer.material.mainTexture = texture with whatever you like/want. I think this should work. but i am not an artist so i might be wrong.

can i write script statement run-time change it ??

Here’s how you can do that:

yes, but its touchy. You need to do it like this:

// get array
Material[] myMaterials = renderer.sharedMaterials;

// set in or replace each material you need ( it will be in material id's )
myMaterials[0] = shirt3;
myMaterials[2] = shirt4;

// set back the edited list to the renderer.
renderer.sharedMaterials = myMaterials;

if your using js i think the only difference would be
var myMaterials : Material[ ] = renderer.sharedMaterials;

btw great art!

Thx i will try