Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
RE: Front Color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Front Color



Hi,

Not sure if this is helpful but some time ago I found that I could fix a
failing call to glColorMaterial() by adhering to the recommendation from the
GL manpages namely:

Call glColorMaterial before enabling GL_COLOR_MATERIAL.

E.g., I had glEnable(GL_COLOR_MATERIAL) first and this made glColorMaterial
fail for some strange reason on some test machines. This wasn't on a Mac
btw, but it might still be worthwhile to check.

Cheers,
- Andreas

> -----Original Message-----
> From: email@hidden
> [mailto:email@hidden] On Behalf Of A. G.
> Sent: Thursday, September 18, 2003 10:28 PM
> To: email@hidden
> Subject: Front Color
>
>
> Greetings All,
>
> My CFM application uses baseline OpenGL only. I recently discovered
> that under 10.2.6 (533MHz DP G4) the first call
> glColorMaterial(GL_FRONT,GL_AMBIENT_AND_DIFFUSE); fails. The strange
> part about it is that all subsequent call to glColorMaterial(GL) work
> as expected. During testing I found that adding a glBegin()/glEnd()
> pair (and no drawing between the two calls) before the first
> glColorMaterial() solves the problem on my machine but not on all
> configurations. Here are my results:
>
> OSX 10.2.6 533MHz DP NVDA GEForce2MX+ATY Radeon - works on
> both cards.
> OSX 10.2.6 500MHz DP Graphite AGP G4 (Giganit Ethernet),
> subsequently upgraded with Radeon 9000 graphics cards - didn't work.
>
> OSX 10.2.6 450MHz Graphite AGP G4, upgraded graphics card (can't
> remember which at
> the moment, but an ATI AGP card of some sort) - didn't work,
>
> OS 9.2.2 350MHz Graphite (AGP Graphics) G4, Rage 128Pro
> graphics card, - works.
>
> OSX 10.2.6 550MHz Powerbook G4, Gigabit Ethernet - works,
>
> OSX 10.2.6 867MHz G4 DP, (Mirrored Drive Doors, 2002) with NVIDIA
> GeForce4 MX - works,
>
> OSX 10.2.6 1GHz G4 Powerbook - works.
>
> To the best of my understanding, the problems were first reported
> with 10.2.6 and the "fix" appears to work on all but systems where
> the graphics card was upgraded. Is this a known problem or could I
> be missing something in initialization?
>
> TIA,
>
> A.G.
> WaveMetrics, Inc.
> _______________________________________________
> mac-opengl mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/ma> c-opengl
> Do not
> post admin requests to the list. They will
> be ignored.
_______________________________________________
mac-opengl mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/mac-opengl
Do not post admin requests to the list. They will be ignored.

References: 
 >Front Color (From: "A. G." <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.