POV-Ray : Newsgroups : povray.general : camera path Server Time
6 Nov 2024 12:20:33 EST (-0500)
  camera path (Message 1 to 5 of 5)  
From: Rafal 'Raf256' Maj
Subject: camera path
Date: 22 Aug 2002 08:42:59
Message: <Xns92729510BE272raf256com@204.213.191.226>
Hi,
I have camera path declared as
time1 pos1 look1
time2 pos2 look2
timeN posN lookN

where pos is position of camera, and look is look_at in some time

now I want to use this varaibles to define location and look_at in current 
clock, how can I do this ?

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Warp
Subject: Re: camera path
Date: 22 Aug 2002 09:07:08
Message: <3d64e1fc@news.povray.org>
Rafal 'Raf256' Maj <raf### [at] raf256com> wrote:
> time1 pos1 look1
> time2 pos2 look2
> timeN posN lookN

  That looks a lot like a spline declaration.

  Make a spline for the location using the time and pos values and another
spline for the look_at using the same time values and the look values.
Then just call the spline with the time variable, and there you are.
  Besides, you get all kind of nice interpolations (besides linear one)
for free.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Andrew Cocker
Subject: Re: camera path
Date: 23 Aug 2002 15:50:51
Message: <3d66921b$1@news.povray.org>
Just curious, but what's this data generated by? Is it CamPath or something like that
(Terragen path creator)?

All the best,

Andy Cocker

"Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote in message
news:Xns### [at] 204213191226...
> Hi,
> I have camera path declared as
> time1 pos1 look1
> time2 pos2 look2
> timeN posN lookN
>
> where pos is position of camera, and look is look_at in some time
>
> now I want to use this varaibles to define location and look_at in current
> clock, how can I do this ?
>
> --
> #macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
> pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
> );g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
> y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: camera path
Date: 23 Aug 2002 21:53:14
Message: <Xns927426E7954B5raf256com@204.213.191.226>
"Andrew Cocker" <mai### [at] mariner9net> wrote in
news:3d66921b$1@news.povray.org 

> Just curious, but what's this data generated by? Is it CamPath or
> something like that (Terragen path creator)?

No, I thing that this will be quite comfortable way to controll camera, 
like :
0:00 under celing, looking straight +z
0:10 -||-, looking at floor
0:30 landed on flour, looking ahead
1:00 look at my model of i.e. cat
1:10 fly away

etc :)


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: ABX
Subject: Re: camera path
Date: 26 Aug 2002 03:05:09
Message: <cjkjmuo5otasu176v8sdpbcfnp695vqn32@4ax.com>
On 22 Aug 2002 08:42:59 -0400, "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:
> now I want to use this varaibles to define location and look_at in current 
> clock, how can I do this ?

Investigating sample files distributed with package. In particular:
POV3.5\scenes\animations\splinefollow\
Optionally you can be interested in
http://news.povray.org/vn3kgus7r8c8vu9im0oquo5vbfk9de8v8d%404ax.com

ABX


Post a reply to this message

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