POV-Ray : Newsgroups : povray.binaries.images : Ghurghusht: artifacts at dawn : Re: Ghurghusht: artifacts at dawn Server Time
31 Jul 2024 08:24:29 EDT (-0400)
  Re: Ghurghusht: artifacts at dawn  
From: Alain
Date: 17 Jun 2010 00:11:08
Message: <4c19a05c@news.povray.org>

> High!
>
> On 06/16/2010 06:25 PM, Alain wrote:
>>
>> sphere{v_rotate(v_rotate(<0, 15, 0>/5178,rotate <0, 0, 90-lat>),<0,
>> -long+90, 0>)+<sin(radians(-long))*cos(radians(lat)),
>> sin(radians(lat)),cos(radians(-long))*cos(radians(lat))> , <20, 25,
>> 20>/5178}
>> Should be equivalent to your case.
>
> It still doesn't work... contained_by does not accept any rotate or
> translate statements! At least it's that way with 3.6...
Did not change with 3.7 to my knowlege.
>
> See you in Khyberspace!
>
> Yadgar
Oups, forgot to remove a rotate in the macro call. Also, there is a 
superfluous underscore "_".

sphere{vrotate(vrotate(<0, 15, 0>/5178,<0, 0, 90-lat>),<0, -long+90, 
0>)+<sin(radians(-long))*cos(radians(lat)), 
sin(radians(lat)),cos(radians(-long))*cos(radians(lat))> , <20, 25, 
20>/5178}

That long location statement is meant to replace your translate and rotates.
The v_rotate() macro replace the rotations.
Everything between the "+" and the radius replace your translate.

Don't forget to remove those:
rotate <0, 0, 90-lat>
rotate <0, -long+90, 0>
translate <sin(radians(-long))*cos(radians(lat)), sin(radians(lat)),
cos(radians(-long))*cos(radians(lat))>



Alain


Post a reply to this message

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