Rain/snow Effect for graphics

This is a discussion on Rain/snow Effect for graphics within the C++ Programming forums, part of the General Programming Boards category; I have an image of a bitmap displayed on screen, I would like to add raining falling down on the ...

  1. #1
    Joseph DiPerla
    Guest

    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?

    Joseph

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    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
    Posts
    2,572
    transparent bitmap for rain/snow.
    loop
    {
    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 :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

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 Cprogramming.com
    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, 08:28 AM
  5. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21