|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi Folks
I'm doing some basic animation with povray (3.1) and I want to move the
camera in a circle. Any ideas on the best way to do this using the clock
variable. Can you use trig functions in Povray? I'm sure there's a
better way to do it.
Mike Varley
mik### [at] nacstockacuk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Mike Varley wrote:
> Hi Folks
>
> I'm doing some basic animation with povray (3.1) and I want to move the
> camera in a circle. Any ideas on the best way to do this using the clock
> variable. Can you use trig functions in Povray? I'm sure there's a
> better way to do it.
>
> Mike Varley
> mik### [at] nacstockacuk
The simplest method of animating a clock in a circle is by first
positioning it in a place away from the origin and then applying
a rotation command to it.
example:
camera{
location <0,0,-10>
look_at 0
rotate 360*y*clock
}
This will rotate the camera around the y axis keeping the camera pointed at xyz = 0
If you wanted to have your camera to stay located at -z but rotate in
a circle about the z axis still looking at xyz = 0 (point your arm straight
out and inscribe a circle in the air) you could try something like this:
camera{
location <-10,0,0>
look_at 0
rotate 360*z*clock
translate z*-10
}
Might look a little dizzying but it show the possibilities.
These are the simple methods to achieve what you asked. But since
you are also interested in possible trig functions I will bow out at this
point and let some of the math heads that frequent this group have
their say.
My approach may be simple but it does work.
Theirs will be complicated but will achieve the same results.
Its' your choice.
--
Ken Tyler
tyl### [at] pacbellnet
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Mike Varley <mik### [at] voidnacstockacuk> wrote:
: I'm doing some basic animation with povray (3.1) and I want to move the
: camera in a circle. Any ideas on the best way to do this using the clock
: variable. Can you use trig functions in Povray? I'm sure there's a
: better way to do it.
The answer is (surprise!) in the povray VFAQ:
http://www.cs.tut.fi/~warp/povVFAQ.html#camerarotation
(I still wonder why nobody uses the VFAQ but answer the same questions
again and again instead. Perhaps I'll just delete it...)
--
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
The 12.11.97 on comp.graphics.rendering.raytracing,Bird Cameron did answer
that to a question on "Circular camera path"
<01bd0610$25f68c00$5b033bcb@2>...
> If you assume that the position that you want to orbit is <x,y,z> and the
> radius at which you wish to orbit is r and you use the z-axis as up, The
> following camera statement will do the trick.
>
> camera{ position <x+(cos(clock*pi*2)*r),y+(sin(clock*pi*2)*r),0>
> right <1,0,0>
> up <0,0,1>
> look_at <x,y,z>
> }
>
> Hope that helps.
>
> Gordon
> <gbe### [at] birdcameroncomau>
>
Hoping that too,
David Etter Perere
per### [at] bofinfomaniakch
Remove the "bof." to answer
<369CD9A3.59518EBF@void.nacstock.ac.uk>...
> Hi Folks
> ...
> Can you use trig functions in Povray? I'm sure there's a
> better way to do it.
>
> Mike Varley
> mik### [at] nacstockacuk
>
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Nieminen Mika wrote:
>
> (I still wonder why nobody uses the VFAQ but answer the same questions
> again and again instead. Perhaps I'll just delete it...)
I think it's because not all of us (myself, for example) know exactly what
is and is not on the VFAQ. I, however, am now going to go look at the VFAQ
and see what is there, so I can save some time answering these questions. :)
-Nathan
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Nathan Kopp wrote:
> Nieminen Mika wrote:
> >
> > (I still wonder why nobody uses the VFAQ but answer the same questions
> > again and again instead. Perhaps I'll just delete it...)
>
> I think it's because not all of us (myself, for example) know exactly what
> is and is not on the VFAQ. I, however, am now going to go look at the VFAQ
> and see what is there, so I can save some time answering these questions. :)
>
> -Nathan
Ahh! Yes! I didn't know there were any VFAQ. Sorry. :-( I'll give them a
thorough going
over when I've got a mo'
Cheers
Mike Varley
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Up until a week ago, I didn't know the VFaq existed. I think we should
make sure Twyst adds a link from the povray.org page. Also it probably
wouldn't hurt if every so often, someone posted a general. "Have a
question about POVRay? Have you checked the VFaq at ..." That way
newcomers might end up going there first. Just a few thoughts.
Steve
Nieminen Mika wrote:
>
> Mike Varley <mik### [at] voidnacstockacuk> wrote:
> : I'm doing some basic animation with povray (3.1) and I want to move the
> : camera in a circle. Any ideas on the best way to do this using the clock
> : variable. Can you use trig functions in Povray? I'm sure there's a
> : better way to do it.
>
> The answer is (surprise!) in the povray VFAQ:
>
> http://www.cs.tut.fi/~warp/povVFAQ.html#camerarotation
>
> (I still wonder why nobody uses the VFAQ but answer the same questions
> again and again instead. Perhaps I'll just delete it...)
>
> --
> main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
> *_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp. -*/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |