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
    Senior Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    477

    Re: blend prob

    Have you tryed with

    glFrontFace() ?

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

    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).]

Similar Threads

  1. Prob with cam
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-17-2004, 11:41 AM
  2. BIG PROB
    By in forum OpenGL: User Software
    Replies: 2
    Last Post: 10-22-2003, 11:46 PM
  3. Got a prob
    By JediFan89 in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-29-2002, 05:25 AM
  4. 2d prob
    By Nial in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 03-26-2002, 01:00 AM
  5. OpenGL && MFC??? glReadPixels prob... || GL_SELECT prob
    By Jestor in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-17-2001, 09:14 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