amiga.org
     
iconAll times are GMT -6. The time now is 02:43 AM. | Welcome to Forum, please register to access all of our features.

» Amiga.org » Operating System Specific Discussions » Amiga OS » Amiga OS -- Development » Sprites and vSprites priority over background?

Amiga OS -- Development This particular forum deals with issues regarding development for all versions of AmigaOS.

Reply
 
Thread Tools Display Modes
Old 03-23-2012, 08:33 PM   #1
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Sprites and vSprites priority over background?

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
bbond007 is offline   Reply With Quote
Old 03-23-2012, 08:39 PM   #2
Lando
Defender of the Faith
Points: 10,517, Level: 68 Points: 10,517, Level: 68 Points: 10,517, Level: 68
Activity: 5% Activity: 5% Activity: 5%
 
Join Date: Jun 2002
Posts: 1,380
Default Re: Sprites and vSprites priority over background?

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.../node0159.html
Lando is offline   Reply With Quote
Old 03-23-2012, 09:26 PM   #3
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Re: Sprites and vSprites priority over background?

Quote:
Originally Posted by Lando View Post
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.../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!
bbond007 is offline   Reply With Quote
Old 03-24-2012, 10:35 PM   #4
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Re: Sprites and vSprites priority over background?

Quote:
Originally Posted by Lando View Post
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.../node0159.html
yes that did the trick....

I ended up needing to use a copper list to set it.
bbond007 is offline   Reply With Quote
Old 03-27-2012, 01:10 AM   #5
SamuraiCrow
Premium Member
Points: 13,253, Level: 75 Points: 13,253, Level: 75 Points: 13,253, Level: 75
Activity: 5% Activity: 5% Activity: 5%
 
SamuraiCrow's Avatar
 
Join Date: Feb 2002
Location: South Dakota, USA
Posts: 2,017
Blog Entries: 2
Send a message via Yahoo to SamuraiCrow Send a message via Skype™ to SamuraiCrow
Default Re: Sprites and vSprites priority over background?

Quote:
Originally Posted by bbond007 View Post
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.
SamuraiCrow is offline   Reply With Quote
Old 03-27-2012, 08:29 AM   #6
bbond007
Defender of the Faith
Points: 8,797, Level: 63 Points: 8,797, Level: 63 Points: 8,797, Level: 63
Activity: 26% Activity: 26% Activity: 26%
 
bbond007's Avatar
 
Join Date: Mar 2009
Posts: 1,266
Default Re: Sprites and vSprites priority over background?

Quote:
Originally Posted by SamuraiCrow View Post
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
bbond007 is offline   Reply With Quote
Reply

Bookmarks

Tags
background , priority , sprites , vsprites

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump