Minetest mod that adds a command to take in-game photos.
Go to file
Li0n 768c8b2caa
* Align ”right” vector with the horizontal plane
The player's camera in Minetest has limited degrees of freedom: It can
only rotate around the Y axis and look up and down. This means players
can vary pitch and yaw, but never roll. This implies that the ”right”
vector used to construct the lens must be aligned with the horizon.

This constraint was not taken into account before this patch, so the
in-game images rendered by xcam were often somehow tilted. This patch
sets the Y component of the “right” vector to zero to align the “right”
vector with the horizon: This makes the vector determined by its X and Z
components only and thus aligned with any horizontal plane in Minetest's
coordinate system.
2023-11-11 01:53:04 +01:00
LICENSE + Add LICENSE 2023-11-08 21:42:33 +01:00
init.lua * Align ”right” vector with the horizontal plane 2023-11-11 01:53:04 +01:00
mod.conf + Initial import 2023-11-08 12:56:34 +01:00