MedicalVisualization

1 D Textures

3D Perlin Noise Examples | | 1D Texture Interpolation

Besides 2D and 3D Textures, there are also 1D Textures.

Those can be imagined to be a simple lookup table of colors, where the texture coordinate $s$ acts as an index into the table.

$\displaystyle{ f(t) = RGB(t) }$

Supposed, the table resp. 1D texture contains $n$ RGB color values, this corresponds to the following linear memory layout as assumed by OpenGL:

GLubyte RGB[3*n] = {…};

Then the above data can be uploaded onto the graphics hardware to the GL_TEXTURE_1D texture target:

glTexImage1D(GL_TEXTURE_1D, 0, 0, GL_RGB, n, GL_RGB, GL_UNSIGNED_BYTE, RGB);


3D Perlin Noise Examples | | 1D Texture Interpolation

Options: