clip_geo

Class

Shader

Output

CLOSURE

 

synopsis


The Clip Geo shader makes a shape a 'clipping shape'. A clipping shape clips geometry from any shape that intersects with it. For example, a sphere with the Clip Geo shader clips geometry from the cubes that intersect with the sphere:


Users can limit the objects that are affected with trace sets, and optionally choose a specific shader for the intersection surfaces if needed.  

  • Self-intersecting geometry or intersecting clipping objects can cause artifacts. 
  • Open objects may cause unwanted clipping (should be as watertight as possible).
  • Clipped volumes are not currently supported (expected in a future release).

 

The intersection surface can be removed by disabling Primary Visibility (and Cast Shadows) for the intersecting object (sphere).

 

intersection

The color or shader applied to the result of the clipping.

Red shader -> Intersection

trace_set

It is possible to tag objects to be part of one or many trace sets. You can use trace sets to control which objects are clipped.

The muscles use the same trace set name as the Clip Geo shader.

The skull & veins objects are omitted because they do not have a trace set name.

 

If you want only certain objects to be clipped:

  1. Create a trace set by entering a name in the shader Trace Sets text box (for example, "objects_to_clip").
  2. Put the objects in that trace set (by entering the same trace set name for those shapes). Only objects in the trace set will be clipped.

trace_set2

 If you want to avoid clipping some objects:

  1. Create a trace set by entering a name in the shader Trace Sets text box (for example, "objects_not_to_clip").
  2. Clear the Inclusive checkbox.
  3. Put the objects in that trace set (by entering the same trace set name for those shapes).
  4. All objects not in the trace set will be clipped.

inclusive

If on, the tracing works in inclusive mode, else in exclusive, as described above. 

  • No labels