I'm using the Irrlicht 1.0 version..
My problem is to vary gradually of the solid for the transparent using EMT_TRANSPARENT_ALPHA_CHANNEL..
my code is...
Code: Select all
// ...
tapaTela=cena->addAnimatedMeshSceneNode(cena->getMesh("media/blkBox.3DS"),
cameraNodo,-1,vector3df(0.0f,0.0f,0.0f));
tapaTela->getMaterial(0).MaterialTypeParam=0.01f; tapaTela->getMaterial(0).MaterialType=EMT_TRANSPARENT_ALPHA_CHANNEL ;
tapaTela->getMaterial(0).DiffuseColor.set(255,0,0,0);
//...
some threads about the subject already exist but it seems that didn't get a solution
well.. I know that, for default, this is just configured to renderize pixels with alpha larger than 127 and that can alter that through MaterialTypeParam
but I already tried one milion of values for the MaterialTypeParam the ref doesn't change (0.01f, 1.0f, ..255.0f)
the documentation explaine just that If MaterialTypeParam is set to 0, the alpha ref gets its default value which is 0.5f and which means that pixels with an alpha value >127 will be written..but the documentation doesn't say what happens for other MaterialTypeParam values , could negative values be?
therefore, I felt the need to create that topic and to beat again in this key
does anybody can me to explain the one what it happens? can it have a context in what that it doesn't work?
Thank you!