Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Erebus Alpha on December 01, 2016, 11:52:22 pm

Title: Particle Spew Afterburners?
Post by: Erebus Alpha on December 01, 2016, 11:52:22 pm
Has anyone attempted to use some sort of particle spew for afterburners, instead of afterburner trails? If so, how would one go about implementing this? I have made some cool visual effects for weapons using .eff files and particle spew, and now I'm curious about doing it to spaceships.

If this has never been done before...how difficult would it be to do?

EDIT:

I got this working, it was much more straightforward than I imagined. However, there are some minor issues that I am trying to troubleshoot. (http://www.hard-light.net/forums/index.php?topic=92854.msg1835799#msg1835799)
Title: Re: Particle Spew Afterburners?
Post by: X3N0-Life-Form on December 02, 2016, 12:42:22 am
Hmm, I'm pretty sure I've seen this somewhere before, probably in Wings of Dawn, so I'd say this is very much possible.

Have looked into the ships table options on the wiki to see if there was anything relating to it ?
Title: Re: Particle Spew Afterburners?
Post by: Neptune on December 02, 2016, 03:13:23 am
Quote
Have looked into the ships table options on the wiki

Is this what you're referring to? (http://www.hard-light.net/wiki/index.php/Ships.tbl#Customized_Thruster_Effects)
Title: Re: Particle Spew Afterburners?
Post by: 0rph3u5 on December 02, 2016, 03:19:58 am
I recall seeing a .tbl for that in a WIP mod I happen to have... might be an offshoot of scripting.tbl...
Title: Re: Particle Spew Afterburners?
Post by: X3N0-Life-Form on December 02, 2016, 03:48:57 am
Quote
Have looked into the ships table options on the wiki

Is this what you're referring to? (http://www.hard-light.net/wiki/index.php/Ships.tbl#Customized_Thruster_Effects)
Possibly :nervous:... I don't know how the effect is achieved, but I seem to recall seeing some fighters with sparkly afterburners (probably in Spoon's Wings of Dawn).

Maybe it's done through lua scripting and there's an AB particle spew script somewhere, maybe it's done through tables, I don't know.

But I do think it's been done before.
Title: Re: Particle Spew Afterburners?
Post by: Nyctaeus on December 02, 2016, 06:26:59 am
InfR1U uses this frequently. I cannot find any single script file assigned to this so I guess it was implemented directly into engine long time ago. We're using it via modular -shp table.

Here is sample table entry:
Code: [Select]
$Name: GTF Mihos
+nocreate
$Thruster Particles:
$Thruster Particle Bitmap: TerrEng
$Min Radius: 0.3
$Max Radius: 0.35
$Min Created: 1
$Max Created: 3
$Variance: 0.001
$Thruster Particles:
$Afterburner Particle Bitmap: ehit-red
$Min Radius: 0.4
$Max Radius: 0.70
$Min Created: 2
$Max Created: 3
$Variance: 0.0001

Make a new modular ship table and change GTF Mihos to your desired class, change effects and check it out.
Title: Re: Particle Spew Afterburners?
Post by: AdmiralRalwood on December 02, 2016, 11:10:13 am
I cannot find any single script file assigned to this so I guess it was implemented directly into engine long time ago.
Not that you can write a script to add new table entries; if you tried it, you'd just get parsing errors for your ship table when it encountered unknown symbols.
Title: Re: Particle Spew Afterburners?
Post by: Erebus Alpha on December 02, 2016, 11:41:42 am
I tried it out on the Mara - it's very cool! However, I did notice a couple of issues:

Strangely, when zooming out, it seems that the particles disappear. It's as if they have a minimum draw distance. Is it possible to raise that minimum draw distance without a severe performance hit? Or does FSO crash if it tries to draw a half-million particles?

Also, when executing sharp turns, the particles seem to periodically disappear.

For troubleshooting purposes, I am using a .eff, composed of 20 corresponding .dds files. I don't know if that has an impact, but this issue does not exist for weapon projectile particle spews.