|
![](/i/fill.gif) |
In article <3e7e0aad@news.povray.org>, "Stefan Schleifer" <pov### [at] gibts net> wrote:
> Hello,
>
> sorry for crossposting this with this newsgroup and povray.animations. I
> haven't seen this newsgroup in my newsreader at the first time... :-/
>
>
> Hi,
>
> i'm trying to render something special (?) with povray: I like to have the
> camera jump on a grid in the scene, but not on every field on the grid.
>
> Let's say we have a grid sized 7 by 7, i'd like to render the grids
> 1,2
> 1,3
> 1,4
> 4,3 and
> 4,4
>
> The problem is solved easily by creating a .pov-File for each grid including
> the proper camera. Problem is: Parsing the scene takes up to 1 Minute. If i
> could have the camera jump in the scene it would be much more quicker.
>
> I am thinking about a construction like
> if grid=1,2 then
> camera (xxx....)
> if grid=1,3 then
> camera (yyy...)
>
> Is there any way to handle this within a .pov-scene-file? Can someone help
> me with that issue?
>
> Regards,
> Stefan
>
>
one solution :
- create a 2 dimensionss array : #declare theArray = array [xDim][zDim]
- fill each element with a vector position : theArray[0][0] = <0, 0, 0>; theArray
[0][1] = <1, 1, 1>; ...
- in a double loops, set the camera location by : location theArray[i][j]
you can make one array for camera locations and an other array for camera look_at
may i help you.
Post a reply to this message
|
![](/i/fill.gif) |