Ultimate Amiga

Network Boards => AMOS Language Discussion => AMOS Factory => AMOS Forum => Topic started by: Clonead on December 17, 2008, 03:08:02 PM

Title: Understanding animation - help double buffering - newbee
Post by: Clonead on December 17, 2008, 03:08:02 PM
Hello

Just bought a copy of amos pro on Ebay and want to start programming. The manual is huge but I need help with one thing...

I want to start to animate lines, circles, ... on screen by first drawing the e.g. circle in foreground color and when the position changes erase the circle by redrawing it in background color. It seems to me that this is the basic stuff for programming what will later exand to complex changing shapes...

Can anyone explain me how double buffering can help to smooth things out and maybe some lines of code to get me started...

Thank You
Title: Re: Understanding animation - help double buffering - newbee
Post by: SamuraiCrow on December 17, 2008, 07:05:13 PM
Hello.

Have you seen this thread (http://amos.condor.serverpro3.com/index.php/topic,5.0.html)?  It should tell you about the Autoback command and has some example code by Sidewinder.
Title: Re: Understanding animation - help double buffering - newbee
Post by: selur on December 19, 2008, 12:44:07 AM
Quote
how double buffering can help to smooth things out

First you must explain what kind of "things" you mean. Duble Buffer has few "modes" so this is important what kind of things you want to display static or animated bobs, icons  or graphic functions? 
Title: Re: Understanding animation - help double buffering - newbee
Post by: Hungry Horace on December 19, 2008, 11:04:11 PM
i would explain the workings of physical / logical screen drawing, but i have to say, the manual says it far better than i ever could:

http://amos.condor.serverpro3.com/AmosProManual/6/616.html


double buffer command also listed here:

http://amos.condor.serverpro3.com/AmosProManual/7/718.html


personally i used a double buffer system on the scrolling of my latest project. i wasnt constantly doing the screen-swap (i prefer a manual approach) so i gained some speed. I think it's the sort of thing you just need to read aout and try experimenting with.

the original AMOS Pro drawing-based commands are pretty slow btw. mostly they can been replaced with faster versions in other extensions.
Title: Re: Understanding animation - help double buffering - newbee
Post by: Clonead on December 20, 2008, 10:02:57 AM

I am going to process all the info given here. I hope i can count on you when things to net yet work out that well. Thank you