ColorRGBA bug?

Hi, I

:// well the correct spelling should be: "… WAS red vs. transparent … " as it got fixed of course :slight_smile:

And it was actually a ColorRGBA issue, it was transparency. The quad the imposter was added to was red, in linux it wasn’t transparent though.

"winkman" wrote:
I noticed a similiar effect with imposters on my linux box.
The background for the Dr. F. Imposter Test is red vs. transparent on win.

I think that they fixed the bug in linux.

I noticed a similiar effect with imposters on my linux box.

The background for the Dr. F. Imposter Test is red vs. transparent on win.

hummm…that

Just to show you what is happening in jME and how there isn’t much to go wrong:


public ColorRGBA(float r, float g, float b, float a) {
      this.r = r;
      this.g = g;
      this.b = b;
      this.a = a;
      clamp();
}



public void setBackgroundColor(ColorRGBA c) {
    //if color is null set background to white.
    if (c == null) {
      backgroundColor.a = 1.0f;
      backgroundColor.b = 1.0f;
      backgroundColor.g = 1.0f;
      backgroundColor.r = 1.0f;
    } else {
      backgroundColor = c;
    }
    GL11.glClearColor(backgroundColor.r, backgroundColor.g,
            backgroundColor.b, backgroundColor.a);
}



and OpenGL defines glClearColor as:

void glClearColor(GLclampf red,
GLclampf green,
GLclampf blue,
GLclampf alpha)

That’s kinda funny (the haha funny)… :slight_smile: I can’t believe a driver company would mess up something so basic as colors…



If you look at the colors we use in our demos and then at the screen shots, you’ll see it IS RGBA for the rest of us… :? Is it possible Java3d was using directx to render and thus using a different driver?

There is no code…



It always happens when I use ColorRGBA, for example:

display.getRenderer().setBackgroundColor(ColorRGBA.red);

or

display.getRenderer().setBackgroundColor(new ColorRGBA(1,0,0,1));



The Background is then showed in blue, if I set the ColorRGBA.blue, then the background appears in red.



I

I dont get this bug over here…the colours are working fine here…



Maybe its the drivers? ATI are known to mess things up and there was one nVidia driver (i can’t recall the version no.) where it messed up colours…



DP

Never seen that before, either. Can you post your code?

Hi…

I Updated the drivers for my GForce and the Colors Still doesn

Really don’t know what it could be, it’s a straight forward operations.



Try writing your own LWJGL window and clear the colors to see if the same thing happens.

maybe you could also post some simple jme sample code that gives you the wrong color as a sanity check in case there is something else up.

Hi



I relalized that the problem is only in Swing applications like JMESwingTest demo. I