Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Getting crisp texture display  (Read 1574 times)

0 Members and 1 Guest are viewing this topic.

CombatWombat

  • Newbie
  • *
  • Posts: 13
    • View Profile
Getting crisp texture display
« on: August 25, 2012, 04:22:59 pm »
Are there specific recommendations to get the sharpest detail on sprites/textures? 

Specifically I am rendering tiles using a vertex array and one large texture (just shifting tex coords).  I am getting some problems with "space" between tiles at certain zoom and pan settings.  I suspect this is related to how opengl scales texture coordinates, so what can I do to minimize these artifacts?

Note the horizontal black lines that sometimes appear


I have isSmooth set to false everywhere that it seems applicable. 
I have my View.size set equal to the videoMode width&height.
The "zoom" factor is powers of 2. 
The View.position is in integers.

Anything else?  Should I have pre-made textures for each zoom level?  Course this means I have to rewrite the entire vertex array everytime the zoom changes.

Thanks.

G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Getting crisp texture display
« Reply #1 on: August 25, 2012, 05:09:43 pm »
Can't help, but your spaceship is very evocative...  ;D