Welcome, Guest. Please login or register.
Amiga Kit Amiga Store Iridium Banner AMIStore App Store A1200/A600 4xIDE Interface

AuthorTopic: Sprites and vSprites priority over background?  (Read 1084 times)

0 Members and 1 Guest are viewing this topic.

Offline bbond007

Sprites and vSprites priority over background?
« on: March 24, 2012, 02:33:10 AM »
I just started messing with vSprites and i can't seem to find any way to set the priority over the background so that the sprites only appear behind bitmap data. I know there was a way to do it on the C= 64 but maybe this is a hardware limitation on the Amiga. I can't figure out how to do it on regular sprites either. Maybe i'm just not searching using the right terminology...

I was going to make a starfield(how original, i know) but its going to be awfully strange to have the stars appear over objects...

thanks for the help.

nate
 

Offline Lando

Re: Sprites and vSprites priority over background?
« Reply #1 on: March 24, 2012, 02:39:02 AM »
I do not know what are vSprites but you can set priority of the Amiga's hardware sprites using bits 0-5 of BPLCON2 ($DFF104), as shown in this document

http://amigadev.elowar.com/read/ADCD_2.1/Hardware_Manual_guide/node0159.html
 

Offline bbond007

Re: Sprites and vSprites priority over background?
« Reply #2 on: March 24, 2012, 03:26:42 AM »
Quote from: Lando;685019
I do not know what are vSprites but you can set priority of the Amiga's hardware sprites using bits 0-5 of BPLCON2 ($DFF104), as shown in this document

http://amigadev.elowar.com/read/ADCD_2.1/Hardware_Manual_guide/node0159.html


Yes, i think thats what i'm looking for. I'll see is there is a OS friendly way to set that but it gets me on the right track.

vSprites are just the normal hardware sprites just the OS will masquerade them around using the copper for you so you can have more than 8.

thanks!
 

Offline bbond007

Re: Sprites and vSprites priority over background?
« Reply #3 on: March 25, 2012, 05:35:02 AM »
Quote from: Lando;685019
I do not know what are vSprites but you can set priority of the Amiga's hardware sprites using bits 0-5 of BPLCON2 ($DFF104), as shown in this document

http://amigadev.elowar.com/read/ADCD_2.1/Hardware_Manual_guide/node0159.html


yes that did the trick....

I ended up needing to use a copper list to set it.
 

Offline SamuraiCrow

Re: Sprites and vSprites priority over background?
« Reply #4 on: March 27, 2012, 08:10:43 AM »
Quote from: bbond007;685023
vSprites are just the normal hardware sprites just the OS will masquerade them around using the copper for you so you can have more than 8.


Actually, the copper is not used for making more sprites.  The sprite DMA itself does the job.
 

Offline bbond007

Re: Sprites and vSprites priority over background?
« Reply #5 on: March 27, 2012, 03:29:09 PM »
Quote from: SamuraiCrow;685590
Actually, the copper is not used for making more sprites.  The sprite DMA itself does the job.


Yes, I discovered i did not need to use the copper, after i actually got it to work :)