POV-Ray : Newsgroups : povray.general : POV 'Outline' capability Server Time
12 Oct 2026 11:36:33 EDT (-0400)
  POV 'Outline' capability (Message 1 to 20 of 20)  
From: peter
Subject: POV 'Outline' capability
Date: 13 Jun 2006 09:29:37
Message: <448ebdc1@news.povray.org>
As a newbie, this may seem like a strange question: Is there anyway to draw
an outline (say 1+ pixel) around objects while (possibly even after) drawing
them?  I know this seems contrary to what raytracing does (realistic
renderings), but I want to do the outline for effect.


Post a reply to this message

From: Warp
Subject: Re: POV 'Outline' capability
Date: 13 Jun 2006 14:58:28
Message: <448f0ad3@news.povray.org>
peter <cuj### [at] hotmailcom> wrote:
> As a newbie, this may seem like a strange question: Is there anyway to draw
> an outline (say 1+ pixel) around objects while (possibly even after) drawing
> them?

  No.

-- 
                                                          - Warp


Post a reply to this message

From: Ross
Subject: Re: POV 'Outline' capability
Date: 13 Jun 2006 17:15:09
Message: <448f2add$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:448f0ad3@news.povray.org...
> peter <cuj### [at] hotmailcom> wrote:
> > As a newbie, this may seem like a strange question: Is there anyway to
draw
> > an outline (say 1+ pixel) around objects while (possibly even after)
drawing
> > them?
>
>   No.
>
> -- 
>                                                           - Warp

But you can do some tricks, possibly above the knowledge of a self
proclaimed newbie. For instance, see Thibaut Jonckheere's recent "Edge macro
demo scene". Though it doesn't appear to be a general solution (requires
mesh objects?)

Also, did megapov have a edge detect postprocessing feature?


Post a reply to this message

From: Alain
Subject: Re: POV 'Outline' capability
Date: 13 Jun 2006 18:54:19
Message: <448f421b$1@news.povray.org>
Ross nous apporta ses lumieres en ce 13/06/2006 17:14:
> "Warp" <war### [at] tagpovrayorg> wrote in message
> news:448f0ad3@news.povray.org...
>> peter <cuj### [at] hotmailcom> wrote:
> draw
> drawing
>>   No.
>>
>> -- 
>>                                                           - Warp
> 
> But you can do some tricks, possibly above the knowledge of a self
> proclaimed newbie. For instance, see Thibaut Jonckheere's recent "Edge macro
> demo scene". Though it doesn't appear to be a general solution (requires
> mesh objects?)
> 
> Also, did megapov have a edge detect postprocessing feature?
> 
> 
> 
A possibility is to surround the objects that you want to outline with a very slightly
larger, 
transparent version of itself. That object is set to rgbt 1 pigment. The trick is to
use 
fade_distance <small value>, fade_color rgb 0 and fade_power 999. The fade_distance
must be very 
close, but larger, to the size difference, or thickness of the "shell".
Getting everything OK is prety tricky, as you can go from a nearly invisible shell to
an opaque one 
with some very small changes.
I've tried it and it CAN work at least in some cases. Almost impossible to set up when
the object 
have any reflection.

-- 
Alain
-------------------------------------------------
Communism: It's everybody's shit.


Post a reply to this message

From: Tim Nikias
Subject: Re: POV 'Outline' capability
Date: 13 Jun 2006 19:08:01
Message: <448f4551$1@news.povray.org>
Alain wrote:
 > A possibility is to surround the objects that you want to outline with
 > a very slightly larger, transparent version of itself. That object is
 > set to rgbt 1 pigment. The trick is to use fade_distance <small
 > value>,  fade_color rgb 0 and fade_power 999. The fade_distance must
 > be very close, but larger, to the size difference, or thickness of the
 > "shell".
 > Getting everything OK is prety tricky, as you can go from a nearly
 > invisible shell to an opaque one with some very small changes.
 > I've tried it and it CAN work at least in some cases. Almost
 > impossible to set up when the object have any reflection.

If you've already got the entire object in slightly larger size, it 
might suffice to use texture and interior_texture : a transparent 
texture, but a black interior_texture. Won't work that good for 
reflections though, probably only for objects as seen from the camera.

Regards,
Tim

-- 
aka "Tim Nikias"
Homepage: <http://www.nolights.de>


Post a reply to this message

From: Alain
Subject: Re: POV 'Outline' capability
Date: 13 Jun 2006 19:36:57
Message: <448f4c19$1@news.povray.org>
Tim Nikias nous apporta ses lumieres en ce 13/06/2006 19:08:
> Alain wrote:
>  > A possibility is to surround the objects that you want to outline with
>  > a very slightly larger, transparent version of itself. That object is
>  > set to rgbt 1 pigment. The trick is to use fade_distance <small
>  > value>,  fade_color rgb 0 and fade_power 999. The fade_distance must
>  > be very close, but larger, to the size difference, or thickness of the
>  > "shell".
>  > Getting everything OK is prety tricky, as you can go from a nearly
>  > invisible shell to an opaque one with some very small changes.
>  > I've tried it and it CAN work at least in some cases. Almost
>  > impossible to set up when the object have any reflection.
> 
> If you've already got the entire object in slightly larger size, it 
> might suffice to use texture and interior_texture : a transparent 
> texture, but a black interior_texture. Won't work that good for 
> reflections though, probably only for objects as seen from the camera.
> 
> Regards,
> Tim
> 
Wont work for reflective or transparent objects. My solution does work with
transparent objects (as 
per my first succesful tests) and can potentialy works with reflective ones (but I
never managed to).

-- 
Alain
-------------------------------------------------
But I thought YOU did the backups...


Post a reply to this message

From: Trevor G Quayle
Subject: Re: POV 'Outline' capability
Date: 13 Jun 2006 22:13:16
Message: <448f70bc$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message 
news:448f0ad3@news.povray.org...
> peter <cuj### [at] hotmailcom> wrote:
>> As a newbie, this may seem like a strange question: Is there anyway to 
>> draw
>> an outline (say 1+ pixel) around objects while (possibly even after) 
>> drawing
>> them?
>
>  No.
>
> -- 
>                                                          - Warp

http://news.povray.org/povray.binaries.images/thread/%3C3d3edd19%40news.povray.org%3E/
http://news.povray.org/povray.binaries.images/thread/%3C3d3fd84f%40news.povray.org%3E/
http://news.povray.org/povray.text.scene-files/thread/%3C3d3eddb0%40news.povray.org%3E/

Warp likes to give up too easy ;)

He means "no you can't directly, but htere are options for post processing 
methods"

-tgq


Post a reply to this message

From: Mike Williams
Subject: Re: POV 'Outline' capability
Date: 14 Jun 2006 03:41:56
Message: <PN8fdNADw7jEFwC9@econym.demon.co.uk>
Wasn't it Ross who wrote:
>
>Also, did megapov have a edge detect postprocessing feature?

Yes, post_processing find_edges. But it's only in MegaPOV v0, it didn't
get carried forward into MegaPOV v1.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Thibaut Jonckheere
Subject: Re: POV 'Outline' capability
Date: 14 Jun 2006 04:25:18
Message: <448fc7ee$1@news.povray.org>
Mike Williams wrote:
> Wasn't it Ross who wrote:
> 
>>Also, did megapov have a edge detect postprocessing feature?
> 
> 
> Yes, post_processing find_edges. But it's only in MegaPOV v0, it didn't
> get carried forward into MegaPOV v1.
> 


I think it survived in Megapov v1, it is now inside the  larger 
post-process macro. See 
http://megapov.inetart.net/manual-1.2.1/inc_pprocess.inc.html, "3.5.1.5. 
Finding edges"

Thibaut


Post a reply to this message

