Understanding Math in POPs
Curriculum Navigator:
If you’re viewing this page from the TouchDesigner curriculum explorer, you can use the buttons below to interact with this topic.
Overview:
POPs allow for mathematical and logical operations without needing to convert to CHOPs or do traditional coding. One important consideration for doing mathematical operations in POPs is to understand that a given operation is happening for all of the points in a POP. This is similar to how Math operations work in TOPs and in multi-sample CHOPs.
For example, try connecting a Circle POP to a Math POP. If you adjust the multiply parameter you end up changing the scale. By default the parameter scope of the Math POP is set to P (which is the position attribute of our input POP), when we multiply P (which is made of up of three components – P(0), P(1), P(2)) with any value – we are actually multiplying each component of P by that value. The resulting effect looks like we’re changing the scale of a POP.
When it comes to math operations, there are several POPs you might use:
The Math POP can take one input, and be used to perform simple math operations like multiplication and addition, as well as additional more complex functions including trigonometry, exponential, logarithmic, power, and combining multiple components.
The Math Mix POP takes multiple inputs and can perform a series of operations in one operator. The Combine page shows a set of operations that can be performed on one, two or three attributes at a time. Additional operations can be added to this page, if needed, using the Combine parameter.
The Math Combine POP is similar to the MathMix POP, but also allows for pre and post operations.
References:
- Math POP – Derivative Wiki
- Math Mix POP – Derivative Wiki
- Point Generator POP – Derivative Wiki
- Particle POP – Derivative Wiki
- POP to CHOP – Derivative Wiki
- Line POP – Derivative Wiki
- Attribute POP – Derivative Wiki
- Pattern POP – Derivative Wiki
