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.

DLL Talk / Zparticle source code

Author
Message
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 6th Sep 2010 22:36 Edited at: 8th Sep 2010 15:41
Thanx to chuck.chuck i found it. Can someone lock this thread please? Thanx
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 10th Sep 2010 00:52
No sharing the source code?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 10th Sep 2010 08:34
You want the source code too?
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 19th Sep 2010 06:58
@ TRIGEN48,

Not really.... I remember this excellent plugin. Unfortunately it has a bit of a flaw in that you could only use camera 0...

If someone else had the source code and made it work fully under any camera id that would be superb...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 19th Sep 2010 08:50 Edited at: 19th Sep 2010 08:51
I think i'll carry the zparticle legacy on by updating it. If you can give me the list of it's flaws ill work on it as soon as possible. You can also give me a list of what you want to see in zparticle.
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 19th Sep 2010 19:17
@ Trigen48,

Here is the link to the 'multi cam' problem:-

http://forum.thegamecreators.com/?m=forum_view&t=153897&b=18

Better help files?

Aside from that, you might want to dust off the particle editor GUI that came with it.

And perhaps more tied to object surface/terrain height stuff?

Good luck! I will follow the thread closely.

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 19th Sep 2010 19:43
Ok done. I'll post an update on friday.
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 19th Sep 2010 21:38 Edited at: 19th Sep 2010 21:42
LOL, I should have asked you to achieve World Peace...

Top man, top man.

[edit]

reading some of the original threads it seems the multi cam thing was to do with zdepth - and zerk couldnt find a way of doing it on multiple cameras without serious drop in speed?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 19th Sep 2010 23:55 Edited at: 20th Sep 2010 00:02
Hmm well i think i will just have to try my best to figure that out. Lol world peace would be nice lol. I think i should write another particle engine that would be better than zparticle.
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 20th Sep 2010 22:26
@ TRIGEN48,

Verging here very closely on shaders - but a 'lightning' and a 'sparks' type particles would be damn handy as well...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 21st Sep 2010 00:36 Edited at: 21st Sep 2010 00:38
I'll keep that in mind. Thanks. Oh and what other particle examples would people like? And also what sample projects would they like?
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 21st Sep 2010 01:33
I suspect the wishlist would include the usuals (non comprehensive!):-

- sleet/rain?
- realistic snow
- ice drop
- leaves, windblown
- smoke, various
- noxious fumes
- 'water type surface' particles
- water hose/hydrant
- water fountain
- waterfall
- water drop / ripple like particles
- sparks off an anvil
- explosions, various
- shattering - glass,wood
- sparks, lightning
- fire, various ie. torch, candle, hearth, campfire
- mystical / glow
- rocket / afterburner

etc etc etc

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 21st Sep 2010 11:35 Edited at: 21st Sep 2010 11:38
I was just thinking, what if you can create a particle by category
e.g. Zp Create Fumes Emitter 1,”Smoke”, 0, 0, 0 <- this would be separate from other particle types
because you can do this: Zp Create Fumes Emitter 1,”Smoke”, 0, 0, 0 and
Zp Create Liquids emitter 1,”water fountain”, 0, 0, 0 <- without a clash of particles;
Than you have to update that category:
Zp Update Liquids;
Zp Update Fumes;
But you can’t do this!!!
Zp Create Fumes Emitter 1,”Smoke”, 0, 0, 0 \
Zp Create Fumes Emitter 1,”toxin”, 0, 0, 0 / major clash!
Create By Category
Fumes: Fumes e.g. toxin, gas, steam, smoke.
Liquids: water related e.g. water drop, flowing water.
Sky Entity: lighting, clouds(able to change cloud type), meteors, rain.
Flames: simple flame, blaze, fire spread (fire keeps expanding and moving), fire explosion.
Earth: dust, leaves blown off, sand storm, explosion.
Wind: tornado, hurricane, fire tornado (lol don’t ask).
Ice: snow, blizzard, ice drop.
Magic: mystic glow, power ball, portals, and so on
The rest you can give me more lists;
This is just an idea. Oh and the multicam problem might take time to fix.[b][/u][u][/u][u][u]
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 21st Sep 2010 21:33
@ TRIGEN48,

The clouds particles are intriguing...

Just a ZP Update command covering all types of emitters?

Tying emitters to limbs/objects?

Particles across surfaces of objects? (reading the surface of the object)?

Earth: unearthing - earth coming out of the ground in a mound?

Ghosting of particles? Setting Alpha Level?

Adding effect of, in effect, a direction wind (strength, direction) on particles/emitters?