From: Thibaut Jonckheere
Subject: Re: POV 'Outline' capability
Date: 14 Jun 2006 04:35:47
Message: <448fca63@news.povray.org>
peter wrote:
> As a newbie, this may seem like a strange question: Is there anyway to draw
> an outline (say 1+ pixel) around objects while (possibly even after) drawing
> them?  I know this seems contrary to what raytracing does (realistic
> renderings), but I want to do the outline for effect.
> 
> 
To complete the answers and links given by the others, there are indeed 
some methods to get object outline. In addition to the links given by 
Trevor G Qayle, you can :

- use my edgemacro macro (I have posted the necessary includes recently 
in p.b.scene-files). It works nicely for any geometry, but is limited to 
mesh objects, and there is some work needed to be able to use it with a 
given object.

- use megapov "find edges" post process (see the link above, in the 
answer to Mike Williams). Works with any object and scene. Main weakness 
: really slow (even for very simple scene), and it is difficult to get 
rid of antialiasing for the outline

- use the "angle of incidence" technique (again requires megapov). This 
method is quite simple to implement, and works well for smooth round 
shapes, but it is difficult to get good results when you have more 
complex shapes. You can see a nice image made by Lightbeam with this 
technique at 
http://news.povray.org/povray.binaries.images/thread/%3C41f7e1ab@news.povray.org%3E/
with the scene-file at : 
http://news.povray.org/povray.binaries.scene-files/attachment/%3C41f9190a@news.povray.org%3E/us-ascii?ttop=216485&toff=50



Thibaut


Post a reply to this message

From: Warp
Subject: Re: POV 'Outline' capability
Date: 14 Jun 2006 05:11:27
Message: <448fd2bf@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
> A possibility is to surround the objects that you want to outline with a very
slightly larger, 
> transparent version of itself.

  That's just not possible in the general case. A simple 'scale' won't do.

-- 
                                                          - Warp


Post a reply to this message

From: Norbert Kern
Subject: Re: POV 'Outline' capability
Date: 14 Jun 2006 06:15:01
Message: <web.448fe14933311c7c1302c26c0@news.povray.org>
There is another attempt for cartoon like povray renders -
http://www-inst.eecs.berkeley.edu/~dtw/pov/misc/_povsrc/ .

Look after outline1.pov to outline3.pov.

Its similar to Thibaut's object-based toon shading approach IIRC.

David Wallace did some other very nice images too -
http://www.ocf.berkeley.edu/~dtw/3D_Graphics/index.html .


Norbert Kern


Post a reply to this message

From: peter
Subject: Re: POV 'Outline' capability
Date: 14 Jun 2006 17:20:32
Message: <44907da0$1@news.povray.org>
Thanks for the help here guys!  I actually tried the technique of drawing an
object twice, 1) scaling it a bit smaller for my textured object  & 2) using
the interior_texture of black for the 'other' object.

It looks good.  Although it might look a little strange though depending on
the camera view- it seems I will get an outline of varying width.


Post a reply to this message

From: Alain
Subject: Re: POV 'Outline' capability
Date: 14 Jun 2006 21:49:53
Message: <4490bcc1@news.povray.org>
Warp nous apporta ses lumieres en ce 14/06/2006 05:11:
> Alain <ele### [at] netscapenet> wrote:
>> A possibility is to surround the objects that you want to outline with a very
slightly larger, 
>> transparent version of itself.
> 
>   That's just not possible in the general case. A simple 'scale' won't do.
> 
I know that. In the case of any CSG object, each element have to be individualy
enlarged and 
combined in a merge. In the case of a blob or isosurface, you can alter the thresshold
value slightly.

-- 
Alain
-------------------------------------------------
Stoicism: This shit is good for me.


Post a reply to this message

From: Jim Henderson
Subject: Re: POV 'Outline' capability
Date: 14 Jun 2006 21:52:49
Message: <pan.2006.06.15.01.51.30.148471@nospam.com>
On Wed, 14 Jun 2006 16:20:26 -0500, peter wrote:

