[vtkusers] Shading Language Setting for individual Actors

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Wed Jul 19 09:14:21 EDT 2006


Shaders are applied on per actor basis. Thus, for example, if we want
two actors, one with Cg or GLSL shader and other without, we make sure
that they don't share the vtkProperty and enable shading only on one of
the properties.

Utkarsh.

Chao Yu wrote:
> hi there,
> 
> I am using multiple vtkActors, for some of them, I wish to use shaders
> on the GPU, for the rest, I just want to use regular shading. Is that
> possible I can enable | disable shading language for individual vtkActors ?
> 
> Can we hack into actors after invoking rendering by calling  .render() ?
> 
> Thanks.
> 
> ------------------------------------------------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
> rates starting at 1¢/min.
> <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
> 
> 
>  <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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
>  <http://us.rd.yahoo.com/mail_us/taglines/postman7/*http://us.rd.yahoo.com/evt=39666/*http://messenger.yahoo.com>




More information about the vtkusers mailing list