Hi David, <div><br><div class="gmail_quote">On 1 August 2012 03:21, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Has anyone ever made points &quot;glow&quot;? We would like to do this to<br>
indicate a selection in a better than &quot;change the selected points to<br>
red&quot; type of way. Is there a particular combination of<br>
diffuse/ambient/specular that would achieve an effect like this?<br></blockquote><div>Do you need &#39;glowing&#39; or &#39;shininess&#39; ? <a href="http://simplymaya.com/forum/showthread.php?t=32632">Glow</a>; <a href="http://www.google.sk/imgres?start=126&amp;um=1&amp;hl=sk&amp;biw=1440&amp;bih=779&amp;tbm=isch&amp;tbnid=IbvypvUlat9N5M:&amp;imgrefurl=http://www.csee.umbc.edu/~squire/cs437_lect.html&amp;docid=SnOR7matZufa1M&amp;imgurl=http://www.csee.umbc.edu/~squire/images/teapots.jpg&amp;w=498&amp;h=599&amp;ei=WF8aUNPtCo774QTnvYD4Bw&amp;zoom=1&amp;iact=hc&amp;vpx=714&amp;vpy=91&amp;dur=3825&amp;hovh=246&amp;hovw=205&amp;tx=95&amp;ty=166&amp;sig=102162411347488485899&amp;page=5&amp;tbnh=137&amp;tbnw=114&amp;ndsp=35&amp;ved=1t:429,r:10,s:126,i:139">Shininess</a></div>
<div>Effect of shininess can be see in &#39;SpecularSpheres.cxx&#39; in vtk. Only color would be necessary to change. </div><div>Glowing on the other hand, have to be made probably via shaders or via some image compositions technique.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Additionally, can an effect like this be applied to of a subset of the<br>
vertices in a vtkPolyData? The only way to know how to change<br>
something like that is through actor properties<br>
(vtkActor::GetProperty::SetDiffuse for example), but of course that<br>
gets applied to the entire point cloud.<br></blockquote><div> </div><div>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)</div>
<div>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.</div><div>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Any tips?<br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br></div>