PDA

View Full Version : Issue with rendering on GF2, GF3 in fullscreen mode only



Optimizer
01-22-2004, 04:49 AM
Hello,

During testing my new game with different video boards (GF2, GF3, GF4, GF FX, Radeon) I've found odd bug. It appears only on nVidia GF2 and GF3 in full screen mode only (in windowed mode everything looks OK). Some close polygons start Z-fighting with each other. Especially you can notice it with fake shadows (just textured polygons placed close to level surface). It looks completely weird because all ATI cards and GF 4 and GF FX work just fine.

Moreover in windowed mode everything is OK. What is wrong? http://www.opengl.org/discussion_boards/ubb/frown.gif

What is difference between fullscreen anf windowed modes on GF2 and GF3?

tfpsly
01-22-2004, 08:18 AM
Make sure your fullscreen buffer is 32 bits.

Optimizer
01-22-2004, 08:43 AM
Well, I use the same code for fullscreen & windowed screen modes. I still incestigate this issue but looks like driver always set 16-bit z-buffer on GF2, GF3. Hm, really odd... http://www.opengl.org/discussion_boards/ubb/frown.gif

V-man
01-22-2004, 11:20 AM
If you ask for a 32 bit zbuffer, it might return a 16 bit zbuffer because aparently ChoosePixelFormat has a bug. So ask for 24 or just write your own choose function.