Hello!
I loaded a 3ds file an i set a light. Now there are lots of visual artefacts. It looks like a poblem with the z-buffer.
regards, Tom
visual artefacts with opengl under windows
-
- Posts: 26
- Joined: Sat Jan 03, 2004 3:43 pm
visual artefacts with opengl under windows
Last edited by enforceman on Sat Jan 03, 2004 3:52 pm, edited 1 time in total.
-
- Posts: 26
- Joined: Sat Jan 03, 2004 3:43 pm
is the problem you encouter similar to the problem found in this thread (http://irrlicht.sourceforge.net/phpBB2/ ... .php?t=616)?
-
- Posts: 26
- Joined: Sat Jan 03, 2004 3:43 pm
Artefacts
First as Niko said make sure that there is no triangles in the model that share one plane and that overlap each other at the same time...heh that's the best way i can describe it.....Ohh wait i can draw it :
these are the vertices of two triangles that lay in the screen plane and their normals are pionting right to your nose , as you can see they overlap but that's wrong especially if the triangles normals has same direction , check your mesh in wireframe mode and with back face culling enable.
V1
v5
v6
v4
V2
V3
Second - enable the stencil buffer when creating your device
and set the FarValue of the camera to some big number.
Hope this will help...
these are the vertices of two triangles that lay in the screen plane and their normals are pionting right to your nose , as you can see they overlap but that's wrong especially if the triangles normals has same direction , check your mesh in wireframe mode and with back face culling enable.
V1
v5
v6
v4
V2
V3
Second - enable the stencil buffer when creating your device
and set the FarValue of the camera to some big number.
Hope this will help...
Sorry there was supposed to be spaces between the vertices but i cann see that phpBB didnt like them
Code: Select all
V1
v5
v6
v4
V2
V3