Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Don't forget to read Tuesday's email newsletter for your chance to win a free copy of Construct 2!


Render to bitmap


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 ironfroggy   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 June 2001 - 06:29 AM

How can i render things in OpenGL, but direct the rendering to a seperate image instead of to the buffer/screen? I want to use regular 32-bit image data.

Sponsor:

#2 CodeSmith   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 June 2001 - 06:55 AM

It''s really simple... but you HAVE to render to your frame buffer, just because that is the way OGL works. But to quickly awnser your question, you use glReadPixels and get the data from your frame buffer and then save that to a bitmap. Their is an example of this in the book "OpenGL Game Programming" (a pretty good book), you get get some source (not quite sure if it will have the screen capture though) from glbook.gamedev.net chapter 7

CodeSmith the Pixel Pusher

#3 zedzeek   Members   -  Reputation: 528

Like
Likes
Like

Posted 28 June 2001 - 09:08 AM

u can also create an offscreen buffer called a pbuffer theres a few examples around on how to do this(including my site)

http://members.xoom.com/myBollux

#4 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 28 June 2001 - 02:26 PM

pbuffers are an nVidia specific extension

#5 Newframe   Members   -  Reputation: 122

Like
Likes
Like

Posted 28 June 2001 - 03:23 PM

Came accross this link that may be of use

http://romka.demonews.com/opengl/demos/win32_eng.htm
look for OpenGL Bitmap...

it states:
Demo, which demonstrates OpenGL rendering to bitmap,
very usefull for all people, who is needed in offscreen rendering, for example when You want to do Your OpenGL output flow to AVI file or printer

I havn''t had a chance to try it yet, but it sounds handy




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS