Re: [PyOpenGL-Users] glVertexAttribPointer(); loading platform-specific functions
Brought to you by:
mcfletch
From: Joshua D. <joshuardavis@q.com> - 2009-08-21 21:04:03
|
This issue has been resolved. The fault (if any) is not in PyOpenGL. I've written three C test programs to match my three Python test programs, and the C versions behave identically to the Python versions. It seems that my hardware/driver/OS combination doesn't support setting attribute variables using glVertexAttribPointer(), even though it supports setting attribute variables with glVertexAttrib4f(), etc. (Incidentally, the Mac OS 10.5 driver for the Radeon 9600 supports OpenGL 2.0, but the Mac OS 10.4 driver supports only OpenGL 1.5.) Thanks everyone for your help -- especially Mike. Cheers. Josh On 2009 Aug 19 , at 5:35 PM, Joshua Davis wrote: > On 2009 Aug 19 , at 11:59 AM, Mike C. Fletcher wrote: > >> Would be nice if we could confirm that this machine can handle >> attributes at all (so we know whether this is a problem with the >> wrapper >> or the driver). > > I am attaching a new program and its debugging output. This program > uses the legacy glVertexPointer() to specify the vertices, but uses > a "color" attribute variable to specify a single color. It works > correctly; changing "color" to yellow or magenta causes all > fragments to be that color. So my machine/driver/wrapper can handle > individual attribute variables, but it has a problem with attribute > arrays? > > I'm going to try to get attribute arrays working from C, as you > suggested in your other message. (The specs I've found online for > the Radeon 9600 are too vague to be useful.) Until then I'll stop > pestering you. Thanks for your help! |