Wrong color format in B3DPrimitiveVertex?

Martin Kuball MartinKuball at web.de
Tue Sep 2 16:25:53 UTC 2003


I think it's time to install Squeak on my notebook and try it there, too.

Martin

Am Montag, 1. September 2003 23:23 schrieben Sie:
> Hi,
>
> Something is funky here ... when I run your example, I get an "all black"
> box with no colors whatsoever but rather a nicely long Squeak3D.log
> complaining about GL_INVALID_ENUM in some pretty obscure place. If I run it
> either D3D or simulated all works fine. I'll have to investigate further
> what's going on here.
>
> 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: Monday, September 01, 2003 9:54 PM
> > To: The general-purpose Squeak developers list
> > Subject: Re: Wrong color format in B3DPrimitiveVertex?
> >
> >
> > Let's try. I had to make some small modifications to exhibit
> > the problem and
> > you need the B3D tutorial demo stuff.
> >
> > If you file in the change set you will get the following. A
> > new example in
> > class B3DDemoBlockWorld (example3), a change in
> > B3DHardwareEngine to prohibit
> > the setting of a material and a new class B3DTestObj. If you
> > start the
> > example:  B3DDemoBlockWorld example3 you see a scene with a
> > green cube and a
> > blue line pointing to the right (the x-axis). *But* I
> > specified a red color
> > for the line. The cube itself is green because no lighting is enabled.
> > To do this reenable the setting of material properties. Now
> > the cube is black
> > except it's right face. I somewhat expected this because I
> > specified a
> > directional light with (100 at 0@0).  But actually I would have
> > expected the left
> > face to be green. What's wrong this time?
> >
> > Martin
> >
> > Am Sonntag, 31. August 2003 19:15 schrieben Sie:
> > > 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.
> > > >
> > > > Martin



More information about the Squeak-dev mailing list