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 > Converting animation into lossy charset - how ?
2015-07-12 12:14
Oswald

Registered: Apr 2002
Posts: 5017
Converting animation into lossy charset - how ?

I've always wondered how an algorithm decides how far is a char from another. any pointers ?
 
... 38 posts hidden. Click here to view all posts....
 
2015-07-12 20:27
Oswald

Registered: Apr 2002
Posts: 5017
for comparison with previous

2015-07-12 20:52
JackAsser

Registered: Jun 2002
Posts: 1989
Now make a new Goa Brudbilder 2! :D
2015-07-12 20:59
Oswald

Registered: Apr 2002
Posts: 5017
lol no, thats eye cancer :) actually the nice rotation anim inspired me in the new hoaxers reu demo.

couldnt google anything usable for my simple mind in pattern matching, anyone ? :)
2015-07-12 21:13
Marq

Registered: Sep 2011
Posts: 47
I did some similar stuff for the Sharp MZ-700, which only has a fixed charset. One little addition that helped especially with lines was to test against chars that had been shifted up/down/left/right one pixel.

2015-07-13 05:48
LHS

Registered: Dec 2002
Posts: 66
A really primitive unscientific brute force method used in my converter to compare two chars:

chb1 = first Byte from char1
chb2 = first Byte from char2
res_and = chb1 AND chb2
res_or = chb1 OR chb2

sum1 = sum of bits in res_and
sum2 = sum of bits in res_or

Compare sum1 and sum2. The higher difference means dissimilarity. If = 0, the Bytes are equal, 1 is very similar, 8 is totally dissimilar...

Compare all Bytes in two chars and sum all results (in ABS values).
2015-07-13 07:12
Oswald

Registered: Apr 2002
Posts: 5017
LHS, that sounds like what I do, but more complicated: compare bits on all 64 locations, and count differences.

your method: fex we have a set bit (1) and a cleared bit (0) on the same location

1 and 0 = 0

1 or 0 = 1

different bits: 1

1 and 1 = 1

1 or 1 = 1

different bits: 0
2015-07-13 07:42
ChristopherJam

Registered: Aug 2004
Posts: 1378
Optimising a little,

sum2 - sum1 will always be equal to the sum of bits in (chb1 XOR chb2)
2015-07-13 08:16
LHS

Registered: Dec 2002
Posts: 66
That's right, XOR gives directly sum of different bites...
2015-07-13 08:16
JackAsser

Registered: Jun 2002
Posts: 1989
@Oswald: You might wanna check out the endless guru-zoomer in Sharp
2015-07-13 08:56
Bitbreaker

Registered: Oct 2002
Posts: 500
I used ELBG for creating an optimal charset, downsampling to c64 colours + dithering should happen after optimal charset was found. For PETSCII however the simple approach was enough so far, but one might restrict the chars being used to have a more graphical appearance without too many letters being used.
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
TheRyk/MYD!
CA$H/TRiAD
Grue/Extend
kbs/Pht/Lxt
𝘁𝗡𝗚/FairLight
Isildur/Samar
eryngi
HOL2001/Quantum
DanPhillips
rambo/Therapy/ Resou..
Guests online: 139
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Wafer Demo  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Starlight  (9.6)

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