POV-Ray : Newsgroups : povray.animations : Math Question : Re: Math Question Server Time
1 Jul 2024 02:00:07 EDT (-0400)
  Re: Math Question  
From: Jaap
Date: 17 Oct 2005 17:45:01
Message: <web.43541aab1fdfabe8a8399d8d0@news.povray.org>
It was marked as "untested" :-)

pov-ray is a bit funny, it uses degrees in rotate commands, but radians in
functions: "sin(A) Sine of A. Returns the sine of the angle A, where  A is
measured in radians."
so try:
Camera_X =  sin(radians((FrameCounter-1)*90/149))*1195-100
or just:
Camera_X =  sin((FrameCounter-1)*(2*pi)/149)*1195-100
or:
Camera_X_start  = -100;
Camera_X_end    = 1095;
Camera_X_length = Camera_X_end-Camera_X_start;
Camera_X = sin((FrameCounter-1)*(2*pi)/149)*Camera_X_length-Camera_X_start;

(all ## Untested ##)

does that help ?


Post a reply to this message

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