| |
Taskmaster Account closed
Registered: May 2012 Posts: 12 |
Bitmapped graphics tinkering
I got my basic double buffer bitmap drawing routine working. Basically. It has some nasty flicker at the top because I haven't figured out the timing yet and something is happening in the wrong order.
BUT ... the victory here is that it actually functions on SOME level and that was my goal for now. :)
http://dl.dropbox.com/u/161473/C64/DoubleBuffer_A.avi
Next up : flicker elimination and rendering optimizations so I can get more happening on the screen than a single shape. |
|
| |
Digger
Registered: Mar 2005 Posts: 437 |
Hmmm, so much rastertime to draw one bob? Something's not right here ;-) |
| |
Taskmaster Account closed
Registered: May 2012 Posts: 12 |
Oh, my code is terrible, no doubt. :) Part of the fun will be figuring out how to optimize it. |
| |
PopMilo
Registered: Mar 2004 Posts: 146 |
Keep trying ;)
Soft sprites are one of rarely seen things on C64...
Nice music btw :)
|
| |
JAC
Registered: Aug 2002 Posts: 57 |
Regarding flickering I am fairly sure from the video that you show the buffer which is currently drawn to and not the previous one. |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
best optimization would be to use the HW sprites aswell if possible. Try to peek into demo/game code on how to do fast SF ones. (tower power/camelot, access denied/reflex,arcanum/xenon pops to my mind). |
| |
Taskmaster Account closed
Registered: May 2012 Posts: 12 |
JAC
Holy hell, you're right. I also figured out why my clearing code isn't working ... it's using the data it gathered from the wrong frame.
Blargh!
Anyway, this is all fixable. Looking forward to the long weekend so I can get some decent coding time in. :) |
| |
Peiselulli
Registered: Oct 2006 Posts: 81 |
Minestorm uses softsprites, if it runs out of hardware sprites ...
|
| |
Stone
Registered: Oct 2006 Posts: 172 |
I don't know what you're working on, but if you're doing a game I would suggest you have a look at the EasyFlash format. It's incredibly easy to develop for (emulated in VICE and 1541U-II) and since you have a whole megabyte at your disposal, there is so much territory to explore when it comes to pre-generated tables and speedcode and many other cool tricks. |
| |
Skate
Registered: Jul 2003 Posts: 494 |
@Stein: are you an Atari scene spy or what? (usually Atari sceners support extended hardware usage y'know) :)
yes, EasyFlash is great, but don't you think it is a little bit misleading for beginners? let them learn the c64 way first. EasyFlash can be the next step if they like. |
| |
Stone
Registered: Oct 2006 Posts: 172 |
Haha no I'm not a spy and I wouldn't normally suggest using extension hardware, but I think these days there are so many 1541U-IIs about that it makes sense, especially if you're doing a game. It's not much different from developing a "normal" cart, and they have been around since day 1, so I don't think it is "misleading for beginners" as you say. |
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
Where do I find specs/instructions of the Easy Flash format? (i.e. how to do bank switching and what memory layouts that are available etc) |
| |
Skate
Registered: Jul 2003 Posts: 494 |
I have an original EasyFlash hardware as well as a 1541 U-II. I'm also developing a cartridge game myself. So, it's not that i'm against the technology, i just find its usage a little wrong for beginners to be able to learn some c64 tricks. for example we can fill a complete 64k space with 8 bit * 8 bit multiplation table using EasyFlash, right? but that way, beginners will never care to learn the exponent or logaritmic way.
@Taskmaster: you don't seem like a beginner as a coder. don't get my comments wrong. i'm talking in general. |
| |
Stone
Registered: Oct 2006 Posts: 172 |
@Skate: Anything that get your creative juices flowing is fine by me. I don't think it has to be hard just for the sake of it ;)
@Frantic: Check out http://codebase64.org/doku.php?id=base:thirdparty and http://hg.berlios.de/repos/easyflash/raw-file/tip/EasySDK/EasyS..
(Thanks to Mr.SID for those)
|
| |
Frantic
Registered: Mar 2003 Posts: 1648 |
Oh.. humm.. a bit embarrasing that I (a) didn't know that this material was on Codebase (since I run the site) and (b) didn't check codebase before asking here. :) Thanks! |
| |
TWW
Registered: Jul 2009 Posts: 545 |
Hehe, that made me lol. |