tag:blogger.com,1999:blog-1791631495483462759.post7929880684074828577..comments2024-03-25T07:29:21.225-07:00Comments on 3DWorld: Grass Fire Simulation and RenderingFrank Gennarihttp://www.blogger.com/profile/02815853731800103017noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1791631495483462759.post-6125395425239357532020-10-16T21:55:10.278-07:002020-10-16T21:55:10.278-07:00I looked at the code in more detail. The random nu...I looked at the code in more detail. The random number generator is only called for the active wavefront of the fire, which is likely only a few hundred cells. I think using a simple increment would make the wavefront look too regular and artificial. I probably chose to use a random number of make the behavior look more natural and irregular so that some areas grow more quickly than others.Frank Gennarihttps://www.blogger.com/profile/02815853731800103017noreply@blogger.comtag:blogger.com,1999:blog-1791631495483462759.post-20051926538407260822020-10-16T18:30:40.231-07:002020-10-16T18:30:40.231-07:00Thanks for the fix. I never really thought of my f...Thanks for the fix. I never really thought of my fire system as a cellular automata, but it does seem like that's the case. I'm using a fast custom random number generator, so I don't think it adds much overhead to call it a few thousand times.Frank Gennarihttps://www.blogger.com/profile/02815853731800103017noreply@blogger.comtag:blogger.com,1999:blog-1791631495483462759.post-80487137114277618022020-10-16T18:29:55.150-07:002020-10-16T18:29:55.150-07:00This comment has been removed by the author.Frank Gennarihttps://www.blogger.com/profile/02815853731800103017noreply@blogger.comtag:blogger.com,1999:blog-1791631495483462759.post-10039422936275690002020-10-16T17:24:29.050-07:002020-10-16T17:24:29.050-07:00Ooh, cellular automata fire?
Typo: "random nu...Ooh, cellular automata fire?<br />Typo: "random number fro 0 to 31" should be "from"<br />Also, you can probably just assign the random number once, and then increment every frame (with wrap-around). Maybe that's what you're already doing? Would save the random number calculation every frame.<br />Paul Spoonerhttps://www.blogger.com/profile/17640871289041630907noreply@blogger.com