get mess triangle when set mesh transparent
Posted: Mon Sep 24, 2018 1:01 am
Hi, can anybody help me?
I want to set mesh transparent, using the following code:
however, when I deform mesh and the mesh was covered by itself, I will get the a lot of triangles in the covering part. like
[img]
https://drive.google.com/file/d/1DbH2iD ... sp=sharing
[/img]
Any suggestion? Thank you so much.
I want to set mesh transparent, using the following code:
Code: Select all
node->setMaterialFlag(EMF_BLEND_OPERATION, true);
smgr->getMeshManipulator()->setVertexColorAlpha(((IAnimatedMeshSceneNode*)node)->getMesh(), 100);
[img]
https://drive.google.com/file/d/1DbH2iD ... sp=sharing
[/img]
Any suggestion? Thank you so much.