Jump to content
  • Advertisement
Sign in to follow this  
vbbartlett

Stencil effects on Extensions

This topic is 4351 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I was tinkering with extensions and attempting to find out what my card supported. I found that if I had the stencil depth in the pixel format set to anything but 0, that all the extensions but 3, were not returned via the glGetString. I was wondering if anyone else had experienced this problem and if so what the the foundations for this occurring? Is there something I can do if i want both a stencil buffer and some of the implemented extensions?

Share this post


Link to post
Share on other sites
Advertisement
You're getting the microsoft non-accelerated OpenGL driver because your video card doesn't support the mode you asked for. You didn't say what card or driver you're using so its not possible to work out what your card supports, but you should make sure you're using a 32-bit video mode if you want to have a stencil buffer, and set the stencil bits in the PFD to 8.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
The video card is a radeon 9600 se 128mb the driver is ATI v6.14.10.6387

the pdf looks like this
static PIXELFORMATDESCRIPTOR pfd =
{
sizeof(PIXELFORMATDESCRIPTOR), // size of this pfd
1, // version number
PFD_DRAW_TO_WINDOW | // support window
PFD_SUPPORT_OPENGL | // support OpenGL
PFD_DOUBLEBUFFER, // double buffered
// PFD_SUPPORT_GDI, // if this is included the cursor leaves turds!!!
PFD_TYPE_RGBA, // RGBA type
32, // 32-bit color depth
0, 0, 0, 0, 0, 0, // color bits ignored
0, // no alpha buffer
0, // shift bit ignored
0, // accumulation buffer
0, 0, 0, 0, // accum bits ignored
16, // 16-bit z-buffer
8,//Was 1 // stencil buffer
0, // auxiliary buffer
PFD_MAIN_PLANE, // main layer
0, // reserved
0, 0, 0 // layer masks ignored
};

neither work, they each return 8 as the choose pixel format
if the stencil bit is 0, it returns 3 as the pixel format.

Is there anywhere to find out more info about pixelformats?

Share this post


Link to post
Share on other sites
I found a chunk of code at http://www.xmission.com/~nate/siggraph97/notes/pixlfrmt.htm
which allowed me to print out the allowed formats, and the one I am choosing is available... so why would it not be accelerated by the driver? Is there a way to find out which are accelerated?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!