Re: [Algorithms] Outline Render
Brought to you by:
vexxed72
|
From: Conor S. <bor...@ya...> - 2006-04-07 01:32:52
|
One thing I've been meaning to try but never got around to was using fins + a per pixel cut off based on the normal of the fin. I imagine it would need a lot of tweaking. ATI had a demo on their site with a bunch of different NPR techniques that was pretty good, iirc. Cheers, Conor --- phi...@pl... wrote: > > Option 1) read the Z buffer (or a float render > target with depth > > information) and render black where there are > gross differences in edge > > (high-pass filtering). > > This should give you a nice sharp single pixel > outline, although there are > a number of different implementations. I'd try > rendering the object in to > it's own buffer, with a single flat material, and > doing the edge filtering > on that. I guess it depends on whether you want any > occlusion in your > outline. I can't remember what GRAW does off the top > of my head. Either > way, a straight z-filter could pick up neighbouring > objects if you're not > careful. > > > Option 2) Render in two passes, inflate the mesh > (or move vertices > > screen-space) in the second pass, rendering the > mesh with reversed > > backface culling and all-black triangles > (cel-shaded outline style). > > This requires work to look good, scaling the outward > push by depth, > otherwise your outline varies in width with depth, > also can give you > internal outlines, rather than a strict silhouette. > Fairly easy to > implement, but hard to make nice. We did this on an > old project, and I was > never happy with the aesthetics of the effect. > > Cheers, > Phil > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a > groundbreaking scripting language > that extends applications into web and mobile media. > Attend the live webcast > and join the prime developer group breaking into > this new coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > _______________________________________________ > GDAlgorithms-list mailing list > GDA...@li... > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_id=6188 > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |