Forest fires gadget
Moderator: Moderators
Re: Forest fires gadget
http://www.youtube.com/watch?v=svLywxCq ... ture=feedu
Here's how it looks now. It's still work in progress though.
Here's how it looks now. It's still work in progress though.
Re: Forest fires gadget
funky! maybe the burn effect should stay in place a bit longer.
Re: Forest fires gadget
Yes, I agree. There's a delicate balance though between the fire fying out and spreading beyond control.
If it burns longer then on the one hand, there will be more CEG:s that have to be rendered. But on the other hand, the fire will spread more slowly and therefore there will be fewer trees on fire ssimultaneously. Or I think it goes something like this. But if it spreads too much then it will make the whole game lag out. Maybe there should be some kind of an emergency stop or something.
Actually the mechanism is already out of control, because I can't really predict how it spreads. I've created a Frankenstein's monster.
If it burns longer then on the one hand, there will be more CEG:s that have to be rendered. But on the other hand, the fire will spread more slowly and therefore there will be fewer trees on fire ssimultaneously. Or I think it goes something like this. But if it spreads too much then it will make the whole game lag out. Maybe there should be some kind of an emergency stop or something.
Actually the mechanism is already out of control, because I can't really predict how it spreads. I've created a Frankenstein's monster.
Re: Forest fires gadget
so real, even heard the com cough from all the smoke 
Srsly, lacks drama, a real fire just burns for a while, gathering power. It shouldnt wander that fast, and it needs coloured light, like behe used it for his lava map (dont steal it, its open source) You could add ash and fire flakes. And overdramatize. This is not a fire simulation.
This is what hollywood shows for fires, so you need to make it like a opera, a slow build up, a big crescendo. Imagine how it would burn if everythig was made of paper..... add "burned decals" basically ashdunes.. and still glowing tree trunks and wood pieces.
Makes me wish we could change maplighting ingame.. some red and orange light, would set the mood for a "Only you can preven them" campaign.
I wouldnt write so much if it werent good.

