Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user tubesockor ! (Registered 2024-05-12) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Sprite Background/Foreground Priorities
2007-02-25 22:34
Executioner
Account closed

Registered: Feb 2007
Posts: 3
Sprite Background/Foreground Priorities

Does anyone know what happens on a real C64 when you have a sprite with lower priority than the background behind a sprite with higher priority than the background but lower than the first sprite? Which is visible? the pixel from the background, top sprite (behind the background, but in front of the other sprite), or the lower priority sprite in front of the background?
2007-02-25 22:47
SIDWAVE
Account closed

Registered: Apr 2002
Posts: 2238
I dont understand the question..
The highest sprite will be visible..
2007-02-25 23:18
WVL

Registered: Mar 2002
Posts: 886
vic decides priority between the sprites first, and when that is decided the vic decides between sprite and background. You can make nice 'see-through' things with this, like interference circles.

example :

sprite 0 behind background
sprite 1 before background

-> sprite 0 wins over sprite 1, but sprite 0 loses from background. So background shows, despite of sprite 1 being 'inbetween'

How you can make 'see-through' from this :

object 1 is made from sprite 1 and background. You see sprite 1, because it's infront of background.

object 2 is made from sprite 0, you see sprite 2 (duh).

Now when object 1 and 2 overlap, you suddenly see the background (which you couldnt see before). Simply making the background a different color gives you 'see-through' or color-mixings..

rullar.
2007-02-25 23:25
Executioner
Account closed

Registered: Feb 2007
Posts: 3
Quote: I dont understand the question..
The highest sprite will be visible..


sorry for my confusing question, I'll try and rephrase it:

Sprite 0 is the highest priority, will display in front of Sprite 1. ok, I get this :)

Sprite 0 is set to be lower priority than the background, but Sprite 1 is higher priority than the background.

Pixels from both sprites overlap a foreground pixel in the background. Sprite 0's pixel is a higher priority than Sprite 1, which is higher priority than the background, but Sprite 0 is lower priority than the background... What happens?
2007-02-25 23:26
Executioner
Account closed

Registered: Feb 2007
Posts: 3
Thanks WVL, that's exactly what I wanted to know :)
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
DjS/Silicon Ltd
Thunder.Bird/HF/MYD!..
csabanw
v3to/OXY^TRSI^PriorArt
Exile/Anubis
Knut Clausen/SHAPE/F..
fugu/Excess
hedning/G★P
tlr
tubesockor
algorithm
iAN CooG/HVSC
Mason/Unicess
Malmix/Fatzone
t0m3000/ibex-crew
LightSide
janzl
d4ng3r
d'Avid
celticdesign/G★P/M..
d0c
TheRyk/MYD!
Rebok/BOOM!/Tropyx
Falborg
nucleus/TempesT
Gildan Jondal/Suicyc..
Airwolf/F4CG
MCM/ONSLAUGHT
psych
Kimono
Fungus/Nostalgia
Guests online: 165
Top Demos
1 13:37  (9.8)
2 Next Level  (9.8)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Comaland 100%  (9.6)
7 No Bounds  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Multiverse 100%  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Layers  (9.6)
5 Copper Booze  (9.5)
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 Nostalgia  (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.029 sec.