Thread: Rain/snow Effect for graphics

  1. #1
    Joseph DiPerla

    Cool Rain/snow Effect for graphics

    I have an image of a bitmap displayed on screen, I would like to add raining falling down on the screen. Also I would like another image to have snow falling.

    Can anyone help me?


  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    You cannot display graphics to the console. What API are you using to draw the graphics?
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    transparent bitmap for rain/snow.
    blit across screen buffer in a loop
    blit across back buffer 1 or 2pixels down in a similar loop
    swop buffers

    you could do this in a separate worker thread and when you want the weather effect to stop,kill the thread.But that would be a fair amount of work coordinating the drawing because other threads will want to write to the same buffers.Sounds like fun eh?
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C Type Writer Effect help please.
    By Fujitaka in forum C Programming
    Replies: 6
    Last Post: 02-01-2009, 10:11 AM
  2. New cloud effect for engine
    By VirtualAce in forum Game Programming
    Replies: 17
    Last Post: 02-08-2005, 03:23 AM
  3. How your grades effect your income
    By LuckY in forum A Brief History of
    Replies: 18
    Last Post: 12-09-2004, 05:31 PM
  4. operator has no effect ??
    By studentc in forum C Programming
    Replies: 3
    Last Post: 05-28-2004, 07:28 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM