Page 2 of 2

Re: Change a models texture live

Posted: Sun Jul 10, 2022 5:09 pm
by Ralzar
BadLuckBurt wrote: Sun Jul 10, 2022 4:29 pm I bet if you have a separate model with the lava texture and instantiate that, it just works.
Yup, seems likely. I am aware I am going in and grabbing code at a point DFU is not expecting anything to change. At the moment it is not all that important to figure out, but I figured when we were already looking at switching the textures it was a good idea to figure this out as well.

I will give your code a shot. Thanks again.

Re: Change a models texture live

Posted: Sun Jul 10, 2022 5:19 pm
by BadLuckBurt
Ralzar wrote: Sun Jul 10, 2022 5:09 pm Yup, seems likely. I am aware I am going in and grabbing code at a point DFU is not expecting anything to change. At the moment it is not all that important to figure out, but I figured when we were already looking at switching the textures it was a good idea to figure this out as well.

I will give your code a shot. Thanks again.
It's fine to do the unexpected, those situations show where the DFU layer could possibly use extra helper functions although this case should be covered by my example if I read the code right. It's good to know how this kind of stuff works anyway so yeah, totally agree on figuring this out.

Re: Change a models texture live

Posted: Sun Jul 10, 2022 5:57 pm
by Ralzar
Bingo, worked pretty much out of the box :)

Re: Change a models texture live

Posted: Mon Jul 11, 2022 11:03 am
by BadLuckBurt
Ralzar wrote: Sun Jul 10, 2022 5:57 pm Bingo, worked pretty much out of the box :)
Nice! Happy texture swapping I guess :D