POV-Ray : Newsgroups : povray.newusers : light_source Server Time
26 Nov 2024 07:29:51 EST (-0500)
  light_source (Message 1 to 3 of 3)  
From: Oleguer Vilella
Subject: light_source
Date: 8 Sep 2004 13:35:42
Message: <413f42ee@news.povray.org>
Hello,

I'm traying to make this object more luminous. I'm using this lights because
I will put this object to an other scene and I need this lights.
I was searching on the help file and I found the "Spotlights", I trayed with
it, but it didn't work well.
The camera and the lights:
=================================
global_settings { assumed_gamma 2 }
background { color White }
camera { location <-10, 8, -19> look_at <0, 5, 0> }
light_source { <0, 33, 0> color White spotlight point_at <0, 0, 0> radius 50
falloff 20 tightness 0  }// My test.
light_source { <0, 19, 0> color rgb <0.5, 0.5, 0.5> }
light_source { <40, 25, 0> color rgb <1, 1, 1>
spotlight
point_at <0, 5, 0>
radius 20
falloff 20  }
================================
The object:
================================
#declare Reloj =
union {
  merge {
    box {<-5,0,-55>,<0,95,55>}
    cylinder{<-5,95,0>,<0,95,0>,55}
   pigment { color Green }
  scale 0.1}

difference {
    cylinder{<-10,95,0>,<20,95,0>,40}
    cylinder{<-11,95,0>,< 6,95,0>,36}
    pigment{color Black}
    finish {reflection 0.1 phong 0.3 phong_size 30}
  scale 0.1}
 }
object { Reloj rotate y*115 translate <0, 0, 0> }
================================
Thanks in advance,

Oleguer
http://www.infonegocio.com/oleguervm


Post a reply to this message

From: sprocket
Subject: Re: light_source
Date: 8 Sep 2004 17:50:00
Message: <web.413f7d74d9eae58548cbffb00@news.povray.org>
Hi Oleguer,
had a quick look at the file.
heres the work around.
you forgot to apply the finish to the green only the ring :)
try this script to see the difference.[START]

 #include "colors.inc"
global_settings { assumed_gamma 2 }
background { color rgb 1 }
camera { location <-10, 8, -19> look_at <0, 5, 0> }
light_source { <0, 33, 0> color White spotlight point_at <0, 0, 0> radius 50
falloff 20 tightness 0  }// My test.
light_source { <0, 19, 0> color rgb <0.5, 0.5, 0.5> }
light_source { <40, 25, 0> color rgb <1, 1, 1>
spotlight
point_at <0, 5, 0>
radius 20
falloff 20  }

#declare Reloj =
union {
  merge {
    box {<-5,0,-55>,<0,95,55>}
    cylinder{<-5,95,0>,<0,95,0>,55}
   pigment { color rgb<0,1,0> } finish{specular .51 ambient 1 diffuse
..96}//this is the main line you missed the finish only affected the ring in
the next part.
  scale 0.1}

difference {
    cylinder{<-10,95,0>,<20,95,0>,40}
    cylinder{<-11,95,0>,< 6,95,0>,36}
    pigment{color Black}
    finish {specular 2 ambient 1 diffuse .07 reflection 0.1 phong 0.3
phong_size 30}
  scale 0.1}
 }
object { Reloj rotate y*115 translate <0, 0, 0> }
// perspective (default) camera
camera {
  location  <0.0, 10.0, 55.0>
  look_at   <0.0, 0.0,  0.0>
  right     x*image_width/image_height
}

[END]


"Oleguer Vilella" <ole### [at] infonegociocom> wrote:
> Hello,
>
> I'm traying to make this object more luminous. I'm using this lights because
> I will put this object to an other scene and I need this lights.
> I was searching on the help file and I found the "Spotlights", I trayed with
> it, but it didn't work well.
>


Post a reply to this message

From: Oleguer Vilella
Subject: Re: light_source
Date: 9 Sep 2004 03:35:02
Message: <414007a6$1@news.povray.org>
Hi Sprocket,

Yes, I forgot to add the finish. I knew it, I'm sorry. I have thinking about
a cylindrical or conical light.
Thank you very much.

Oleguer.


news:web.413f7d74d9eae58548cbffb00@news.povray.org...
> Hi Oleguer,
> had a quick look at the file.
> heres the work around.
> you forgot to apply the finish to the green only the ring :)
> try this script to see the difference.[START]
>
>  #include "colors.inc"
> global_settings { assumed_gamma 2 }
> background { color rgb 1 }
> camera { location <-10, 8, -19> look_at <0, 5, 0> }
> light_source { <0, 33, 0> color White spotlight point_at <0, 0, 0> radius
50
> falloff 20 tightness 0  }// My test.
> light_source { <0, 19, 0> color rgb <0.5, 0.5, 0.5> }
> light_source { <40, 25, 0> color rgb <1, 1, 1>
> spotlight
> point_at <0, 5, 0>
> radius 20
> falloff 20  }
>
> #declare Reloj =
> union {
>   merge {
>     box {<-5,0,-55>,<0,95,55>}
>     cylinder{<-5,95,0>,<0,95,0>,55}
>    pigment { color rgb<0,1,0> } finish{specular .51 ambient 1 diffuse
> ..96}//this is the main line you missed the finish only affected the ring
in
> the next part.
>   scale 0.1}
>
> difference {
>     cylinder{<-10,95,0>,<20,95,0>,40}
>     cylinder{<-11,95,0>,< 6,95,0>,36}
>     pigment{color Black}
>     finish {specular 2 ambient 1 diffuse .07 reflection 0.1 phong 0.3
> phong_size 30}
>   scale 0.1}
>  }
> object { Reloj rotate y*115 translate <0, 0, 0> }
> // perspective (default) camera
> camera {
>   location  <0.0, 10.0, 55.0>
>   look_at   <0.0, 0.0,  0.0>
>   right     x*image_width/image_height
> }
>
> [END]
>
>
> "Oleguer Vilella" <ole### [at] infonegociocom> wrote:
> > Hello,
> >
> > I'm traying to make this object more luminous. I'm using this lights
because
> > I will put this object to an other scene and I need this lights.
> > I was searching on the help file and I found the "Spotlights", I trayed
with
> > it, but it didn't work well.
> >
>
>


Post a reply to this message

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