Hi David, <div><br><div class="gmail_quote">On 1 August 2012 03:21, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></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 "glow"? We would like to do this to<br>
indicate a selection in a better than "change the selected points to<br>
red" 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 'glowing' or 'shininess' ? <a href="http://simplymaya.com/forum/showthread.php?t=32632">Glow</a>; <a href="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">Shininess</a></div>
<div>Effect of shininess can be see in 'SpecularSpheres.cxx' 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>