EMT_TRANSPARENT_VERTEX_ALPHA not working?

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
EzikialBasix
Posts: 4
Joined: Wed May 24, 2006 7:23 pm

EMT_TRANSPARENT_VERTEX_ALPHA not working?

Post by EzikialBasix »

Hey, Im trying to make a mesh transparent at night.

When i try setting the meshes vertex alpha transparency for each vertex... its transparent during the day, and not the night. Fully transparent areas show as black.


Im using EMT_TRANSPARENT_VERTEX_ALPHA with pure vertex data. No texture... but its still black. I even tried inverting the alpha values.. and nothing. what the heck is wrong? :(

Code: Select all

((irr::video::S3DVertex*)v)[b].Color = skyimage->getPixel(shiftFactor, 9);
((irr::video::S3DVertex*)v)[b].Color.setAlpha(this->InvertAlpha(skyimage->getPixel(shiftFactor,9).getAlpha()));
That code basically reads the value from the pixel on the image loaded.. and uses its info to assign the vertices the data based on height.

please help.. im about to scalp myself.
Post Reply