Hello,
anyone knows how i can change the alpha value (transparency) of an model? i want to write an animator for fading out a shot from my railgun, which is a rotated and stretched .md2 model.
the only function i found for this, is in the setVertexColorAlpha function in the IMeshManipulator class. but in the docu stands that it should not be used during gameplay. and when i try it, irrlicht crashes.
How to set alpha value for md2 models
I wouldn't think that setVertexColorAlpha is causing your crash, but if it is, you're pobably passing a NULL IMesh* to it. Either that, or maybe a divide by zero (I've been guilty of that).
"Object-oriented programming is an exceptionally bad idea which could only have originated in California."
- E.W. Dijkstra
- E.W. Dijkstra