POV-Ray : Newsgroups : povray.advanced-users : looks_like (again) : Re: looks_like (again) Server Time
24 Apr 2024 15:21:37 EDT (-0400)
  Re: looks_like (again)  
From: Mike Horvath
Date: 13 Mar 2018 00:07:55
Message: <5aa74e9b$1@news.povray.org>
On 3/10/2018 7:29 PM, Mike Horvath wrote:
> On 3/10/2018 6:56 PM, omniverse wrote:
>> Mike Horvath <mik### [at] gmailcom> wrote:
>>> I have the following settings. However, I can't get the sun_object to
>>> appear visible. What am I doing wrong? Thanks.
>>
>> Well, I think it's a problem with distance.
>>
>> If the location is divided by 10 billion, or multiplied by 1e-10 (one ten
>> billionth) it will show the sun when a camera at <0,0,0> is set to 
>> look_at the
>> sun location.
>>
>> light_source
>> {
>>   light_source_location*1e-10
>>   rgb 1
>>   looks_like
>>   {
>>    sun_object
>>   }
>>   parallel
>>   point_at <0,0,0>
>> }
>>
>> camera {
>>   location <0,0,0>
>>   look_at light_source_location
>> }
>>
>>
>>
> 
> I was able to work it out. Thanks for your help!
> 
> 
> Mike


The problem was that "sunpos.inc" was returning values that were already 
scaled to a large degree. When I vnormalized these values things started 
working correctly.


Mike


Post a reply to this message

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