[PyQt] max texture size for QGLWidget.bindTexture?

David Boddie david at boddie.org.uk
Wed Sep 10 23:56:15 BST 2008


On Wed Sep 10 02:11:47 BST 2008, Brian Parma wrote:

> Ok, so I stripped down the program a little to make it into something of
> a demonstration of the problem.
> I'm running this on an Asus s5n laptop with XP Pro (SP3).  The graphics
> controller is an "Intel 82852/82855 GM/GME" 6.14.10.3865. (yea it's a
> little old)
> PyQt 4.4.3, PyOpenGL 3.0.0b5

That's interesting. I tried it with PyQt 4.3.0 and Qt 4.3.2 on Linux with
an Intel 82845G chipset and I don't see any problems with the textures
themselves, even when they are 1024 pixels wide.

> I haven't tried using OpenGL's texture loading functions, I'm not real
> experienced with OpenGL programming (this is my first gl program) so I
> have just been using PyQt4's QGLWidget's bindTexture, and passing it a
> QPixmap.scaled.

OK. It looks pretty good for your first OpenGL program. :-)

> In the program, I made it so pressing 'S' will prompt for a new width to
> scale too, entering 640 works fine, but anything above that causes the
> weird behavior (on this computer).  What is really strange is that
> scaling the image to 641 looks the same as scaling it to 1024, and it
> doesn't change again until you scale over 1024.

Can you post a screenshot somewhere? The only visual artifact that I could
see was due to clipping when zooming in too close to the cube, but I don't
think that's related to your problem.

David


More information about the PyQt mailing list