Results 1 to 6 of 6

Thread: How can I fade?

  1. #1
    KRONOS
    Guest

    How can I fade?

    ok, this will sound kind of idiotic, but:
    how can I fade to black? or from wihte to the scene?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: How can I fade?

    Easiest way would be to simply draw an alpha blended quad over the full scene and vary the alpha value with time. Use a black quad and increase alpha with time to fade to black. Use a white quad and decrease alpha with time to fade from white.


    [This message has been edited by DFrey (edited 06-15-2000).]

  3. #3
    Junior Member Newbie
    Join Date
    May 2000
    Location
    cologne/germany
    Posts
    24

    Re: How can I fade?

    yeah

  4. #4
    KRONOS
    Guest

    Re: How can I fade?

    isn't that kind of slow?
    I was thinking something like changing the RGB mask of the window we where drawing to...

  5. #5
    Senior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    235

    Re: How can I fade?

    If you draw the quad over the scene with multitexturing you should not loose any time at all.Without multitexturing youŽll need the time for the additional pass(makes no real difference,if you only draw ONE quad).But does speed matter in this case?
    If you use it to fade in a new level of a game or something you donŽt need max framerate in this timeframe,I think.

    Greets,XBTC!

  6. #6
    Junior Member Newbie
    Join Date
    Jun 2000
    Posts
    21

    Re: How can I fade?

    If you have lighting enabled, there's another
    nice (?) way to fade to black...just slide down the intensity of the light sources and the ambient light.

Similar Threads

  1. Fade-in effect
    By PrestoChung in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-14-2011, 04:52 AM
  2. I dont get it (fade-in/fade-out)
    By GL_ZERO in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 08-18-2003, 10:01 AM
  3. How to program fade-in / fade-out effect like movie in OpenGL
    By mdive in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 08-13-2003, 07:01 PM
  4. blending + fade
    By dcd in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 09-03-2002, 01:13 PM
  5. How can I write a Fade In and Fade Out Effect by OpenGL ?
    By quangkid in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 07-20-2002, 07:12 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