POV-Ray : Newsgroups : povray.binaries.images : my sphere on checker... : Re: my sphere on checker... Server Time
9 Aug 2024 03:22:16 EDT (-0400)
  Re: my sphere on checker...  
From: bancquart sebastien
Date: 11 Mar 2005 01:24:22
Message: <42313996$1@news.povray.org>
Try just cos(radian(foo)), without the degree.
After you took the cosinus, you don't obtain an angle so you don't have to 
convert back in degree.

Easier, in the script, replace "pas = 360/nombre" with "pas=2*pi/nombre"



web.422fa980547504b4e6ef12d50@news.povray.org...
> "bancquart.sebastien" <ban### [at] wanadoofr> wrote:
>> Thanks for your advices.
>>
>> By the way, I understood my error : cos and sin function work in radian, 
>> not
>> in degrees.
>> Modifying this in my script gives something much better, without any
>> intersections.
>
> Wrapping the sin() and cos() functions like degrees(cos(radians( foo )))
> blew the sphere spheres so far out they became stars. :-)
>
> I just figured out while loops though, maybe its beyond me for the moment.
>
> Heres an animgif of my fixing attempt. (no intersections though!)
>


--------------------------------------------------------------------------------


Post a reply to this message

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