POV-Ray : Newsgroups : povray.newusers : problem with light source : problem with light source Server Time
28 Sep 2024 07:35:43 EDT (-0400)
  problem with light source  
From: Kokni me
Date: 25 May 2012 06:30:01
Message: <web.4fbf5e4e730a93abf14493220@news.povray.org>
Can somebody tell why is sphere in light_source, looks_like black?


#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"


#global_settings {ambient_light Yellow}

#declare FRONT_TEXTURE = texture {

 pigment {
 color red 0.439215 green 0.847058 blue  0.407843
}
 finish {
 ambient 0.5
 diffuse 0.4}
}
 #declare BACK_TEXTURE = texture {

 pigment {
 color red 0.980392 green  0.862745 blue  0.415686
}
 finish {
 ambient 0.8
 diffuse 0.6
 phong 0.5
 phong_size 1

 }
}

#include "Mesh.inc"

//Plane
 plane { y,-2800
     pigment {
        checker color red 0.99 green 0.1 blue 0.070588 color red 0.121568 green
0.558823 blue 0.19607
        scale 1600
    }
     finish {
        ambient 0.2
        diffuse 0.9
        phong 0.9
        phong_size 100
    }
 }
plane { -z, 12500
    pigment {
        checker color red 0.99 green 0.1 blue 0.070588 color red 0.121568 green
0.558823 blue 0.19607
        scale 1600
    }
    finish { ambient 0.1 diffuse 0.6 }
}

//camera
 camera {
 angle 59
 location  <-200.0, 300.0, 590.0>
 right     <1, 0.0,  0.0>
 up        <0., 1, -0.5>
 rotate    <-4,-11,0>
 direction <0.35, -0.5,  -1.0>
 }


#declare svjetlo = sphere {
        <10.5, 10, 0>, 80
        pigment {
        color White
        translate <1.5, 0, 0>
   }
}


 // Light source

 light_source {
                <-280,180,-400>
                color White

                looks_like {
                          sphere
                                { <-0,0,-0>,20
                                  //color White
                                  finish {
                                        ambient -0.9
                                        diffuse 0.9
                                        phong 1
                                  }
                 }
  }
  translate <-10,150,700>
  }


Post a reply to this message

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