capturing several .bmp out of a OpenGL animation ...
well my flight sim project is going pretty well, in few weeks i''ll publish some screenshots and a demo on my website (I don''t post the url link since is not available yet).
I''d like to build a .avi files from several .bmp''s which I''d like to grab from my game. What I''d like to do is automatically generate a .bmp file every 3 seconds, how do I make it in VC++ ?
Thanks !
To the best of my knowledge, there is no magical OpenGL function which saves a screen to a bitmap or any other image...
So you''re in luck!! You''re gonna have a fun time learning about glReadPixels() and the bitmap file format!
Look up glReadPixels() in the red book if you have it, or do a search on google or something.
Read each pixel one by one, and then write your own .bmp every 3 seconds.
You can find info on the bitmap file format at www.wotsit.org
Good luck!
So you''re in luck!! You''re gonna have a fun time learning about glReadPixels() and the bitmap file format!
Look up glReadPixels() in the red book if you have it, or do a search on google or something.
Read each pixel one by one, and then write your own .bmp every 3 seconds.
You can find info on the bitmap file format at www.wotsit.org
Good luck!
Protozone
If you want to know how to get the contents of the current OpenGL framebuffer using glReadPixels you can check out the function SaveScreen in my glBMP library (http://delphigl.cfxweb.net).
The library is made in Delphi but you can just open it up in Notepad if you don''t have Delphi.
Jason A.
---
I write code.
DelphiGL (http://delphigl.cfxweb.net)
The library is made in Delphi but you can just open it up in Notepad if you don''t have Delphi.
Jason A.
---
I write code.
DelphiGL (http://delphigl.cfxweb.net)
---I write code.DelphiGL (http://delphigl.cfxweb.net)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement