stencil buffer strange behaviour?

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
Cezaro
Posts: 18
Joined: Fri Jul 07, 2006 2:31 pm
Location: Korytow Poland

stencil buffer strange behaviour?

Post by Cezaro »

Hi!

When i turn on stencil buffer my screen depth buffer going to 16bits per pixel even when i set to 32bits, why? when i turn off stencil then i see really 32bits per pixel, i have ati radeon 9000pro maybe my video card not support beter stencil format?? maybe samebody now somthing about this?

best regards
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Have a look at the video driver implementations. Here is a snip from the D3D9 driver...

Code: Select all

present.BackBufferWidth = screenSize.Width;
present.BackBufferHeight = screenSize.Height;
present.BackBufferFormat = D3DFMT_R5G6B5;
present.BackBufferCount = 0;
present.FullScreen_RefreshRateInHz = D3DPRESENT_RATE_DEFAULT;
		
// request 32bit mode if user specified 32 bit, added by Thomas Stüfe
if (bits == 32 && !StencilBuffer) 
	present.BackBufferFormat = D3DFMT_A8R8G8B8;
Cezaro
Posts: 18
Joined: Fri Jul 07, 2006 2:31 pm
Location: Korytow Poland

Post by Cezaro »

thanks :D
Post Reply