Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Understanding animation - help double buffering - newbee  (Read 2434 times)

0 Members and 1 Guest are viewing this topic.

Clonead

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
Understanding animation - help double buffering - newbee
« 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
Logged

SamuraiCrow

  • compile-time wierdo
  • Forum Mod
  • A1200
  • *****
  • Karma: 5
  • Offline Offline
  • Gender: Male
  • Posts: 946
  • Compile-time wierdo
Re: Understanding animation - help double buffering - newbee
« Reply #1 on: December 17, 2008, 07:05:13 PM »

Hello.

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

selur

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 83
Re: Understanding animation - help double buffering - newbee
« Reply #2 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? 
Logged

Hungry Horace

  • Amorphous Blue-Blob Man
  • Site Admin
  • A4000T
  • ******
  • Karma: 307
  • Offline Offline
  • Gender: Male
  • Posts: 3,364
  • Don't forget... Ameboid's need love too!
    • AUW
Re: Understanding animation - help double buffering - newbee
« Reply #3 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.
Logged
Quote from: KillerGorilla
because winuae is made of code and your amiga is made of stuff

Clonead

  • A600
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
Re: Understanding animation - help double buffering - newbee
« Reply #4 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
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022