just some ideas

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 21st Sep 2010 23:39 Edited at: 23rd Sep 2010 22:10
Great idea. I already started on the clouds part. Can someone please give me the multicam prob example. Just an dbp example. Thanx
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 24th Sep 2010 01:55
@ TRIGEN48,

The best I can do is point you to that link above. Also try switching to a different camera and moving around ZParticles and see what happens...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 27th Sep 2010 12:17
Sorry for taking my time. I created a cloud example, but the cloud result the application to run slower when you get close to the cloud. The mystic glow was easy. Ill post some of the effects later.
Wilf
Valued Member
13
Years of Service
User Offline
Joined: 1st Jun 2006
Location: Doha, Qatar
Posted: 22nd Oct 2010 12:03
Hi Trigen, any updates on this?
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 22nd Oct 2010 13:32 Edited at: 22nd Oct 2010 13:34
Sorry i forgot to post the updates. I'll upload the effects. Asap. But i did attened to the zparticle dll. I noticed that it runs pretty slow. I'll try other techniques on how to render the effects.
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 23rd Oct 2010 11:09
@ TRIGEN48,

That's good to hear. Have you overhauled to .dll to speed it up?

Have you found a work around or solution re the camera number problem with the original zparticle?

Cant wait to see some of the effects you've done too...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 23rd Oct 2010 22:21 Edited at: 23rd Oct 2010 22:35
Here is a starter effect. I attached it. I'll update the effect soon. The documentation is nearly complete.And no i haven't found the solution to the camera problem yet. I Am still testing out the new Zparticle.dll i made. Hopefully i might release it soon.

Attachments

Login to view attachments
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 24th Oct 2010 13:06
@ TRIGEN48,

They are really good. Good luck with the speed enhancements and the thorny camera problem...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 30th Oct 2010 11:04
Sorry for taking this long. I am writing my finals until the 19th of november. I am out of action till than sadly.
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 12th Dec 2010 23:49
@ TRIGEN48,

Any further progress? (and hope your exams went well!)

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 13th Dec 2010 10:37 Edited at: 13th Dec 2010 11:39
Sorry dudes it's been crazy this side. Anyway i managed to change some aspects of the particle engine. Like rotation on the x , y and z axis. Although it keeps crashing wen it renders the 30th particle
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 7th Feb 2011 13:10
Mess @ TRIGEN48

I posted a message in this forum few days ago regarding a problem with the ZParticles DLL...

Do you find any fix for the camera problem ?
Should this problem is the same as the particles always drawned in front of other objects in the scene ?

Hope you can reply about that !
Thanx !
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 7th Feb 2011 18:40 Edited at: 7th Feb 2011 18:59
.
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 7th Feb 2011 18:46
@ mariokiki . The further i pursue that problem i ended up lost. My only option is to recreate a newer zparticle dll. Entirely from the ground up. Because it will make it easier for me to upgrade and fix bugs, rather than having to try and find a mistake in another persons work. I am looking for people that can help. I am also looking at effective particle collisons and fast rendering techniques. Anyone who wants to join the new zparitcle dev, you know how to contact me. Until then i will continue with the new zparticle dll. Any other bugs u find with the old zparticle dll please foward them to me.
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 7th Feb 2011 19:39
@ TRIGEN48,

First, thanx for your prompt reply !

