2
« on: May 16, 2014, 03:45:21 am »
Ok, so I successfully replaced textures. First I unloaded them and then I replaced them. Thank you for your advice.
I also figured out how to change material color. I just needed to find out how does TextureManager store materials. The process was the same I unloaded the material and replaced it with a new texture of set color that i created.
But I have more questions regarding this topic. I can only replace already existing textures. If I add new textures into TextureManager it has no effect, those textures do not render. So I was thinking that when creating 3D model (a cube lets say) in Blender I add a fully transparent texture layer on each side of the cube on top of material. And then later I'm able to replace those transparent textures with other textures if needed. But when I rendered the cube the whole object was transparent the material layer underneath was not visible. And I couldn't quite figure out how to use the TextureInfo class if I wanted the TextureManager to automatically apply the textures on the cube model.
So my question is how to effectively solve problem of adding texture on already rendered 3D object in a way that TextureManager does all the work for me like when I first load the object.
If I'm not clear enough I can try to explain myself better.
Thank you. I appreciate your help.