PDA

View Full Version : locate-highlight



Coconut
01-11-2002, 12:36 PM
Someone knows how to implement an effect, such that the edges of a surface patch are highlighted when the patch is under the cursor. I know how to pick the patch, but not sure if I can highlight and de-highlight the edges, which are linestrips, without redraw the whole scene.

-Thanks in advance

dorbie
01-11-2002, 02:44 PM
If you are depth buffered you need only redraw the object unless there's transparency involved.

How about the following link, except you have alpha instead of color to highlight only the edges of the object, then to unhilight you simply redraw the object:
http://developer.nvidia.com/view.asp?IO=1Pass_Silhouette_Rendering

Texgen with a spheremap would also be passable on inferior hardware, but would have artifacts that cubemaps solve.

dorbie
01-11-2002, 02:46 PM
Hmm... you mentioned patch specifically, well you could still use a 1D texture function to map the patch edges. If it isn't subdivided sufficiently then a 2D function would work, or even multipass on the patch for each edge with a 1D function.