Difference between revisions of "Talk:Rectangle Texture"

From OpenGL Wiki
Jump to navigation Jump to search
(Explaining meaning of center of a texel.)
Line 4: Line 4:
  
 
: The sentence in question is attempting to explain where a particular non-normalized texture coordinate goes to in texel space. Because rectangle textures can undergo filtering, they are not discrete spaces. So if the coordinate means "the center of the 13th texel", that can give a different value from "the left edge of the 13th texel" depending on the filtering mode. The latter will filter against the 12th texel; the former will not. [[User:Alfonse|Alfonse]] ([[User talk:Alfonse|talk]]) 18:05, 26 November 2019 (UTC)
 
: The sentence in question is attempting to explain where a particular non-normalized texture coordinate goes to in texel space. Because rectangle textures can undergo filtering, they are not discrete spaces. So if the coordinate means "the center of the 13th texel", that can give a different value from "the left edge of the 13th texel" depending on the filtering mode. The latter will filter against the 12th texel; the former will not. [[User:Alfonse|Alfonse]] ([[User talk:Alfonse|talk]]) 18:05, 26 November 2019 (UTC)
 +
 +
: Assuming the filtering mode is GL_NEAREST, for the given texture cooordinate (13.0, 0.0),  will the 12th texel color be sampled? But the distance from the coordinate that the value (13.0, 0.0) represents to the center of 12th texel is same with that to the center of 13th texel. According to [https://learnopengl.com/Getting-started/Textures Textures Filtering]--[[User:Lucmaa|Lucmaa]] ([[User talk:Lucmaa|talk]]) 08:37, 27 November 2019 (UTC)

Revision as of 08:37, 27 November 2019

Texel center

What's meaning of 'the CENTER of 13th texel'? Isn't a texel the minimal unit for sampling?

The sentence in question is attempting to explain where a particular non-normalized texture coordinate goes to in texel space. Because rectangle textures can undergo filtering, they are not discrete spaces. So if the coordinate means "the center of the 13th texel", that can give a different value from "the left edge of the 13th texel" depending on the filtering mode. The latter will filter against the 12th texel; the former will not. Alfonse (talk) 18:05, 26 November 2019 (UTC)
Assuming the filtering mode is GL_NEAREST, for the given texture cooordinate (13.0, 0.0), will the 12th texel color be sampled? But the distance from the coordinate that the value (13.0, 0.0) represents to the center of 12th texel is same with that to the center of 13th texel. According to Textures Filtering--Lucmaa (talk) 08:37, 27 November 2019 (UTC)