[vtkusers] Making vertices "glow"

Jana Sefcikova neollie at gmail.com
Thu Aug 2 07:13:56 EDT 2012


Hi David,

On 1 August 2012 03:21, David Doria <daviddoria at gmail.com> wrote:

> Has anyone ever made points "glow"? We would like to do this to
> indicate a selection in a better than "change the selected points to
> red" type of way. Is there a particular combination of
> diffuse/ambient/specular that would achieve an effect like this?
>
Do you need 'glowing' or 'shininess' ?
Glow<http://simplymaya.com/forum/showthread.php?t=32632>;
Shininess<http://www.google.sk/imgres?start=126&um=1&hl=sk&biw=1440&bih=779&tbm=isch&tbnid=IbvypvUlat9N5M:&imgrefurl=http://www.csee.umbc.edu/~squire/cs437_lect.html&docid=SnOR7matZufa1M&imgurl=http://www.csee.umbc.edu/~squire/images/teapots.jpg&w=498&h=599&ei=WF8aUNPtCo774QTnvYD4Bw&zoom=1&iact=hc&vpx=714&vpy=91&dur=3825&hovh=246&hovw=205&tx=95&ty=166&sig=102162411347488485899&page=5&tbnh=137&tbnw=114&ndsp=35&ved=1t:429,r:10,s:126,i:139>
Effect of shininess can be see in 'SpecularSpheres.cxx' in vtk. Only color
would be necessary to change.
Glowing on the other hand, have to be made probably via shaders or via some
image compositions technique.


> Additionally, can an effect like this be applied to of a subset of the
> vertices in a vtkPolyData? The only way to know how to change
> something like that is through actor properties
> (vtkActor::GetProperty::SetDiffuse for example), but of course that
> gets applied to the entire point cloud.
>

Probably best way would be use shaders and actors materials. You can pass
variable to shader about which point, should glow. (I did not tried
material in VTK but I hope it can be realised as I wrote)
Without using shader you can divide set of input points to tow disjoint
subset- those that should glow and others.Than assign different actor to
 each subset. One would make glowing, other standard colors.


> Any tips?
>
> Thanks,
>
> David
> _______________________________________________
> 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/20120802/b511d558/attachment.htm>


More information about the vtkusers mailing list