Page 1 of 1

EMT_TRANSPARENT_VERTEX_ALPHA not working?

Posted: Sun May 28, 2006 5:51 pm
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.