We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
disabling glColor4f (Read 719 times)
disabling glColor4f
Jul 12th, 2008, 2:12am
 
i've got a sketch that makes a call to glColor4f to change the color of something, later on i setup some lights and noticed that glColor4f is changing the color of my lights.  Is there a way to disable glColor4f so that it won't affect my lights or any textures that are called later? using glColor4f(0,0,0,1) just darkens everything.  

TIA
Stephen
Re: disabling glColor4f
Reply #1 - Jul 12th, 2008, 11:12am
 
quite easy Tongue its glColor4f(1.0, 1.0, 1.0, 1.0) that you want!
Re: Possible Bug? glColor4f
Reply #2 - Jul 24th, 2008, 2:37am
 
no that doesn't work either it just washes everything out.  It seems like the last call placed to glColor affects all lights even if the call to glColor occurs after the lights have been placed.  if i use fill(r,g,b,a); it doesn't affect the lights. Am i missing something here or is this a bug?
Page Index Toggle Pages: 1