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 / particle question

Author
Message
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 6th May 2004 20:18 Edited at: 6th May 2004 23:48
is it posible to set an angle range for the particles, i don't mean rotate the way it's firing, i mean so they don't fire straight out, i want to make them more of a disc than a fountain so i want them to fly out sidewards but not up
any ideas?

http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 7th May 2004 01:14
oh well since noone has answered i've done it bu making 6 particle emiters facing in a circe to priduce a disk effect like that> *

http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
guru of boredom
21
Years of Service
User Offline
Joined: 12th Oct 2003
Location: middle of no where
Posted: 7th May 2004 08:17
could maybe set the gravity really high so they fall back to the ground plane really fast. not sure how well it will work but maybe worth a try

we are not outnumbered! we are just in a target rich enviroment!
P4 2.4 ghz 120 GB 256 mb GeForce4
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 7th May 2004 12:18
you would want to disable gravity i think, and just give each particle a lifespan or max distance from emitter. Create your own particle engine. details on that can be found in my tutorial here.

http://www.dbspot.com/krytek/darkbasic_tutorials/tutorials_particles.htm

"eureka" - Archimedes
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 8th May 2004 03:18
i don't think you quite understand Phaelax and guru, i tried that before, it doesn't work.
i'll show you what i mean, run this code:


the disk from the centre is what i was asking for but i ended up used 12 particle emitters, 6 of each colour.
looks good though so no need to post but if you know a better way please let me know

http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
Wooly Lamb
21
Years of Service
User Offline
Joined: 7th Apr 2004
Location:
Posted: 8th May 2004 03:38 Edited at: 8th May 2004 03:39
Make your own particle engine following Phaelax's tutorial, but do not use y displacement. That way the particles will not shoot up, rather just go sideways.

[edit] It'd be lot better FPS-wise.

By the way, your particle demo looks wonderful though.
mm0zct
21
Years of Service
User Offline
Joined: 18th Nov 2003
Location: scotland-uk
Posted: 8th May 2004 23:44
thanks for the tip Krusade but i was trying to just use direct x particles, the fps should be stable at around 30 on the code i posted (as the "sync rate 30" should limit it to that) i did that as i wanted a constant, smooth frame rate because it is as a screensaver (although i know it will burn a big hole in the phosphorus paint in the centre of my screen)
all i needed was for it too look cool, and it does.

http://www.larinar.tk
AMD athlon thoroughbred 2200, 512Mb ram, 40Gb HD, ati saphire radeon 9600 atlantis w/128mb ddr ram, good creative-labs soundcard, cd-rw + dvd drives.
Ideajuice
21
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Cyberspace.. out near the edge
Posted: 9th May 2004 06:10 Edited at: 9th May 2004 06:11
Hahahah...

The Microsoft SDK documentation for writing screen savers starts out by saying:

Quote: "Let's face it.. most screen savers are really screen burners."


LCD screens are here to stay. They don't suffer as much from that problem anyway.

E Unibus Plurum

Login to post a reply

Server time is: 2025-06-09 04:23:35
Your offset time is: 2025-06-09 04:23:35