Re: [PyOpenGL-Users] OSMesa in PyOpenGL?
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2010-03-26 15:22:07
|
Łukasz Różycki wrote: > Dear list, > > My goal is to render OpenGL scene to image file, without a need to > initiate window. Mesa 3d provide such functionality through OSMesa API > (http://www.mesa3d.org/osmesa.html). However, I would like to do this > using Python. As far as I can tell after reading documentation and > looking into PyOpenGL source code, this extension is not available. > > How difficult would it be to add OSMesa bindings to PyopenGL? I could > try to do it myself, just need some tips what steps are necessary. Is > adding a wrapper as simple as describing function and pointing where > it is? > Attached is an auto-generated wrapper for the module. I don't have any test-code to exercise it, so expect that it is going to break :) . If you have some example/test code that uses it, I can look at making it part of the PyOpenGL distribution (unlikely) or distributing it as a separate module (more likely). The mechanism doesn't allow for hardware-accelerated rendering, so I don't expect that there will be all that many users. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |