Skip to content

Placement, Filtering, Masks, and Object Detection

PRISM samples the receiver mesh, selects an eligible source, resolves its size/rotation/offset, and then applies the active placement rules. A useful tuning order is: make an unmasked result at the right density and scale; add spacing and face rules; add one filter at a time; use Preview Placement to check the final result.

Enable Placement Mask in Filtering to limit where placement is allowed. The global mask applies to entries that do not override it. A source can enable Override Placement Mask in its Filtering tab for a different local rule.

Mask Cutoff controls the value at which a mask accepts a location. Invert Mask reverses the result where available. Mask Validation has two modes:

  • Center Point checks the resolved placement center. It is the default and fastest choice.
  • Footprint checks the resolved center, corners, and edge midpoints after size, rotation, planar offset, and face fitting. It is stricter and slower, and helps prevent a large detail from extending beyond a masked area.
Pattern When to use it
Material Base Map Place in bright or dark areas of the receiver material’s base map.
Radial Center / Radial Edge Concentrate detail in or around a circular area.
Corners Add wear or detail near object-space corners.
Horizontal Band / Vertical Band Limit placement to a horizontal or vertical object-space strip.
Edge Frame Add detail around an object’s object-space outer frame.
Noise Patches Create procedural, visible islands of allowed/blocked placement.
Under Anchor / Drip Streaks Generate directed streak placement beneath assigned anchors.
Custom Texture Use a readable texture mask sampled from mesh UV0.
Custom Expose the underlying source choices for specialized setups.

Object-space masks use Object Plane to choose their working plane; Auto From Normal is useful when the sampled receiver changes direction. Procedural masks show a swatch where available, and Preview Mask is the best way to tune their cutoff and falloff.

Material Base Map samples the receiver renderer’s base texture. Use Texture Mapping / sampling mode Auto for PRISM triplanar materials, or choose UV0, Triplanar Object, or Triplanar World explicitly when needed. Read From selects Luminance, Red, Green, Blue, or Alpha; Place On chooses Bright Parts or Dark Parts.

The selected base map must be a readable Texture2D. If the result seems different from the visible material, check the receiver material, mapping mode, selected channel, Bright/Dark choice, and Mask Cutoff before changing other placement rules.

  1. Begin with the unmasked chapter 1 receiver. In Filtering, enable Placement Mask and choose Mask Pattern Noise Patches. Keep Mask Validation Center Point.
  2. Set Mask Cutoff 0.5 and click Preview Mask. Adjust Patch Size until distinct allowed/blocked patches are visible; Patch Seed reshuffles the patch pattern.
  3. Click Preview Placement to see the additional effects of spacing, size, and fitting, then Generate on the practice receiver.
  4. Switch to Footprint validation and preview again. Large details near a blocked edge may be rejected more often because their corners and edge midpoints are checked. It is not a guaranteed full-area geometry test.
  5. Clear the practice output and disable the mask to restore the starter workflow.

Object Detection uses assigned targets to either keep scatter away from a region or place it around one. It can be global or per entry.

  • Avoid rejects Mesh Quad footprints or HDRP Decal projection volumes that touch a target shape plus Avoidance Range.
  • Place Around accepts output in the band between Near Range and Far Range. The full footprint must clear Near Range, while at least part must remain within Far Range.

Available target shapes are Object Bounds, Circle, Ellipse, and Rectangle. Object Bounds combines enabled child Renderer and Collider bounds. The other shapes use the target Transform and project into the sampled receiver plane; an empty helper object is useful for a clean anchor. Ellipse and Rectangle expose Width / Length and Shape Rotation.

A per-entry Place Around source gets a dedicated placement pass, so unrelated entries do not consume its candidate attempts. Give it Override Density when the band needs a distinct attempt budget and Override Soft Limit when it needs a maximum count.

  1. On the practice cube, turn the Placement Mask off. Create an empty GameObject at the center of the face you are inspecting and name it PRISM Practice Target.
  2. Select the receiver’s Filtering tab, enable Use Object Detection, and add the helper to Target Objects. Choose Detection Shape Circle with Radius 0.5.
  3. Choose Object Detection Mode Avoid, set Avoidance Range 0.1, and Preview Placement. Footprints touching the target region should be rejected.
  4. Switch to Place Around, with Near Range 0.1 and Far Range 1. Preview again: accepted detail is limited to the outside band. Spacing and card size may leave fewer accepted items; widen Far Range or reduce size if the band cannot fit a footprint.
  5. Generate only on the practice receiver to inspect the result. Clear, then turn Object Detection off before another exercise.

Choose Under Anchor / Drip Streaks when a stain-like source should originate below one or more anchor transforms. Assign Anchors, then choose Placement Mode:

  • Edge Guided distributes streak slots along an anchor’s lower edge. It is the practical starting mode for leaks and grime drips.
  • Random Area uses the wider stain-shaping controls for a less edge-specific region.

For Edge Guided, start with Streak Count, Coverage, and Fit Width To Edge. Add Width Variation, Streak Length Variation, Top Gap, Random Mirror X, and Horizontal Jitter only after the basic distribution works. Allow Overflow deliberately lets a streak extend beyond the clipped anchor edge. Enable Use Alpha Bounds For Alignment when the artwork has transparent padding and you need its visible top edge to align; this requires a readable source texture.

Advanced Drip Controls contains bounds, candidate, downward jitter, and validation settings. Use Advanced Drip Mask Validation checks edge-guided candidates against anchor depth and surface-normal tolerances; enable it only when the straightforward setup needs extra rejection control. Use Preview Placement and the optional anchor-drip diagnostics to understand why streaks are accepted or rejected.

  1. Use a fresh practice wall receiver and add Assets/PRISM Surface/Textures/Scatter/Drips/PRISM_Scatter_Drip_01_Wide.png as its source. Route it to Mesh Quads with the shipping cutout template; keep other entries disabled.
  2. Create an empty helper near the wall’s upper edge. In Filtering, enable Placement Mask, choose Under Anchor / Drip Streaks, and add the helper to Anchors.
  3. Choose Edge Guided, start with Streak Count 3, Coverage 1, and Fit Width To Edge on. Keep advanced validation off initially. The helper position defines the attachment region; adjust it against the wall while previewing.
  4. Click Preview Placement. Expect downward streak slots below the anchor; inspect size, attachment, and rejection diagnostics before Generate. For padded artwork, enable Read/Write and Use Alpha Bounds For Alignment before judging the visible top edge.
  5. Generate, inspect, and Clear on the practice receiver. If no slots fit, check anchor depth/position and source scale before increasing attempts.

Next: Preview, profiles, and recipes.