Results 1 to 6 of 6

Thread: Fading out a line

  1. #1
    Guest

    Fading out a line

    Hi,

    Quick question. I've got a stippled line and am trying to make it so it fades out (so alpha is 1 at one end and 0 at the other). Is there a nice easy way of doing this?

    TIA,
    David

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    469

    Re: Fading out a line

    Setting a different alpha value at each vertex?

  3. #3
    Guest

    Re: Fading out a line

    No that just seems to make the whole thing transparent (when one vertex A=1.0, the second A=0.0). Btw Im using (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) as by glBlend arguments.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Mar 2001
    Posts
    469

    Re: Fading out a line

    Do you have smooth shading enabled?

  5. #5
    Guest

    Re: Fading out a line

    Yep I do.

  6. #6
    Guest

    Re: Fading out a line

    Ah no I dont, I thought I'd done so but it wasn't in my code when I checked.

    Thanks for the help!.

Similar Threads

  1. fading problem
    By Tycho in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-15-2009, 07:40 AM
  2. Fading
    By Asshen in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-26-2004, 06:27 AM
  3. Fading from one scene to another
    By John Kooistra in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 04-22-2004, 10:22 AM
  4. Polygons fading away
    By Jmoses in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 04-01-2002, 03:11 PM
  5. Fading in OpenGL
    By It's a kind of magic! in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 02-27-2001, 06:33 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