Browse Search Popular Register Upload Rules User list Login:
Super Realistic Fire and Smoke

screenshot of the scene

Author: Gear97

Group: Default

Filesize: 124.78 kB

Date added: 2011-06-30

Rating: 5.1

Downloads: 764

Views: 943

Comments: 5

Ratings: 3

Times favored: 0

Made with: Algodoo before v1.8.5


Scene tag

Just an acidental discovery !
Have a nice day! :tup:
Please log in to rate this scene
Similar scenes
Title: Realistic Fire [2.1.0 b13]
Rating: 6.8334
Filesize: 127.51 kB
Downloads: 2313
Comments: 11
Ratings: 6
Date added: 2014/01/12 06:27:00
Made with: Algodoo v2.1.0
Rating: rated 6.8
Title: Smoke example
Rating: 5
Filesize: 401.63 kB
Downloads: 229
Comments: 4
Ratings: 3
Date added: 2008/12/18 21:59:38
Made with: Phun
Rating: rated 5
Title: Shotgun prototype
Rating: 5
Filesize: 42.1 kB
Downloads: 123
Comments: 0
Ratings: 1
Date added: 2010/05/09 22:44:08
Made with: Phun
Rating: rated 5
Title: Realistic Fire/Smoke in Algoodo
Rating: 6.3
Filesize: 28.09 kB
Downloads: 948
Comments: 4
Ratings: 4
Date added: 2009/09/11 19:50:49
Made with: Algodoo demo
Rating: rated 6.3
Title: Animation plz!1!
Rating: 5
Filesize: 1.18 MB
Downloads: 309
Comments: 0
Ratings: 1
Date added: 2014/06/13 10:14:37
Made with: Algodoo v2.1.0
Rating: rated 5
Title: Fire - Changeable Color [2.1.0 b13]
Rating: 5.625
Filesize: 82.73 kB
Downloads: 1276
Comments: 6
Ratings: 2
Date added: 2014/01/11 17:34:34
Made with: Algodoo v2.1.0
Rating: rated 5.6
Great Work!!
Than you:)

but am I missing something? The circles aren't textured.
@SE- If you're using 1.9.7b, remember that jpeg textures don't appear ;)
Last edited at 2011/07/09 22:44:37 by TC42
No- look at the spawn code. It's a PNG texture.

It might work if you (Gear97) edited the scene and added a circle with the texture so Algodoo would stick the texture into the scene package.

Hmm... I'm trying to reverse-engineer your smoke. First I tried throwing formulas into the original spawn code:
pos := e.pos;
controllerAcc := sim.time;
color := {[0, 0, 0, 1-(sim.time - controllerAcc)]}
but the color only changes until the next circle spawns.
In the full code, with lots and lots of other stuff in it, only the very first circle changes its color, regardless of the presence of later circles.

I then took a closer look at your code, and I got this:
pos := e.pos;
controllerAcc := sim.time
})) -> {color = {[0, 0, 0, 1-(sim.time - controllerAcc)]}}

and it works fine.
However, in the full code, the spawned circle never appears.


Ah, now I got it to work. Thanks for the code- I never would've gotten it otherwise.

Also, can you tell me exactly what the () -> {} thing does? I've been wondering about that for a few seconds now...

Let me guess- the parentheses contain a definition or identifier of a particular scope (e.g. scene.addCircle({}), The brackets contain identifiers and values that will be added to the predefined scope, or changed if they already exist.