Terrain texture tiles edges.

New Message Reply Date view Thread view Subject view Author view

From: Yossi Kadosh (YossiK++at++bvr.co.il)
Date: 11/01/2001 07:52:35


Hi,

I am currently writing an OpenGL application that is mapping texture tiles
over a grid of quads representing a terrain.
My problem is that at the edges of the texture tiles, I can notice that the
pixels do not
correspond exactly.
The texture tiles were cut by Clipgen from a large image and all tiles
should
correspond to each other at 100%.

I am using GL_LINEAR filtering.
I am using texture coordinates between 0.0f and 1.0f on both sides of each
tile.
I checked that I am not missing a row or column of pixels.
I also tried GL_CLAMP or GL_CLAMP_TO_EDGE but it didn't solve the problem.
I am using GL_MODULATE in my glTexEnvi function.

It seems that there is no missing pixel data from the texture tile, but the
tiles still
do not fit exactly at their edges.

I am suspecting that I have a problem with a half pixel missing at the edge
of each texture tile,
but I am not sure.

Does anyone have an idea about how can I fit correctly these texture tiles ?

Thanks a lot,

        Yossi Kadosh,
                        Computer Graphics programmer, BVR Systems.
 


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Nov 01 2001 - 07:50:08 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.