A question involving Z-Buffer...
Posted: Tue Aug 08, 2006 1:33 pm
Hi all.
I'm having a problem which I think I've solved by patiently reading a big portion of this forum, but I'd like to re-question it and add some more questions as I'm new at handling some 3D concepts as Z-Buffer, projection matrix etc...
I have a 2 meshes set, consisting of an eyeball and the eyelids in a face. In the scene you can see part of the eyeball behind the eyelids, obviously. The problem arises when I move back the camera from the meshes, the eyeball surface goes "getting out" from the eyelids, as it was before them.
The fact is that the eyeball surfaces are very close to the eyelids and, as I read at these forums, that's a problem for the renderer when calculating the order on which those are rendered. What I can do to solve that? Is a good idea to use bigger sized meshes so there is more distance between them? Adjust the near and far planes of the frustrum?
Although I have read carefully the Irrlicht manual, there's no much explanation on these concepts. Please, enlighten me.
Thank you very much.
I'm having a problem which I think I've solved by patiently reading a big portion of this forum, but I'd like to re-question it and add some more questions as I'm new at handling some 3D concepts as Z-Buffer, projection matrix etc...
I have a 2 meshes set, consisting of an eyeball and the eyelids in a face. In the scene you can see part of the eyeball behind the eyelids, obviously. The problem arises when I move back the camera from the meshes, the eyeball surface goes "getting out" from the eyelids, as it was before them.
The fact is that the eyeball surfaces are very close to the eyelids and, as I read at these forums, that's a problem for the renderer when calculating the order on which those are rendered. What I can do to solve that? Is a good idea to use bigger sized meshes so there is more distance between them? Adjust the near and far planes of the frustrum?
Although I have read carefully the Irrlicht manual, there's no much explanation on these concepts. Please, enlighten me.
Thank you very much.