Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: blend prob

  1. #1

    blend prob

    im making a 3d pong game... and so i made a cube stretched on the z axis with textures on each side, i blended the textures so you can see inside but some of the faces were only blending on one side!!!!! please help me!
    Programming makes my head burn.

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

    Re: blend prob

    Have you tryed with

    glFrontFace() ?

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

    Re: blend prob

    Two things,

    1) Face winding is important (vertex order clockwise vs counter clockwise) see previous post. Face culling will eliminate some faces based on face winding, this is known as back face culling or front face culling. This can be disabled.

    2) Blended transparency does not play nicely with the zbuffer. You need to sort transparent faces or at least draw transparent stuff last and turn off depth writes when drawing transparent stuff.

    [This message has been edited by dorbie (edited 06-25-2003).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •