|
|
Le 30/08/2013 09:44, Atlaste a écrit :
> However, that's about as far as I got; at this point I have no clue how to do
> the same trick in the x direction.
>
> Any help is appreciated!
How do you count the cells of a 10x10 table ?
you can start at the first row (0), and count from 0 to 9 on the column.
Then start at the second row with 10 and count up to 19.
And so on until 99.
So were is cell 38 ?
38 modulo 10 gives 8.
38 divided by 10 gives 3.
So cell 38 is in the fourth row, nineth column (assuming first row, firs
column is 00, an offset of +1 is needed for usual location)
your formula becomes something like:
#declare ColumnSize = 10;// or whatever the number of image per column
camera
{
orthographic
location <div(clock,ColumnSize)*9.8 ,
15,
mod(clock, ColumnSize)*9.8>
right <10,0,0>
direction <0,1,0>
up <0,0,10>
look_at <div(clock,ColumnSize)*9.8,0,mod(clock, ColumnSize)*9.8>
}
clock goes from 0 to (NumberOfRow)*(ColumnSize) by step of 1.
--
Just because nobody complains does not mean all parachutes are perfect.
Post a reply to this message
|
|