Results 1 to 4 of 4

Thread: Which is faster: Blend Mode

  1. #1
    Member Contributor
    Join Date
    Jul 2002
    Location
    Southampton, PA, USA
    Posts
    61

    Which is faster: Blend Mode

    Hi,

    Which is generally the better method to use in a scene where some objects have varying degrees of alpha while others remain opaque:

    1. Set up GL_BLEND to be enabled all the time, and then give opaque objects an alpha of 1.

    2. Enable GL_BLEND for only the objects that will be blended, and disable it when drawing the opaque.

    Thanks.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2001
    Location
    Italy
    Posts
    625

    Re: Which is faster: Blend Mode

    Quite sure it's (2), especially if you group all your transparent objects and you render them after non-transparent objects have been rendered.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Feb 2000
    Posts
    211

    Re: Which is faster: Blend Mode

    and one rule-of-the-thumb is first to render all non-transparent objects and then render all transparent objects.
    DJSnow

  4. #4
    Super Moderator OpenGL Guru imported_dorbie's Avatar
    Join Date
    Jul 2000
    Location
    Bay Area, CA, USA
    Posts
    3,966

    Re: Which is faster: Blend Mode

    I have a strange feeling of deja-vu.

Similar Threads

  1. Different Blend Mode per RenderTarget
    By Jan in forum OpenGL: General
    Replies: 10
    Last Post: 04-09-2009, 11:20 PM
  2. Different Blend Mode per RenderTarget
    By Jan in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-06-2009, 05:35 PM
  3. mod2x blend mode?
    By Leadwerks in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 10-29-2007, 05:33 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