On 9/21/08, simpsus_science <[EMAIL PROTECTED]> wrote:
>
>  I encounter the following message:
>
>  Traceback (most recent call last):
>   File "dtd.py", line 43, in <module>
>     start()
>   File "dtd.py", line 35, in start
>     game.go()
>   File "/home/bastian/workspace/Python/pyglet/td/main/pyTower/
>  Game.py", line 460, in go
>     pyglet.app.run()
>   File "/usr/lib/python2.5/site-packages/pyglet/app/__init__.py", line
>  264, in run
>     EventLoop().run()
>   File "/usr/lib/python2.5/site-packages/pyglet/app/xlib.py", line 94,
>  in run
>     sleep_time = self.idle()
>   File "/usr/lib/python2.5/site-packages/pyglet/app/__init__.py", line
>  193, in idle
>     window.dispatch_event('on_draw')
>   File "/usr/lib/python2.5/site-packages/pyglet/window/__init__.py",
>  line 1217, in dispatch_event
>     EventDispatcher.dispatch_event(self, *args)
>   File "/usr/lib/python2.5/site-packages/pyglet/event.py", line 340,
>  in dispatch_event
>     if handler(*args):
>   File "/home/bastian/workspace/Python/pyglet/td/main/pyTower/
>  Game.py", line 143, in on_draw
>     self.desktop.draw()
>   File "/home/bastian/workspace/Python/pyglet/td/main/pyTower/gui/
>  gui.py", line 589, in draw
>     self.batch.draw()
>   File "/usr/lib/python2.5/site-packages/pyglet/graphics/__init__.py",
>  line 532, in draw
>     func()
>   File "/usr/lib/python2.5/site-packages/pyglet/graphics/__init__.py",
>  line 464, in <lambda>
>     (lambda d, m: lambda: d.draw(m))(domain, mode))
>   File "/usr/lib/python2.5/site-packages/pyglet/graphics/
>  vertexdomain.py", line 268, in draw
>     glPushClientAttrib(GL_CLIENT_VERTEX_ARRAY_BIT)
>   File "/usr/lib/python2.5/site-packages/pyglet/gl/lib.py", line 105,
>  in errcheck
>     raise GLException(msg)
>  pyglet.gl.lib.GLException: invalid operation
>
>  the "self.batch" is a batch of gui sprites. Now comes the funny stuff.
>  This exception is occurs when an image shall be drawn (wasn't drawn
>  before). The exception disappears when I choose a smaller image (<
>  100x100 approx). The image is not overlapping the sprites in batch nor
>  has it something to do with the "gui.py" mentioned in the exception.
>  The image code is:
>
>  def show_image_message(self, image):
>         #RabbytSprite is just a sprite which has some additional
>  methods
>         image_sprite = RabbytSprite(image)
>         image_sprite.xy = self.maze.get_window_middle()
>         image_sprite.alpha = rabbyt.lerp(0,1,dt = 0.3)
>         image_sprite.scale = rabbyt.lerp(0.5, 1, dt = 0.3)
>         self.register_animation(image_sprite, 0.5)
>
>  def register_animation(self, sprite, duration):
>         self.clock.schedule_once(self.__unregister_animation,
>  duration, sprite)
>         # anminations is just a list to keep track of animations to
>  draw
>         self.animations.append(sprite)
>
>
>  Has anyone an idea what could be the problem?

You'll need to post a complete code example -- it'd be great if that
example doesn't use rabbyt (to then rule out the possibility that
that's the culprit), but otherwise leaving rabbyt in is ok.  Please
also let us know your graphics hardware and platform (visible by
running "python -m pyglet.info").

Alex.

--~--~---------~--~----~------------~-------~--~----~
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