[vtkusers] new version of vtk surport shaders

Francois Bertel francois.bertel at kitware.com
Mon Nov 17 23:11:17 EST 2008


vtkShaderProgram is designed to work only on actors. If you want to
use volume rendering based on shader, you can use the
vtkKWEGPUVolumeRayCastMapper in vtkEdge:

http://www.vtkedge.org

The other option is to write your own volume mapper with the help of
vtkShaderProgram2 in VTK (vtk cvs).

2008/11/17 kidwei <kidwei at 126.com>:
> Dear all , I have test the shader in vtk's new version. I use vtkActor's
> LoadMaterial function to load xml file and glsl files to shade the actor.
> but I don't know how to use shader when I reconstruct DICOM images with
> raycastion algrithm, the vtkVolumeProperty class do not have the method of
> LoadMaterial. How can I use shader in volume reconstruction?
>
>
>
> thanks!
>
>
> --
> --
>
>> 礼!
>
> Wang Zhaowei
> Collage of Computer Science and Engineering, University of Computer Science and Technology of China.
> Address: NO.4, Section 2, North Jianshe Road, Chengdu P.R.China
> Post Code: 610054
> E-mail: kidwei at 126.com
> HomePage: http://kidwei.goofar.com
>
> ________________________________
> 网易邮箱10周年,技术见证辉煌
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA


More information about the vtkusers mailing list