Jump to content
  • Advertisement
Sign in to follow this  
Tomolia

OpenGL Pyglet camera flickering

This topic is 2617 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi!

Not sure if this is related to OpenGL.

Im writing a simple 2d game with pyglet (python) with a tilemap.

I implemented a "Camera" in opengl like this:

glMatrixMode(GL_MODELVIEW)
glLoadIdentity()
gluLookAt(self.x, self.y, +1.0,
self.x, self.y, -1.0,
0.0, 1.0, 0.0)

It works fine moving the point of view over my map.

The problem is when the camera is moving all my tilesprites flicker with lines at its borders making it look really bad.

Anyone know what might cause this?

I already posted at the pyglet-group but I thought posting here aswell would double my chances of an answer since the activity over at the pyglet-group seems pretty low :)

Anyways, thanks in advance for any help.

/ TL

Share this post


Link to post
Share on other sites
Advertisement
Perhaps you have z-fighting issues/ Do you render polygons at the same location?

Share this post


Link to post
Share on other sites
Thanks for taking your time to help me :)

I solved it though, had something to do with how pyglet loads images I think.

/ TL

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!