[vtkusers] vtkXMLMaterial example

Gary J. Templet gjtempl at sandia.gov
Tue Nov 15 18:42:14 EST 2005


Hi Cory,

Current materials and shaders are stored in VTK/Utilities/MaterialLibrary.
For a tcl example, see: VTK/Rendering/Testing/Tcl/TestGLSLShader.tcl

The XML material file describes to VTK where a shader is and how to load 
it. It also describe the shaders uniform attributes. These can be mapped 
to hardware from data members of vtkProperty, vtkLight, and vtkCamera, 
or from 'custom' variables set by the application and made available to 
a shader through vtkProperty. vtkProperty can also be initialized by 
setting the XML material file.

Here's a bit more on getting started:
http://public.kitware.com/pipermail/vtkusers/2005-October/082263.html

We're still working on the final version of the XML descriptions and 
extending VTK's support for textures and additional vertex attributes. 
As these get finalized, we'll post documentation and "how-to" guides.

Thanks,
Gary

Cory Quammen wrote:

> Hi,
>
> I would like to experiment with the new hardware shader capabilities 
> in VTK 5.0.1. So far, I have been unable to determine the format of 
> the material XML file that specifies the shaders. I have searched the 
> source directories, the archives of this list, and the rest of the web 
> for an example, but have not been able to find an example. Could 
> someone point me to one?
>
> Thanks,
> Cory
> _______________________________________________
> 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
>
>
>




More information about the vtkusers mailing list