Re: [OpenMap Users] A couple of newbie questions

From: Graham Fitter <graham_fitter@raytheon.com>
Date: Mon Mar 03 2003 - 13:08:12 EST

Hi all,

I'm suffering from equally weird colour problems, all on a DEC/Compaq/HP
alpha with JDK 1.4. (At some point I'll send an update that recognizes
"OSF1" as an X windows platform.) None of these occur on MS Windows.
Anyway, here's what I've seen, and how I dealt with it...

1. Green. When the X server runs with an 8 bit PseudoColor visual (the
default for the alpha,) all swing colors have a green tint! This never
happens when I run with mwm, or with dtwm without the CDE front panel
and backdrops. It always happens with fvwm, and sometimes when I don't
run with any window manager. There's no evidence that the X colour map
ran out of colours. The solution is to start the X server with a 24 bit
TrueColor visual.

2. BufferedImage. With the 8 bit PseudoColor visual, anything filled
with a color with zero alpha in a BufferedImage (for example in a
TexturePaint) has a weird stipple pattern. This also happens with the
new BufferedShapeLayer. This looks OK with the 24 bit TrueColor visual.

3. Color. Any non-opaque Color (i.e. alpha not 255) causes one of my six
BufferedMapBeans to disappear (i.e. painted in the background colour)
when I zoom sometimes. It seems to happen when I've drawn a filled
OMPoly in a (non-buffered) Layer, and the polygon is slightly larger
than the bean. Fortunately I'm only interested in a transparent color,
and I'm not interested in selecting the polygon in this particular bean,
so I can fill with OMGraphicsConstants.clear to force OM to draw only
the outline.

I'm not sure what's causing the alpha colour problem. Unfortunately I
haven't (and probably won't) have time to do any more investigation now
the problem has been "fixed" and there are more pressing issues I need
to look at. However if anyone else has seen anything like this before,
I'd be really interested in hearing about it.

Cheers,
Graham

Don Dietrick wrote:
>
> I can't explain the other pictures. I'm running in the exact
> environment as you (1.3.1), and I don't see them. The Swing color
> variations are beta weirdness.
>
> > I suspect I've got some configuration problems, and indeed can now
> > solve the other problems just fine. But I thought I'd better report
> > the oddness with distance.
>
> How many colors are enabled in your display? That's the only thing I
> can think of that you would have the opportunity to change with
> configuration. I haven't seen problems with any setting of mine,
> though.
>
> Thanks for the update,
>
> - Don

-- 
Graham Fitter
Raytheon C3I
--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Mar 3 13:10:42 2003

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:35 EDT