Silhouette highlighting #700
Replies: 4 comments 1 reply
-
+1
…On 4/18/21 3:18 PM, Trevor SANDY wrote:
Hi Leo.
What are your thoughts on enabling silhouette highlighting ? This format
is more elegant than the current shotgun approach.
lego highlight
<https://user-images.githubusercontent.com/13388970/115157777-5d3b5580-a08b-11eb-9774-e94e3d6c20a7.jpg>
If you care to highlight the best approach for LeoCAD, I will take a look.
Cheers,
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#700>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAECJNDNWYINBYGZC6YLKA3TJMWA5ANCNFSM43EQ5PVA>.
|
Beta Was this translation helpful? Give feedback.
-
I think it's a good idea, there was a bug about it I think. I've never done much research on this but you probably need to render the highlighted parts twice, first draw the silhouette by expanding the verts in the direction of the normals (scaled by a camera factor so the results are constant in screen space), and probably only draw the back faces. Then draw the regular part on top. Maybe stay away from the post processing algorithms for portability. |
Beta Was this translation helpful? Give feedback.
-
@rsbx your write up looks good. The second scenario seems closer to what Leo is suggesting. Cheers, |
Beta Was this translation helpful? Give feedback.
-
@trevorsandy the second method ("fringe") is the best I've come up with that's consistent with the silhouetting artifacts I've found in LEGO instructions. It has the advantage that much of the work happens on the GPU. The disadvantages I've identified are
The first method ("glow") is what you'd get if the highlighted parts glowed or by meticulously hand drawing the silhouette. It's advantages and disadvantages are, pretty much, the opposite of the second method. Upon reading what I wrote a year ago, I think the description of the needed masking is not quite correct. I'll try to post an updated, more OGL'y, description later today. |
Beta Was this translation helpful? Give feedback.
-
Hi Leo.
What are your thoughts on enabling silhouette highlighting as shown in step 2 below ? This format is more elegant than the current shotgun approach.
If you care to highlight the best approach for LeoCAD, I will take a look.
Cheers,
Beta Was this translation helpful? Give feedback.
All reactions