Diamond with Sprite Alignment in UE 5.1 Niagara Tutorial

Diamond with Sprite Alignment in UE 5.1 Niagara Tutorial | Download Files
Diamond shape from aligned sprites made in Unreal Engine 5 Niagara

Learn how to build a 3D diamond shape using aligned triangle sprites and dynamic parameters in this Unreal Engine 5.1 Niagara tutorial. By combining a custom procedural triangle material with Z-axis sprite alignment and multi-layered emitters, you can create stylized gem pickups, crystals, and magical shapes.

Quick Overview

  • Engine: Unreal Engine 5.1 (Niagara)
  • Effect Type: Stylized 3D Diamond / Crystal Shape using Sprite Alignment
  • Core Elements & Nodes: Texture Coordinate, Component Mask (Red), Subtract (0.5), Abs, Step, Multiply, Dynamic Parameter, Particle Color, Burst (8 particles), Torus Spawn Shape (Radius 100), Custom Alignment (Z-axis), Mesh Orientation
  • Best Used For: Gem pickups, crystals, and magic shapes
  • Project Files: Download on Patreon

Tutorial Breakdown & Chapters

  1. Texture Coordinate & Channel Masking: Add a Texture Coordinate node and mask the red channel to isolate the horizontal UV gradient.
  2. Centering the Shape: Subtract 0.5 to center the gradient, then pass it through an Abs (Absolute Value) node to keep values positive.
  3. Creating the Triangle: Add a vertical gradient to shape the UVs into a triangle mask.
  4. Adjusting Width with Step & Multiply: Use a Step node to define the triangle width and a Multiply node for additional control.
  5. Dynamic Parameters & Lit Material Setup: Connect Dynamic Parameters to control width per particle, multiply by Particle Color, and keep the material Lit (not Unlit) for depth and realism.
  6. Niagara Burst & Torus Spawn Shape: Set up a Burst of 8 particles using a Torus spawn shape with a radius of 100 and uniform particle size.
  7. Custom Sprite Alignment & Rotation: Apply the triangle material, set Custom Alignment to match the mesh orientation along the Z-axis, and adjust rotation and offsets so particles face outward evenly.
  8. Layering, Random Colors & Final Tweaks: Duplicate and layer multiple triangle emitters with adjusted size, offset, and rotation to form the full diamond, then randomize particle colors for dynamic variation.

Frequently Asked Questions

How do you create the triangle shape in the Unreal Engine 5.1 material?

Start with a Texture Coordinate node and mask the red channel. Subtract 0.5 to center the coordinates, then apply an Abs node for symmetry. Add a gradient to form the triangle silhouette, use a Step node with Multiply to control its width, and drive the width via Dynamic Parameters.

How are the sprites aligned to form a 3D diamond in Niagara?

Spawn 8 particles in a burst using a Torus shape with a radius of 100 and uniform size. Set the Sprite Renderer’s Custom Alignment to match the mesh orientation along the Z-axis, then adjust rotation and position offsets across multiple particle layers to assemble the diamond facets.

Why should the diamond triangle material stay Lit instead of Unlit?

Keeping the material Lit rather than Unlit preserves shading and surface contrast across the angled sprite facets. Combined with randomized particle colors, a Lit material gives the layered triangle sprites greater depth and realism in the scene compared to flat unlit shading.

CGHOW Resources


Discover more from CGHOW

Subscribe to get the latest posts sent to your email.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.