Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old May 7, 2009, 12:05   #1
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Angband colours in Windows / Linux

I've noticed that the colours used to display Angband are a lot easier to see when running Linux than when running Windows (same computer, same monitor). Anyone else seen the same thing?
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old May 7, 2009, 15:24   #2
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 306
RogerN is on a distinguished road
Are the fonts different? Thicker lines, perhaps?
RogerN is offline   Reply With Quote
Old May 7, 2009, 17:03   #3
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by RogerN View Post
Are the fonts different? Thicker lines, perhaps?
I think the fonts are probably slightly different, but I'm pretty sure it's the color that is making the difference. I don't actually no how to take screen-shots in Linux or I could investigate a little more.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old May 7, 2009, 17:34   #4
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
OK, I (eventually) worked out how to take a screenshot in Linux.

Windows is on the left, Linux on the right. Yes, Linux was larger (I increased the Windows clip to make it easier to see the colours) but the '7' is clearly darker in the Windows version.

I think the '1' in Linux should be same colour as the 'C' in Windows as well - again Linux is lighter in colour.
Attached Thumbnails
Click image for larger version

Name:	win_vs_linux.jpg
Views:	143
Size:	17.9 KB
ID:	167  
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old May 7, 2009, 17:50   #5
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 306
RogerN is on a distinguished road
Unfortunately JPG screenshots are not so good for diagnosing color issues due to lossy compression. The RGB values in the screenshot may not be what's displayed on your screen since hue information is distorted by JPG.

The RGB values are hard-coded in the Angband color table. If you're seeing differences between Linux and Windows then I can only speculate that there are platform-specific differences in how the palette entries are initialized for the display. Perhaps the Linux version is using color names instead of RGB values?
RogerN is offline   Reply With Quote
Old May 7, 2009, 17:52   #6
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by RogerN View Post
Unfortunately JPG screenshots are not so good for diagnosing color issues due to lossy compression.
Those are PNG screenshots, not JPG.

As you can see here the compression is not lossy.
Attached Thumbnails
Click image for larger version

Name:	win_vs_linux.jpg
Views:	156
Size:	4.3 KB
ID:	168  
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old May 7, 2009, 18:20   #7
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 306
RogerN is on a distinguished road
They may have been PNG to begin with, but whatever method you used to post the images converted them into JPGs. I can see compression artifacts clearly in both images, and my browser confirms that it is a JPG image.

Location: http://angband.oook.cz/forum/attachm...8&d=1241711556
Type: JPEG image
Dimensions: 373px x 280px
Title: win_vs_linux.jpg
RogerN is offline   Reply With Quote
Old May 7, 2009, 18:33   #8
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by RogerN View Post
They may have been PNG to begin with, but whatever method you used to post the images converted them into JPGs.
There is only one method to post images in this forum as attachments - the "Manage Attachment" button.

However the essential point is that the difference in colours is real and not an artifact of .jpg compression as is clearly shown by the stretched image of the '7' from each respective OS snapshot.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old May 7, 2009, 18:59   #9
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 306
RogerN is on a distinguished road
The darker 7 (the Windows version) matches the Angband color table entry for TERM_L_DARK with an RGB color value of 606060

The lighter 7 (the Linux version) does not match any entry in the Angband color table. Its RGB value appears to be 898989. Perhaps the Linux code is initializing the palette from color names rather than RGB values? I don't know what's going on here.
RogerN is offline   Reply With Quote
Old May 7, 2009, 22:49   #10
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,803
Donated: $60
Nick is on a distinguished road
If you're using the X11 port in Linux, it does Gamma correction; I'm not sure about the others. Nor am I sure any more what Gamma correction is...
__________________
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Angband Borg 3.0.9 and windows Zappa Vanilla 38 October 27, 2010 21:31
Compiling Z+Angband under Windows Altefcat Variants 8 December 11, 2008 10:44
Angband and the Borg on Linux wastedyouth Vanilla 20 July 23, 2008 01:08
How to change font in angband (linux)? danvari Vanilla 3 February 28, 2008 14:44
Angband 3.0.9 under Linux (graphics?) strangeintp Vanilla 4 January 19, 2008 23:44


All times are GMT +1. The time now is 19:24.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.