Skip to main content
gamedev.net
🔒 Locked

Tiling and camera issues

Started by barakus Mar 21, 2005 at 4:30 AM 1 replies 300+ views
Original Post
barakus
barakus
My openGL tile renderer works fine, except for when i change gluLookAt()'s eyeY and centreY values( in other words when i move the camera vertically) i can see some flickering from the clear color horizontally across the screen, almost like there is a gap between the tiles. Any ideas on how to fix this problem? EDIT: I fixed it by shifting the uvs one pixel less. Though if anyone has any other solution i would love to hear it as this one isnt too favourable. [Edited by - barakus on March 21, 2005 5:27:57 AM]
krez
krez
perhaps you have to shift the texture coordinates 0.5 pixels over instead. i remember reading that texels are measured from the center of the pixel, not the edge as one might expect.
--- krez ([email="krez_AT_optonline_DOT_net"]krez_AT_optonline_DOT_net[/email])

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.