hi all,
ive finished a script which analyses audio data and sets vertices on a grid one row at a time, producing an audio landscape if you like. currently it does this on a 5x5 grid, each rows vertices are appended to a list and the script cycles through these lists setting the Z position on each verice according to bass, bass-mid, mid, mid-high, high frequencies. when the script gets to the last row it goes back to the first and repeats.
i would like to write a script which would let me create a lot longer landscape i.e. a 5x1000 grid maybe even longer.
i can see two ways of going about this and it would be great to get your opinions on which way would be best and if there are any other ways which i am overlooking. i think it will take me a while to program this and i dont want to go wasting my time only to realise there was a much quicker way
ok so:
method 1:
create a 5x1000 grid, append each rows vertices/vertexes(???) to 1000 lists, use my current script to move through them.
problems:
-a lot of hassle typing in each vertex into a list[ as vertexs i(ndex?)numbers do not correspond logically to their place in the grid i.e row1 does not consist of vertex 0-4, row2 does not consist of 5-9, more like row1 0,1,4,6,8 row2 3,2,5,7,9 row3 14,13,12,11,10 e.t.c
-if i want to make a grid for a longer period of time im buggered and have to rewrite it all again.
method 2:
keep my 5x5grid, when i get to setting the last row addObjectActuator another grid in front of the last, append the vertices to new lists cycle through these setting Xpos- repeat indefinatly.
problems:
-gonna be a bitch for my and my poor/adequate python skills to code, but seems to be the most futureproof.
well done if read through all that give yourself a pat on the back
any comments on these methods or suggestions of other ways around this
thanks
Will