| |
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.... |
| |
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". |
| |
chatGPZ
Registered: Dec 2001 Posts: 11145 |
Jackasser might be referring to FPP though :) |
| |
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 :).. |
| |
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 :) |
| |
Krill
Registered: Apr 2002 Posts: 2854 |
Quoting HCLAgain.. Dawnfall surely has 3 independent layers.. If it has, why is there not a single effect that makes it very clear? :) |
| |
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". |
| |
Krill
Registered: Apr 2002 Posts: 2854 |
Quoting chatGPZOne 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. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11145 |
Na, can't be bothered :)
I expect you to implement it for X though :=) |
| |
Krill
Registered: Apr 2002 Posts: 2854 |
Quoting chatGPZI expect you to implement it for X though :=) It's on my TODO list, but not placed very prominently. :) |
| |
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 |