Results 1 to 4 of 4

Thread: Maximal texture size in OpenGL?

  1. #1
    Join Date
    Aug 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Maximal texture size in OpenGL?

    Hello,

    I am using textures with the QGlWidget to show digitized images on world geometry and nearly everything works fine.
    (Qt 4.4.3, VS 2008, Windows 7)
    The only issue I have is the size of the images, for that I have questions.

    -> Is there a size limit for texture images?
    -> If yes, is it possible to change the limit to fit my needs? Or query the limits.

    After reading the QImage I bind it to a name
    GLuint tid = widget()->bindTexture(image);

    In the paintGL I show it using
    glBindTexture(GL_TEXTURE_2D, tid);

    Another question is:
    -> Is it there a possibility to use textures over RDP (Remote Desktop)?

    Greetings Uwe

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Maximal texture size in OpenGL?

    1) Yes, it depends on the underlying graphics hardware:
    Qt Code:
    1. GLint texSize;
    2. glGetIntegerv(GL_MAX_TEXTURE_SIZE, &texSize);
    To copy to clipboard, switch view to plain text mode 
    2) I don't think so, it is hardware-dependent.
    3) No idea, sorry.

  3. #3
    Join Date
    Aug 2008
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Maximal texture size in OpenGL?

    Thank you stampede,

    is the size I'll get for one texture image or for all textures if I use more than one?

  4. #4
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Maximal texture size in OpenGL?

    I think this is the size limit for a single texture.

Similar Threads

  1. OpenGL render to texture
    By Nicuvëo in forum Qt Programming
    Replies: 2
    Last Post: 26th March 2011, 12:07
  2. OpenGL texture on QGraphicsScene background
    By Ovnan in forum Qt Programming
    Replies: 5
    Last Post: 11th July 2008, 10:39
  3. QBrush texture pattern
    By edb in forum Qt Programming
    Replies: 4
    Last Post: 17th April 2007, 13:18
  4. Texture in QGLWidget
    By showhand in forum Qt Programming
    Replies: 5
    Last Post: 28th October 2006, 08:47
  5. renderPixmap and texture
    By techno in forum Qt Programming
    Replies: 1
    Last Post: 2nd March 2006, 12:13

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.