1. Home
  2. Docs
  3. PopcornFX v2
  4. Concepts
  5. Samplers
  6. Shape sampler

Shape sampler

The shape sampler allows you to sample different properties of various 3D shapes (including custom meshes):

Shape sampler

Selecting or hovering a shape sampler displays its shape in the viewport

Shape samplers are either generic primitives (box, sphere, …) or static meshes (FBX files) that can be used to extract shape properties (positions, normals, uvs…) at a random or specific location.

 

Shape samplers are most commonly used with the following templates:

  • ShapeSample
  • ShapeProperties
  • ShapeSampleFromUV
  • ShapeSampleDistanceField
  • shape.project
  • shape.contains
  • Projection

 

Note: Shapes can be overridden by any other shape (including animated meshes) by the game engine when using attribute samplers.

Was this article helpful to you? Yes No

How can we help?