Results 1 to 9 of 9

Thread: 3D Model with opaque and non-opaque pixels

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2009
    Location
    Portugal
    Posts
    28

    3D Model with opaque and non-opaque pixels

    Hi All,

    I'm rendering 3D Models - textured , in order to render the object correctly i need to enable blending, because the texture as non-opaque pixels. However blending slows down the performance. So one solution could be to split the model object into opaque object and non-opaque object, so two objects.

    By doing this, the stripification algorithm will have a poor output. So my doubt is should i enable blending and use a full stripified object, or it's better to split the model into 2 objects, and just enable blending for the non-opaque object ?

    Best Regards,

    Victor

  2. #2
    Member Contributor
    Join Date
    Feb 2005
    Posts
    90

    Re: 3D Model with opaque and non-opaque pixels

    Are you using complex or large models?
    Blending have an impact only when drawing a lot of pixels.
    Ido

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2009
    Location
    Portugal
    Posts
    28

    Re: 3D Model with opaque and non-opaque pixels

    Hi,

    The models have between 400 and 1000 vertices, some are complex others not.

    Thanks,

    Victor

  4. #4
    Junior Member Newbie
    Join Date
    Mar 2009
    Location
    Portugal
    Posts
    28

    Re: 3D Model with opaque and non-opaque pixels

    Hi,

    I asked about the strip problem, however i see a lot of people saying that indexed triangles will have equal performance, due to degenerated triangles added in order to join strips, and also because, normally i'm getting 10 strip per model, so it will give 10 calls. What do you think about it ?

    BR,

    Victor

  5. #5
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: 3D Model with opaque and non-opaque pixels

    Did not know that Victor Hugo is interested in computer graphics...

    If you don't want to enable blending on opaque parts of your geometry, you do not have may choices except split your object in different subset corresponding to a specific material (opaque or not). This way you can apply different rendering techniques on each subset. I think it is better to do this way rather trying to stripify everything and especially with no more than thousands of vertices.

  6. #6
    Junior Member Newbie
    Join Date
    Mar 2009
    Location
    Portugal
    Posts
    28

    Re: 3D Model with opaque and non-opaque pixels

    Ok,

    Thanks for the advice.

    Just miss the joke with Victor Hugo ?

    BR,

    Victor

  7. #7
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: 3D Model with opaque and non-opaque pixels

    You are welcome.
    Lol, actually Victor Hugo was a famous french writer who lived two centuries ago.

  8. #8
    Junior Member Newbie
    Join Date
    Mar 2009
    Location
    Portugal
    Posts
    28

    Re: 3D Model with opaque and non-opaque pixels

    Ok,

    LOL. In portugal it's a famous hockey player

    BR,

    Victor

  9. #9
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: 3D Model with opaque and non-opaque pixels


Similar Threads

  1. Mixing transparent and opaque particles
    By mdelorme in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-09-2016, 04:11 AM
  2. Opaque shader
    By Wasabi in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 08-17-2011, 03:38 PM
  3. Very Basic- Making objects Opaque.
    By shadowfax in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 10-12-2010, 10:45 PM
  4. Opaque types inplace of GLuint
    By kRogue in forum OpenGL: General
    Replies: 3
    Last Post: 07-19-2009, 01:57 PM
  5. Selecting/Picking and Non-Opaque Objects
    By Zed Gimbal in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-20-2009, 09:02 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