Using 2D textures mapping of OpenGL, I have fulfilled volume rendering of Medical Volume Data. Then there are few display cards of personal computer to hold out 3D textures. As follows are two 3D images reconstructed by me from 2D CT images.
Now I find that many display cards of personal computer have held out 3D texture. So I want to improve my program with OpenGL 3D texture mapping for the better 3D reconstruction performance. However, I know the OpenGL 1.1 used by me has not 3D texture function.
How and where could I get newer OpenGL version with 3D texture function, or how could I extend OpenGL lib to 3D texture.
Everything which is not supported by the interface in Microsoft’s OpenGL32.dll needs to be initialized like any extension.
If your OpenGL Hardware supports a higher OpenGL version than 1.1 you can call wglGetProcAddress with any additional gl-Function in the versions above 1.1.
That is, just add the glTexImage3D prototype to your program, define a function pointer of that type and do glTexImage3D = wglGetProcAddress(“glTexImage3D”).
There are extension wrappers which ease the initialization of such functions. Search for the function glh_init_extensions in the NVDIA demos for example.