I would love to help you in your research, but my programming skills stop what I know in DarkBasic Pro (I know nothing about C + + or C #)

But I'm interested if you can find a way to operate this DLL ... or if you can rebuild one by yourself...

In my case, ZParticle works fine apart from the problem of the front positioning with other objects on the screen...

Just a hint: this only occurs when using the "LOCK OBJECT ON" command on another object in the scene.

when I don't use this command, it's OK to display the FX created in the correct order but in this case (if I can't lock objects in my program) how to create a HUD ?

The mix of "Sprites" and 3D environment is not recommended!

Any suggestion ?

PS : I sent an email to your personal address for that this afternoon... Sorry for the inconvenience
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 7th Feb 2011 22:11
@ mariokiki. Yes i did recieve your email. Though it was in french. I could make out specific words. Also thanx for the screen shots they proved to be very usefull.
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 7th Feb 2011 23:12
@ TRIGEN48

Oops, sorry!

I thought you were French!

Nobody's perfect ! (I'm joking, of course !)

TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 8th Feb 2011 08:43
@mariokiki. Can you make a sample dbp project. So that i can be able to see the problem in your perspective. Oh and i'll need the source too. Thank you.
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 8th Feb 2011 12:58
Nice TRIGEN48 !

I'll try to take time in the evening to prepare you a sample file with the problem I found.

For detail, I use the default camera (camera 0) and some PLAN objects I freeze on the screen (with LOCK OBJECT ON) to make the HUD.

This is where the problem occurs between the object "FX" and locked objects on the screen... then the object "FX" is always in first position ahead of all other objects in the scene...


Many thanks for your Help !
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 8th Feb 2011 17:23
Ok i think i might have fixed it. Here is the link (http://mpoet.wen.ru/zParticles.zip) . Its only the dll. Test it out and get back to me.
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 8th Feb 2011 20:01
OK Trigen48,

I sent you a small exemple file at your personal Emailm address few minutes ago.

I'll try this new DLL right now and I'll let you know as soon !

Many Thanx (one more time ! )
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 8th Feb 2011 20:15
Oups !

It doesn't work on my PC

I replaced the original DLL by this new one and obtain an error message "Missing d3dx9_43.dll in order the program run correctly..."

I've got no message with all of my programs made with DarkBasicPro and no error message if I put back in place the original DLL...

Any idea ?

Thanx
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 8th Feb 2011 20:25
Oh. I compiled the new dll with visual studio 2010. I will install the previous version. Thanx for the heads up. Oh and thanx for the example. Now i will be able to follow the problem easier. I will keep you updated. Mybe i should make a forum on my website. For zparticle related stuff. And lay the tutorials there
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 8th Feb 2011 20:32
Ok, Nice Trigen48 !

I already tried reinstalling the d3dx9_43.dll in my system SysWOW64 folder (I work with Windows 7)

The program run fine without error message but there is no change...

I hope you will found it soon !!

Thanx !
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 8th Feb 2011 20:34
What is your Website address please ?

I didn't found it...
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 8th Feb 2011 21:49
Here it is (tricorp-hyric.co.cc/Forum/). This will be my new head quarters lol. Peace out.
Mistrel
Retired Moderator
13
Years of Service
User Offline
Joined: 9th Nov 2005
Location:
Posted: 8th Feb 2011 22:47 Edited at: 10th Feb 2011 12:32
I would like a copy of this source code, please. I would be very interested to see how a particle engine works under the hood.

You can either attach it to a post here or e-mail it me.

Quote: "The further i pursue that problem i ended up lost. My only option is to recreate a newer zparticle dll. Entirely from the ground up."


Maybe you just need a second set of eyes. Let some other people work on it.

Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 9th Feb 2011 13:06
Ok Mistrel,

I'll send it as soon as possible today.

I remind you that it's just a small test program that demonstrates the problem of positioning FX objects.
They are everytime in front of other objects in the scene when using the command "LOCK OBJECT ON" on another object.

This is a problem to create a HUD, because I have to use "LOCK OBJECT ON"...

PS: I am sorry to repeat myself, but my English is not very good,I am afraid to speak incorrectly...

Many Thanx !
TRIGEN48
11
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 11th Feb 2011 09:32
@mistrel . I thnk i will continue with it. It is a fun learning experience. Plus i do love solving problems. And yes i agree, i should try n get other eyes to look at the source aswell.
Duffer
16
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 12th Feb 2011 13:13
@ TRIGEN48,

Just to say still watching this thread and more strength to your arm! If you can fix that multi camera problem etc this is one hell of a good plugin...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 12th Feb 2011 17:56
@ Trigen48 and Mistrel,

Hi guys !

I hope also you'll find a fix as soon as possible for this amazing plugin (I hope to use it soon !)

Thanx guys !
Mariokiki
10
Years of Service
User Offline
Joined: 22nd Oct 2008
Location:
Posted: 16th Feb 2011 13:16
I found a solution !!!

... but not for the Zparticle DLL

I continued working on my program hoping to find a solution for that... and I took a code I saw on this forum.

It's another system of Fire Particles made by "Image All" (is the nickname of the guy !)
Follow this link in this Forum :
http://forum.thegamecreators.com/?m=forum_view&t=114092&b=6

So I adapted it to my program (small personal changes to change the appearance and size of the fireballs)

To test the speed of the engine, I have created 25 units of fire in the same scene without any slowdown of the FPS !
Still @ 58 ~ 60 FPS !!!

That's Awesome !!!

You have to try it !
GantZ_yaka
8
Years of Service
User Offline
Joined: 22nd Feb 2011
Location:
Posted: 22nd Feb 2011 16:58
hello. i tried to use this dll and it works very well. but i dont know how to make the particles move along the path of the spiral. can somebody help me? i want to make tornado-effect but I have no idea how
Demon000
12
Years of Service
User Offline
Joined: 21st Aug 2007
Location:
Posted: 7th Apr 2011 23:11 Edited at: 7th Apr 2011 23:11
I don't know if it's just me but I can't reuse an emitter number after deleting the emitter. Does this happen to anyone else?

Login to post a reply

Server time is: 2019-10-15 10:32:28
Your offset time is: 2019-10-15 10:32:28