Results 1 to 7 of 7

Thread: in dx its called multiply blend mode.. and in ogl?

  1. #1
    Member Contributor
    Join Date
    Jun 2005
    Posts
    87

    in dx its called multiply blend mode.. and in ogl?

    I want to use multiply blending mode so i can mix a texture with a lightmap in directx I achived the desired effect, however in opengl I could only achiv e a lighter shiny blending and not the same as in DX, I tried what someone suggested for lightmaps but it looked way too shiny, and yes I got lighting disabled on both ends. thats not the problem I think its just the blending modes.. am I wrong or in total theres more than 22 possible convinations of blending in opengl??.

    if it serves as a hint, the unlit parts of the lightmap are black, the lit parts are multicolor (white, red, orange, etc) I need to multiply the colors and take the black out with the blending, how???

  2. #2
    Guest

    Re: in dx its called multiply blend mode.. and in ogl?

    can you be a bit more specific. there is no "multiply" "blending mode" in d3d.

    is this for a texture environment combining or for frame buffer blending?

    for single pass lighting, GL_MODULATE is generally what you want as your env color op.

    all the color/alpha ops are defined in the spec.

  3. #3
    Member Contributor
    Join Date
    Jun 2005
    Posts
    87

    Re: in dx its called multiply blend mode.. and in ogl?

    speak english freak

  4. #4
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: in dx its called multiply blend mode.. and in ogl?

    You really want "multiply blending" ? Right :
    glBlendFunc(GL_DST_COLOR, GL_ZERO) //Blending formula with these factors : srcColor*destColor+0

    Freak yourself

  5. #5
    Guest

    Re: in dx its called multiply blend mode.. and in ogl?


  6. #6
    Member Contributor
    Join Date
    Jun 2005
    Posts
    87

    Re: in dx its called multiply blend mode.. and in ogl?

    thats toooo dark!! i tried GL_SRC_COLOR,GL_SRC_COLOR and it worked with one of my tests on the other with a white light it didnt work why?

  7. #7
    Guest

    Re: in dx its called multiply blend mode.. and in ogl?

    try dst_color, src_color. that gives you 2x modulate.

Similar Threads

  1. Different Blend Mode per RenderTarget
    By Jan in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-06-2009, 05:35 PM
  2. Help in Image Multiply Mode
    By mkarthik293 in forum OpenVG
    Replies: 0
    Last Post: 07-17-2008, 12:39 AM
  3. Replies: 5
    Last Post: 01-25-2008, 12:50 PM
  4. Invisible blend mode?
    By halo in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-13-2004, 08:02 AM
  5. Looking for the right blend mode
    By halo in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 12-20-2003, 10:39 AM

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