03 January 2018, 23:50 | #1 |
Registered User
Join Date: Jan 2014
Location: Cambs / UK
Posts: 356
|
Blitz - Strange graphic problems
I have a really strange issue with a game I am currently developing.
When I compile the code on my real A1200 (68030) eveything works fine. I can even put my code (compiled) on disk boot from cold and everything works as it should. Now the weird bit?! If I load the same ADF in fs-uae even with a configuration as close to mine as I can get the colours come out wrong on bitmap 0. Bitmap 1 and Sprites are fine. This happens on any AGA configuration. If I load the same ADF on any EGA machine any configuration the code runs but nothing is displayed on screen at all. Some notes about the display. Dual playfield displaying two 16 colour bitmaps. Sprites are as far as I know in 16 colour mode. 4 sprites are displayed using the palette colours from bitmap 1. Any ideas? I can post my code in "The Zone" if needed. |
04 January 2018, 01:55 | #2 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,348
|
Dual playfield has a maximum of 8 colours per playfield on ECS/OCS.
|
04 January 2018, 02:56 | #3 |
Warhasneverbeensomuchfun
Join Date: Jun 2001
Location: Rio de Janeiro / Brazil
Age: 41
Posts: 3,450
|
But 16 colors per playfield on AGA, which is what he's using from what I understand.
I remember there are some registers to change what colors on the 256 color palette are used for sprites on AGA (which made my own game Quasarius show wrong colors on AGA machines on the 1st version, because change those registers had no effect on ECS), but I don't think there's something similar for dual playfield. |
04 January 2018, 08:50 | #4 |
Registered User
Join Date: Jan 2014
Location: Cambs / UK
Posts: 356
|
|
04 January 2018, 09:11 | #5 |
Registered User
Join Date: Sep 2007
Location: Stockholm
Posts: 4,348
|
Sprites are independent from the playfields and may use their own separate 16 colour palette.
What do your CopLists look like? |
04 January 2018, 10:35 | #6 |
Registered User
Join Date: Jan 2009
Location: Barcelona / Spain
Posts: 433
|
If it works in the real amiga, it must be emulator's fault. If you can, try it with WinUAE.
This game uses AGA dualplayfield with Blitz, you can try if results are the same: http://www.lemonamiga.com/games/details.php?id=3846 |
04 January 2018, 22:23 | #7 |
Registered User
Join Date: Jan 2014
Location: Cambs / UK
Posts: 356
|
Well, I got my game down to a single playfield with some work, and at least I know why my dual playfield wasn't working on an A500
|
04 January 2018, 22:46 | #8 | |
Warhasneverbeensomuchfun
Join Date: Jun 2001
Location: Rio de Janeiro / Brazil
Age: 41
Posts: 3,450
|
Quote:
Colors 16,17,18,19 for sprites 0 and 1 Colors 20,21,22,23 for sprites 2 and 3 Colors 24,25,26,27 for sprites 4 and 5 Colors 28,29,30,31 for sprites 6 and 7 colors 16,20,24 and 28 are transparent and won't show up when displayed on screen. You can also use all colors from 16 to 31 in a single sprite (16 as transparency), but then the sprite will use 2 sprite channels. Collision detection is also shared between sprites that use the same color registers. Very weird. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Strange WinUAE Blitz behaviour | carrion | Coders. Blitz Basic | 2 | 02 November 2017 02:53 |
Strange mod in graphic chip Amiga1200 - and no image | Assembler | support.Hardware | 5 | 21 June 2015 12:01 |
Amiga 1200 Graphic Problems -=Please Help=- | retrocomputer22 | Amiga scene | 11 | 14 July 2014 22:04 |
ADF-Blitz problems | keitha1200 | support.Apps | 3 | 18 May 2012 18:28 |
Strange graphic effect with CD32 demodisc 2.0 | a4k-oerx | support.WinUAE | 2 | 24 November 2008 19:00 |
|
|