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 > CSDb Discussions > Using NUFLI / FLI Etc for animation
2017-02-05 17:39
polyp2000
Account closed

Registered: Dec 2016
Posts: 5
Using NUFLI / FLI Etc for animation

Anyone know what kind of scope there is for "modifying"
the contents of these pictures on the fly ?

How about something really simple like a changing a section to a solid block of color
2017-02-05 18:35
JackAsser

Registered: Jun 2002
Posts: 2014
For FLI it's trivial. Just sta 8 color values to get a solid char
2017-02-05 19:58
Oswald

Registered: Apr 2002
Posts: 5086
Quote: For FLI it's trivial. Just sta 8 color values to get a solid char

in case of nufli sprites will come in the way + you forgot d800
2017-02-06 03:09
Cruzer

Registered: Dec 2001
Posts: 1048
Animation as in prerendered stuff or realtime effects?
2017-02-06 08:14
Bitbreaker

Registered: Oct 2002
Posts: 504
Also FLI content in NUFLI is changed in even and sprite stuff in odd lines. Have fun determining where the block you want to manipulate shall start/end, as you always interfere on the next line either with FLI or sprite.
2017-02-06 08:25
Mr. SID

Registered: Jan 2003
Posts: 424
I guess you could try making two NUFLI images (one normal, the other one modified), and compare the data to see what differences are.
And then generate a small piece of code that will apply those changes.
2017-02-06 08:46
Oswald

Registered: Apr 2002
Posts: 5086
Quote: in case of nufli sprites will come in the way + you forgot d800

okay no d800 in nufli O:-)
2017-02-06 13:44
ChristopherJam

Registered: Aug 2004
Posts: 1408
Yeah, real time generated content's going to be hard; allocating colour attributes is non trivial, and for anything beyond replacing one FLI 8x1 at a time you're going to need to either track recent requests or mark pixels as "I'm going to replace this one soon so IDK if you trash it for a bit"
2017-02-06 14:41
algorithm

Registered: May 2002
Posts: 705
Mr SIDS implementation would work well for NU-FLI. The method of rendering separate images and then marking the changes and then updating these per frame. Although ideally would be beneficial to use non dispersed dithering if possible. Would have around 7000 cycles or so left per frame to make the relevant changes
2017-02-07 11:11
polyp2000
Account closed

Registered: Dec 2016
Posts: 5
If such modes are implemented on only a portion of the screen - does this free up sprites that can be animated?
2017-02-08 05:43
ChristopherJam

Registered: Aug 2004
Posts: 1408
Quote: If such modes are implemented on only a portion of the screen - does this free up sprites that can be animated?

Yes.
2017-04-01 21:14
Repose

Registered: Oct 2010
Posts: 225
This remotely helps, but I solved the algorithm for optimal colouring of FLI, it can be done very quickly. Has anyone else found this solution?

Now don't ask me exactly how it works right now, but I had to count colours in special way. It had something to do with unique colours per 4x8 block and subtract that from the most frequent color and then that's your colour nybble.

I never could find a good solution for IFLI though, however my algorithm was a decent start point, but not always optimal.

Btw there is always the problem of the errors (the pixels that can't be coloured as requested). I think the best way to handle it is to find the closest replacement in perceptual space (look up L*A*B). Or else you could build the error into the dither algorithm.
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
Vent
sachy/BOOM!
GuyGavin/HF
Aomeba/Artline Desig..
theK/ATL
Steffan/BOOM!
Airwolf/F4CG
katon/Lepsi De
t0m3000/hf^boom!^ibx
leonofsgr/Singular C..
Peacemaker/CENSOR/Hi..
Sychamis
la_mettrie
jmagic
Epyx/TSA
tlr
Guests online: 110
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 No Bounds  (9.6)
10 Christmas Megademo  (9.5)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Mutetus  (9.7)
4 Jammer  (9.6)
5 Stinsen  (9.6)

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