Results 1 to 2 of 2

Thread: Transparency (Depth) Coloring & Concave Forms

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001
    Location
    Ra'anana, Israel
    Posts
    3

    Transparency (Depth) Coloring & Concave Forms

    I am having problems coloring concave forms (a star for example) with transparent colors.
    The regular color functions do not apply to concave forms when trying to use transparent colors.

    Any suggestions ?

    Thanks,

    Ofer

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Transparency (Depth) Coloring & Concave Forms

    I'm not sure I understand what you mean by concave forms. Do you mean concave polygons? Concave polygons aren't guaranteed to be rendered correctly. You should break them up into convex polygons, or better yet, triangles.

    So far as transparent colors, do you mean alpha blending? OpenGL doesn't specify a particular color as a "transparency color" the same way something like a GIF file does. You have to use an alpha component and enable blending by doing something like so...

    glEnable(GL_BLEND);
    glBlendFunc(GL_SRC_ALPHA, GL_SRC_ONE_MINUS_ALPHA);

    (Edit note: oops... forgot to write the doesn't above )



    [This message has been edited by Deiussum (edited 03-15-2001).]
    Deiussum
    Software Engineer and OpenGL enthusiast

Similar Threads

  1. Transparency & depth
    By knight666 in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 06-26-2012, 06:56 AM
  2. transparency and depth
    By mrgasparov in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-01-2005, 12:05 PM
  3. Transparency Coloring & Concave Forms
    By ofer_bz in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-15-2001, 06:14 AM
  4. Transparency (Depth) Coloring & Concave Forms
    By ofer_bz in forum OpenGL: General
    Replies: 0
    Last Post: 03-15-2001, 01:06 AM
  5. Transparency and the depth buffer
    By nickL in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 06-01-2000, 03:41 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