After 3 days coding...

Страница 5/5
1 | 2 | 3 | 4 |

By wolf_

Ambassador_ (9769)

Аватар пользователя wolf_

16-07-2018, 06:53

santiontanon wrote:

it looks much better than the usual "generate noise at the bottom, and then smooth it out while moving up"

Matter of tweaking. You could add random noise higher up in the fire to create random bursts, or move pixels towards the centre, or smooth things horizontally and/or vertically etc. I'm more impressed by the shown framerate actually. Wink

By Dolphin101546015

Resident (37)

Аватар пользователя Dolphin101546015

16-07-2018, 07:10

santiontanon wrote:

... Any hints at how does it work? ..."

If i say something like: 3 main whales here, it: fluctuations, perturbations, and resonance answer of system oscillations, you will still have many more questions. Therefore, don't ask please Wink

santiontanon wrote:

... it looks much better than the usual "generate noise at the bottom, and then smooth it out while moving up"

Thank you anyway, and yes: "generate noise at the bottom, and then smooth it out while moving up", it still yet this method, but have 3 random ingredients, as i say above. And my little secret for Z80, it counting dependings all this ingredients from others, not using two others random generators (coz if you doo it, you will see all incredible propertyes of depends MSX random generator from time).
Therefore, just use first time: x=rnd(1)*188
And then, only add:
x=(x+30) mod 188
or
x=(x+30)-(x>188)*188
or
x=(x+30): if x>188 then x=x-188
And you will get nice functional gradient for fire algorithm.
Smile

By Dolphin101546015

Resident (37)

Аватар пользователя Dolphin101546015

16-07-2018, 07:21

wolf_ wrote:

Matter of tweaking. You could add random noise higher up in the fire to create random bursts, or move pixels towards the centre, or smooth things horizontally and/or vertically etc. I'm more impressed by the shown framerate actually. Wink

Nice, clever and sober mind. Smile
Yes, you right, this still not actual performance Wink
I still working on it. Tongue

By ro

Guardian (4118)

Аватар пользователя ro

16-07-2018, 08:17

Dolphin101546015 wrote:

And something more from my experiments HERE!
:)
Incarnation for MSX2, of my another work

Wow, I'm very impressed. I've done my share of scanline based color tricks, but this fire is something more. good job

By wolf_

Ambassador_ (9769)

Аватар пользователя wolf_

16-07-2018, 20:52

Rather than the regular 'diffuse and smooth' routine, it may be a 2d-array telling every fire pixel which way to fly, kind of how the weather report works.

By PAC

Guardian (5277)

Аватар пользователя PAC

17-07-2018, 01:21

Very nice effects! I love this kind of stuff. When a new and genuine MSX2 demo? Wink

By Dolphin101546015

Resident (37)

Аватар пользователя Dolphin101546015

17-07-2018, 16:04

PAC wrote:

Very nice effects! I love this kind of stuff. When a new and genuine MSX2 demo? Wink

Special for you, new demo :)
I still thinking about it. Yesterday i got invite for Chaos Constructions 2018, but haven't free time. :(

By ARTRAG

Enlighted (6250)

Аватар пользователя ARTRAG

17-07-2018, 22:42

Страница 5/5
1 | 2 | 3 | 4 |