kunz Live 2022.09.02

Live 2022.09.02

From kunz
Revision as of 11:40, 5 October 2022 by Admin (talk | contribs) (→‎Scene File)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Rendering Particles with Solaris, Karma and MaterialX

2022 09 02 karma particle basics 023c.jpeg

Scene File

Download 2022_09_02_karma_particle_basics.hiplc


To quickly produce a nice looking particle cloud shape, I move points through a noise function. This can be done iteratively, in a for-loop to create detailed wisps. You can also experiment with settings such as roughness or frequency and see the results quickly. This is a nice alternative to simulating particles which can be more time consuming process involving caching many frames to memory or disk. Below is an animation showing the evolution of the particle form as various noise settings are adjusted.

2022 09 02 particles moved through noise.gif

2022 09 02 particles turntable.gif

Shader Details

The final shader uses the standard surface with diffuse, specular, SSS, thin-walled and opacity.

The colors are also controlled in the shader. We start with the color attribute, which is the relative bounding box position of the particles before they're shifted through the noise in this case. This attribute is then fed through a noise function and finally a ramp. This allows for quick adjustments to be made all in the shader manipulating distribution of the final color output. This color output is used to drive the diffuse and SSS components of the surface shader. This gives a nice semi-translucent look to the particles.

Screenshot at 2022-10-05 12-32-31.png

Video On Demand

  • 0:02:00 Setting things up
  • 0:10:05 Building procedural particles using for each feedback loop
  • 0:21:30 Bringing particles into the Stage/Solaris context
  • 0:28:00 Adding MaterialX shader
  • 0:35:12 Looking at PBR SSS on particles
  • 0:39:16 Bringing in particle color to the shader
  • 0:40:55 Remapping attributes using color ramp
  • 0:59:30 Using opacity for a softer shading look
  • 1:20:20 Importing Flip fluid particle cache to test with Karma
  • 1:35:13 Wrapping up

Additional Images

2022 09 02 karma particle basics 018.jpeg

2022 09 02 karma particle basics 016.jpeg

2022 09 02 karma particle basics 024.jpeg