Z-fighting like artifacts when using ShadowVolumeSceneNode

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
AlexAzazel
Posts: 31
Joined: Sun Jan 10, 2016 3:42 pm
Location: Tbilisi

Z-fighting like artifacts when using ShadowVolumeSceneNode

Post by AlexAzazel »

The cube mesh is from Blender default starting scene. When I move the camera around these artifacts flicker. How to fix it? Sorry if this question has been asked many times, if find forum search difficult to use :(

Code: Select all

 
scene::IAnimatedMeshSceneNode *cube = smgr->addAnimatedMeshSceneNode(smgr->getMesh("./media/cube.x"));
cube->addShadowVolumeSceneNode();
 
Image
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Z-fighting like artifacts when using ShadowVolumeSceneNo

Post by mongoose7 »

Does your cube have outside and inside surfaces?
AlexAzazel
Posts: 31
Joined: Sun Jan 10, 2016 3:42 pm
Location: Tbilisi

Re: Z-fighting like artifacts when using ShadowVolumeSceneNo

Post by AlexAzazel »

mongoose7 wrote:Does your cube have outside and inside surfaces?
You are right, I think mesh had problems, I deleted the cube in blender and made new one, it works now.
Post Reply