POV-Ray : Newsgroups : povray.general : Lighting question : Re: Lighting question Server Time
4 Nov 2024 19:16:48 EST (-0500)
  Re: Lighting question  
From: Tom Melly
Date: 30 Sep 2003 05:58:02
Message: <3f7953aa$1@news.povray.org>
"Christian Bryndum" <cbr### [at] deakineduau> wrote in message
news:3f79233b@news.povray.org...

> Ive got 2 looks_like { CrystalBall } lightsources.

looks_like won't do what you want...

> They are area_light <5,0,0> <0,0,5>5,5

Have you used the orient and circular keywords?

Try something like:

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  area_light <2,0,0>,<0,2,0>,5,5 orient circular
  looks_like{sphere {<1,1,0>, 1} pigment{Red} finish{ambient 1}}
  translate <-3, 3, -3>
}

> any ideas would be appreciated :)

For more realistic results, you will probably need to use radiosity and a sphere
with an emitting media.

Take a look at section 4.1 in the docs (and specifically 4.1.3).

Or try this (rather crappy) scene (note no light source):

#version 3.5;

#include "colors.inc"

global_settings {  ambient_light 0  assumed_gamma 1.0}

global_settings {
  radiosity {
    pretrace_start 0.08
    pretrace_end   0.01
    count 500
    nearest_count 10
    error_bound 0.02
    recursion_limit 3
    low_error_factor 0.2
    gray_threshold 0.5
    minimum_reuse 0.0015
    brightness 10
    adc_bailout 0.01
    media on
  }
}

camera {  location  <0.0, 5, -15.0>  look_at   <0.0, 0.0,  0.0>}
plane {  y, -1  pigment { color rgb <0.7,0.5,0.3> }}

sphere {  0.0, 1  pigment{Green}}

sphere{
  0,1.5
  pigment{rgbf 1}
  hollow
  interior{
    media{
      emission rgb<1,1/4,1/4>*5
      density{wrinkles}
      density{spherical}
    }
  }
  translate<-3,3,-3>
}


Post a reply to this message

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