POV-Ray : Newsgroups : povray.binaries.images : looks_like : Re: looks_like Server Time
7 Nov 2024 04:50:42 EST (-0500)
  Re: looks_like  
From: And
Date: 12 Sep 2016 03:25:01
Message: <web.57d6580ae29f65168ef8a390@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:
> On 9/8/2016 3:57 AM, clipka wrote:
> > Am 08.09.2016 um 06:54 schrieb Mike Horvath:
> >> Is this the correct way to set up a light_source and attached object?
> >
> > Nope.
> > A looks_like object needs to be constructed at <0,0,0>, as POV-Ray
> > automatically adds a translation to the light source's location.
> >
> > I do agree that this is poorly documented in the official documentation.
> >
>
> So this is better?
>
>
> // Sun
> light_source
> {
>  Source_Location
>  rgb light_color
>  looks_like
>  {
>   sphere
>   {
>    <0,0,0>, Source_Radius
>    texture
>    {
>     pigment {color rgb light_color}
>     finish
>     {
>      emission 1
>      ambient  0
>      diffuse  0
>     }
>    }
>   }
>  }
>  parallel
> }

A more subtle details is that the light_color usually not the same.
the color of POV-Ray light_source describes the color of the illuminated object.
the color of looks_like object describes the color of (sun) itself. The sun
color often much brighter than the object it illuminates.


Post a reply to this message

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