but any changes I make to a single material have no effect on anything. Setting the material of the whole mesh works, but I need the leaves to be transparent while the rest of the tree stays solid. I'm sure the problem must be something simple, but don't know what it is. Need help. Thx.
Last edited by EvilDavo on Sun Jun 06, 2010 5:18 pm, edited 1 time in total.
getMaterial returns a reference - that's why you can change it. So put into into a reference (video::SMaterial&) otherwise you create a copy. Also materials start counting at 0 - just mentioning it in case you try to access the first one.