 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
peter <cuj### [at] hotmail com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Warp" <war### [at] tag povray org> wrote in message
news:448f0ad3@news.povray.org...
> peter <cuj### [at] hotmail com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Ross nous apporta ses lumieres en ce 13/06/2006 17:14:
> "Warp" <war### [at] tag povray org> wrote in message
> news:448f0ad3@news.povray.org...
>> peter <cuj### [at] hotmail com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Warp" <war### [at] tag povray org> wrote in message
news:448f0ad3@news.povray.org...
> peter <cuj### [at] hotmail com> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Alain <ele### [at] netscape net> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Warp nous apporta ses lumieres en ce 14/06/2006 05:11:
> Alain <ele### [at] netscape net> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
connection doesn't work, Jim.
Norbert Kern
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
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
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
"Jim Henderson" <nos### [at] nospam com> wrote in message
news:pan### [at] 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.
I'm getting both at 19:13 GMT - all is well here in the UK.
~Steve~
>
> Jim
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Fri, 16 Jun 2006 19:15:55 +0100, St. wrote:
>
> "Jim Henderson" <nos### [at] nospam com> wrote in message
> news:pan### [at] 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.
>
> 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
|
 |
|  |
|  |
|
 |
|
 |
|  |