• Advertisement

Archived

This topic is now archived and is closed to further replies.

How do you color bitmaps?

This topic is 5559 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you color bitmaps (like lesson09 of nehe) Aren't you supposed to use glcolor4ub(r,g,b,a) with blending? BCuz that doesn't work (and yes i have it initialized correctly) EDIT:
    
	glBindTexture(GL_TEXTURE_2D, MoonTexture);		//THIS IS ACTUALLY THE PARTICLE TEXTURE

	glEnable(GL_BLEND);	
	glTranslatef(X, Y, Z);
	glColor4ub(Red, Green, Blue, 255);
	glBegin(GL_QUADS);
	glTexCoord2f(0.0f, 0.0f);	glVertex3f(-.5f,-.5f, -30.0f);
	glTexCoord2f(1.0f, 0.0f);	glVertex3f( .5f,-.5f, -30.0f);
	glTexCoord2f(1.0f, 1.0f);	glVertex3f( .5f, .5f, -30.0f);
	glTexCoord2f(0.0f, 1.0f);	glVertex3f(-.5f, .5f, -30.0f);
	glEnd();
    
Why doesn't that work? Red, Green, and Blue are defined as GLubyte EDIT: Doh, it was because of my lights, NEVERMIND tee hee (and I thought I was stumped!) [edited by - Shadow1234567890 on November 3, 2002 7:27:31 PM]

Share this post


Link to post
Share on other sites
Advertisement
Did you set the blending mode with glBlendFunc()?
What are you trying to accomplish with the texture being at full opacity?

I don't have a signature

[edited by - Brian Jones on November 3, 2002 11:44:01 PM]

Share this post


Link to post
Share on other sites

  • Advertisement