Results 1 to 7 of 7

Thread: MultiTexture blend function

  1. #1
    Member Contributor
    Join Date
    Mar 2002
    Posts
    61

    MultiTexture blend function

    I'm looking for the equivalent of glBlendFunc() when using multitexturing extension.

    I would like to act upon the blend function when using my two hardware texture units.

    is it possible ?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: MultiTexture blend function

    You mean blend the two textures together, so you can draw several textures in one pass insteda of multiple passes?

    The equivalent of glBlendFunc would then be the texture environment functions. For "basic" texture environment functions (which in fact is quite powerful), have a look at the texture env combine extensions (a part of OpenGL 1.3 also, if I remember correct). It's a specification document, not a tutorial, but it's quite good and you should be able to understand it.

  3. #3
    Member Contributor
    Join Date
    Mar 2002
    Posts
    61

    Re: MultiTexture blend function

    thanks, but I can't find any Tutorial or HowTo on this topic.
    Does anybody knows a reliable on ?

    regards

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: MultiTexture blend function

    You could always try this site.

  5. #5
    Member Newbie
    Join Date
    Nov 2006
    Location
    Hermosa Beach, CA, USA
    Posts
    47

    Re: MultiTexture blend function

    I know this is old, but will someone describe the settings needed to get the effect the OP requested? NeHe doesn't show you, and I don't think there is a recipe anywhere on the internet. The problem is understanding all the options with glTexEnv(), the documentation is vague.

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

    Re: MultiTexture blend function

    Check "Multi-Texture Blending" here for a code sample :
    http://www.codesampler.com/oglsrc/oglsrc_4.htm

    (btw I would not say the documentation is vague ...)

  7. #7
    Member Newbie
    Join Date
    Nov 2006
    Location
    Hermosa Beach, CA, USA
    Posts
    47

    Re: MultiTexture blend function

    I ran the demo and looked at the code. I believe the use of glTexEnv[i/f] answers the OP's question. I have my own questions, and the documentation is not answering them. Thanks for the response.

Similar Threads

  1. Blend function w/ both source and dest alphas?
    By Verdagon in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 02-03-2011, 05:39 AM
  2. Multitexture with independent texture color blend
    By pascalbamford in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 10-17-2009, 11:29 AM
  3. custom blend function
    By phlake in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-20-2004, 09:20 PM
  4. Blend as function of stencil
    By tooltech in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 09-09-2002, 01:26 PM
  5. Some trouble with multitexture, alpha blend and lighting
    By cix>foo in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-24-2001, 04:03 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