Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > FLI explained, please...
2009-05-03 20:40
Dragnet

Registered: Nov 2006
Posts: 16
FLI explained, please...

Hola,

I'm looking for an easy-understandable-for-a-novice description, preferably with a *documented* example to go along with it, of how FLI actually works, including a description of how the colordata is stored (so i'll know how to manipulate it). My C64 skills are very novice/rusty indeed, so the more documentation, the better...

I have already been searching this forum and the C64 codebase for the sorts, but found what seems like a trillion different FLI formats (FLI, AFLI, XFLI, IFLI, MUFLI, etc) with different resolutions... But, I'm merely thinking of "normal fli" (if there is such a thing) capable of handling a width of 40 chars (and at least a height of 10 chars), no sprites involved, and 16 colours per char, running as part of the normal IRQ. Make sense?

Furthermore, a reference to a drawing-program that can save in the explained format, or at least in a format that can be converted into it, would be very nice!

That's not much to ask for, is it? :)

Any help will be greatly appreciated...!

Regards /Dragnet
 
... 40 posts hidden. Click here to view all posts....
 
2009-05-05 20:44
Dragnet

Registered: Nov 2006
Posts: 16
Hola,

Hmm - can't believe I missed Graham's code posted at codebase64, since it is nice and neat - and very well documented! Thanks for the link, Frantic!

I think I have got the basics of FLI right by now, though one thing still puzzles me; quoting the text accompagning Graham's code at codebase64:

"You also can use this for hires FLI, however the first 3 char columns will only show a light grey area. To remove this area, a sprite would be required which takes 5 extra clock cycles per rasterline. This is possible if you unroll the main FLI display loop."

So - what is the alternative to using hires (same as bitmap, right?)? How else can you set the colours individually for each char?

Regards /Dragnet
2009-05-05 22:38
MagerValp

Registered: Dec 2001
Posts: 1078
Hires, as opposed to multicolor. Not bitmap vs char mode.
2009-05-06 06:22
HCL

Registered: Feb 2003
Posts: 728
Hmm.. just to be picky: I'd say Hires(320x200) <> Lores(160x200). MultiColor(~4 colors per char) <> SingleColor (~2 colors per char). Bitmap <> Char.

VIC only allows Hires together with SingleColor, if you want MultiColor you have to go Lores. Then there are all kinds of software tweeks to get *multiple colors* in Hires of course :). I just think that "Hires, as opposed to multicolor" only helps to make the c64-world less understandable :P.

SC-Hires/MC-Lores you set with $d016 bit4.
Bitmap/Char is set with $d011 bit5,6.
2009-05-06 06:41
JackAsser

Registered: Jun 2002
Posts: 2014
Quote: Hmm.. just to be picky: I'd say Hires(320x200) <> Lores(160x200). MultiColor(~4 colors per char) <> SingleColor (~2 colors per char). Bitmap <> Char.

VIC only allows Hires together with SingleColor, if you want MultiColor you have to go Lores. Then there are all kinds of software tweeks to get *multiple colors* in Hires of course :). I just think that "Hires, as opposed to multicolor" only helps to make the c64-world less understandable :P.

SC-Hires/MC-Lores you set with $d016 bit4.
Bitmap/Char is set with $d011 bit5,6.


I fully agree with HCL - but that's just my way of licking his ass for potential future favours I might ask him. :)
2009-05-06 08:03
Ninja

Registered: Jan 2002
Posts: 411
To be _extremly_ nutpicky (while I generally agree): calling it SingleColor and having 2 colors/char in bitmap mode has its odds, too ;) (It will do, though...)
2009-05-06 09:09
enthusi

Registered: May 2004
Posts: 677
I *think* some people use the term "HiRes" to actually describe that standard hires mode. I like to call it TRUE hires (when in fact colors are used per char-block).
Calling the beautyful hires "singlecolor" is indeed a bad idea. There are enough confusing names for modes. WRONG names wont help much and also wont do justice to the awesome HiRes art performed especially during the last months...
So maybe 'HiRes' or 'TrueHires' is an idea? ;-)
2009-05-06 10:55
Oswald

Registered: Apr 2002
Posts: 5094
"VIC only allows Hires together with SingleColor"
"I like to call it TRUE hires"

o_O

Singlecolor = lda #0 sta d011.
true hires = WTF?!


Multicolor Bitmap
Hires Bitmap
Multicolor Charmode
Hires Charmode
ECM Charmode


done.
2009-05-06 12:54
MagerValp

Registered: Dec 2001
Posts: 1078
/me agrees with bogár.
2009-05-06 15:08
HCL

Registered: Feb 2003
Posts: 728
I don't know.. is there a problem with the terms MultiColor and SingleColor!? Yes, if you're weirdo enough you may claim that SingleColor === lda#0 sta$d011. Tho i'm fairly ok with SingleColor meaning that you only have one color except for teh background. No?

Perhaps the term SingleColor is more applicable on sprites, which indeed only have one color plus transparent. I always used the same term for chars..

So.. my list is:

MultiColor Bitmap
SingleColor Bitmap
MultiColor Charmode
SingleColor Charmode
ECM Charmode

..just to be bogár me also :).
2009-05-06 15:21
Oswald

Registered: Apr 2002
Posts: 5094
in singlecolor you have more than 1 color+the background. thats only true for one char cell. if on irc we would chat about coding, and you would say "singlecolor" I would surely ask back "you mean hires?". but if I would say "hires chars" or "hires bitmap" you wouldnt need to ask back what do I mean. :)

anyway use it if you like it. :)

btw still dont get what do you mean with "VIC only allows Hires together with SingleColor" ? that shows how confusing and misleading is this term. There's Hires and Multicolor, Singlecolor is confusing. You use 2 terms on the same thing in one sentence and claim one of them is prequisite of the other...

Previous - 1 | 2 | 3 | 4 | 5 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
The Syndrom/TIA/Pret..
LKP/CFN
katon/Lepsi De
Mike
Lazycow
Alakran_64
TheRyk/MYD!
mutetus/Ald ^ Ons
megasoftargentina
Mibri/ATL^MSL^PRX
Guests online: 122
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Censor Design  (9.3)
5 Triad  (9.3)
Top Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.056 sec.