On this day 2 years ago I posted a tweet on what would eventually become a sparse version of EmberGen, which had already been in development for 3 years
A retrospective🧵on the journey so far:
@lisyarus Depending on what the emission source is meant to be, it might be physically tied to absorption. Blackbody radiation for example is proportional to absorption (Kirchoff's law), so it literally stops glowing if albedo is 1.
There's other kinds of luminescence of course.
@ssh4net I see clouds, unfortunately the EmberGen attribution is one step removed by citation (the Cloudy project says 1000 clouds simulated with EmberGen, but somehow there's 1400 assets, the other 400 unattributed from what I can tell, of which they pick 500 here)
A few years ago I was coding a simple 2D physics & rendering engine. It died out because I'm simply not that strong in math. The pixel processor in IlluGen is almost done, which is insanely powerful. You can build your graph and then write additional code to generate or iterate on whatever you're feeding it. I figured I'd have claude take a stab at a 2D raymarching node, like what i was trying to build a few years ago, and after a few iterations its pretty awesome.
In IlluGen you can use our UI to access parameters within your processor code and even animate them with things like modulators or key frames. I'm not really sure what pandoras box this will open or if LLM's are the best way to write these shaders/custom nodes vs learning to code. I'm trying my best to navigate "This is art" and this is LLM trash. Being pretty inept at coding, who knows how long it would've taken me to build this exact thing I was looking for. I have had some fun tonight hand coding a few shaders and it's an absolute blast to be able to interact with shaders at a new level. I've never experienced something so easy, eloquent, and simple for making and working with shaders despite my severe programming knowledge limitations. Raymarching, relighting, simulations, conways game of life, post processing shaders for games, and many more things will soon be possible with this new node. It's basically the desktop version of shadertoy i've always wanted. Procedural graph/inputs (nebula generation in this case) -> Code to do something with those inputs -> More graph
@lisyarus The inverse of scattering/absorption/extinctoon as a unit is the mfp, so mfp as a color. An absorption mfp of (2,1,1) makes red go twice as far without being absorbed on average, so red survives longer
Imo scattering is the easier one, and is more additive-ish
@slow_liver It's not a full direct fluid sim of the fog because the fog retains its shape and sharpness, which does not happen in sims. There is certainly some fluid sim elements to it because of the swirls, but those could technical be procedural too. The glitches are a bigger hint, though
@slow_liver My guess is that it's likely a procedural flat-ish 3D fog, with a local 2D fluid sim that distorts a UV map. Distorting the UV map distorts the fog, and it eventually recovers, i.e. "moves back into place". Objects occludes the fog, but doesn't seem to restrain it (I think)
@Halo_VFX Well I can't take credit for all of this though. I did neither the spotlights nor the multiscattering beyond getting involved towards the tail end improving and polishing.
But the things I can do with it though, given enough time. Too many plans, too many ideas
@Densitylucky For this one, simming at about 5 billion active voxels per second - I've disabled everything but the smoke and velocity for this one, so it's a bit faster and less memory hungry
The rendering isn't too good here on its own yet, about 15 fps at 4K at the end at max voxel count
#EmberGen
Got rid of some nasty aliasing artifacts today.
g = +90% and -90%, kind of extreme for the environment lighting model (26 directional lights, 1/4 res) and multiple scattering model (6-dir LPV, 1/16th res) used (you can see transitions if you watch closely).