Re: question for rob craig

new topic     » goto parent     » topic index » view thread      » older message » newer message

Matt Lewis wrote:
> 
> Hayden McKay wrote:
> > 
> > 
> > Is there another way I can implement this...
> > 
> > The loop at the bottom this code is the part I'm having trouble with
> > }}}
<eucode>
> > 
> > -- THE LOOP I'M HAVEING TROUBLE WITH:
> > 
> > sequence xyz
> > xyz=repeat(repeat(repeat({},361),361),361)
> > </eucode>
{{{

> 
> Calculate values on the fly.  Seriously, this thing is huge.  First off,
> you have 361 * 361 * 361 = 47,045,881 elements.  I created one, and 
> put floating point numbers (which is what you're ending up with) in each
> element, and the size went to about 580MB.
> 
> Matt Lewis
> 

actualy each bucket {} ends up as a 3x3 element sequence holding 9 floats
and is written to file useing edom2.e

Anyway I've decided to do multiple axis rotation like so...
My already produced Z rotation Y rotation and X rotation file is only 26kb
and takes less than a second to load. The file stores (361*9)*3 floats. I
figured out that if I invert the coefficients in the matrix rows I can do
a series of three calls: rotate_x() rotate_y() rotate_z() without any
deformaties.

Problem solved.... phew.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu