Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Forum => Topic started by: rednova on August 22, 2007, 08:20:44 PM

Title: plottin' the demo
Post by: rednova on August 22, 2007, 08:20:44 PM
Dear Friends:

I have seen a beautiful amiga demo (satisfaction guaranteed) which I loved. It showed a series of points
moving around and becoming different shapes (made of points)like math hyperbolas...switching from shape to shape. Is it possible to do this in amospro?  To plot points and makin 'em form a different shape?
Thanks...

rednova
-mobilis in mobile-
Title: Re: plottin' the demo
Post by: Sidewinder on August 22, 2007, 08:33:48 PM
Absolutely!  Although the original AMOS plot function is a bit slow so I'd suggest using a replacement like the one found in the Turbo extension.  The whole concept would involve solving intersections of lines and mathematical equations for various shapes.  Without an FPU (does AMOS even use an FPU when available?) you'll need to generate precomputed tables for the different mathematical functions in order to keep the frame rate high.  But it's definitely possible.
Title: Re: plottin' the demo
Post by: rednova on August 22, 2007, 08:48:54 PM
Sidewinder:

Thanks for replying. I will mess with the plotting commands. I do not need this function to be fast...just to adequately work. Hey..all amos people:  I love you!!!!

rednova
Title: Re: plottin' the demo
Post by: Sidewinder on August 23, 2007, 02:19:18 AM
@rednova

I checked out the demo and didn't see effects exactly like you describe, but I did sit down with AMOS tonight and ran a simple test case with finding the intersection points of a line and a circle.  It seems to work just fine in AMOS with one random line and one circle.  I had the line spinning and calculated the intersection points and plotted them on the screen so it looked like two points circling each other.  Pretty cool effect if I do say so myself.  Now to add more complex quadratic shapes and maybe even some 3D.   ;D
Title: Re: plottin' the demo
Post by: SamuraiCrow on April 19, 2009, 01:58:44 AM
Without an FPU (does AMOS even use an FPU when available?) you'll need to generate precomputed tables for the different mathematical functions in order to keep the frame rate high.  But it's definitely possible.
Amos only supports an FPU when using double precision numbers.