A - ambient light C - camear L - point light pl - plane object sp - sphere object cy - cylinder object
-1 -> Error AC is not correct number
-2 -> Filename too short
-3 -> Wrong file extension
-4 -> We do not have permission to open the file (specifically checking for O_RDONLY)
-5 -> AV or lux was not passed to Parse section
-6 -> Given .rt file is empty
-7 -> lux is not passed to given function
-8 -> Error encountered in the .rt file (i.e. unknown or missing arguments)
Blender uses a right-angled “Cartesian” coordinate system with the Z axis pointing upwards.
X axis: Left- / Right+
Y axis: Front+ / Back-
Z axis: Top- / Bottom+
name | data type | description |
---|---|---|
origin | tuple 4x1 | Position vector [x, y, z, 1] |
v_orient | typle 4x1 | Direction vector [x, y, z, 0] |
transform | matrix 4x4 | Transform matrix |
https://betterexplained.com/articles/linear-algebra-guide/
https://betterexplained.com/articles/vector-calculus-understanding-the-dot-product/
https://harm-smits.github.io/42docs/libs/minilibx/events.html https://harm-smits.github.io/42docs/libs/minilibx/prototypes.html#mlx_get_data_addr