Re: OpenGL-ctypes, OpenGLContext on Mac OS X, GLSL demo

"Mike C. Fletcher" <[email protected]>
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Josh Marshall wrote:
> My sourceforge user id is "jpmarshall".
I've added you to the developer's list, you should have CVS and 
ticketing-system access now.
> I downloaded and got OpenGLContext working after some tweaking. I 
> added in the line "ArrayType = ndarray" in the vrml/arrays.py and 
> changed "return a.__array_typestr__" to "return a.dtype.char" to get 
> the latest version of numpy working.
I'll add code to handle either case.
> I've been going through the tests in OGLContext, and some work, the 
> majority fail with:
>
> Traceback (most recent call last):
>   File "source/callbacks.c", line 206, in 'calling callback function'
> ctypes.ArgumentError: argument 2: exceptions.TypeError: Don't know how 
> to convert parameter 2
>
> or similar.
Interesting, sounds like a use-of-ctypes problem on OS-X.
> Another class of errors that pop up often is similar to the following:
>
>   File "tests/shaderobjects.py", line 51, in Render
>     shader_objects.glUseProgramObjectARB(self.program)
>   File "build/bdist.darwin-8.7.0-Power_Macintosh/egg/OpenGL/error.py", 
> line 177, in glCheckError
> GLError: GLError(
>         err = 1282,
>         description = 'invalid operation',
>         baseOperation = glUseProgramObjectARB,
>         cArguments = (1L,)
> )
> ERROR:context.visitor:method <unbound method 
> SelectRenderPass.Rendering> for node _ContextRenderNode( @0x7CD790 )
Interesting again, that looks like an OpenGL-level failure (i.e. bad 
coding on my part in creating the test).

I'm just sitting down to spend a few hours on OpenGL-ctypes.  Will post 
to the dev list regarding any progress.

Have fun,
Mike

-- 
________________________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.