[PyOpenGL-Users] High Order glMap2 Error
Brought to you by:
mcfletch
From: Shuai J. (Marshall) <mar...@gm...> - 2017-08-07 20:26:28
|
Hi all, I have some high order Bezier patches generated by Python that I want to use OpenGL to draw. Unfortunately, it seems that PyOpenGl seems to only handle orders up to 7 but I can plot Bezier patches in C codes of higher order than that. I posted a self-contained code: https://gist.github.com/runiteking1/b0946026d2cad966db1e52c0a28a86c6 To see the error, comment out the second definition of one_patch (i.e. lines 103 to 166). The error I get is OpenGL.error.GLError: GLError( err = 1281, description = 'invalid value', baseOperation = glMap2d, pyArgs = ( GL_MAP2_VERTEX_3, 0, 1, 27, 9, 0, 1, 3, 9, <OpenGL.arrays.lists.c_double_Array_3_Array_9_Array_9 object at 0x7fa4ecbbff80>, ), cArgs = ( GL_MAP2_VERTEX_3, 0, 1, 27, 9, 0, 1, 3, 9, <OpenGL.arrays.lists.c_double_Array_3_Array_9_Array_9 object at 0x7fa4ecbbff80>, ), cArguments = ( GL_MAP2_VERTEX_3, 0, 1, 27, 9, 0, 1, 3, 9, <OpenGL.arrays.lists.c_double_Array_3_Array_9_Array_9 object at 0x7fa4ecbbff80>, ) ) Does anybody know workarounds? Best, Marshall |