Not logged inOpenClonk Forum
Up Topic Development / Art Workshop / [Particles] Fire
1 2 3 Previous Next
Parent - By Armin [de] Date 2015-06-29 17:15
The unused fire modes are useful for such general shapes. The check for the structure / vehicle category can be replaced with the C4Fx_FireMode_StructVeh value, too.
Parent - - By Zapper [de] Date 2015-06-29 18:58
But don't introduce new regular callbacks for the normal case. The fire is slow enough as it is now
Parent - - By Sven2 [us] Date 2015-06-29 19:21
If there's just a function that returns a static list of bounding rectangles, it should be fine I think. Like:

local bounding_rectangles = [[-8,-8,16,16], [-5,8,10,12]];

func GetBoundingShape() { return bounding_rectangles; }

This would be useful for many applications. Like better collision detection, burn decals, etc.
Parent - - By Zapper [de] Date 2015-06-29 20:18
Well, before my changes, one of the slowest part of the fire effects was calculating the width / height of the fire shape.
Parent - By Sven2 [us] Date 2015-06-30 01:47
That is no surprise if you were using stuff like GetDefWidth - these are running through StdCompiler and are horribly slow.

The callback would probably be faster. Of course the fire can also cache the shape and update it only each Thursday at 3AM.
- - By Maikel Date 2015-05-18 21:28
Parent - - By Zapper [de] Date 2015-05-18 21:42
I was in the game and there were not a lot of particles. I think it was the old fire. Is the new one in 6.0 already?
Parent - By Maikel Date 2015-05-19 07:16
Ah probably not, sorry.
Up Topic Development / Art Workshop / [Particles] Fire
1 2 3 Previous Next

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill