POV-Ray : Newsgroups : povray.general : Focal Blur and Lens Glare Server Time
8 Aug 2024 12:22:44 EDT (-0400)
  Focal Blur and Lens Glare (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Ben Chambers
Subject: Focal Blur and Lens Glare
Date: 12 Jan 2001 22:32:38
Message: <3A5FCBA9.F2E15C56@hotmail.com>
Has anyone tried using focal blur and lens glare at the same time?  I
haven't tried anything yet, but I was thinking of using both in an
image, and was wondering about possible side effects from crossing the
two.
...Chambers


Post a reply to this message

From: Margus Ramst
Subject: Re: Focal Blur and Lens Glare
Date: 12 Jan 2001 22:53:21
Message: <3A5FD176.22C1499E@peak.edu.ee>
Ben Chambers wrote:
> 
> Has anyone tried using focal blur and lens glare at the same time?  I
> haven't tried anything yet, but I was thinking of using both in an
> image, and was wondering about possible side effects from crossing the
> two.
> ...Chambers

Assuming you use Chris Colefax's lens effects include file, you might have to
set the "effect_always_on_top" option to "false".
The lens effect is in fact an assortment of objects (discs, triangles, etc)
positioned & textured to look like a lens flare; so it is affected by focal blur
like any other object. As far as I know, unless you set the above option to
"false", these objects are positioned very close to the camera; so they might
get excessively blurred.

-- 
Margus Ramst

Personal e-mail: mar### [at] peakeduee
TAG (Team Assistance Group) e-mail: mar### [at] tagpovrayorg
Home page http://www.hot.ee/margusrt


Post a reply to this message

From: Chris Colefax
Subject: Re: Focal Blur and Lens Glare
Date: 12 Jan 2001 22:59:27
Message: <3a5fd29f@news.povray.org>
Ben Chambers <bdc### [at] hotmailcom> wrote:
> Has anyone tried using focal blur and lens glare at the same time?  I
> haven't tried anything yet, but I was thinking of using both in an
> image, and was wondering about possible side effects from crossing the
> two.

By lens glare, do you mean an include file like Nathan Kopp's or my own Lens
Effects file?  If so, the methods used by these files (objects placed close
to the camera so as to appear in front of the rest of the scene) mean that
focal blurring will generally blur the lens artefacts quite a bit.  A small
amount of blurring is often effective, but too much and the simulated lens
artefacts will disappear altogether.

My own include file offers control over the spacing of the lens effect
objects, so you can stop/control the blurring to some degree.  Otherwise,
you can render the blurred scene, then re-render this as a backdrop
(image-map) to a scene with just the lens effect added.


Post a reply to this message

From: Warp
Subject: Re: Focal Blur and Lens Glare
Date: 13 Jan 2001 13:47:38
Message: <3a60a2c9@news.povray.org>
Ben Chambers <bdc### [at] hotmailcom> wrote:
: Has anyone tried using focal blur and lens glare at the same time?

  Yes.
  It's hard to tell how a lens flare should look when there's focal blur,
but I suppose that it will look sharp as usual (I might be wrong, of course).
  I just was careful that the lens flare was located at the appropriate
distance from the camera in order to make it work.

  This is a place where a post-process lens flare could work easier/better.

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

From: Mark Wagner
Subject: Re: Focal Blur and Lens Glare
Date: 13 Jan 2001 22:56:19
Message: <3a612363@news.povray.org>
Warp wrote in message <3a60a2c9@news.povray.org>...
>--
>char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
>main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
>c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/

I like your new sig.


Post a reply to this message

From: David Fontaine
Subject: Re: Focal Blur and Lens Glare
Date: 13 Jan 2001 23:48:36
Message: <3A612E73.BD365FE8@faricy.net>
Mark Wagner wrote:

> >char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
> >main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
> >c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/
>
> I like your new sig.

Hey, that's pretty sweet!

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

From: Nathan Kopp
Subject: Re: Focal Blur and Lens Glare
Date: 14 Jan 2001 01:19:18
Message: <3a6144e6$1@news.povray.org>
"Ben Chambers" <bdc### [at] hotmailcom> wrote...
> Has anyone tried using focal blur and lens glare at the same time?  I
> haven't tried anything yet, but I was thinking of using both in an
> image, and was wondering about possible side effects from crossing the
> two.

If you're using NKFlare, this should help (it's from the NKFlare.txt file
that comes with NKFlare 5).

Q:  I am using focal blur in my image, and the lens flare disappears.

A:  Change the "disc_size" variable.  This variable affects the size
    of the discs that are used to create the lens flare.  It also
    changes their location.  The value of "disc_size" represents the
    distance from the camera to the discs.  In order for thoes discs
    to be in focus when focal blur is used, they must be at the
    focal point.  If, for example, the focal point was at "f_point",
    you would use the following declaration before including NKFlare.
    #declare disc_size = vlength(f_point - cam_loc)

-Nathan Kopp


Post a reply to this message

From: Jan Walzer
Subject: Re: Focal Blur and Lens Glare
Date: 14 Jan 2001 07:19:14
Message: <3a619942@news.povray.org>
> char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";

Do you create the String from your head, or have you written an extra tool
to create the string ???


Post a reply to this message

From: Warp
Subject: Re: Focal Blur and Lens Glare
Date: 14 Jan 2001 07:30:14
Message: <3a619bd6@news.povray.org>
Jan Walzer <jan### [at] lzernet> wrote:
:> char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";

: Do you create the String from your head, or have you written an extra tool
: to create the string ???

  Of course I have written a short C-code to make the encoding conversion
from the original sig to that string (that is, I make the sig with a text
editor and then I run it through the encoder which outputs that string and
then I just copypaste the string into that line of code).
  Making that string by hand would be just crazy :)

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

From: Ben Chambers
Subject: Re: Focal Blur and Lens Glare
Date: 14 Jan 2001 23:54:00
Message: <3A628276.4F74C925@hotmail.com>
Ok, I give.  With school, work and POVray, I haven't had time to do any C coding
recently...  I don't even have a compiler installed on this computer anymore...
So, what ARE those sigs you keep on using?!?!? :)

...Chambers


Warp wrote:

>   Of course I have written a short C-code to make the encoding conversion
> from the original sig to that string (that is, I make the sig with a text
> editor and then I run it through the encoder which outputs that string and
> then I just copypaste the string into that line of code).
>   Making that string by hand would be just crazy :)
>
> --
> char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
> main(_,c,m){for(m=32;c=*i++-49;c&m?puts(""):m)for(_=(
> c/4)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}    /*- Warp -*/


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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