On Sat, Feb 7, 2009 at 2:33 PM, Mike Wyatt <[email protected]> wrote: > I'm having a strange issue when I try to create a large VertexList of > lines. My ultimate goal is to render the normal vectors for a heightmap, > but for now I just want to get it working with basic "up" vectors. I'm > getting an "invalid value" error when I call vertexList.draw( GL_LINES ) for > certain sizes of VertexList. A list of 4096 lines (64x64) fails, but 4160 > lines (64x65) works fine. > > The best explanation would be example code, so I attached a basic pyglet app > that renders a 64x65 grid of lines. Changing the number of columns to 64, > for example, throws the error. Other values, like 1 row of 32 columns, also > fails. >
I wasn't able to reproduce the bug -- every sized grid I tried worked. It's possibly a garbage collection bug -- sometimes Python destroys array data while it's still being transferred to the GL driver; this can lead to the kind of intermittent problem you're seeing. Perhaps the full stack trace would help pinpoint the problem. 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 -~----------~----~----~----~------~----~------~--~---
