Results 1 to 4 of 4

Thread: GL_MODULATE?

  1. #1
    Member Contributor
    Join Date
    May 2001
    Location
    Austria
    Posts
    54

    GL_MODULATE?

    Hi

    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.

    cheers,
    martin

  2. #2
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: GL_MODULATE?

    Hi,

    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);
    glBindTexture(GL_TEXTURE_2D, Texture[1]);
    glEnable(GL_TEXTURE_2D);
    glBegin ...
    etc ...

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Mar 2001
    Posts
    3,574

    Re: GL_MODULATE?

    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.

  4. #4
    Member Contributor
    Join Date
    May 2001
    Location
    Austria
    Posts
    54

    Re: GL_MODULATE?

    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.
    martin

Similar Threads

  1. GL_REPLACE vs. GL_MODULATE
    By Jan in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 04-23-2003, 04:50 AM
  2. GL_MODULATE internal working
    By graphicsMonger in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 02-26-2002, 08:49 AM
  3. GL_MODULATE and GL_BLEND
    By mathias in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-06-2001, 01:43 AM
  4. GL_MODULATE Vs GL_BLEND
    By mathias in forum OpenGL: Advanced Coding
    Replies: 18
    Last Post: 05-31-2001, 12:49 AM
  5. GL_BLEND vs gl_TexEnv(...gl_MODULATE)
    By Bra'Tac in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-06-2001, 01:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean