Is there anyway to make....

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Nvisiongameco
Posts: 11
Joined: Mon Sep 29, 2008 4:31 pm

Is there anyway to make....

Post by Nvisiongameco »

Is there anyway of making realistic rain on the camera lens? Like, when you are running about in a stormy level, and you get a splashes of rain on the camera that slides down. Now, if it is possible in this engine, does the first step equal making a bitmap of rain?
Ion Dune
Posts: 453
Joined: Mon Nov 12, 2007 8:29 pm
Location: California, USA
Contact:

Post by Ion Dune »

You could use this and parent it to the camera, or else modify the source to better suit your purposes.
fuego2008
Posts: 22
Joined: Wed Sep 24, 2008 7:26 pm

Post by fuego2008 »

If your camera won't move, you can get a screenshot from your scene, create rain drop effects in the fixed regions of your image in photoshop and then fade it in and out as an image in your scene. This wouldn't be a practical solution, but may be useful in some cases.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

shaders are the best way to do it really, basically you'll want to render to a texture and then do refraction based on a normal map you build up of raindrops running over the camera lens. How you'd make that normal map i don't really know... it would have to be randomly generated in realtime somehow... i'm sure if you google it you'll find some good tutorials about how to do this sort of thing.
Image Image Image
Post Reply