> Thanks for the help here guys!  I actually tried the technique of drawing
> an object twice, 1) scaling it a bit smaller for my textured object  & 2)
> using the interior_texture of black for the 'other' object.
> 
> It looks good.  Although it might look a little strange though depending
> on the camera view- it seems I will get an outline of varying width.

One trick that I picked up in a GIMP tutorial is to take the image after
it's rendered and load it up in an image editor (like GIMP); duplicate the
layer and blur it (I often use 5x5 IIR blur for something like this, but
it depends on the image size and characteristics as to what's effective),
invert (ie, photo negative) the blurred layer and set the transparency to
50% for that layer; the result is a grey image that has outlines of
what's the image.  Tweak the thresholds to give you an image that looks
to be moving to black & white, convert to greyscale, and then adjust the
thresholds until it looks right.  If done right, the result usually will
look like a pencil drawing.

Example at:

http://hendersj.dyndns.org/modules/Photo_Albums/Raytraced-Images/spikeball_fb_800_outline

The original raytraced image is at:

http://hendersj.dyndns.org/modules/Photo_Albums/Raytraced-Images/spikeball_fb_800

For comparison.

Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: POV 'Outline' capability
Date: 16 Jun 2006 02:30:07
Message: <pan.2006.06.16.06.28.41.662296@nospam.com>
Just in case anyone tried to look at the images and couldn't, almost
immediately after I posted the links, my DSL line croaked on me; it's back
now, but it might be intermittant while the provider tries to identify
what the issue is/was.

Jim


Post a reply to this message

From: Norbert Kern
Subject: Re: POV 'Outline' capability
Date: 16 Jun 2006 07:45:00
Message: <web.4492994633311c7c3a5a53f60@news.povray.org>
connection doesn't work, Jim.

Norbert Kern


Post a reply to this message

From: Jim Henderson
Subject: Re: POV 'Outline' capability
Date: 16 Jun 2006 13:23:53
Message: <pan.2006.06.16.17.22.26.416900@nospam.com>
On Fri, 16 Jun 2006 07:43:02 -0400, Norbert Kern wrote:

> connection doesn't work, Jim.

Almost as soon as I posted that, it croaked again. <sigh>  A very stable
connection in general, but when it has problems, they seem to never end.

Jim


Post a reply to this message

From: St 
Subject: Re: POV 'Outline' capability
Date: 16 Jun 2006 14:16:12
Message: <4492f56c@news.povray.org>
"Jim Henderson" <nos### [at] nospamcom> wrote in message 
news:pan### [at] nospamcom...
> On Fri, 16 Jun 2006 07:43:02 -0400, Norbert Kern wrote:
>
>> connection doesn't work, Jim.
>
> Almost as soon as I posted that, it croaked again. <sigh>  A very stable
> connection in general, but when it has problems, they seem to never end.

       I'm getting both at 19:13 GMT - all is well here in the UK.

         ~Steve~



>
> Jim


Post a reply to this message

From: Jim Henderson
Subject: Re: POV 'Outline' capability
Date: 16 Jun 2006 17:26:11
Message: <pan.2006.06.16.21.24.43.913544@nospam.com>
On Fri, 16 Jun 2006 19:15:55 +0100, St. wrote:

> 
> "Jim Henderson" <nos### [at] nospamcom> wrote in message
> news:pan### [at] nospamcom...
>> On Fri, 16 Jun 2006 07:43:02 -0400, Norbert Kern wrote:
>>
>>> connection doesn't work, Jim.
>>
>> Almost as soon as I posted that, it croaked again. <sigh>  A very stable
>> connection in general, but when it has problems, they seem to never end.
> 
>        I'm getting both at 19:13 GMT - all is well here in the UK.

Good, thanks Steve, it seems to have gotten better today - finally reached
someone at the provider who can get it looked into (took a letter to the
CEO to get it acknowledged and his office indicated they had no record of
a problem, so now someone is actively looking into it.).

Jim


Post a reply to this message

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