Procedural Suncatcher With Rim and AutoColors - Stained Glass in Geometry Nodes

codesignprojects in Geometry Node Groups


Procedural Suncatcher is a Geometry Nodes stained-glass generator updated for Blender 5.X. It procedurally fractures a circular boundary into Voronoi-style glass cells, adds a matching metal solder rim, and drives per-pane color variation through a procedural Col attribute.

The blend file includes two collections so you can compare or work at your preferred level of complexity:

  • Glass and Rim (Original setup)
  • Suncatcher_Optimized (Streamlined setup, ~90% fewer rim polygons)

How It Works (Technical Breakdown)

  1. Voronoi Cell Generation: Random points (Count, Var, Seed) are scattered inside a Curve Circle boundary, triangulated with Fill Curve, and converted into polygonal stained-glass cells via Dual Mesh.
  2. Glass Panes (Main_Glass / Main_Glass_Optimized): Splits cell edges, slightly insets each pane (0.99 scale) to leave space for the solder frame, and computes a distance-based Col attribute via Proximity Falloff so the Glass shader can assign varied colors across cells.
  3. Solder Rim (Rim / Rim_Optimized): Extracts the cell boundary edges (Delete Geometry: ONLY_FACE), converts them to curves, and sweeps a circular profile (Radius = 0.009) using Curve to Mesh.

Original vs. Optimized

  • Original (Glass + Rim): Keeps the original node architecture (Randomness, Attribute Mesh, Resample Curve at Count = 100, Profile at Resolution = 30). Rim evaluates to 390,000 polygons, with Rim inputs synced to Glass via drivers.
  • Optimized (Glass_Optimized + Rim_Optimized):
    • Shares a single Suncatcher_Cells_Opt cell-generation group using native Random Value, Scale Elements, and Store Named Attribute (Col).
    • Removes Resample Curve from Rim_Optimized (keeping exact sharp corners with no corner-rounding gaps) and lowers Profile Circle resolution (30 β†’ 12), reducing the rim from 390,000 to 9,144 polygons (90% lighter).

Controls & Customization

  • Pattern (Count, Var, Seed): Adjust directly in the Geometry Nodes modifier panel.
    • In the original Glass and Rim collection, changing Glass updates Rim automatically via drivers.
    • In Suncatcher_Optimized, match Count, Var, and Seed on Glass_Optimized and Rim_Optimized (or link them).
  • Rim Thickness: Inside Rim / Rim_Optimized, adjust the Radius on the Curve Circle / Profile Circle node (default: 0.009).
  • Glass Thickness & Edge Bevel: Controlled by the Solidify (Thickness) and Bevel (Width, Segments) modifiers on Glass / Glass_Optimized.
  • Glass Colors: Open Material in the Shader Editor and edit the ColorRamp stops inside the Color & Emission frame.
  • Cycles & EEVEE Support: Both materials include dedicated Material Output nodes for Cycles and EEVEE (with a Light Path β†’ Is Shadow Ray transparent shadow bypass for EEVEE).

Tips & Best Practices

  • Use Suncatcher_Optimized for viewport work and animationβ€”it produces the same cell geometry and Col variation at a fraction of the polygon count.
  • Keep Var between 0.5 and 1.0 for organic cell variation without creating degenerate sliver triangles.
  • Tune Proximity Falloff (Max Distance, Min, Max) if you change Count significantly, so the Col attribute continues to span the full 0.0–1.0 ColorRamp range.
$3.90$2.54

Have questions about this product?
Login to message

Details
Sales 30+
Published over 4 years ago
Blender Version 4.2 - 5.3
Render Engine Used Cycles, Eevee
License Editorial