On Thursday 03 Sep 2015 11:56:56 neil watson wrote: > I am messing about learning python, and pyglet , and game development. > > I am writing a simple game, where I want to draw many small polygons on the > screen. If I draw each one separately, using a vertex_list for each one, > and then using vertex_list.draw, they display fine. > If I use batch.add instead, and draw the batch with batch.draw, all the > polygons bleed , like they consider all the points in all the vertex lists > as part of one object, lines go from one polygon to another, or many > others, and get filled with the colour of the polygon, so you just end up > with a big colourful mess on the screen > > > Have I misunderstood what batching does? I assumed it would still treat > each vertex list as a separate "object" and draw them similar to how it > works when I draw each vertex list individually. > > thanks for any help
What drawing mode are you using? Have a look at this part of the documentation for some caveats https://pyglet.readthedocs.org/en/pyglet-1.2-maintenance/api/pyglet/pyglet.graphics.html#drawing-modes -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyglet-users+unsubscr...@googlegroups.com. To post to this group, send email to pyglet-users@googlegroups.com. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.