Original Post
I'm using a mipmap chain as a tree structure. I traverse it recursively; but here I got a problem. How much should I offset the texture coordinate for every step down the tree. I guess this picture explains it better than my words:
I'm working in directx so top-left is the filling convention. The texture coordinates goes from 0-(HalfPixel-FLT_MIN) to 1+HalfPixel and each coordinate has the range (HalfPixel >= Coordinate > -HalfPixel), the number of pixels in each level is power of two. The dimension of the top level texture (the leaf nodes) is 1024x1024 so I need 9 different offsets. Maybe someone know some article that talks about this subject? (I think I got all the numbers right)
I'm working in directx so top-left is the filling convention. The texture coordinates goes from 0-(HalfPixel-FLT_MIN) to 1+HalfPixel and each coordinate has the range (HalfPixel >= Coordinate > -HalfPixel), the number of pixels in each level is power of two. The dimension of the top level texture (the leaf nodes) is 1024x1024 so I need 9 different offsets. Maybe someone know some article that talks about this subject? (I think I got all the numbers right)