Re: [PyOpenGL-Users] offscreen rendering problem with glInitFramebufferObjectEXT
Brought to you by:
mcfletch
|
From: Revaz Y. <yve...@ep...> - 2010-01-21 21:41:18
|
Dan Helfman wrote:
> Revaz Yves wrote:
>
>> Dear List,
>>
>> I would like to use off-screen rendering with PyOpenGL.
>> According to the few informations I found on the web, one method is
>> to use a FrameBufferObject.
>>
>> Unfortunately, when initializing a new FrameBuffer :
>>
>> from OpenGL.GL.EXT.framebuffer_object import *
>> glInitFramebufferObjectEXT()
>>
>> I get :
>>
>
> [error snipped]
>
> Have you tried initializing PyOpenGL first?
>
> When I try running those two lines of code on a machine that I know has
> the frame buffer object extension, without initial PyOpenGL first, I get
> the same error message.
>
ok, fine ! now it works, after a
glutInitDisplayMode
which initialize OpenGL.
But how can I initialize OpenGL without creating a window ?
> In general, I would recommend using the frame buffer object extension
> for off-screen rendering.
ok, so I'm on the right way.
Any example will be welcome...
Cheers,
yves
> There are older techniques like p-buffers, but
> they're more difficult to use. One downside of frame buffer objects is
> that some older/cheaper graphics chipset drivers do not support them.
>
> Dan
>
--
(o o)
--------------------------------------------oOO--(_)--OOo-------
Yves Revaz
Laboratory of Astrophysics EPFL
Observatoire de Sauverny Tel : ++ 41 22 379 24 28
51. Ch. des Maillettes Fax : ++ 41 22 379 22 05
1290 Sauverny e-mail : Yve...@ep...
SWITZERLAND Web : http://www.lunix.ch/revaz/
----------------------------------------------------------------
|