KermMartian wrote:
flyingfisch wrote:
ok... I have found a bug now that i am actually using this for math.

First, when tracing Z1=X, when X=1, Z=-.999..., when X=2, Z=-1.999...

This is obviously incorrect.
That's an artifact of the floating-point format. I (and by "I" I mean "vprintf") should probably be rounding instead of truncating.


Please note that Z is negative when X is positive, which should not happen either... is that printf also?

Quote:

Quote:
Also, maybe it is too late, but what about having it calculate the points on the graph once, store it to an array, and then display the 3d array the same way you would with any 3d model? Wouldn't this allow faster spinning?
That's what it already does. The computations it needs to do during rotation are the transformations for scale and rotation.


Oh ok. Why does it not spin as fast as Hugh's 3d addin?
I have no idea without looking at how his works, but I bet part of it is that I use software floats for my 3D rotation math. I wouldn't be surprised if the program that Hugh ported or wrote uses fixed-point math, which is much faster.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 5 of 5
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement