Ultimate Amiga

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Sprites behind back playfield in dual playfield mode  (Read 5631 times)

0 Members and 1 Guest are viewing this topic.

KevG

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 87
Sprites behind back playfield in dual playfield mode
« on: October 11, 2013, 09:55:04 AM »

Hi folks

Its a long shot I know but does anyone have any code that allows you to display hardware sprites in different planes in dual playfield mode?

I know that it is possible to do this with the AMCAF extension but that is for AMOS Pro. I need a hack or something similar for AMOS 1.3

Any help would be appreciated.
Logged

Lonewolf10

  • AMOS Extensions Developer
  • AMOS Dev
  • A2000
  • *****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 618
    • http://www.aliensrcooluk.com
Re: Sprites behind back playfield in dual playfield mode
« Reply #1 on: November 14, 2013, 09:40:50 PM »

It's difficult because AMOS is constantly changing the copperlist. There is a register used to set sprite priorities (BPLCON2). See here for info:

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

BPLCON2 is at $DFF104. You can only write to this register. Attempting to read from it will probably results in abnormal behaviour or AMOS crashing. Writing to (Poking) it in AMOS may also cause the Amiga to crash.

You can try that, but I have a feeling that AMOS probably sets BPLCON2 at the start of the copperlist - which is executed every VBL.


Alternatively, you can create your own copperlist in AMOS, but then you'd have to do all the hard work with the hardware sprites and AMOS drawing/screen-based commands would no longer work reliably, if it all.
Logged

KevG

  • A600
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 87
Re: Sprites behind back playfield in dual playfield mode
« Reply #2 on: November 23, 2013, 10:03:01 PM »

Thanks Lonewolf10.

I'll look into it further and if I get anywhere I'll post my findings here.

Cheers.
Logged
Pages: [1]   Go Up
 

TinyPortal 2.2.2 © 2005-2022