Outlining Mesh? [SOLVED]
That's why Wikipedia suggests flipping the culling. Turn backface culling off and frontface culling on for the outline mesh. Now the renderer will only draw the back of the object and not the front, and the second render of the object (the main render, not the outline) will win the z-fight. Nightmare over.
Outlining Mesh? [SOLVED]
thanks for all your help.
I have followed what all you people have said and this is my solution:
i created another node to act as the outline node, scaled it and added these lines of code:
Once again thank you
PS i dont know how to change the title of this post to [SOLVED] so could someone help.
I have followed what all you people have said and this is my solution:
i created another node to act as the outline node, scaled it and added these lines of code:
Code: Select all
NodewithLine->setMaterialFlag(EMF_WIREFRAME, true);
NodewithLine->getMaterial(0).EmissiveColor.set(255,255,0,0);
NodewithLine->setMaterialFlag(EMF_BACK_FACE_CULLING, false);
NodewithLine->setMaterialFlag(EMF_FRONT_FACE_CULLING, true);
PS i dont know how to change the title of this post to [SOLVED] so could someone help.
"Hey Baby Wobbling Wobbling"
-Russell Peters
-Russell Peters