Re:Occluding Contour Breakthroughs, Part 1: A Surprisingly H...
by dvh on Tuesday August 01, 2023 @12:50AM
(#36952452)
Why not simply draw twice, once slightly enlarged with inverted normals, painted black? That's how it was done in the old days.
[ Parent
| on HN ]
Re:Occluding Contour Breakthroughs, Part 1: A Surprisingly H...
by kookamamie on Tuesday August 01, 2023 @01:12AM
(#36952578)
That gets you the outline, not the internal contours.
Re:Occluding Contour Breakthroughs, Part 1: A Surprisingly H...
by HWR_14 on Tuesday August 01, 2023 @01:40AM
(#36952741)
Can you describe what an internal contour is. As far as I can tell from reading the article and linked pages, it's just an edge with a sharp drop off in depth map?
Re:Occluding Contour Breakthroughs, Part 1: A Surprisingly H...
by cbolton on Tuesday August 01, 2023 @03:06AM
(#36953225)
Consider the pig picture in the article (the one under "The Occluding Contour Problem"). The method proposed by dvh would give the outline, but not the contour of the pig's left ear for example.
Re:Occluding Contour Breakthroughs, Part 1: A Surprisingly H...
by yorwba on Tuesday August 01, 2023 @06:16AM
(#36954332)
It would, if the enlargement is not by linear scaling but instead produces a shell around the object at some distance from the surface. The inverted-normal shell of the ear would then occlude the body behind it, while itself being occluded by the slightly smaller ear, producing a contour line.
Re:Occluding Contour Breakthroughs, Part 1: A Surprisingly H...
by qwery on Tuesday August 01, 2023 @08:51AM
(#36955322)
That hack was a common way to render outlines in fixed function pipeline days, yes. It only really works for simple, convex forms and "works" is probably a bit generous. It's far from a general-purpose outline technique and an outline is just one effect you might want an occluding contour for.