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
IMeshManipulator::setVertexColorAlpha
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
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
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Hmm, ive found a slight work around.
Here is an example that doesnt work.
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)
Im pretty sure its a bug.
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 );
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 );
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
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.fitfool wrote:Im pretty sure its a bug.
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way