Close

Experimental:Normal POP

Summary

The Normal POP lets you create “normal vectors” and “tangent vectors” based on the incoming set of triangles or quads.

You can create normals or tangents as point attributes, vertex attributes or primitive attributes.

You can choose from several strategies for computing normals and tangents, based on each point being a member of several primitives.

You usually use the P position attribute to compute the normals and tangents, but you can use any vec3 attribute.

The results are placed in the N and (optionally) T attributes, but you can name the new attribute anything.

If the incoming geometry already has normal or tangent vectors, you can choose to do nothing, re-compute values, error, or delete the attributes.

Because this runs on the GPU that needs pre-determined sizes, you need to set the Max Number of Primitives per Point, the default 6 being typically sufficient.

PythonIcon.pngnormalPOP_Class


Parameters - Normals Page

Normals Action nml - -
  • No Action noaction -
  • Always Compute alwayscompute -
  • Compute if it doesn't exist computeifnone -
  • Remove remove -

Input Position Attribute inputposattrn -

Attribute Class attrclass - -
  • Point point -
  • Vertex vertex -
  • Primitive primitive -

Normals Weighting nmlweighting - -
  • Average average -
  • Angle Weighted angleWeighted -
  • Area Weighted areaweighted -

Compute Normals Technique compnmltech - -
  • Atomic Float (if supported) atomicfloat -
  • Atomic Comp Swap atomiccompswap -
  • Loop over Primitives Per Point loopprims -

Max Number of Primitives per Point maxprimsperpoint -

Angle angle -

Normal Output Attribute Scope outputattrscopen - -
  • P P -
  • N N -
  • Color Color -
  • Color.i012 Color.i012 -
  • Tex Tex -
  • PointScale PointScale -
  • LineWidth LineWidth -


Override Automatic Attribute overrideautoattrn -

New Attribute Type newattrtypen - -
  • float float -
  • double double -
  • int int -
  • uint uint -
  • dir dir -
  • dbl dir ddir -

New Attribute Number of Components attrnumcompsn - -
  • 1 1 -
  • 2 2 -
  • 3 3 -
  • 4 4 -

New Attribute Default Value newattrdefaultvaln - -
  • New Attribute Default Value newattrdefaultvaln1 -
  • New Attribute Default Value newattrdefaultvaln2 -
  • New Attribute Default Value newattrdefaultvaln3 -
  • New Attribute Default Value newattrdefaultvaln4 -


Parameters - Tangents Page

Tangents Action tang - -
  • No Action noaction -
  • Always Compute alwayscompute -
  • Compute if it doesn't exist computeifnone -
  • Remove remove -

Input Position Attribute inputposattrt -

Input Normal Attribute inputnormalattr -

Input Texture Coord Attribute inputtexattrib -

Compute Tangents Technique comptangtech - -
  • Atomic Float (if supported) atomicfloat -
  • Atomic Comp Swap atomiccompswap -

Tangent Output Attribute Scope outputattrscopet - -
  • P P -
  • N N -
  • Color Color -
  • Color.i012 Color.i012 -
  • Tex Tex -
  • PointScale PointScale -
  • LineWidth LineWidth -


Override Automatic Attribute overrideautoattrt -

New Attribute Type newattribtypet - -
  • float float -
  • double double -
  • int int -
  • uint uint -
  • dir dir -
  • dbl dir ddir -

New Attribute Number of Components attrnumcompst - -
  • 1 1 -
  • 2 2 -
  • 3 3 -
  • 4 4 -

New Attribute Default Value newattrdefaultvalt - -
  • New Attribute Default Value newattrdefaultvalt1 -
  • New Attribute Default Value newattrdefaultvalt2 -
  • New Attribute Default Value newattrdefaultvalt3 -
  • New Attribute Default Value newattrdefaultvalt4 -


Parameters - Common Page

Bypass bypass -

Delete Input Attributes delinputattrs -


Operator Inputs

  • Input 0: -


Info CHOP Channels

Extra Information for the Normal POP can be accessed via an Info CHOP.

Common POP Info Channels

Common Operator Info Channels

  • total_cooks - Number of times the operator has cooked since the process started.
  • cook_time - Duration of the last cook in milliseconds.
  • cook_frame - Frame number when this operator was last cooked relative to the component timeline.
  • cook_abs_frame - Frame number when this operator was last cooked relative to the absolute time.
  • cook_start_time - Time in milliseconds at which the operator started cooking in the frame it was cooked.
  • cook_end_time - Time in milliseconds at which the operator finished cooking in the frame it was cooked.
  • cooked_this_frame - 1 if operator was cooked this frame.
  • warnings - Number of warnings in this operator if any.
  • errors - Number of errors in this operator if any.


TouchDesigner Build: