Results 1 to 3 of 3

Thread: Fade in/Fade out

  1. #1

    Thread Starter
    Lively Member Yok's Avatar
    Join Date
    Feb 2001
    Location
    Guangzhou,China
    Posts
    72
    How can I make the screen or a picture fade in/fade out with DirectX?

  2. #2
    pjvdg
    Guest
    It shouldn't be so difficult to write it....

    Just draw a small black(if your fading to black) surface(5*5) for every X pixels.

    Put this in a loop and then make sure that the size of X gets smaller every time you run it.

    (Just an idea on doing it).

  3. #3
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Or you can use the much faster gamma ramp controls to adjust the main surface's gamma values... the only requirement is that the end user has a video card which supports it, but all modern 3D cards do... this also allows you to do effects like when you're shot in a 3D shooter (red screen)...

    There's an example at http://www.vbexplorer.com/directx4vb/
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width