View Full Version : GL_MODULATE?
10-17-2001, 07:48 AM
I am doing my own particle-engine. i got a texture loaded, and leave the texenv to "GL_MODULATE".
when i render my particles, i turn lighting, and dept-test off, and turn blend on.
i am not quite finished with the engine, but it seems to me that the modulating doesn't show any effect at all.
10-17-2001, 02:41 PM
Does GL_MODULATE is for multi-texture ?
I use this function for doing multi-texture.
Here's my code and GL_MODULATE works :
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
10-17-2001, 07:01 PM
GL_MODULATE as a Texture Environment mode means that it will take the texture color and multiply it by the incoming color. Lighting has an effect on the incoming color, but it isn't the only thing. If lighting is off, the incoming color is affected only by the current state of glColor. If you haven't set it, then the initial color is probably white, which is why you don't see a change.
10-18-2001, 01:49 AM
http://www.opengl.org/discussion_boards/ubb/rolleyes.gif ups, i am very sorry. i found out yesterday evening.
like glTexparam i thought thera different environments for 2d and 1d, and since opengl is quite nice, it didn't crash either.
all, my fault.
thanks for the help.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.