Problem with the explosion system..

Problem with the explosion system..

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Problem with the explosion system..

Post by Fanger »

This is sort of a feature request but more in a fact that this seems like a bug/oversight to me.. Currently only the default explosion if used is visible no matter where you shoot something on the map.. any custom explosion generation is only visible if you have line of sight and only for as long as you have line of sight..

This makes sense for most things, but for a finely crafted nuke explosion (like the one argh made) if that goes off, anywhere it should be visible, 1 because it looks cool, and 2 because of how big it is.. basically If I fire a nuke missile at something and it hits, I want to be able to see the mushroom cloud/fireball/other particle effects not just a big scar blast mark, which is currently what we get.. is there some way we could flag certain explosion generator FXs to be always visible or something so no matter where they go off on the map everyone can see the FX.. I mean its sort of ominus if your playing a FFA and you see the area where you know someone is go up in a mushroom cloud..
User avatar
Acidd_UK
Posts: 963
Joined: 23 Apr 2006, 02:15

Post by Acidd_UK »

Weapons / effects could have a boolean globallyVisible flag or similar - I don't think this would be very hard to implement for someone that knows the weapons and graphics systems (which I don't). If noone's done this within a week or so, I'll have a take a look at it :-)

Edit: In case you didn't guess I thought so - nice idea :-)
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

What I'd like, honestly, is a CullRadius variable. If the camera frustrum is greater X,Z than CullRadius, then we could skip the CustomExplosionGenerator entirely, saving CPU considerably. Just a thought.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

Yeah I wouldnt mind having some way to control the distance at which you view an explosion, but there definately has to be a way to set up some explosions to always visible within that system..

had a second thought might be cool to have global spring variable to tweak cull radius for custom explosions..
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Post by rattle »

Argh wrote:What I'd like, honestly, is a CullRadius variable. If the camera frustrum is greater X,Z than CullRadius, then we could skip the CustomExplosionGenerator entirely, saving CPU considerably. Just a thought.
And it saves overall particle count!

It would be nice to split the explosion generator up into explosion classes and special effect classes as well, both using different settings. Just a thought but with all that new emit-sfx stuff the particle count of 20k just doesn't seem so much anymore.
There will be quite a few mods who probably will make use of that. Just imagine a bunch of aircraft with 4 individual thruster effects on it, they increase the overall particle count by quite a lot in large numbers.
Post Reply

Return to “Engine”