POV-Ray : Newsgroups : povray.newusers : Where is the reflected light? Server Time
23 Nov 2024 14:58:13 EST (-0500)
  Where is the reflected light? (Message 1 to 5 of 5)  
From: John Greenwood
Subject: Where is the reflected light?
Date: 27 Nov 2013 05:55:01
Message: <web.5295ceaf3204e2eaa7cafab50@news.povray.org>
I have just started using POV-ray but I seem to have struck a problem in my
first proper model. In the file below there is an oval mirror at 45 deg which
ought to be reflecting a circular patch of light onto the plane in which there
should a shadow of the sphere.

This is not present although you can see reflected light source re-reflected in
the mirrored sphere.

      #include "colors.inc"
  #include "textures.inc"
  camera {
    location  <-4, 3, -9>
    look_at   <0, 2, 0>
    angle 48
  }
  plane {
    y, -1
    texture {
      pigment {
        checker
        color rgb<0.5, 0, 0>
        color rgb<0, 0.5, 0.5>
      }
      finish {
        diffuse 0.4
        ambient 0.2
        phong 1
        phong_size 100
        reflection 0.25
      }
    }
  }
cylinder { <0,0,0> ,<0,-.1,0>, 2
finish {reflection {1.0} ambient 0 diffuse 0  }
scale <1.42,1,1>
rotate <0,0,-45>
translate<0,3,0>}

  sphere {
    <0,0,0>,1
   finish {reflection {1.0} ambient 0 diffuse 0 }
    translate <0, 0, 0>
  }
   light_source {
    <-10, 1, 0>
    color White
  }

Otherwise I anticipte doing some fantastic things with POV-Ray.


Post a reply to this message

From: Doctor John
Subject: Re: Where is the reflected light?
Date: 27 Nov 2013 06:54:47
Message: <5295dd87$1@news.povray.org>
On 27/11/13 10:54, John Greenwood wrote:
> I have just started using POV-ray but I seem to have struck a problem in my
> first proper model. In the file below there is an oval mirror at 45 deg which
> ought to be reflecting a circular patch of light onto the plane in which there
> should a shadow of the sphere.
> 
> This is not present although you can see reflected light source re-reflected in
> the mirrored sphere.
> 
>       #include "colors.inc"
>   #include "textures.inc"
>   camera {
>     location  <-4, 3, -9>
>     look_at   <0, 2, 0>
>     angle 48
>   }
>   plane {
>     y, -1
>     texture {
>       pigment {
>         checker
>         color rgb<0.5, 0, 0>
>         color rgb<0, 0.5, 0.5>
>       }
>       finish {
>         diffuse 0.4
>         ambient 0.2
>         phong 1
>         phong_size 100
>         reflection 0.25
>       }
>     }
>   }
> cylinder { <0,0,0> ,<0,-.1,0>, 2
> finish {reflection {1.0} ambient 0 diffuse 0  }
> scale <1.42,1,1>
> rotate <0,0,-45>
> translate<0,3,0>}
> 
>   sphere {
>     <0,0,0>,1
>    finish {reflection {1.0} ambient 0 diffuse 0 }
>     translate <0, 0, 0>
>   }
>    light_source {
>     <-10, 1, 0>
>     color White
>   }
> 
> Otherwise I anticipte doing some fantastic things with POV-Ray.
> 
> 
> 
> 

Just one word, photons.

You need to turn them on, they're off by default.

See
http://wiki.povray.org/content/Documentation:Tutorial_Section_3.7#Media_and_photons
for a tutorial. It will also help you deal with media.

BTW Welcome to the Povray community

John
-- 
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children


Post a reply to this message

From: Doctor John
Subject: Re: Where is the reflected light?
Date: 27 Nov 2013 07:11:53
Message: <5295e189@news.povray.org>
Just to be more clear, attached is your file modified to give the effect
you want

John
-- 
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

From: John Greenwood
Subject: Re: Where is the reflected light?
Date: 27 Nov 2013 11:00:01
Message: <web.529616508b913af6a7cafab50@news.povray.org>
Doctor John <j.g### [at] gmailcom> wrote:
> Just to be more clear, attached is your file modified to give the effect
> you want
>
> John
> --
> Protect the Earth
> It was not given to you by your parents
> You hold it in trust for your children

Ah! that does it.

Thanks for the help

John


Post a reply to this message

From: Doctor John
Subject: Re: Where is the reflected light?
Date: 27 Nov 2013 11:23:33
Message: <52961c85$1@news.povray.org>
On 27/11/13 15:57, John Greenwood wrote:
> Doctor John <j.g### [at] gmailcom> wrote:
>> Just to be more clear, attached is your file modified to give the effect
>> you want
>>
>> John
>> --
>> Protect the Earth
>> It was not given to you by your parents
>> You hold it in trust for your children
> 
> Ah! that does it.
> 
> Thanks for the help
> 
> John
> 
> 
> 
No problem. That's what we're here for

John
-- 
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children


Post a reply to this message

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