POV-Ray : Newsgroups : povray.advanced-users : Lens flares without third party addons : Re: Lens flares without third party addons Server Time
29 Jul 2024 10:26:01 EDT (-0400)
  Re: Lens flares without third party addons  
From: Peter Popov
Date: 29 Jul 2002 03:52:39
Message: <0qs9kug6mbrfggv22l780fdkje8ahi4ob5@4ax.com>
On Sun, 28 Jul 2002 22:00:16 EDT, "Rohan Bernett" <rox### [at] yahoocom>
wrote:

>How do I make a lens flare WITHOUT using a third party addon (like CC's one
>or NKFlare)?

Make one yourself? :)

Seriously, both Nathan's and Chris' use the same technique - they use
textured discs placed very close to the camera and facing it, so that
they appear in front of all other objects. Every element of the flare
is a disk (or a triangle or a polygon). The positions and coloring are
calculated depending on the parameters you feed (flare type, flare
location, brightness, camera location etc.)

There is a way to make semi-real lens flare using photons. Basically,
you have to reconstruct the geometry of the camera (the optics system
with all its lens and the shutter etc.) and then observe the scene
through it. If you use photons, there will be visible flares in the
image. However, this is very slow, and photons do not model
diffraction so you won't get the most peculiar flare effects at all.

Hope this helps.


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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