Wrong color format in B3DPrimitiveVertex?

Andreas Raab andreas.raab at gmx.de
Mon Sep 1 23:08:00 UTC 2003


Hi Bob,

Thanks for the info - I investigated the problem and it turns out that
you're exactly right. We're passing in ARGB but GL expects RGBA (ho hum). I
just fixed the renderer code @ sf so this will be fixed in the next round of
VMs coming along.

Cheers,
  - Andreas

> -----Original Message-----
> From: squeak-dev-bounces at lists.squeakfoundation.org 
> [mailto:squeak-dev-bounces at lists.squeakfoundation.org] On 
> Behalf Of Bob Arning
> Sent: Monday, September 01, 2003 11:27 PM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: Re: RE: Wrong color format in B3DPrimitiveVertex?
> 
> 
> Andreas,
> 
> It may be  related to the odd coloring of the cube in the 
> B3DSceneExplorerMorph. When I get one out and turn on 
> acceleration (3.5 image, 3.4 Mac VM), the colors change. Here 
> are the expected (and correctly drawn with acceleration off) 
> colors and what they look like with acceleration on:
> 
> 
> (TranslucentColor r: 1.0 g: 0.0 b: 0.0 alpha: 0.498) should be red, 
> but looks like (Color r: 0.498 g: 1.0 b: 0) when accelerated
> 
> (TranslucentColor r: 0.0 g: 1.0 b: 0.0 alpha: 0.498) should be green,
> but looks like (Color r: 0.498 g: 0.0 b: 1.0) when accelerated
> 
> (TranslucentColor r: 0.0 g: 0.0 b: 1.0 alpha: 0.498) should be blue,
> but looks like (Color r: 0.498 g: 0.0 b: 0) when accelerated
> 
> (TranslucentColor r: 1.0 g: 1.0 b: 0.0 alpha: 0.498) should be yellow,
> but looks like (Color r: 0.498 g: 1.0 b: 1.0) when accelerated
> 
> (TranslucentColor r: 0.5 g: 0.5 b: 0.5 alpha: 0.498) should 
> be gray AND IS!
> 
> (TranslucentColor r: 0.0 g: 1.0 b: 1.0 alpha: 0.498)) should be cyan,
> but looks like (Color r: 0.498 g: 0.0 b: 1.0) when accelerated
> 
> Looks very much like some mismatch between ARGB and RGBA.
> 
> Cheers,
> Bob
> 
> 
> On Sun, 31 Aug 2003 19:15:31 +0200 "Andreas Raab" 
> <andreas.raab at gmx.de> wrote:
> >Do you have an example for testing this?
> >
> >Cheers,
> >  - Andreas
> >
> >> -----Original Message-----
> >> From: squeak-dev-bounces at lists.squeakfoundation.org 
> >> [mailto:squeak-dev-bounces at lists.squeakfoundation.org] On 
> >> Behalf Of Martin Kuball
> >> Sent: Saturday, August 30, 2003 7:47 PM
> >> To: squeak-dev at lists.squeakfoundation.org
> >> Subject: Wrong color format in B3DPrimitiveVertex?
> >> 
> >> 
> >> Hi!
> >> 
> >> The B3DPrimitiveVertex stores a Color value as a word in the 
> >> format ARGB, 
> >> where A is the most significant byte. On my Linux system 
> >> using an nvidia 
> >> driver this does not seem to be what OpenGL expects. It 
> >> should rather be ABGR.
> 
> 



More information about the Squeak-dev mailing list