Jump to content
  • Advertisement
Sign in to follow this  
enigmagame

OpenGL Rendering without a window

This topic is 3744 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
If you're targetting Windows only then you could just use pbuffers directly. I imagine Mesa makes off screen rendering more portable though.

Share this post


Link to post
Share on other sites
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!

Share this post


Link to post
Share on other sites
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...

Share this post


Link to post
Share on other sites
The rendering quality should be good. I know because I've tried it.
It offers a similar pipeline to any GPU implementation.
Of course, it is slow, because Mesa3D is not a driver.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!