How to set alpha value for md2 models

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Cairon
Posts: 40
Joined: Sun Apr 11, 2004 12:52 am
Contact:

How to set alpha value for md2 models

Post by Cairon »

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.
Luke923
Posts: 59
Joined: Wed Nov 05, 2003 5:26 am

Post by Luke923 »

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
Post Reply