selection buffer on nvidia gf2

Started by
3 comments, last by mrbastard 21 years, 6 months ago
I'm using glGetIntegerv(GL_NAME_STACK_DEPTH, &myint) to report the number of available selection names on my geforce2. The strange bit is, it reports 0 - theres no name stack! I realise the namestack may be fairly small on some implementations, but is the above correct? No name stack at all? I'm sure I've run demo apps using the namestack before and had them work... Can anyone shed any light on this? I'm hoping its my code... If not I'll have to use the hacky colour picking method... BTW I've tried initialising the 'myint' to numbers other than 0, in case is wasn't being changed. I've also tried calling this during my Draw() function to be sure theres an active GL context. Still reports the same every time :¬( Dan [edited by - mrbastard on October 19, 2002 4:06:15 PM]
[size="1"]
Advertisement
it should work try getting something else
eg TEXTURE_COORD_ARRAY_SIZE does it return 4

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html
Cheers for the reply zedzeek

Unfortunately, yes glGetIntegerv(GL_TEXTURE_COORD_SIZE, &myint) does return 4, meaning my code probably isn''t to blame :¬(

I''ve also tried making sure glSelectBuffer, glRenderMode(GL_SELECT) and glInitNames have been called before querying but no change.

Looks like the people who made my bargain basement gf2 saw the selection buffer as something that could be cut...

Out of interest, any idea of an ''average'' name stack depth on consumer cards?

Thanks,

Dan
[size="1"]
all gf2 cards are good even the bargain basement ones (i have a gf2mx200)
actually looking in the red book (usually a good idea )
the initial value is 0 leading me to believe this is the ''current depth'' ie starts off at 0 push a name then its set to one

u want GL_MAX_NAME_STACK_DEPTH minium according to the redbook is 64

http://uk.geocities.com/sloppyturds/kea/kea.html
http://uk.geocities.com/sloppyturds/gotterdammerung.html
Aha! cheers zedzeek, you're absoluely right.

I checked the redbook and various others but obviously not as thouroughly as you ;¬)

Turns out the max is 128, which is OK.

thanks again

Dan



[edited by - mrbastard on October 21, 2002 9:01:39 PM]
[size="1"]

This topic is closed to new replies.

Advertisement