It is currently Mon Feb 19, 2018 9:07 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 87 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6
Author Message
PostPosted: Fri Feb 02, 2018 3:04 pm 
Offline
User avatar

Joined: Sun May 27, 2012 8:43 pm
Posts: 1330
The screenshots look great this way. Looks quite good in the example picture.


Top
 Profile  
 
PostPosted: Fri Feb 02, 2018 8:32 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19637
Location: NE Indiana, USA (NTSC)
As with most of my other projects, you'll need to have Python 3 and Pillow (Python Imaging Library) installed, per the standard instructions to set up a build environment for Pin Eight projects.

The input image must be 64x56 pixels, in BMP, PNG, or any other format that Pillow reads. It must follow the engine's limits (grays + 3 colors in each 8x8 pixel area, two distinct groups of 3 colors).

The main() function in a53screenshot.py is hardcoded for testing purposes so that I can test from within IDLE, the editor that comes with Python. You'll need to comment that at the bottom of the file and uncomment plain main().
Code:
# Convert by guessing the 3-color palettes, then display
./a53screenshot.py thwaite.png

# Convert by guessing the 3-color palettes, then save conversion
./a53screenshot.py thwaite.png -o thwaite-indexed.png

# Convert using the given palettes, then display
./a53screenshot.py --palette 12162A122738 thwaite.png

# Convert using the given palettes, then save conversion
./a53screenshot.py --palette 12162A122738 thwaite.png -o thwaite-indexed.png

# Save a PNG image showing the NES palette that savtool uses
./savtool.py --write-swatches=bisqwit_nes_palette.png

REM Windows Command Prompt may require backslashes or removal of the
REM leading ./ entirely.  I haven't tested this on Windows.  Let me
REM know which of these work for you.
.\a53screenshot.py thwaite.png
a53screenshot.py thwaite.png
py a53screenshot.py thwaite.png
python a53screenshot.py thwaite.png


EDIT: Fixed documentation


Attachments:
a53screenshot.zip [21.97 KiB]
Downloaded 10 times
Top
 Profile  
 
PostPosted: Fri Feb 02, 2018 10:08 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10287
Location: Rio de Janeiro - Brazil
Now that screenshots can be more colorful, wouldn't this be a good time to improve the graphics of the television set itself? Maybe something like this:

Attachment:
a53-television.png
a53-television.png [ 2.33 KiB | Viewed 376 times ]


Top
 Profile  
 
PostPosted: Sat Feb 03, 2018 4:20 am 
Offline

Joined: Tue Oct 06, 2015 10:16 am
Posts: 660
Code:
./a53screenshot.py inherent.png
Traceback (most recent call last):
  File "./a53screenshot.py", line 385, in <module>
    main(["a53screenshot.py", "-v", "../tilesets/screenshots/thwaite.png"])
  File "./a53screenshot.py", line 360, in main
    im = Image.open(infilename)
  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2258, in open
    fp = builtins.open(filename, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '../tilesets/screenshots/thwaite.png'


Hardcoded inputs overriding what I passed?

edit: When I comment the hardcode line and uncomment the main() line, it goes further, but the inputs do not match your README, they expect -o instead of two filenames.

edit2: The new image did not use the new palettes for some reason, even though the run was successful:
Code:
./a53screenshot.py inherent.png -o new.png
palette: 03 17 27, 08 17 27

And the preview did not change any colors either.


Top
 Profile  
 
PostPosted: Sat Feb 03, 2018 8:39 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19637
Location: NE Indiana, USA (NTSC)
calima wrote:
Hardcoded inputs overriding what I passed?

Yup. Sometimes I hardcode argv so that I can test from within an environment that doesn't offer a way to specify argv. You caught me with the -o there as well: I changed the API and forgot to change the manual. Thank you for helping to test.

calima wrote:
The new image did not use the new palettes for some reason, even though the run was successful:
Code:
./a53screenshot.py inherent.png -o new.png
palette: 03 17 27, 08 17 27

Try changing parse_palette(s) to parse_palette(args.palette). If that doesn't work, could you attach inherent.png for me to test with?


Top
 Profile  
 
PostPosted: Sat Feb 03, 2018 11:39 am 
Offline

Joined: Tue Oct 06, 2015 10:16 am
Posts: 660
Code:
  File "./a53screenshot.py", line 173
    def parse_palette(args.palette):
                          ^
SyntaxError: invalid syntax


Image attached. Please use this one as Inherent's screenshot, it should pass all restrictions (though the colors the tool picked may be bad, there's no purple 03 anywhere, and 18/28 may be closer to the yellows than 17 and 27)