Srsly, lacks drama, a real fire just burns for a while, gathering power. It shouldnt wander that fast, and it needs coloured light, like behe used it for his lava map (dont steal it, its open source) You could add ash and fire flakes. And overdramatize. This is not a fire simulation.
This is what hollywood shows for fires, so you need to make it like a opera, a slow build up, a big crescendo. Imagine how it would burn if everythig was made of paper..... add "burned decals" basically ashdunes.. and still glowing tree trunks and wood pieces.
Makes me wish we could change maplighting ingame.. some red and orange light, would set the mood for a "Only you can preven them" campaign.
I wouldnt write so much if it werent good.
Re: Forest fires gadget
http://springrts.com/wiki/Lua_UnsyncedCtrl#RenderingMakes me wish we could change maplighting ingame.. some red and orange light, would set the mood for a "Only you can preven them" campaign.
Spring.AddMapLight
Spring.AddModelLight
I for one will welcome the heap of disco maps that 0.83 will bring.
I think too many CEG will cause trouble, lag and eventually some particles stop being drawn. Maybe gl can be used to draw fire sprites or something.
Or disregard the spreading part and just call it "features on fire" and then add some custom tags to features that can be used.
Re: Forest fires gadget
maybe use that spherical distortion shader everyone uses over the fire..
Re: Forest fires gadget
Been trying to complete the forest fires widget, but it only leads to huge lag. It's not even the cegs, even when I disabled them the fps goes down after a fire, and it doesn't recover even on LuaRules reload. It seems after all that the native gadget is quite good. Only thing I managed to do better is leave a wreck after the fire though.
Will keep on trying for a while, but I think it's more important to keep the game playable than to induce lag.
And those new effects may be nice, but I think they only work with advanced shading enabled, and I can't even get that to work in spring 83.
Will keep on trying for a while, but I think it's more important to keep the game playable than to induce lag.
And those new effects may be nice, but I think they only work with advanced shading enabled, and I can't even get that to work in spring 83.
Re: Forest fires gadget
This .. sounds strange. Lua memory leak, it exists?Jools wrote:Been trying to complete the forest fires widget, but it only leads to huge lag. It's not even the cegs, even when I disabled them the fps goes down after a fire, and it doesn't recover even on LuaRules reload.
Or something works on, the fire never extingiuished burns on in the DRAMs
As always post infolog (no matter how useless it is) Behave according the teachings of old, young one. How else shall we be able to complete the reply-ritual, and link you to outdated documentation?
Re: Forest fires gadget
Made any progress? Forests that don't burn all at once and use non-engine trees would be awesome.
Re: Forest fires gadget
But is ba gonna implement it? Because that is the real question.zoggop wrote:Made any progress? Forests that don't burn all at once and use non-engine trees would be awesome.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Forest fires gadget
All features support flammable. They just have to have it set in their featuredef.
Re: Forest fires gadget
if map contains grass, set grass aflame=true
spawn selfiluminating detaltexture.. spawn sparks.. spawn smoke ... apply wind... if fire touches tree.. Inferno..
What you actually need are shaders, distort and bloom are your fires friend!
spawn selfiluminating detaltexture.. spawn sparks.. spawn smoke ... apply wind... if fire touches tree.. Inferno..
What you actually need are shaders, distort and bloom are your fires friend!
Re: Forest fires gadget
Yes, but you can't control how a fire spreads that way, and there is no wreckage then either (it seems to skip featuredead)Forboding Angel wrote:All features support flammable. They just have to have it set in their featuredef.
Re: Forest fires gadget
Yeah, but then you would have to follow each spark, I think that's too complicated. What I did was instead look for features within a distance from the burning one, and set them on fire with some probability. Also the area to look in would be dependent on the wind.PicassoCT wrote:if map contains grass, set grass aflame=true
spawn selfiluminating detaltexture.. spawn sparks.. spawn smoke ... apply wind... if fire touches tree.. Inferno..
What you actually need are shaders, distort and bloom are your fires friend!
I couldn't work with detail textures after new spring, and besides my gpu died, so have to wait until I get a new one until I can work more on this.
Re: Forest fires gadget
probability alone is bad... and it looks unrealistic to have a tree set aflame on lush green grass.
My advice.. stop looking on the features alone. Make the Flames travell over the grass in a game of life like way, the wind only lengthening the lifespan of some, extingiushing others earlier.
I know that sounds like a lot of work, and it is. But it definatly (with some grounddecals and cegs[to get the ground red Glowing]) will look more like a fire then some mysterious fire column travelling from tree to tree, yelling at bystanding princess to take there shoes off, because it swept the floor just seconds ago.
My advice.. stop looking on the features alone. Make the Flames travell over the grass in a game of life like way, the wind only lengthening the lifespan of some, extingiushing others earlier.
I know that sounds like a lot of work, and it is. But it definatly (with some grounddecals and cegs[to get the ground red Glowing]) will look more like a fire then some mysterious fire column travelling from tree to tree, yelling at bystanding princess to take there shoes off, because it swept the floor just seconds ago.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Forest fires gadget
No it doesn't (at least I'm pretty sure it doesn't). However, if your featuredead feature is flammable, when it switches to that, it will burn that feature too.Jools wrote:Yes, but you can't control how a fire spreads that way, and there is no wreckage then either (it seems to skip featuredead)Forboding Angel wrote:All features support flammable. They just have to have it set in their featuredef.
Re: Forest fires gadget
I checked that my featuredead definition was set to not flammable, and it was not created. When I did it with my own gadget, then I managed to create the featuredead feature.
-
- Moderator
- Posts: 2464
- Joined: 12 Oct 2007, 09:24
Re: Forest fires gadget
Set precision fires to send deadly-flame-gliders at your opponent.PicassoCT wrote:My advice.. stop looking on the features alone. Make the Flames travell over the grass in a game of life like way, the wind only lengthening the lifespan of some, extingiushing others earlier.
Re: Forest fires gadget
nub, make vulcan!Google_Frog wrote:Set precision fires to send deadly-flame-gliders at your opponent.PicassoCT wrote:My advice.. stop looking on the features alone. Make the Flames travell over the grass in a game of life like way, the wind only lengthening the lifespan of some, extingiushing others earlier.

Re: Forest fires gadget
but if the fire gliders life of the land.. than they cant feed of ash decals left behind by there forerunners.