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 > Sprite + Sprite + Background priority color switching trick.
2015-06-20 00:25
Six

Registered: Apr 2002
Posts: 293
Sprite + Sprite + Background priority color switching trick.

So, I'm not sure what this technique is called, and I'm sure it's been done to death. I'm hoping to determine if there's a more efficient way to do it.
(Everything is in hires, not multicolor mode)

I put character graphics on screen.
color ram is pink
sprite 0 color is white
sprite 1 color is red
I put sprite 1 with matching bitmap data in front of the character graphics.
I set sprite-background priority to 01
I move sprite 0 partially in front of sprite 1.
In the areas in which sprite 0 has pixels in front of sprite 1, the character graphics show through, giving the appearance that red mixes with white to make pink.

SO...
What is this technique called?
Is there a better way to achieve it so that I'm not limited to a narrow width of graphics on screen?
 
... 5 posts hidden. Click here to view all posts....
 
2015-06-21 16:37
BjørnRøstøen

Registered: Oct 2010
Posts: 4
As far as I know, I was the first to ever produce this trick on Mentallic from Panoramic Designs. I called it the PRIORITY PARADOX back then.
2015-06-21 20:40
Digger

Registered: Mar 2005
Posts: 437
I've been always calling it "hardware masking" ;-)
2015-06-22 00:29
Graham
Account closed

Registered: Dec 2002
Posts: 990
It's ofcourse called Bullshitting The Vic-2 Sprite Hardware And Getting Away With It (BTV2SHAGAWI). Silly CSDb users, not knowing the basics of C64 abbreviations.
2015-06-22 22:53
Tao

Registered: Aug 2002
Posts: 115
Quote: As far as I know, I was the first to ever produce this trick on Mentallic from Panoramic Designs. I called it the PRIORITY PARADOX back then.

Dunno if it was the first one, but it's certainly my favourite.
2015-06-23 07:01
Krill

Registered: Apr 2002
Posts: 2980
I like "priority paradox" as well. Because no matter what the actual rasterizer implementation did, there'd always be a contradiction. This is also why it cannot be called a bug.

"Cookie cutter" is also not bad, but it has a negative connotation in other contexts, and doesn't sound nearly as nicely philosophic.
2015-06-23 10:41
ChristopherJam

Registered: Aug 2004
Posts: 1409
I quite like cookiecutter, or priority inversion.

Possibly 'felting' (as you're pulling up colours from the foreground through the lower priority sprites, like the craft technique with layers of fabric), but that might be a little obtuse.
2015-06-24 23:56
Martin Piper

Registered: Nov 2007
Posts: 722
How well is this emulated compared to real hardware?
2015-06-25 00:44
chatGPZ

Registered: Dec 2001
Posts: 11386
its perfectly emulated (of course, its trivial). see the test program i linked above. if it would'nt, demos like "tsunami" would look completely broken all over the place :)
2015-06-25 11:41
Cruzer

Registered: Dec 2001
Posts: 1048
Priority paradox - will call it that from now on.
2015-06-25 13:35
Oswald

Registered: Apr 2002
Posts: 5094
say that after a couple of beers :)
Previous - 1 | 2 - 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
St0rmfr0nt/Quantum
Krill/Plush
algorithm
Unlock/Padua/Albion
Holy Moses/Role
Steveboy
Freeze/Blazon
E$G/HF ⭐ 7
Wayne/Art Ravers
Guests online: 107
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 Layers  (9.6)
2 No Listen  (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 Triad  (9.3)
5 Censor Design  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

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