Attachments:
inherent.png
inherent.png [ 589 Bytes | Viewed 307 times ]
Top
 Profile  
 
PostPosted: Sat Feb 03, 2018 2:48 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19637
Location: NE Indiana, USA (NTSC)
My camera sucks, as do the room lighting and the TV's color temperature settings. But this photo at least shows more colorful screenshots on hardware.
Attachment:
File comment: A familiar game with houses and explosions using different palettes
thwaite_19C140.jpg
thwaite_19C140.jpg [ 47.56 KiB | Viewed 282 times ]


@calima
I meant in the function's use, not its definition.

But anyway, I found a bunch of other dumb typos, and I have attached a revised version with them fixed. Thank you for the test materials.
Attachment:
File comment: A bunch of fixes to the command-line front end
a53screenshot.zip [22.08 KiB]
Downloaded 4 times

Attachment:
File comment: You mean this isn't about long-eared leporids?
inherent_19C140.jpg
inherent_19C140.jpg [ 47.51 KiB | Viewed 282 times ]


As for the purple, the conversion uses a palette generated using Bisqwit's tool. In the revised version of a53screenshot, I've added functionality to savtool.py --write-swatches where .pal writes a 192-byte binary palette for use with an emulator, and .txt writes a 64-line tab-separated file with 6-digit hex codes (e.g. #342800 for color $08).

@tokumaru
That'd certainly be doable with my current framework.
The screenshot frame in the current version of Action 53 was based on a TV belonging to NovaSquirrel, made by Sharp. That was the TV that I had in front of me while making the menu software. Pictures of model 19C140 found through Google Images appear to match it.
Attachment:
File comment: Yo dawg, I put a Sharp TV in your Sharp TV so you can game while you game
droste_19C140.jpg
droste_19C140.jpg [ 52.04 KiB | Viewed 282 times ]


I could have modeled it after a more iconic bezel if I knew of one. What TV model is tokumaru's suggested frame based on?


Top
 Profile  
 
PostPosted: Sat Feb 03, 2018 7:55 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10287
Location: Rio de Janeiro - Brazil
tepples wrote:
I could have modeled it after a more iconic bezel if I knew of one. What TV model is tokumaru's suggested frame based on?

I took bits and pieces from different TVs, but the biggest inspiration was this one (apparently a Sony Trinitron KV-20TR23):
Attachment:
sony-trinitron.jpg
sony-trinitron.jpg [ 82.1 KiB | Viewed 270 times ]

I don't think this is about using an iconic model though, I just think it has to be believable. The current one looks a bit too boxy, and the light color blends with the background too much (the Windows 95 style shading doesn't help here). I figured that a dark/black television would stand out more, and would have better contrast overall.

If you provide a reference image of any other model you think would work better, I can take a shot at pixeling it.


Top
 Profile  
 
PostPosted: Sat Feb 03, 2018 8:50 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19637
Location: NE Indiana, USA (NTSC)
Looking good, and you're credited in CHANGES.txt of the menu source code.


Attachments:
a53menu-0.06wip1.zip [195.39 KiB]
Downloaded 15 times
a53vol4-0.png
a53vol4-0.png [ 1.81 KiB | Viewed 260 times ]
Top
 Profile  
 
PostPosted: Sat Feb 03, 2018 8:53 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10287
Location: Rio de Janeiro - Brazil
Cool! I'm glad you liked it.


Top
 Profile  
 
PostPosted: Mon Feb 05, 2018 5:07 pm 
Offline
User avatar

Joined: Sun May 27, 2012 8:43 pm
Posts: 1330
The old bezel looked fine, but the new one has some nice character to it.


Top
 Profile  
 
PostPosted: Mon Feb 05, 2018 5:32 pm 
Offline
Formerly WheelInventor

Joined: Thu Apr 14, 2016 2:55 am
Posts: 1354
Location: Gothenburg, Sweden
yeah well done tokumaru!

_________________
http://www.frankengraphics.com - personal NES blog


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 87 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group