I'm getting a GLException loading a very large image (2.3MB PNG),
which I had intended to use as a background image for parallax
scrolling. I've provided a test image and script at:

http://dl.getdropbox.com/u/139532/LargeImageLoad.zip

The output of the script is as follows:

>>>>>
eveningstar:~/code/py/spaaace/trunk/src/data eykd$ python
test_image_load.py
EE
======================================================================
ERROR: testLoadImage (__main__.StarsImageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_image_load.py", line 20, in testLoadImage
    s = pyglet.sprite.Sprite(i)
  File "build/bdist.macosx-10.3-fat/egg/pyglet/sprite.py", line 225,
in __init__
    self._texture = img.get_texture()
  File "build/bdist.macosx-10.3-fat/egg/pyglet/image/__init__.py",
line 780, in get_texture
  File "build/bdist.macosx-10.3-fat/egg/pyglet/image/__init__.py",
line 768, in create_texture
  File "build/bdist.macosx-10.3-fat/egg/pyglet/image/__init__.py",
line 1451, in create
  File "build/bdist.macosx-10.3-fat/egg/pyglet/gl/lib.py", line 105,
in errcheck
    raise GLException(msg)
GLException: invalid value

======================================================================
ERROR: testLoadImageResource (__main__.StarsImageTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_image_load.py", line 10, in testLoadImageResource
    i = pyglet.resource.image(filename)
  File "build/bdist.macosx-10.3-fat/egg/pyglet/resource.py", line 475,
in image
    identity = self._cached_images[name] = self._alloc_image(name)
  File "build/bdist.macosx-10.3-fat/egg/pyglet/resource.py", line 423,
in _alloc_image
    return img.get_texture(True)
  File "build/bdist.macosx-10.3-fat/egg/pyglet/image/__init__.py",
line 780, in get_texture
  File "build/bdist.macosx-10.3-fat/egg/pyglet/image/__init__.py",
line 768, in create_texture
  File "build/bdist.macosx-10.3-fat/egg/pyglet/image/__init__.py",
line 1451, in create
  File "build/bdist.macosx-10.3-fat/egg/pyglet/gl/lib.py", line 105,
in errcheck
    raise GLException(msg)
GLException: invalid value

----------------------------------------------------------------------
Ran 2 tests in 1.476s

FAILED (errors=2)

<<<<<

Am I exceeding a buffer size or something? Video memory? Is there a
target size I should try and keep an image under? I can always break
it up into tiles, but I'm curious what's going on here.  Thanks for
any help.

David Eyk
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to