[vtkusers] Shading/Texture Question
Praveen Bhaniramka
praveenb at gauri.engr.sgi.com
Thu Aug 8 14:54:08 EDT 2002
Hi Amer,
> > > easy way to texture the isosurface from the first set with the
> information
> > > from the 2nd set?
> >
> > You can use 3D texture mapping (depending on the platform you are running
> > this on, it might or might not be available) to create a 3D texture from
> > the second volume and apply it to the isosurface from the first. This will
> > work even if your isosurface (isovalue) from the first volume changes.
>
> Can you elaborate on this a little more? I am very new to this. If you can
> give me the names of the functions used to create the texture map, that
> would be helpful. I will be running this on Redhat Linux.
First check if your machine supports 3D texture mapping using the
following command -
% glxinfo | grep EXT_texture3D
If yes, you can do this directly using OpenGL... see man glTexImage3d,
glTexParameter, glTexGen.
If not, use the other method of computing the per-vertex color values from
the second volume and render the isosurface using those values.
hth,
Praveen
--
-----------------------------------------------------------------
Praveen Bhaniramka Member of Technical Staff (MTS)
praveenb at sgi.com Advanced Graphics Division
(650)933-1785 Silicon Graphics, Inc.
-----------------------------------------------------------------
More information about the vtkusers
mailing list