# HG changeset patch # User Wuzzy # Date 1572444100 0 # Node ID 7adbd97442fd2bee52c3e6ba75852cf7fd59935f # Parent 255295dfbd3d224d94f8acb16db3206f63c810c0 VideoRecorder: /lua diff -r 255295dfbd3d -r 7adbd97442fd VideoRecorder.wiki --- a/VideoRecorder.wiki Wed Oct 30 13:59:12 2019 +0000 +++ b/VideoRecorder.wiki Wed Oct 30 14:01:40 2019 +0000 @@ -17,7 +17,8 @@ * Logs from ffmpeg/libav are written to game log (`Logs/game0.txt`). * Tested only on Windows and GNU/Linux. * For offscreen-rendering, the OpenGL FAQ (http://www.opengl.org/wiki/FAQ#Offscreen_Rendering) suggests the following: - “_Some people want to do offscreen rendering and they don't want to show a window to the user. The only solution is to create a window and make it invisible, select a pixelformat, create a GL context, make the context current. Now you can make GL function calls. You should make a FBO and render to that. If you chose to not create a FBO and you prefer to use the backbuffer, there is a risk that it won't work._” + * “_Some people want to do offscreen rendering and they don't want to show a window to the user. The only solution is to create a window and make it invisible, select a pixelformat, create a GL context, make the context current. Now you can make GL function calls. You should make a FBO and render to that. If you chose to not create a FBO and you prefer to use the backbuffer, there is a risk that it won't work._” SDL 1.2 does not allow to create invisible window, that’s why glut library is used. (SDL 1.3 allows it) * Video recorder relays on framebuffer extension or auxiliary buffer for offscreen rendering. If your OpenGL implementation has none of these, then video recording may not work for you. Although, framebuffer extension must be common nowadays. - * Setting large resolutions for video may not work due to limitations in your OpenGL implementation. At least resolutions not exceeding your screen resolution should work. \ No newline at end of file + * Setting large resolutions for video may not work due to limitations in your OpenGL implementation. At least resolutions not exceeding your screen resolution should work. + * If you entered the `/lua` chat command at any time, you cannot record videos anymore for the remainder of the game. Any active recordings will stop. \ No newline at end of file