Re: [PyOpenGL-Users] llvmpipe and PyOpenGL
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2013-11-29 14:40:06
|
On 13-11-29 07:46 AM, Cyrille Rossant wrote: > Hi, > > How difficult would it be to have PyOpenGL support a software > rasterizer like llvmpipe? Usecases would include computers with old > graphics cards/drivers and painless remote control of PyOpenGL-based > software. If I'm understanding the mechanics of the project (llvmpipe) correctly, it may "just work" out of the box... basically the function: ctypes.util.find_library( 'GL' ) (which is sitting underneath all of the platform machinery) needs to find your llvmpipe GL library, which might very well just work if you set LD_LIBRARY_PATH to the correct value (as documented in llvmpipe) before running PyOpenGL. If it *doesn't* work, you could trivially replicate the OpenGL/platform/glx.py module (for testing) to see if you can get the library to load (let me know what you have to do to get it working, as this should "just work" IMO). Once loaded you *should* (if I understand how llvmpipe works) just be able to use it as a regular driver running inside whatever GUI library (or offline pbuffer library) you want to use in order to test it. Hope that helps, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |