POV-Ray : Newsgroups : povray.advanced-users : Fade distance and power? Server Time
4 Nov 2024 19:21:54 EST (-0500)
  Fade distance and power? (Message 1 to 5 of 5)  
From: Mick Hazelgrove
Subject: Fade distance and power?
Date: 29 Apr 1999 14:38:24
Message: <37289910.0@news.povray.org>
Why does the light beam not fade away with distance?
varying fade_power and distance seems to vary the light evenly along the
beam.

Mick

#version 3.1;

#include "colors.inc"

global_settings
{
  assumed_gamma 1.0
}


// ----------------------------------------
camera
{   location  <0.0, -10, 95.0>
    direction 1.5*z
        up    4/3*y
            right <1,0,0>
  look_at   <0.0, 0.0,  0.0>
}


light_source{ <0, 200, 0>
 // color rgb 1.0
arealight<8, 0, 0> <0, 0, 8> 4, 4
  adaptive 0
  jitter
media_interaction off




// create a point "spotlight" (cylindrical directed) light source
light_source
{
  0*x                     // light's position (translated below)
  color rgb <1,1,1>       // light's color
  spotlight               // this kind of light source
  cylinder                // this variation
  translate <90, 180, -40> // <x y z> position of light
  point_at <0, 0, 30>      // direction of spotlight
  radius 50                // hotspot (inner, in degrees)
  tightness 150            // tightness of falloff (1...100) lower is
softer, higher is tighter
  falloff 50               // intensity falloff radius (outer, in degrees)
  fade_distance 40
  fade_power 1
  media_attenuation on
}


box{<-100,-100,100><100,200,-100> pigment{Blue}hollow
interior{
  media{
  scattering{1, .2 extinction .01}
 samples 20, 100
  intervals 10
  ratio .999
 confidence .9
  variance   1/1000

  }
  }
  }


Post a reply to this message

From: Mick Hazelgrove
Subject: Re: Fade distance and power?
Date: 29 Apr 1999 15:15:19
Message: <3728a1b7.0@news.povray.org>
Problem solved!

Sorry to bother you in your mighty ponderings on the nature of the raytraced
universe

Mick


Post a reply to this message

From: Ken
Subject: Re: Fade distance and power?
Date: 29 Apr 1999 21:37:18
Message: <3728FA79.3F82511A@pacbell.net>
Mick Hazelgrove wrote:
> 
> Problem solved!
> 
> Sorry to bother you in your mighty ponderings on the nature of the raytraced
> universe
> 
> Mick

 Just when I was about to give a powerful oration on the subject too.
I feel denied and unfulfilled.

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

From: Lewis
Subject: Re: Fade distance and power?
Date: 30 Apr 1999 08:00:10
Message: <37298DD4.8A1CD9D3@netvision.net.il>
I want to hear


Post a reply to this message

From: Mike
Subject: Re: Fade distance and power?
Date: 7 May 1999 11:26:37
Message: <3732F698.ED338BBB@aol.com>
fade_power 3, eh?

-Mike

>  Just when I was about to give a powerful oration on the subject too.
> I feel denied and unfulfilled.
>


Post a reply to this message

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