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 > Stacking multicolour layers in assembly
2024-02-15 22:20
Krill

Registered: Apr 2002
Posts: 2854
Stacking multicolour layers in assembly

Consider 3 single-coloured multicolour layers, such that, e.g.,

00 or 01 - layer 1
00 or 10 - layer 2
00 or 11 - layer 3 (with 00 being background or transparent).

Now, how to merge them, rendering one over/on top of the other (no "glenz"-like colour blending, particular layer ordering isn't important as long as any kind of priority regime is preserved, and background/transparent may not be 00) using only binary arithmetic or other primitives, but no lookup tables?

With the above example, it's some kind of max operation on bitpairs, with something like
  |00 01 10 11
--------------
00|00 01 10 11
01|01 01 10 11
10|10 10 10 11
11|11 11 11 11
but this doesn't seem to map very well to the 6502's operations. =)
 
... 81 posts hidden. Click here to view all posts....
 
2024-02-23 09:09
Oswald

Registered: Apr 2002
Posts: 5026
Quote: Technically they ARE chars, but only line 7 visible. :P

technically they are bytes in a table, which you read to update the "chars".
2024-02-23 15:38
chatGPZ

Registered: Dec 2001
Posts: 11145
Jackasser might be referring to FPP though :)
2024-03-08 22:19
HCL

Registered: Feb 2003
Posts: 717
Again.. Dawnfall surely has 3 independent layers.. I sneaked into the code but haven't quite figured out how it is done.. except that he is *not* drawing lines and eor-filling it :)..
2024-03-09 09:17
Oswald

Registered: Apr 2002
Posts: 5026
I find it hard to believe you dont know how it works, esp since Jackasser (your teammate) has released various effects showcasing the same tech and in my thinking this is common knowledge amongst the top coders :)
2024-03-09 10:29
Krill

Registered: Apr 2002
Posts: 2854
Quoting HCL
Again.. Dawnfall surely has 3 independent layers..
If it has, why is there not a single effect that makes it very clear? :)
2024-03-09 11:59
chatGPZ

Registered: Dec 2001
Posts: 11145
One variant of the rotzoomer has the bars rotating "over" each other (requiring layers) and not just "temporal blur".
2024-03-09 12:56
Krill

Registered: Apr 2002
Posts: 2854
Quoting chatGPZ
One variant of the rotzoomer has the bars rotating "over" each other (requiring layers) and not just "temporal blur".
Have you checked the code? Layers, yes, but only two. Two of the three bars are rather strongly tied together, thus not independent.
2024-03-09 12:58
chatGPZ

Registered: Dec 2001
Posts: 11145
Na, can't be bothered :)

I expect you to implement it for X though :=)
2024-03-09 16:01
Krill

Registered: Apr 2002
Posts: 2854
Quoting chatGPZ
I expect you to implement it for X though :=)
It's on my TODO list, but not placed very prominently. :)
2024-03-09 23:48
HCL

Registered: Feb 2003
Posts: 717
Oh @Oswald, you're doing that trick on me again.. Ok, i will check the code again, and understand it, and then i will tell you exactly how it is done :D
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 - 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
t0m3000/HF^BOOM!^IBX
QuasaR/CENTRiC
celticdesign/G★P/M..
Laurikka
Airwolf/F4CG
Gadget MCS/M.C.S.
Jazzcat/Onslaught
Guests online: 107
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 Layers  (9.7)
2 It's More Fun to Com..  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Censor Design  (9.3)
4 Crest  (9.3)
5 Performers  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

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