Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Lab Assistant
Original Poster
#1 Old 24th Nov 2008 at 6:31 PM Last edited by PigiePower : 2nd Dec 2008 at 6:25 PM. Reason: Problem Solved!
[solved]Changeing The Texture Via Bhav's
Is their an tutorial someone can derect me to? I am trying to make an object that changes it's texture when theirs an fire in the room. i copyed the bhav's from the smoke detecter and everything elece, but i cant get the texture to switch over when theirs a fire in the room.

Smile tomorow will be worse.
Advertisement
One horse disagreer of the Apocalypse
#2 Old 24th Nov 2008 at 6:53 PM
I don't know about the tutorial but basically you want to have a material/texture pair of resources and it's the material you switch to, which automatically gets the paired texture. You put the material names in STR#0x88 and then change between them by some code similar to:

0000 : 006D : 00 : 0001 : FFFC : 03000001000A00000000000000000000
[prim 0x006D] Change Material (Target: Stack Object ID 0x0000, Material from: Me (material: "##0x1C050000!ijaptctrlr3-[0b2aeb5b-68d5-4845-9cb2-eff69dae9d9f]_front" [MaterialName:0x03 (Private)]), Mesh from: Me (mesh group: [UNK: MeshGroup:0x01 (Private)]))

0001 : 0007 : 00 : FFFD : FFFD : 01000000000000000000000000000000
[prim 0x0007] Refresh (stack object's graphic)

When you switch back to the normal material though, I am not sure if it will have lost any recolour applied to it and be back to default.

"You can do refraction by raymarching through the depth buffer" (c. Reddeyfish 2017)
Lab Assistant
Original Poster
#3 Old 25th Nov 2008 at 5:18 PM
Thank You Inge Jones! I'll try it as soon as i can!

Smile tomorow will be worse.
Back to top