kungfu
08-09-2002, 10:59 AM
Hi,
I've been working on a little Javascript page that rotates Divs in 3D. It's easier if you look as i can't explain very well.
http://www.emptystring.com/3d3.htm
If you watch it for about 10 seconds it starts to shrink and it's really not supposed to as it's z coordinate is constant throughout.
From what i've read it's a rounding error and i need to normalise the vectors every 10th rotation to correct this error. I've tried this on a copy and it just warps the box. Anyone have any ideas on how to stop it shrinking.....please?....Anyone?
Thanks for your time
Kerry
I've been working on a little Javascript page that rotates Divs in 3D. It's easier if you look as i can't explain very well.
http://www.emptystring.com/3d3.htm
If you watch it for about 10 seconds it starts to shrink and it's really not supposed to as it's z coordinate is constant throughout.
From what i've read it's a rounding error and i need to normalise the vectors every 10th rotation to correct this error. I've tried this on a copy and it just warps the box. Anyone have any ideas on how to stop it shrinking.....please?....Anyone?
Thanks for your time
Kerry