GL_FLOAT in glTexImage2D?

Hello I tried the 12bit grayscale image of (DICOM CT) [-1024, 3072]
Converted to floating point [0.0, 1.0]
Sent to the texture memory
I have Enable GL_LINEAR
But the jagged when zoomed
Can someone give me some suggestions?

glGenTextures (1, & m_TexID);
glBindTexture (GL_TEXTURE_2D, m_TexID);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri (GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexImage2D (GL_TEXTURE_2D, 0, GL_LUMINANCE, Gw, Gh, 0, GL_LUMINANCE, GL_FLOAT, DeviceDataBuffer);
glActiveTexture (GL_TEXTURE0);

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.