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 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: 902
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
MightyAxle
HCL/Booze Design
JEZ
Pantaloon/Fairlight
Freeze/Blazon
.jetan/AI-supported ..
psych
Sulevi/Virtual Dreams
sln.pixelrat
Guests online: 129
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 No Listen  (9.6)
2 Layers  (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 Censor Design  (9.3)
5 Triad  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

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