Results 1 to 5 of 5

Thread: Intel 965 Mobile Express + CL_GUIWindowManagerTexture/CL_GUIManager & GL1 problems

  1. #1

    Default Intel 965 Mobile Express + CL_GUIWindowManagerTexture/CL_GUIManager & GL1 problems

    Hi,

    I'm having some issues with the aforementioned graphic card (under Vista 32 bit). When I use GL1 as my target, I can't see any GUI elements (although they do respond to events) - they simply just don't render. When I use software rendering, everything renders fine. GL2 doesn't work on this card.

    I've tried:
    • Not calling gl_clear
    • Setting constant_repaint to true
    • Explicitly setting visibility and location of GUI elements to double check that everything is placed correctly


    To be more precise, I'm creating a CL_Window.

    I set up everything like this:
    Code:
    		   CL_SetupCore setup_core;
    		   CL_SetupGUI setup_gui;
    		   CL_SetupNetwork setup_network;
    		   CL_SetupDisplay setup_display;
    		   CL_SetupGL1 setup_gl;
    
    (...)
    
    
    		window = CL_DisplayWindow (WINDOW_NAME, 800, 600);
    
    		CL_GUIWindowManagerTexture wm(window);
    		CL_GUIManager gui(wm, "./GUIThemeBasic");
    
    		CL_GUITopLevelDescription desc;
    		desc.set_position(CL_Rect(0, 0, 320, 300), true);
    		desc.set_title("Chat");
    		desc.set_size(CL_Size(320, 300), true);
    		
    		CL_Window chatwindow = CL_Window(&gui, desc);
    
    		chatwindow.set_draggable(true);
    Then in my rendering loop I call:
    Code:
    wm.process();
    wm.draw_windows(gc);
    It works on other PC setups, just having problems with this Intel card. Any idea how this problem can be surmounted?

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    Try running Examples/Display_Render/Canvas

    If that example does not work on the intel card, then it's a known problem with Intel drivers only supporting OpenGL 1.3 with limited support for pbuffer extension

    It is possible that updating the driver will make it work (for GL1 target)

    Some background, if you want to try to identify a workaround (we gave up!):

    For "off screen rendering", we use:

    OpenGL 2.x FrameBuffer object works. --> GL only
    OpenGL 1.x with GLX 1.3 PBuffer's work --> GL1 target (Linux)
    OpenGL 1.x with WGL PBuffer's work --> GL1 target (Windows)
    OpenGL 1.x with GLX 1.2 PBuffer's do not work (on linux) --> GL1 target

    On linux since glXCreatePbuffer only works on GLX 1.3, we use glXCreatePbufferSGIX as a fallback (for GLX 1.2) - But I personally could not get it to work, even with a very old example program without clanlib.
    On windows, GL1 "off screen rendering" uses WglCreatePbufferARB

  3. #3

    Default

    Thanks for the details. I prepared a config ini file where the user can set the display target. I'll probably try writing my own GUI code using elements that work, although I think it will be a tad slower solution.

  4. #4
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    We have created a new example for the ClanLib 2.2.7 release:

    http://clanlib.org/wiki/DirectRender

    It avoids using an off screen buffer with the GUI. So maybe it'll work on Intel cards.

    Ideally, this should be built into ClanLib. But at the moment, more thought is required. Maybe (for ClanLib 2.3) GUI rendering should be made more modular ( "Offscreen textures" / "Direct Rendering" with "Texture WM" / "System WM"). It will be tricky to keep everyone happy.

  5. #5

    Default

    Woo-hoo! Works like a charm Thanks!

    I've added a setting in my ini file where the user can chose whether to use direct rendering or an off screen buffer. Can't see a huge difference in performance, but maybe this will change once the GUI get's more complex.

Similar Threads

  1. Change for CL_GUIManager
    By logixoul in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 05-26-2010, 06:58 PM
  2. Drawing differences when using CL_GUIManager*
    By genail in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 12-12-2009, 07:37 AM
  3. Intel goofiness
    By madmark in forum Official ClanLib SDK Forums
    Replies: 6
    Last Post: 12-14-2008, 04:54 AM
  4. Intel i915
    By madmark in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 12-06-2007, 11:48 PM
  5. Intel Threading Building Block
    By melaksia in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 07-24-2007, 11:47 AM

Bookmarks

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
  •