Understanding animation - help double buffering - newbee

Started by Clonead, December 17, 2008, 03:08:02 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Clonead

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

SamuraiCrow

Hello.

Have you seen this thread?  It should tell you about the Autoback command and has some example code by Sidewinder.

selur

Quotehow 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? 

Hungry Horace

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.
Quote from: KillerGorillabecause winuae is made of code and your amiga is made of stuff


Clonead


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