View Full Version : Off-screen rendering in Qt + OpenGL
02-24-2006, 05:45 AM
Does anyone know if it is possible to do offscreen rendering using OpenGL as implemented in the Qt toolkit? And if so, how?
I'm using Windows XP and Qt 3.3.4
Thx in advance!
02-24-2006, 05:47 AM
That depends on if your OpenGL driver support it, on windows you can render to an of screen buffer with the correct context setup, but this is pretty slow and only works on windows, otherwise the best choice would be to use pbuffers, then you can used the off screen buffer anyway you want.
02-24-2006, 06:33 AM
Tack så mycket for the quick reply!
It seems my graphics card & driver has pbuffers, because a sample program using them from the nVidia site works.
But how can I check in my code if a client system also has them? In which DLL / extension / subsystem are they defined, starting with which version?
02-24-2006, 06:37 AM
If it is available on your hardware, use FBO instead of oldskool platform-dependant pbuffer :
02-24-2006, 07:17 AM
Thanks, ZBuffeR. Didn't know pbuffers were older and platform-dependent. I tried FBO, and first needed to update my nVidia driver, but now the example prog works!
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.