|
|
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
|
|