Author Topic: particle demo  (Read 17286 times)

0 Members and 1 Guest are viewing this topic.

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
dump in your fs2 dir, run the build with the directory as mod, load up a subach hl-7 and have fun.

clicky

so far i support 4 spew types most parameters are about the same as the default spew parameters. rotation rate is for the helix, controls direction and speed of rotation. z scale is for the sparkler, to make it more ovoid 1 is spherical. this is good for matching it up with the laser effect for some awesomeness. offset and normal dont do anything yet. the code is still abit roguh and the engine likes to crash if you try to remove unused feilds. its now 10am and im going to bed.

*added diff*

[attachment stolen by Slimey Goober]
« Last Edit: January 15, 2009, 07:14:15 pm by Nuke »
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
i c wut u did thar:

dump in your fs2 dir, run the build with the directory as mod, load up a subach hl-7 and have fun.

fixed

so far i support 4 spew types most parameters are about the same as the default spew parameters. rotation rate is for the helix, controls direction and speed of rotation. z scale is for the sparkler, to make it more ovoid 1 is spherical. this is good for matching it up with the laser effect for some awesomeness. offset and normal dont do anything yet. the code is still abit roguh and the engine likes to crash if you try to remove unused feilds. its now 10am and im going to bed.

*added diff*
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
heh, i guess i was half asleep. feedback? how does it run on suckey computers? suggestions?
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Vasudan Admiral

  • Member
  • 211
    • Twisted Infinities
Oooh :D
Well it looks pretty awesome and is waaay ahead of all existing particle effects in game, but I'm seeing approximately a 10FPS drop while holding down the trigger, and this is on an 8600GTS with an i7 920. Might that be considerably worse on lower systems?
Get the 2014 Media VPs and report any bugs you find in them to the FSU Mantis so that we may squish them. || Blender to POF model conversion guide
Twisted Infinities

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Yeah but consider the drop on some systems when rendering a lot of the old school impact effects.  I don't know why but that even slows down my box considerably.  10fps on my rig right now wouldn't even be noticeable.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
i really dont have any suckey computers right now. so its good to get feedback. had aardwolf give me a report on his crappy intel chipset and gets dropped to 30 during combat. still im impressed with the speed acheived over the old lua implementation. still im gonna put in some automatic scaling. like automatically reducing particle counts when the framerate drops below 60. more performance can be attained by tweaking. the effect i did was mostly a capabilities showcase rather than a real world implementation. then again if i can offload the system to the gpu that would further increase the speed.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
You could tie it to the existing particle options in the graphics settings, and leave control of it in our own hands.  :)
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Narvi

  • 28
On my crappy Intel 945GM, framerate drops from 60fps to 30fps whenever I fire.

Playing without mediavps, on that build you posted.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
well it would probibly crash on the media vps. for some reason the optional strings arent being very optional, so if the new flags are missing, kerplam! on the brightside i did manage to make it so retail pspews would work.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline ARSPR

  • Preys On Mantis
  • 29
Pretty good looking...

Nevertheless in the very FS2 campaign mission (training one) my FPS drop from 120 to 60 when firing. And I've got a 8800GTX...

(Although I suppose, performance will improve in the future)
IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Screenshots anyone?  Can we see what interesting pspew combos you guys are coming up with?
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Aardwolf

  • 211
  • Posts: 16,384
    • Minecraft
On my crappy Intel 945GM, framerate drops from 60fps to 30fps whenever I fire.

Playing without mediavps, on that build you posted.

On my crappy Intel 945GM, framerate drops from 60fps (the refresh rate) to maybe 30fps when there's combat, and when there's a bunch of these things at once it went as low as 17 or 18.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Screenshots anyone?  Can we see what interesting pspew combos you guys are coming up with?

seconded, ig gonna post this on the modding board, maybe i can get some pretties :D
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
ive uploaded a new build. the ring type is now supported as are offset. i decided to replace the normal field with initial velocity. why merely indicate direction when you can indicate direction and speed with one vector. i know this is confsing cause we already have a vel value. but dont blame me because volition sucks at naming their pspew variables :D

also i fixed the required fields bug, so it should now work with pspews in mods and the media vps. this also means you only need feilds you want to use. for speed i strongly suggest omiting the 2 vectors, since they throw extra vector-vector and vector-matrix math into the mix if theyre non-zero.

its very easy to overload the game with these features and make it unplayable even on high end systems. so im gonna try coming up with some automatic scaling based on detail settings and the current frame rate. things like count time and life are your critical performance numbers. lower count means fewer particles. higher time means more delay between spews. and lower life means particles are being removed faster. so performance is dependant on how you set those values.

k ive added a couple more weapon replacements. the tempest now demonstrates the ring type. the harpoon has an effect demonstrating what can be done with the initial velocity and offset.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Dark RevenantX

  • 29
  • anonymity —> animosity
60->40fps in a nebula

60fps constant in empty space

This is with holding down the trigger using a subach.

Seriously, is this stuff even viable?  20fps drop using an Athlon X2 5600+ and an HD 4870.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
i got a few ideas for scaling the parameters, creating fewer particles as the framerate begins to drop. other idea is to use stream processors to handle the particle system. also my sample effects pspews probibly try to go way overboard with the particle creation. the railgun emits 41 particles every frame, some of which linger for several frames before being removed. modders would need to strike an equilibrium between quality and performance. my railgun effect could probibly loose the sparler and the default spewer and still would be better off used on a weapon that fires only every few seconds.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Did the development for this stop, or are the new spews in other builds as well?


I really like the new spews, but the performance drop is still pretty bad. (I remember something about using the GPU might should be faster.)

Also, the particle count is still too low for multiplayer. The particle effects look very cheap from the side.

--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
the problem is with the low level particle code. my code is rather high level and just says, "make these particles in this shape". really just defines particle generation rather than actual rendering or anything speed related. the underlying particle code is kinda slow, mainly because it focuses on creating a small number of detailed particles instead of a large number of simple particles. i have some theoies on how to increase their speed. one idea is to use hardware pointsprites, another is to offload the generation code to the gpu. i ony have a very rudimentary understanding of opengl, and lack the skill to do either of those things.

on the otherhand the code works well, is reverse compatable, scalable, and when used in moderation can improve the appearance of particle effects.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Could we also have particles that only use a single texture and fade out, or rotate and stuff like that?
Or is that another battlefield?


While it often has advantages to use ANI/EFF particles, for simple stuff, it's just a waste of memory.
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline Davin

  • 26
I got a framerate hit of about 15fps running an NVidia 8200M G with an Athlon dual core 1.9GHz. I think it looks great, however its up to you guys who know the guts of the program better than I to decide how feasable it is.