AssetBash Docs Sign in
Lunaris USD + path tracing in TouchDesigner

Materials

You can make materials in Lunaris, or bring them in with your USD files. Lunaris materials are UsdPreviewSurface, which every USD renderer understands.

Lunaris Material

A compiled operator (Tab dialog → Lunaris tab) that makes one material. Bind it to geometry with Assign Material.

ParameterUse
Material Name, ScopeThe material's name (blank = the operator's name) and the prim it goes under, usually /materials.
Base Color, Roughness, Metallic, Emission ColorA value, or a texture file, or a TOP.
Normal MapA tangent-space normal map file or TOP.
Use POP ColorTakes the colour from the geometry's own colour instead of Base Color.
UV Scale, UV OffsetTiling and offset for all the material's textures.
Advanced pageOpacity (a value or texture), Opacity Threshold for cut-outs such as leaves, IOR for glass, Clearcoat and Clearcoat Roughness.

TOPs as textures

Any TOP can be a texture. Lunaris writes it to a file in the texture cache folder so every renderer can read it. TOP Update chooses when: whenever the TOP changes, or only when you press Write TOP Textures, which is better for TOPs that change every frame. TOP Color Space decides whether colour TOPs are sRGB or linear; Auto treats 8-bit as sRGB and float as linear.

Material Library

A container that holds several Lunaris Materials under one scope. Add Material makes a new one inside it.

Materials from Houdini (MaterialX)

The path tracer renders MaterialX standard_surface materials, including the common node graphs Houdini writes: image textures, normal maps, mixing, colour correction, maths, and MaterialX noise. When a material has both MaterialX and a UsdPreviewSurface version, the MaterialX one is used.

  • Nodes Lunaris can't evaluate exactly are approximated. The path tracer reports how many inputs were approximated.
  • Storm draws MaterialX materials too dark. Judge MaterialX in the path tracer, or in Karma.
  • The developer notes on MaterialX list exactly what is supported.

UDIM textures and texture size

  • UDIM texture sets (<UDIM> in the file name) render in the path tracer.
  • Lunaris doesn't load big textures as they are. It makes smaller copies once, in usd/cache/, and reuses them. The size is Texture Size on the Path Trace settings (512 to 4096; this project uses 2048).
  • The first time a big scene loads, textures fill in as their copies are made. Later loads are fast.
Very large texture sets (for example 8K UDIMs across a whole set) can run the graphics card out of memory. Keep Texture Size at 2048 or below for big scenes.