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.
Parameters - Normals Page
nml
- ⊞ -
- No Action
noaction
-
- Always Compute
alwayscompute
-
- Compute if it doesn't exist
computeifnone
-
- Remove
remove
-
inputposattrn
-
attrclass
- ⊞ -
- Point
point
-
- Vertex
vertex
-
- Primitive
primitive
-
nmlweighting
- ⊞ -
- Average
average
-
- Angle Weighted
angleWeighted
-
- Area Weighted
areaweighted
-
compnmltech
- ⊞ -
- Atomic Float (if supported)
atomicfloat
-
- Atomic Comp Swap
atomiccompswap
-
- Loop over Primitives Per Point
loopprims
-
maxprimsperpoint
-
angle
-
outputattrscopen
- ⊞ -
- P
P
-
- N
N
-
- Color
Color
-
- Color.i012
Color.i012
-
- Tex
Tex
-
- PointScale
PointScale
-
- LineWidth
LineWidth
-
overrideautoattrn
-
newattrtypen
- ⊞ -
- float
float
-
- double
double
-
- int
int
-
- uint
uint
-
- dir
dir
-
- dbl dir
ddir
-
attrnumcompsn
- ⊞ -
- 1
1
-
- 2
2
-
- 3
3
-
- 4
4
-
newattrdefaultvaln
- ⊞ -
- New Attribute Default Value
newattrdefaultvaln1
-
- New Attribute Default Value
newattrdefaultvaln2
-
- New Attribute Default Value
newattrdefaultvaln3
-
- New Attribute Default Value
newattrdefaultvaln4
-
Parameters - Tangents Page
tang
- ⊞ -
- No Action
noaction
-
- Always Compute
alwayscompute
-
- Compute if it doesn't exist
computeifnone
-
- Remove
remove
-
inputposattrt
-
inputnormalattr
-
inputtexattrib
-
comptangtech
- ⊞ -
- Atomic Float (if supported)
atomicfloat
-
- Atomic Comp Swap
atomiccompswap
-
outputattrscopet
- ⊞ -
- P
P
-
- N
N
-
- Color
Color
-
- Color.i012
Color.i012
-
- Tex
Tex
-
- PointScale
PointScale
-
- LineWidth
LineWidth
-
overrideautoattrt
-
newattribtypet
- ⊞ -
- float
float
-
- double
double
-
- int
int
-
- uint
uint
-
- dir
dir
-
- dbl dir
ddir
-
attrnumcompst
- ⊞ -
- 1
1
-
- 2
2
-
- 3
3
-
- 4
4
-
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
-
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: