Texture array and linear sampling
Tech-Archive recommends: Fix windows errors by optimizing your registry
Hi,
I have a situation where linear sampling of a texture between two points
using different indices into the same texture array causes the
interpolation to move across the texture array from the texture of the
first point to the texture of the second point, instead of just using
the two textures to interpolate. not sure if that's clear, here's an
example:
Point A uses texture index 4
Point B uses texture index 1
the line between point A and B is being drawn with texture samples from
texture 4 all the way down to 1.
Attached is an example image to illustrate the problem, it's notable
between the land and the sea (that yellow beach like color should not be
there).
Is this a known issue and how does one get around it ?
Note that the texture array is not a static array, ie. it's declared as:
Texture2DArray g_tex and NOT Texture2D g_tex[10];
Thanks,
Dylan

Relevant Pages
- Shader constants and constant buffers ?
... Can anyone tell me if they've used the shader constant buffers and texture arrays and how? ... For creating and accessing a texture array: ... "...I'd like to have a texture array and a constant buffer available from the vertex shader, then another texture array for the pixel shader. ... (microsoft.public.win32.programmer.directx.graphics) - Re: how to use texture array or mipmap in glsl fragment shader
... i want to use the texture array in glsl and when i do some ... Thats correct, since that indexing thing just works, if the index is known at compile time of the fragment program. ... But you might think about packing your 10 textures into a 3D-texture and use the computed index as 3-rd texture coordinate. ... (comp.graphics.api.opengl) - how to use texture array or mipmap in glsl fragment shader
... which's resolution are from 1024X1024 to ... i want to use the texture array in glsl and when i do some ... (comp.graphics.api.opengl) - Re: Basic Texture Mapping Question/Problem
... Given a 2x2 texture, the texel centers are at .25,.25; ... You can set the interpolation to NEAREST to get sharp edges. ... Is there an easy way to unrotate the modelview matrix and ... (comp.graphics.api.opengl) - Re: image upscaling
... In my project I have a quad with a texture that is being rendered. ... interpolation method is set to GL_LINEAR for both the ... Even if such algorithms were used, ... (comp.graphics.api.opengl) |
|