Math & Scripting Flashcards
(85 cards)
What are the components of the numeral system used in CG?
Integers (Z): -1, 0, 1, 2, 3
Rational Numbers (Q): ½, ¼, 1/3
Real Numbers (R)
What is the definition of a Cartesian coordinate system?
A rectangular system with potentially infinite size.
It uses ordered pairs like (x, y).
Attention: Axis directions can vary. Houdini uses a Y-Up right-handed system, while Unreal uses a Z-Up left-handed system.
What is the origin of a Cartesian coordinate system?
The point (0, 0).
What does “orthogonal” mean in the context of 3D axes?
Each axis is perpendicular to the others.
What coordinate system does Houdini use compared to Unreal?
Houdini: Y-Up, right-handed system.
Unreal: Z-Up, left-handed system.
What is the result of multiplying a number by -1 in VEX?
Multiplying a number by -1 negates it, e.g., negate(3) = -3.
What is the result of negate(3) and negate(-3) in VEX?
negate(3) = -3
negate(-3) = 3
What is the result of 2 * (-1) and -2 * (-1)?
2 * (-1) = -2
-2 * (-1) = 2
How do you calculate 2 / 4 in mathematical terms?
2 / 4 = 0.5
2 * (0.125) = 0.5
How do you invert the power 2³?
Use 1/3, the inverse of 3.
Write the summation formula for n elements.
Write the summation formula for six elements.
What is the complement of 0.7 in percentages?
1 - 0.7 = 0.3 = 30%
Define a mathematical function.
A relationship between two quantities, written as 𝑓 (𝑥) = 𝑦.
What is the absolute value of -3?
abs(-3) = 3
What are the results of the following rounding operations: round(4.2), floor(4.8), and ceil(4.8)?
round(4.2) = 4
floor(4.8) = 4
ceil(4.8) = 5
What is the minimum of 3 and 4?
min(3, 4) = 3
What is the result of clamp(8, 1, 4)?
4
What is the result of fit(5, 0, 10, 0, 1)?
0.5
How do you calculate the mean of the following numbers: 2, 4, 5, 1, 2, 23, 2, 4, 0?
Sum: 43
Mean: 43 / 9 ≈ 4.78
Why are triangles fundamental in CG?
They are the simplest polygon.
They are planar and can define complex surfaces.
What are the main types of entities in Houdini?
Points
Point Clouds
Primitives (Lines, Triangles, Quads, etc.)
Vertices
List the common datatypes in Houdini.
Integer (int; i@)
Float (float; f@)
Vector (vector; v@)
Matrix (matrix; 4@)
String (string; s@)
What are the Run Over Modes in Houdini’s Attribute VOP nodes?
Points
Primitives
Vertices
Detail (only once)
Numbers