NEW IN R20

Material Manager Material Nodes Individual Assets Generator Trace Ray
Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D
Trace Ray

Preview Basic Inputs Outputs Context

Outputs

Color [XYZ ]

The shaded surface color at the hit point is output here. Note that if no object was hit within the specified Max Distance, the node will consider the scene’s Sky (if any) and include its value in the Color output.

Geometry Normal [XYZ ]

Returns the original, unsmoothed surface normal at the hit point.

Phong Normal [XYZ ]

These are surface Normals at the sample’s point of impact on the surface modified by the Phong or Normal tag.

Position [XYZ ]

This global position defines the sample’s point of impact on the surface.

Distance [-∞..+∞]

The distance inproject units between the Origin of the ray and the point of impact found is output here.

Normalized Distance [-∞..+∞]

This value lies between 0 and 1 and represents the ratio of the distance actually traveled by the ray and the user-defined Max Distance value.

Index [-2147483648..2147483647]

Each polygon has a sequential number on the polygon, which is output here for the impacted surface.

Hit

Here you will find a Boole signal, i.e., either TRUE or FALSE, depending on whether or not a point of impact was found along the ray path.