POV-Ray : Newsgroups : moray.win : Plugin Question - Lens Flare 5.0 : Re: Plugin Question - Lens Flare 5.0 Server Time
29 Jul 2024 00:29:58 EDT (-0400)
  Re: Plugin Question - Lens Flare 5.0  
From: Nathan Kopp
Date: 2 Sep 1999 23:45:29
Message: <37CF44C2.35163F09@Kopp.com>
There are two ways.  The first is to move the discs that create the flare
so that they are behind the object.  This is not very realistic, however.

To do this, change the disc_size variable prior to the
  #include "nkflare.inc"
line. This can be achieved by creating a INC file with the line

#declare disc_size=xxxxxx;  // fill in xxx with the distance from the
                            // camera to the discs that create the flare

and then telling moray to include this file.

NKFlare.txt (part of the NKFLare distribution, located in the PovScn folder)
contains some other documentation about more realistic flare hiding.  There are
a few tools included in the distribution that will dim the flare as the light
passes behind an object.  The only objects that work right now are triangles,
planes, and spheres, though.

-Nathan

Bill Hedge wrote:
> 
> Does anyone know of any way to hide a lens flare behind an object (e.g. the
> sun peeking over the "edge" of the earth)? Any help would be greatly
> appreciated!
> 
> Bill


Post a reply to this message

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