English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 05 April 2022, 22:29   #1
KONEY
OctaMED Music Composer
 
KONEY's Avatar
 
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
Preserve exact colors sequence in screenshots

Hey all,


I've been checking both WinUAE config and forum posts but seems like this never came out before.


Is there a way to take a screenshot which preserve both colors values and their position on registers? In resulting PNG colors are quite the same as long as there are no duplicates, otherwise they somehow group up and when the file is loaded in PersonaPaint they're are messed up and don't match the original palette. Also pixels of the same color are mapped the same.


Thanks for any help!
KONEY is offline  
Old 06 April 2022, 09:06   #2
fxgogo
Also known as GarethQ
 
fxgogo's Avatar
 
Join Date: May 2019
Location: Twickenham / U.K.
Posts: 715
I may be wrong here, but I think the screenshot is taking a 24bit colour snap of the output so the original indexed colour palette of your image is not there.
fxgogo is offline  
Old 06 April 2022, 14:32   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
Original palette information is lost (and there is no point in tracking it) quite soon in emulation pipeline because palette color can change at any point and HAM and other special cases exist.
Toni Wilen is offline  
Old 06 April 2022, 16:55   #4
musashi5150
move.w #$4489,$dff07e
 
musashi5150's Avatar
 
Join Date: Sep 2005
Location: Norfolk, UK
Age: 42
Posts: 2,351
Quote:
Originally Posted by KONEY View Post
Is there a way to take a screenshot which preserve both colors values and their position on registers?
I guess you could use a freezer (like ActionReplay) on the emulated Amiga and save an IFF out from that. Wouldn't help with copper backgrounds or screen splits etc, but it should work at least sometimes
musashi5150 is offline  
Old 06 April 2022, 17:02   #5
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,337
For screens that do not alter the palette while the image is being displayed

Take a screenshot in WinUAE
Use a paint tool to convert to a format which uses a 16 or 32-entry CLUT (no colour conversion should take place because the screen grab will only be 16 or 32 colours)
Sort the palette

Does that not give you what you're after?

Quote:
Originally Posted by musashi5150 View Post
I guess you could use a freezer (like ActionReplay) on the emulated Amiga and save an IFF out from that. Wouldn't help with copper backgrounds or screen splits etc, but it should work at least sometimes
Even better idea.
alexh is offline  
Old 06 April 2022, 20:53   #6
Rock'n Roll
German Translator
 
Rock'n Roll's Avatar
 
Join Date: Aug 2018
Location: Drübeck / Germany
Age: 49
Posts: 183
you can use maptapper to extract graphics and save it as *.png
https://codetapper.com/amiga/maptapp...fx/gfx-palette
Rock'n Roll is offline  
Old 06 April 2022, 21:22   #7
Ami
Registered User
 
Ami's Avatar
 
Join Date: Sep 2014
Location: Poland
Posts: 175
Question

Quote:
Originally Posted by alexh View Post
Sort the palette
By which program?
Ami is offline  
Old 06 April 2022, 23:19   #8
KONEY
OctaMED Music Composer
 
KONEY's Avatar
 
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
Quote:
Originally Posted by musashi5150 View Post
I guess you could use a freezer (like ActionReplay)

This could work!!
KONEY is offline  
Old 07 April 2022, 00:44   #9
fxgogo
Also known as GarethQ
 
fxgogo's Avatar
 
Join Date: May 2019
Location: Twickenham / U.K.
Posts: 715
Can you describe what you are attempting to do? Maybe there is a solution once we know what you want to capture.
fxgogo is offline  
Old 07 April 2022, 04:40   #10
KONEY
OctaMED Music Composer
 
KONEY's Avatar
 
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
Sure, I'm coding an intro with a lot of color updates sometimes by changing values on registers and sometimes by changing order or position of bitmap pointers. There are dozens of adjustments to do on palette in specific parts and figure out what to change it's quite a challenge. Best way would be to take a screenshot on UAE, open it up in Personal Paint on real hardware with CRT, fix colors, export palette via ARexx and put values back into code. But colors and positions need to match.
KONEY is offline  
Old 07 April 2022, 08:12   #11
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
This would be possible with some limitations. Before saving screenshot, check number of unique colors, if it is less than 256, generate palette based png, map colors to current custom chipset palette colors and move them to matching positions in png palette.

Limitations:
- if chipset register color is not in used anywhere in input image: index can be used with some other color (which makes "wrong" final palette) or it can be left unused (but in that case number of unique colors increases by one. if there are many unused colors: total count might go above 256 in worst case)
- if palette has two or more identical colors: it is impossible to match which image color uses which palette entry.
- if image changes colors mid screen: result can be unexpected.
- this probably won't work very well with AGA unless part of palette has identical colors and/or unused (256 color palette limit). Also AGA has annoying "bug", if both upper and lower half of color entry is changed and color is also visible in exact same position, wrong color gets drawn until other part of palette value is also updated. (easiest to see when changing border color)
Toni Wilen is offline  
Old 09 April 2022, 01:01   #12
KONEY
OctaMED Music Composer
 
KONEY's Avatar
 
Join Date: Jan 2009
Location: Venice - Italy
Age: 49
Posts: 666
Quote:
Originally Posted by Rock'n Roll View Post
you can use maptapper to extract graphics and save it as *.png
https://codetapper.com/amiga/maptapp...fx/gfx-palette

Thanks, this one has been the best solution so far!



There can be no duplicate color and I can use maptapper to export the exact palette in IFF. load it in Personal Paint and fire COLOR>REMAP function to end up with everything matching.
KONEY is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
demos.algorithmia.com - new colors for screenshots s2325 Retrogaming General Discussion 6 13 September 2016 23:41
Configuration for grabbing exact screenshots Predseda support.WinUAE 25 16 June 2016 21:43
cycle-exact or not? brolly support.WinUAE 10 27 March 2012 16:18
Amiga exact screenshots regardless of Window/Screen Size P-J request.UAE Wishlist 22 07 May 2008 10:22

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


All times are GMT +2. The time now is 01:48.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.08571 seconds with 15 queries