Results 1 to 3 of 3

Thread: What is easiest way to get transparent color?

  1. #1
    Member Newbie
    Join Date
    Aug 2003
    Posts
    38

    What is easiest way to get transparent color?

    I'll be thankfull for advice in following:

    I draw a 3d city scene.Now I need to draw
    some light colored ( 4-5 pixels in width) lines through all the scene.I need the lines
    to be transparent(that I can see what is under them).
    What is the recommended way to do it?
    At all - I need some information about doing
    transparency (without textures).

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: What is easiest way to get transparent color?

    You enable transparency with:
    glEnable( GL_BLEND);
    use glColor4f( r, g, b, t); // t=opacity
    to set the color and transparency and
    disable lighting, this is the easiest way.

    The only thing you need to handle is that you should draw all non transparent items first and all transparent stuff at the end.

    Mikael



    [This message has been edited by mikael_aronsson (edited 10-28-2003).]

  3. #3
    Member Newbie
    Join Date
    Aug 2003
    Posts
    38

    Re: What is easiest way to get transparent color?

    Great,Thanks.

Similar Threads

  1. texture with transparent color?
    By bansheeogl in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-16-2005, 08:56 AM
  2. Make color transparent
    By Hylke Donker in forum OpenGL: Basic Coding
    Replies: 9
    Last Post: 03-23-2005, 06:44 AM
  3. transparent color problem
    By fodder in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-09-2004, 11:32 AM
  4. transparent color into Bitmap
    By ijonesfr in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 05-21-2003, 12:48 PM
  5. transparent color
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-02-2003, 06:05 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