![]() |
![]() |
![]() |
#1 |
Competition Moderator
Join Date: Feb 2008
Location: Germany
Posts: 4,740
|
![]()
Hi Toni,
can you please tell me if the following idea would be possible to implement and, if yes, how much effort do you think it would take to add this to WinUAE (and if you'd be willing to do it)? Add the option to replace every pixel (in every drawn frame) of one specific color with the color of the respective line of a given "mask"-picture that we can select - a picture like one of these ("copper"-like backgrounds taken from Turrican II): ![]() ![]() So that we'd be able to replace the one-color backgrounds of e.g. Giana Sisters or Turrican I: ![]() ![]() ...with the multiple colors from the selected "mask"-pic. So that the result would look about like this: ![]() (drawn by Bubba'n'Stix 2 in this Lemon thread) This feature could enrich games with one color backgrounds. There could be a limit set for the lines to be affected so that the hud at the bottom wouldn't look weird in case it has some pixels of the same color as the playfield's background. The implementation could be an enhancement of the existing mask-/overlay-feature in the filter settings where only the pixels of one specific color would be affected by the mask. Last edited by john4p; 21 September 2022 at 00:37. |
![]() |
![]() |
#2 |
Registered User
Join Date: Nov 2004
Location: Germany
Posts: 604
|
In the Hardware/Chipset menu, there is Genlock thing.
Turn it on, choose "image file (png)" then click on the ... and select a background picture. It works in Workbench, it could work in games as well, if the color is right. |
![]() |
![]() |
#3 |
Moderator
Join Date: Sep 2004
Location: France
Age: 49
Posts: 4,049
|
I'm digressing because it's not a WinUAE option
But I think it should be quite easy to add a rainbow background when modifying the copper list of a game like Great Giana because the scrolling is horizontal. besides, maybe I'll try with an update of the slave whdload... it's a little more complicated with a game like Turrican because the scolling is multi-directional. But not impossible if you have enough free CHIP memory and you locate in memory the data relating to the Y position of the scrolling. Last edited by CFou!; 22 September 2022 at 11:00. |
![]() |
![]() |
#4 |
Registered User
![]() Join Date: Apr 2018
Location: UK
Posts: 456
|
|
![]() |
![]() |
#5 | ||
Competition Moderator
Join Date: Feb 2008
Location: Germany
Posts: 4,740
|
Quote:
Quote:
|
||
![]() |
![]() |
#6 |
Registered User
![]() Join Date: Apr 2018
Location: UK
Posts: 456
|
You could make it anything you want within reason. Try some wild stuff let us see how it looks!
|
![]() |
![]() |
#7 |
Boo
![]() Join Date: Jun 2006
Location: 5150
Posts: 5,308
|
Wish I still had it, if anyone has please upload but I once took out the copper brackground of Turrican 2 because of the sickly colours. But agree Giana would look good.
And iirc member Gary? Once used a Genlock with real hardware maybe Star wars to put in some kind of background. I guess going a bit far! Two Amigas and a Genlock you could get some perfect parallax. |
![]() |
![]() |
#8 |
Moderator
Join Date: Sep 2004
Location: France
Age: 49
Posts: 4,049
|
I'm thinking about giana
![]() I image well 2 optional copper backgrounds (one for the sky and for the cellars) There may be enough CHIP memory available before address $1000 (if not used in game=>to check) and the game is not using the second copperlist. Which allows a fairly easy patch of the first copperlist........ I image 2 external files with just the list of colors for the levels with blue background and black background for easy modification & test ![]() the custom copperlist should have a maximum size of 200*8 bytes for one WAIT & MOVE command per line... I'll think about it this weekend |
![]() |
![]() |
#9 | |
Competition Moderator
Join Date: Feb 2008
Location: Germany
Posts: 4,740
|
Okay, tried the Genlock-way now with this png for Turrican:
![]() Sadly it's the black that gets replaced and not the blue: ![]() Quote:
|
|
![]() |
![]() |
#10 |
Competition Moderator
Join Date: Feb 2008
Location: Germany
Posts: 4,740
|
Genlock doesn't work for Giana Sisters either.
For CarVup it works: ![]() |
![]() |
![]() |
#11 |
Registered User
![]() Join Date: Apr 2018
Location: UK
Posts: 456
|
Isn't there a way to select the colour?
|
![]() |
![]() |
#12 |
Competition Moderator
Join Date: Feb 2008
Location: Germany
Posts: 4,740
|
No. I think it doesn't depend on a color, it's just the "background layer" that gets replaced I guess (don't know if that's the correct term).
Edit: I was wrong - it does depend on a color. So Turrican's and Giana Sisters' background is not the system background layer (but CarVup's is). Last edited by john4p; 23 September 2022 at 08:55. |
![]() |
![]() |
#13 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 48
Posts: 25,803
|
Quite weird request but easily doable because ECS Denise (and AGA) supports configurable genlock color (each color palette entry has genlock transparency bit) and it is already emulated. Simple to make it config file only option.
Not sure what kind of config file entry should be because it should allow more than 1 palette entry index. But don't expect this to work perfectly, for example scoreboard might use same color palette entry (but different color value) that shouldn't be transparent.. |
![]() |
![]() |
#14 | |
Competition Moderator
Join Date: Feb 2008
Location: Germany
Posts: 4,740
|
Quote:
I know it's a quite unusual request but I'd be very happy if you'd add this option. Should the scoreboard be affected I can just change the PNG to account for this (paint the usual color in that area). |
|
![]() |
![]() |
#15 |
Registered User
![]() Join Date: Apr 2018
Location: UK
Posts: 456
|
Looking forward to seeing some excellent uses of pixel art backgrounds.
|
![]() |
![]() |
#16 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 48
Posts: 25,803
|
https://www.winuae.net/files/b/winuae.7z
Config file entry "genlock_effects=<numbers separated by comma>". number = color palette index that has genlock transparency bit set. p<number> = plane <number> is genlock mask. Both are ECS Denise new genlock features. (Originally genlock could only replace color 0). This feature "simply" reuses them. For example "genlock_effects=3,15" (colors 3 and 15 will get replaced with genlock image) ECS Denise is not required but genlock must be enabled (with some side-effects due to genlock, for example most programmed custom chipset display modes are not available in WB if genlock is enabled). Emulated genlock requirement probably will be gone in future update. |
![]() |
![]() |
#17 |
Competition Moderator
Join Date: Feb 2008
Location: Germany
Posts: 4,740
|
Thanks a bunch Toni!
![]() |
![]() |
![]() |
#18 |
Competition Moderator
Join Date: Feb 2008
Location: Germany
Posts: 4,740
|
![]() Works pretty well (my png isn't optimal yet), but there's a problem with the main character: ![]() If someone else wants to try this, genlock_effects=5 is the right palette index for Turrican. (I'm away tomorrow, will try again on Sunday.) |
![]() |
![]() |
#19 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 48
Posts: 25,803
|
Fixed some sprite related genlock color selection bugs. Possibly fixes above problem.
|
![]() |
![]() |
#20 |
Registered User
![]() Join Date: Apr 2018
Location: UK
Posts: 456
|
I feel adding these backgrounds is legit as the system supported it.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
replace a color with a texture | turrican3 | support.WinUAE | 9 | 18 October 2019 09:10 |
Color Saturation and Color Tint/Hue | Retro-Nerd | support.WinUAE | 22 | 02 August 2018 11:38 |
Printing in color with WinUAE on color laser | source | support.Apps | 7 | 14 April 2013 01:32 |
ISO true color to 256 color algorithm | Lord Riton | Coders. General | 19 | 15 April 2011 18:49 |
New 256 color backgrounds in the Zone ! | DoomMaster | support.Apps | 0 | 09 October 2004 11:35 |
|
|