I've been working on a project that needs a way to draw rain. I've tried to use particles but the particle system doesn't seem to be made for "rain" particles or i am just bad.
My request: Could you guys tell me ways to simulate rain(without collision and or anything) just a way to draw rain particles? Thank you!
You could cheat by using an image (a rain texture) with a mesh; each update, modifying the texture position, so it looks like it's falling; I'll create a demo thing in a jiffy
Edit: Attached. Press space to make it REAL intense, and escape exits (if you'd want to test it on android)
Edit2: Uploaded a new version, just to be sure, it checks both keycode and scancode for escape and space, maybe it will work for you now, Bobby
Last edited by zorg on Fri Feb 19, 2016 5:22 pm, edited 1 time in total.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
I take it my solution won't/didn't work for you then?
Last edited by zorg on Sat Feb 20, 2016 11:57 am, edited 1 time in total.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
I take it my solution won't/didn't work for you then?
Your solution is really close.. The reason i want to stick to the particles is that I could use a "wind" parameter to adjust the path of a rain drop mid-game and smooth.. does that make sense?
Sosolol261 wrote:No i mean ingame rain that actually falls down
I take it my solution won't/didn't work for you then?
Your solution is really close.. The reason i want to stick to the particles is that I could use a "wind" parameter to adjust the path of a rain drop mid-game and smooth.. does that make sense?
If you look at my code, you'll see that if you press space, the game draws a second instance of the rain mesh, and it modifies the uv (texture) coordinates in such a way, that it will be acting like the wind is indeed modifying the angle with which it's falling. In your case, the wind parameter could be just the horizontal displacement value, and making that random (smoothed in a way) could definitely work imo.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.