Ronald - 2020-10-11

Hello,

Based on Texture3D sample, I am able to 3D volume-render Dicom Multiframe images. Now, I want to implement a color lookup table, necessary for 16bits Dicom images.

I have 2 textures: a Texture3D containing voxels with 16bits grayscale values, and a Texture1D that contains 64k 8bits grayscale/alpha mapping values for the 16bits values (functioning as color lookup table).

What I want, is a shader to replace the voxel color by the mapped value.
Should I use TCgShader or TGLSLShader? A Vertex Shader or a Fragment Shader?
I tried all combinations of shaders, using both components.

At the moment, I call shader via Apply in GLDirectOpenGL.OnRender.

As I get all kinds of error messages, obiously, I am taking the wrong path.
Anyone who knows how to handie this?

Regards, Ronald