View Full Version : locate-highlight
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
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:
Texgen with a spheremap would also be passable on inferior hardware, but would have artifacts that cubemaps solve.
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.