From: "Valeri" <ambal007@netzero.net>
I have graphical software to vizualise data (C++,Motif,XLib).
It runs on Linux, Unix. When I run it on
32 bit machine laptop (Linux) and 64 bit machine (SGI,IRIX),
colors looks different.
How to make colors same?
Maybe it depends from
Monitor, Vide Card or other hardware
and this is not software issue? |
Request for Question Clarification by
maniac-ga
on
10 Oct 2006 11:34 PDT
Hello Ambal007,
There could be several causes including:
- color depth (e.g., 8 bpp vs. 24 or higher)
- the "temperature" of the display and video interface
- how the colors are rendered / use (or lack of use) of a color
management system such as PEX
Can you describe how the colors are different? That information will
be needed to isolate the possible cause and/or solution.
--Maniac
|
Clarification of Question by
ambal007-ga
on
10 Oct 2006 12:30 PDT
ambal007@netzero.net
Dear Maniac.
Background window color changes from gray to white: 32 to 64bit,
Data graph colors are less intensive on 32 bit
versus 64 bit Linux machine.
Can I correct this problem by SOFTWARE ONLY:
for example by loading some color map (to XLIB,MOTIF?)
from my file, so result will not
depend from machine type OR it is
HARDWARE ONLY problem (I don't know
anything here).
Thank you.
Valeri
|
Request for Question Clarification by
maniac-ga
on
11 Oct 2006 09:07 PDT
Hello Ambal007,
The background color can change for a number of reasons. From the
Motif Programmer's Reference at
http://www.opengroup.org/openmotif/docs/m213.pdf
it states in part that the user and application should control the
appearance (including background and foreground colors) ... of a
client. The application should provide defaults, but the user may
specify alternative values. For example, most X applications support
the command line argument
-background (color)
to set the background color. The window manager you use may also
provide a "default" color as well. See also section 12.1.2 of the
manual above where it indicates the default for background color is
"implementation dependent" or a value that may vary by OS, window
manager, or X / Motif implementation.
If it is critical for your application to have a specific background
color - you need to revise your application to set that color (by
resource or other means). See also section 12.2 for methods to do
this.
That some of the colors are "less intensive" is most often caused by
hardware differences. For example, there is a brief summary at
http://www.math.utah.edu/faq/color/color.html#FAQ-4
which describes variation between displays. There is a brief
explanation of color calibration at
http://en.wikipedia.org/wiki/Color_calibration
which also includes links to other resources.
--Maniac
|