[vtkusers] Adding light for specific actor

Aashish Chaudhary aashish.chaudhary at kitware.com
Thu Apr 10 08:08:55 EDT 2014


Jas


Can you use shaders? If yes then you can do it this using your own custom shader. 




Thanks 






—
Sent from Mailbox for iPad

On Wed, Apr 9, 2014 at 4:17 PM, jas <jaspreet.punjab at gmail.com> wrote:

> Hey Guys
> Hows it going?
> As per my initial investigation it seems like there is no straight forward
> method to add light to a particular actor. If I am wrong it will be very
> kind of you guys to point to me.
> For the solution to this problem I was trying to subclass vtkRenderer class.
> Here I want to override updateGeometry method so I can turn off/on light
> while iterating through the prop as per requirement.
> Is the above method alright or there is some better way of doing this, I am
> also facing issue during subclassing vtkRenderer, can somebody point me to
> right direction.
> Thanks
> Jas 
> --
> View this message in context: http://vtk.1045678.n5.nabble.com/Adding-light-for-specific-actor-tp5726725.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140410/85596c08/attachment.html>


More information about the vtkusers mailing list