Hi all,
I have been making a 2D game using OpenGL and some other game libraries like SDL. I had made a custom GUI and used some other libraries for other things. But i have recently started rewriting most of it using Qt. I have done some of the UI and am now looking at implementing the OpenGL graphics i will use for the actual game.
The problem i am seeing is not with my code, i haven't even started using OpenGL with Qt, but it seems that it's more to do with the system's graphics driver or something.
Below are two screenshots of the "\examples\opengl\2dpainting" Qt example program. The first one is running on a Windows XP machine which is running in VMware Workstation 8. The second is running on my physical Windows 7 machine.
qt_opengl_xp_vm.png qt_opengl_win7.png
As you can see, the one running in the VM does not correctly render the images.
The thing is, when i run the old game code (before i moved to Qt), the OpenGL images render fine. I was using an image library called SOIL (Simple OpenGL Image Library), so apparently that can work with the graphics driver of that VM but Qt can't.
Does anyone know what the problem is, or how i can fix it? If it is something to do with the image format, how could i know if it will render correctly in another user's machine? I can post code if you need it.
thanks
EDIT: I just realised that the example i mentioned is not using images, it is drawing shapes. But i have seen the same thing happen with images. In fact, if i use the "-graphicssystem opengl" command line option on my application, most of the widgets are just white, and sometimes flicker. And, fyi, i have applied extensive styling on those widgets using css.
Bookmarks