Re: [PyOpenGL-Users] offscreen rendering problem with glInitFramebufferObjectEXT
Brought to you by:
mcfletch
|
From: Revaz Y. <yve...@ep...> - 2010-01-22 01:05:15
|
Ok, I've found nice solutions to my problem:
- with glut, to avoid to display a window simply use glutHideWindow :-[ :
glutCreateWindow("my window")
glutHideWindow()
- simple and good examples about offscreen rendering using FrameBuffer
and Renderbuffer can be found here:
http://www.opengl.org/wiki/GL_EXT_framebuffer_object
Cheers,
yves
Dan Helfman wrote:
> Revaz Yves wrote:
>
>>> The only time I've used the FBO extension is when I've got an OpenGL
>>> window open, e.g. for rendering a separate pick buffer so I can tell
>>> what the user clicks on. I don't know of a way to initialize GL
>>> without a window,
>>>
>> ok, maybe it's not so important... however I expected to run backgound
>> scripts...
>>
>
> FYI:
>
> http://stackoverflow.com/questions/576896/can-you-create-opengl-context-without-opening-a-window
>
> 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/
----------------------------------------------------------------
|