Page 1 of 1

get mess triangle when set mesh transparent

Posted: Mon Sep 24, 2018 1:01 am
by zheng1038
Hi, can anybody help me?
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);
 
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.

Re: get mess triangle when set mesh transparent

Posted: Mon Sep 24, 2018 4:02 pm
by CuteAlien
You didn't give permission for others to watch those images.

But transparency sorting is per node, not per polygon (which would be too slow). So for those cases you have split your model.

Re: get mess triangle when set mesh transparent

Posted: Mon Sep 24, 2018 4:29 pm
by zheng1038
thanks, I have shared the image.