Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Help with particles and rain effects please

Author
Message
Guruchild
23
Years of Service
User Offline
Joined: 13th May 2003
Location: United States
Posted: 23rd May 2003 22:39
I want to create some rain for a game scene, I have the rolling clouds and play area shaping up nicely, but the rain is escaping me. See the screen shot (if it works). This is a shot from the game area.

I decided to try using a particle effect to achieve this result, and after fiddling with particle settings I can't achieve anything remotely desirable with particles. I even started a test project just for the purpose of learning how the particle commands work and I couldn't make anything decent at all, let alone particles that simulate rain.

If anyone has had good experience with particle systems or knows how I could achieve a rain effect in a relatively small game area, please help. I'm getting nowhere. Screen and current example code I'm using is below.

Amadeus
23
Years of Service
User Offline
Joined: 20th Apr 2003
Location: United States
Posted: 23rd May 2003 22:48
check the code snipets forum, it has a rain example, plus a bunch of extras to that snipet that others have contributed. For particles, check out some of the DB tutorials and figure out how they work them first.

Life is a tale told by an idoit, full of sound and fury, signifying nothing. - MacBeth
Guruchild
23
Years of Service
User Offline
Joined: 13th May 2003
Location: United States
Posted: 23rd May 2003 23:21
None of those snippets worked. I'm using DBPRO.

I have read all the tutorials and I have an idea how particles are supposed to work however they don't. That's my problem. I need a good example of this effect for DBPRO.

Scorpyo
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 23rd May 2003 23:24
there s a snow particle example in the helps...did you try it.you could change the snow crystals to drops
Guruchild
23
Years of Service
User Offline
Joined: 13th May 2003
Location: United States
Posted: 23rd May 2003 23:38
That didn't work. I need help from someone who has specifically used particles to create a rain effect that worked in darkbasic pro. Or created a rain effect that works, period.

Scorpyo
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 24th May 2003 00:06
here s a discussion about this topic..you may get some hints
http://www.realgametools.net/forums/index.php?board=3;action=display;threadid=15139
The Darthster
23
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 24th May 2003 01:12
I've attempted a localised rain effect using particles, but it doesn't look very good. The main problem is that you can't limit the horizontal velocity of the particles. Here's the code anyway:



Once I was but the learner,
now, I am the Master.
The admiral
23
Years of Service
User Offline
Joined: 29th Aug 2002
Location:
Posted: 24th May 2003 02:31
Just fiddle around with the particles settings and youll get the desired effect.

[href]www.vapournet.com/~flyer[/href]
Guruchild
23
Years of Service
User Offline
Joined: 13th May 2003
Location: United States
Posted: 24th May 2003 08:30
Darthster, while I am moderately intoxicated at the moment, I wish to thank you because this is the best example of the code I am seeking that I have seen as of yet. At least it works I have decided to cut out the rain because my game will story will be: you are going to hell and to determine your place you must challenge other players/ monsters on the given gaming environment. Since rain is a sign of life and rebirth I decided to cut it out (also because I'm sure this particle effect would introduce a hit on the FPS).

But thank you for your contribution, perhaps it will help others.

Login to post a reply

Server time is: 2026-07-11 12:19:22
Your offset time is: 2026-07-11 12:19:22