POV-Ray : Newsgroups : povray.newusers : Outline of a bicubic patch? : Re: Outline of a bicubic patch? Server Time
4 Nov 2024 19:15:12 EST (-0500)
  Re: Outline of a bicubic patch?  
From: Christopher James Huff
Date: 7 Dec 2002 13:50:50
Message: <chrishuff-0BCB6E.13474607122002@netplex.aussie.org>
In article <3df23931@news.povray.org>,
 "The \"D\"" <dav### [at] gmxnet> wrote:

> This may be the wrong news group for this but is it possible? I mean ok I've
> got a bicubic patch object but I just want a hollow outline of the shape
> rather than a solid is it possible to render this or am I barking up the
> wrong tree here?

It is not possible. POV does not know about the "outline" of the object, 
only about ray intersections with it. There are a couple things you 
could do:
The MegaPOV unofficial version had a post-process feature with a 
find_edges filter, you could use that to mark pixels on or near an edge. 
MegaPOV is pretty out of date though.

Somewhere in the scene file groups on this server is a scene which used 
functions to do the same thing in POV 3.5.

You could give the object a pure white texture with ambient 1 in the 
texture, and use a pure black background. Then render with antialiasing, 
and use an image editor to select the background and fill it with white.
The antialiased outlines won't match the background color, so they will 
be left behind (if your fill command has a threshold, set it to 0).

You could then use the threshold command to make the outline pure black, 
and you have a black outline of the object on a white background. You 
could blur the image first to make the lines thicker, this may be 
necessary to get a solid line, and could also avoid the need for 
antialiasing.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.