POV-Ray : Newsgroups : povray.animations : Math Question : Re: Math Question Server Time
1 Jul 2024 01:37:52 EDT (-0400)
  Re: Math Question  
From: Jaap
Date: 17 Oct 2005 17:50:00
Message: <web.43541c791fdfabe8a8399d8d0@news.povray.org>
> Camera_X =  sin((FrameCounter-1)*(2*pi)/149)*1195-100
oops, that's 360 deg, while we needed 90 deg, so:

Camera_X =  sin((FrameCounter-1)*(pi/2.0)/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)*(pi/2.0)/149)*Camera_X_length-Camera_X_start;

(a #declare pi2 = pi/2.0; at the top may come in handy)


Post a reply to this message

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