IMeshManipulator::setVertexColorAlpha

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
fitfool
Posts: 20
Joined: Sun Jul 15, 2007 5:40 am

IMeshManipulator::setVertexColorAlpha

Post by fitfool »

I Have a problem, and i may have descovered a bug. If i call setVertexColorAlpha( someMesh, 255 ), and set it's material to EMT_TRANSPARENT_VERTEX_ALPHA it is perfectly visible, as expected. But if i call setVertexColorAlpha( someMesh, 0 ), it is somewhat visible, but not invisible, as expected? Whats going on?

tknas
fitfool
Posts: 20
Joined: Sun Jul 15, 2007 5:40 am

Post by fitfool »

Anyone?
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

Any chance of a minimal test app and resources that demonstrate the problem? I don't want to blame user error. Well, I want to, but I won't.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
fitfool
Posts: 20
Joined: Sun Jul 15, 2007 5:40 am

Post by fitfool »

Hmm, ive found a slight work around.

Here is an example that doesnt work.

Code: Select all

SColor S;
S.setAlpha( 0 );
S.setRed( 255 );
S.setGreen( 255 );
S.setBlue( 255 );
MeshManipulator->setVertexColors( Mesh, S );
The mesh would still be partially visible.

but this, seems to work, even though it doesnt give the exact effect youd like(it will darken the mesh)

Code: Select all

SColor S;
short Alpha = 10;
S.setAlpha( Alpha );
S.setRed( Alpha );
S.setGreen( Alpha );
S.setBlue( Alpha );
MeshManipulator->setVertexColors( Mesh, S );
Im pretty sure its a bug.
rogerborg
Admin
Posts: 3590
Joined: Mon Oct 09, 2006 9:36 am
Location: Scotland - gonnae no slag aff mah Engleesh
Contact:

Post by rogerborg »

fitfool wrote:Im pretty sure its a bug.
I'm not at all sure that your object has anything behind it to blend with, which is why I'm asking for a test app and resources.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Post Reply