![]() ![]() GlReadPixels is the key OpenGL function that reads pixels from screen. The GIF in this answer was generated from the video as explained at: The better the compression, the larger the FPS, so we must be memory IO bound.įPS is larger than 200 on my 60 FPS screen, and all images are different, so I'm sure that it's not limited to the screen's FPS. ![]() one mpg for all frames at 1200 FPS with FFmpeg.one png per frame at 600 FPS with libpng.one ppm per frame at 200 FPS and no extra dependencies,.Is there a way to do this in GLUT/OpenGL? Or is OpenGL the wrong tool for this completely and I should use something else However I do not want this to be a GUI based application - I want it to just be an application that you run from the command line, and it generates a series of images. ![]() Second, in order to generate the visualization you have to call GLUTMainLoop and that stops the execution of the main function - the only functions that get called from then on are calls from the GUI. However the problem seems to be that first of all, it looks like it only outputs to a window and can't output to a file. I am looking at OpenGL and GLUT as graphics tools to do the visualization. I want to do it in such a way that it is easy to "turn the visualization off" and not output the visualization at all. I want to, at predetermined intervals (say every 10 seconds) output a visualization of the state of the simulation to a file. I have a program which simulates a physical system that changes over time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |