Results 1 to 5 of 5

Thread: Problem rendering using OpenGL in VM

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Aug 2010
    Posts
    99
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Problem rendering using OpenGL in VM

    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.
    Last edited by xtal256; 17th October 2011 at 23:41.
    [Window Detective] - Windows UI spy utility
    [War Thunder]

Similar Threads

  1. QGraphicsScene OpenGL rendering
    By nelisdnurste in forum Qt Programming
    Replies: 4
    Last Post: 9th October 2011, 10:02
  2. Replies: 4
    Last Post: 20th October 2010, 08:13
  3. opengl rendering mesh elements contour problem
    By sujan.dasmahapatra in forum Qt Programming
    Replies: 1
    Last Post: 2nd February 2010, 07:07
  4. problem in rendering opengl on QGraphicsView
    By Sandip in forum Qt Programming
    Replies: 17
    Last Post: 15th April 2008, 08:27
  5. OpenGL rendering problem
    By spud in forum Qt Programming
    Replies: 5
    Last Post: 27th February 2007, 19:44

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.