[PyOpenGL-Devel] Developing GL renderer
Brought to you by:
mcfletch
From: Geoffrey B. <ha...@ya...> - 2003-06-15 00:41:56
|
Hello all, I need a little help with something.... Currently my python application is using pyOpenGL for all its rendering tasks. While I am happy with this when it comes time I would like more speed for rendering objects with bump/spec/diffuse mapping so my plan was to use pyOpenGL for the bulk of the interface and develop a module in C that would take pointers to my 3d data and render the complex objects in my program leaving the less demanding things and the interface up to pyGL. So I developed a pyrex module that simply takes the current rendering and device context retrieved via WGL and sets those as the current context and issues some GL commands. I compiled this into a pyd just fine. It dosnt work. So I have two questions: 1.Is this even possible? to share rendering contexts across processes that is? I would think it is since both my module and pyopengGL are trying to render to the same context and execute within the python interpreters memory space. 2.If it's not possible, whats my best bet for integrating a module like this into pyopenGL. This seems to me at this moment my best bet. I have some small experience with SWIG, but for a project the size of pyopenGL I really dont know where to start looking. Any pointers on where to add wrappers for the C rendering module and how to go about compiling pyopenGL itself? If this is within the realm of feasibility I would like to give it a shot. Even though I don't know whats going to happen to the project this is for I would be happy to donate the renderer code back to the pyopenGL project. Cheers, Geoffrey Bantle. __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |