🔒 Locked
Rendering without a window
Advertisement
Original Post
Hi to all! I've a strange question... In my current project, I use GLUT library for window management. The question is pretty simple: is possible to use OpenGL without any window, so without using the GLUT library? My only purpose is to rendering to an image, by the reading of frame buffer. So, for example, I've a simple code, in this code I call glBegin() function to drow some triangles, I read the frame buffer and then I put the data on a image. It's possibile to do this without the GLUT library, without any window, only using a simple OpenGL code? Thanks!
Mesa have a wonderful offscreen renderer. Basically, you allocate a memory buffer to render to, create the rendering context, do your OpenGL commands, and you have the image in the buffer for any use you like.
Quote:
Original post by Brother Bob
Mesa have a wonderful offscreen renderer.
Thanks for the help! Tomorrow I try the Off-screen Rendering!
Hi!
I've tried Mesa3D offscreen-rendering and it's run correctly. But, now, I can use only the Mesa3D implementation and the rendering quality is very decreased.
Aren't possible other solutions?
Thanks!
I've tried Mesa3D offscreen-rendering and it's run correctly. But, now, I can use only the Mesa3D implementation and the rendering quality is very decreased.
Aren't possible other solutions?
Thanks!
You can create message only windows in recent versions of windows by using HWND_MESSAGE as the parent of a window. However, I don't know if these windows are sufficient to create a rendering context and initialize a framebuffer object.
http://msdn.microsoft.com/en-us/library/ms632599(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms632599(VS.85).aspx
I must implement a platform indipende code...
For me, using Mesa3D, I obtain bad quality rendering because the hardware acceleration isn't used, but I don't understand because...
For me, using Mesa3D, I obtain bad quality rendering because the hardware acceleration isn't used, but I don't understand because...
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement