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.

The 20 Line Challenge / Particle Effect Generator (DBC only + No Media)

Author
Message
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 10th Aug 2003 18:28 Edited at: 6th Sep 2003 15:49
A particle effect generator (duh).

You can make various different effects using it, smoke, fire, mist, water, sparks, etc.

It includes an editor, 3 premade particle effects and a load and save particle effect option.

Instuctions in the code.

Version 2
The save files from the two versions are not compatable. I will make a convertor if anyone wants one.


Version 1 (Below, source button)

Here are some extra effect files, zipped for convenience...

http://members.lycos.co.uk/dbasic/effects.htm

And screens of the generator. 3 of the effects are built in...






Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Hell IVIonkey
21
Years of Service
User Offline
Joined: 1st Apr 2003
Location: Outer Limits
Posted: 11th Aug 2003 00:54
That's quite an impressive demo! Keep up the good work!

ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 11th Aug 2003 10:50
thats really good

I have a website!!!
So go there: http://www.freewebs.com/darkb/index.htm
on second thought you probably shouldn't
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 12th Aug 2003 16:22
New version made (see top). It includes more variables...

You can control the images dimensions separately.
You can have uniform start size and scale speed randomness.
You can deploy more than 1 particle at a time.
You can space out deployments evenly.
You can have rise speed randomness.

I will shortly be uploading more example files in the form of external media. They will be optional, but if you're interested you can dl them.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 12th Aug 2003 16:43
when you save, is it just an array?

I have a website!!!
So go there: http://www.freewebs.com/darkb/index.htm
on second thought you probably shouldn't
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 12th Aug 2003 16:52
Yeah, but I switched round some of the values (eg. array(1) is now array(3)). You could load them but you'd get all the values in thw wrong places.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
ClearCoder
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 12th Aug 2003 18:53
this great you can make some amazing effects with this

hamish could you make a small function so that we and stick it in our programes and then load an array your program made. you'd only need a setup and a run function.
cheers
clear coder

Newbie Now; Expert Later
Current project:The Sorus
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 12th Aug 2003 20:14
The effects are 2D (actually the are slightly 3D, but you can't edit the effect along 3 axis'), so you would have to edit the code if you wanted them to be truely 3D. Also, lighting is essential since I am using 0 ambient light (for the fading to invisible effect). This means that at certain camera angles the particles dissappear for some reason. I think lighting can fix this.

I will do that and post again when I have finished. Thanks for the idea

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
ClearCoder
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 12th Aug 2003 20:28
for the probs
ture 3d: all you need to do is add a bit to the running code making sure the partiles alway face the camera then you will only be able to view them form one angle
light: you have to make the object not senseitve to amibent using the set object command

all you really need in the setup function parameters is the file name and the x,y,z coordinates for where the effect should be positioned

Newbie Now; Expert Later
Current project:The Sorus
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 12th Aug 2003 21:47
Real 3D: Yup, thats what I'm doing. What I meant by true 3d is the particles moving in all 3 dimensions, rather than the two at the moment.

Light: No, that doesn't work, there is no ambient light with it set to 0 so how can turning it's sensitivity to it off help? You need positioned lighting to make it work.

cuRant PRogekt: a three-de map editer
Why the hell'd you ask me for crying out loud!?!
Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
ClearCoder
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: United Kingdom
Posted: 13th Aug 2003 02:41
okay
hmm as for 3d stuff doing what you are doing i thought of doing it as an + but always facing would be better

Newbie Now; Expert Later
Current project:The Sorus
WarHunterX
21
Years of Service
User Offline
Joined: 25th Mar 2003
Location:
Posted: 13th Aug 2003 06:37
very cool effects

Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 2nd Sep 2003 18:54
OK, I'm back after 2 weeks on holiday and I haven't got 1 more reply . Oh well, I guess I'll have to try harder.

ClearCoder... I don't think these particle effects will translate very well to 3D as I made them originally to be 2D (just as good looking, but leaves space for more options). I am going to soon post up some saved effects (I have a really cool blazing fire effect) for all to see. May as well provide some screens to tempt people .

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 3rd Sep 2003 23:18
lol good idea, i love screenies


kenmo
22
Years of Service
User Offline
Joined: 7th Sep 2002
Location:
Posted: 4th Sep 2003 04:47 Edited at: 27th Jun 2012 06:09
DUDE. Screw the 20 liner, grab a few of RobK's dlls, and turn that thing into a full application! Its awesome, especially the smoke!
kenmo
22
Years of Service
User Offline
Joined: 7th Sep 2002
Location:
Posted: 5th Sep 2003 04:34 Edited at: 27th Jun 2012 06:09
Hey, I just worked your saved files into my current FPS, and it works, but I cant keep it for two reasons - really slows it down, and causes graphics problems because of all the ghosted objects.

FPSs with fire and spark particle effects are good though!
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 5th Sep 2003 19:47
There are many ways to get it to speed up...

1. Use less particles, it may not look as good but for a game you'd never use as many as 100 for a simple smoke effect (well not with DBC anyway )

2. Use lower resolution textures, some of the effects that I made use high res textures.

3. Turn ghost off in the code in your FPS, although that may make the effects look quite crap.

But overall you're probably better looking at my program and making your own particle effects with ideas from it. I never really made this to be a particle effect generator for games, just a demo.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
kenmo
22
Years of Service
User Offline
Joined: 7th Sep 2002
Location:
Posted: 6th Sep 2003 00:44 Edited at: 27th Jun 2012 06:10
Yeah, I know, but you can make some cool stuff with it so I figured I'd try it out in a game. And somehow I got it to work. (I even made your code easier to read so I could undestand it)
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 6th Sep 2003 02:36
Screens and Files up top .

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
kenmo
22
Years of Service
User Offline
Joined: 7th Sep 2002
Location:
Posted: 6th Sep 2003 04:05 Edited at: 27th Jun 2012 06:10
Cool. One piece of advice, if you experience weird looking (and hard to describe) spots in or around em, set the display depth to 32 bit to fix it. I did.
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 6th Sep 2003 15:39 Edited at: 6th Sep 2003 15:48
You mean like purple haze? Thanks.

New 32bit code up top.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Inkybro
21
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Where I live :)
Posted: 7th Sep 2003 06:51
I'm feeling helpful tonight so I made the code easier to read and added a quit feature I also removed the little built in smoke and fire and stuff, looks nicer.

Please remember, Hamish, I am not trying to offend you or steal your code in anyway, so please do not get angry for me messing with it

Hey, Hamish, dude... freaking make it a nice program, forgot 20 lines as the other guy said, this deserves to be nice... in fact I'd pay you a few ($3.00) bucks for it.

If you did this I'd personally make a new nicer looking and better working version, release it for free, and then do a professional version and ell it for $5.00 or whatever

Who would also pay to see a super nice, more professional, more features version of this?

Yeah, he was all like: "If you_hate_your_sister$=1 then goto Kill_Sister." Yeah... okay I was lying
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 7th Sep 2003 12:23
if you could export them into games easily, maybe like load_particle("filename") then it would be very useful


Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 7th Sep 2003 15:20
I guess I could try and experiment with making this into a full app. I sounds like a pretty cool idea. For DBC it'd take more than "load particle("filename")" cos you'd also have to have a function in the main code to update the particles, and one to delete them, move them, etc.

Quote: "If you did this I'd personally make a new nicer looking and better working version, release it for free, and then do a professional version and sell it for $5.00 or whatever"


What do you mean? I sell this to you, then you make it better? To be honest you're better off starting from scratch, you could add more features and make the code neater.

But if you want the code I'm not gonna charge you for it (well maybe if you we're offering $100 I would ), you can have it for free and do whatever you want to it , just make sure you say the original code was mine (still I think you're better off starting from scratch).

Thanks for simplifying the code, although I think it got mucked up on transfer. You'd better check it.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
Inkybro
21
Years of Service
User Offline
Joined: 31st Dec 2002
Location: Where I live :)
Posted: 7th Sep 2003 18:50
Yeah, I meant YOU should make the code a full nice app, add some better features, and sell the application for around $5.00

Yeah, he was all like: "If you_hate_your_sister$=1 then goto Kill_Sister." Yeah... okay I was lying
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 7th Sep 2003 19:59
OK, I see now . I read it wrong. I think I will do that, but it'll probably be freeware, I don't like to charge for stuff.

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM
kenmo
22
Years of Service
User Offline
Joined: 7th Sep 2002
Location:
Posted: 7th Sep 2003 21:51 Edited at: 27th Jun 2012 06:10
These are the functions I made to use the effects in my game. I didn't make a delete_particles() function though, if anyone needs one I could make one. Also, I only made it so you can have 31, but if for some reason that isn't enough, it can be easily changed.
Red general
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: United Kingdom
Posted: 11th Sep 2003 15:09
Is there a dbpro version coming out ? or does it work with both

My computer melts regulary - perhaps it likes being fondue
Hamish McHaggis
21
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 11th Sep 2003 18:18
There is no DBPro version planned, but you could always try yourself .

Brains are for idiots.

Athelon XP 1400 Plus - Nvidia Geforce MX400 - 256mb RAM

Login to post a reply

Server time is: 2024-11-24 02:06:25
Your offset time is: 2024-11-24 02:06:25