Be sure to make the coordinates you're positioning the tiles all integers.
If they're floats then you'll get some off-tile image bleed in due to the
way OpenGL texturing works. Or if the tile images are all in separate
textures you might use GL_CLAMP.
Richard
On 12 May 2013 18:28, <[email protected]> wrote:
> Hello all!
>
> I'm having a bit of an issue with drawing tilemap. See, I'm trying the
> same methods as josch to draw it, and it works pretty ok. The only thing is
> the tiles are not in sync (or something) and when I move the map around
> (with glTranslatef) I get black lines (or brown or blue, seems to depend on
> the tile next to it on tileset) between them. That is kinda weird. One
> fellow suggested indeces (batch.add_indexed()), but I dont know how to use
> them on this case. Not much talk about it on the internet.
>
> Here is an example shot of the issue:
> http://www.eeneku.net/upload/screen_for_fryer.png
> Here is the source file for that test:
> https://github.com/eeneku/thor/blob/master/tilemap_test.py
>
> eeneku
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.