Results 1 to 7 of 7

Thread: fadeout realtime (without dx)---RE-ASKED

  1. #1

    Thread Starter
    Member anjulpa's Avatar
    Join Date
    Aug 2001
    Location
    india
    Posts
    43

    fadeout realtime (without dx)---RE-ASKED

    can anyone tell me a way to make a bitmap to fade into another one in real time without using Dx ?? assuming the bitmap is fullscreen and i want the fade to take place within 2 sec


    OK guys, now tell me how to do it in Dx
    Last edited by anjulpa; Jan 24th, 2003 at 09:06 PM.

    ppl saw this
    Die, ***** Die !

  2. #2
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    It is impossible to do in realtime, unless you use raw assembly.

    Z.

  3. #3
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    anjulpa, your counters that apears in all your posts are loaded 3 times, making them count too much
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

  4. #4

    Thread Starter
    Member anjulpa's Avatar
    Join Date
    Aug 2001
    Location
    india
    Posts
    43
    Tell Me How to do it in directx
    tell it in anyone of directx 7 and directx 8, i can work with anyone as long as it works
    Last edited by anjulpa; Jan 24th, 2003 at 09:08 PM.

    ppl saw this
    Die, ***** Die !

  5. #5

    Thread Starter
    Member anjulpa's Avatar
    Join Date
    Aug 2001
    Location
    india
    Posts
    43
    PLZ DX

    ppl saw this
    Die, ***** Die !

  6. #6
    Frenzied Member Zaei's Avatar
    Join Date
    Jul 2002
    Location
    My own little world...
    Posts
    1,710
    In Direct3D(DX8), the easiest way I can think of is to draw a large rectangle over the whole screen, colored black, with an alpha color of 0..1, where 0 is no darkening, 1 is full black.

    Z.

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    If you want to fade out, that is. If you want to cross-fade you should take one quad textured with the first image and another textured with the second image. Have the alpha of the first at 1.0 and of the second at 0.0. For the fade you simply slowly increase the second to 1.0 while at the same decreasing the first to 0.0.

    Btw you can try the same thing without DX using AlphaBlend, but there's a good chance it won't be fast enough. And it is only supported from Win2k and Win98 upwards, no WinNT or Win95.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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