Skip to main content
10 events
when toggle format what by license comment
Mar 18, 2025 at 5:33 comment added Chase M i resolved the issue, for those after me its a rotation along the Z+, then along the camera right, then finally a rotation along the forward axis
Mar 6, 2025 at 19:24 comment added Futurologist I believe you may need not just the position of the camera in the world coordinate system, but also the orientation of the camera in world space, e.g. the coordinates of the horizontal vector aligned with the screen and the vertical vector aligned with the screen of the camera (in world space), or something like that. In some cases you may also need the focal distance from the camera's center to the screen...
Mar 5, 2025 at 11:18 review Close votes
Mar 9, 2025 at 0:02
Mar 5, 2025 at 11:02 comment added Christoph Rackwitz library for linear algebra in C++: stackoverflow.com/questions/1380371/… and en.wikipedia.org/wiki/Comparison_of_linear_algebra_libraries (tldr: eigen)
Mar 5, 2025 at 11:01 history edited Christoph Rackwitz
edited tags; edited tags
Mar 5, 2025 at 8:28 comment added Pepijn Kramer std::vector is a C++ container, think of it as a resizable array. What you need is a struct or class that models a vector with at least an x,y and z component (and probably a homogeneous component as well).
Mar 5, 2025 at 8:07 comment added Pepijn Kramer NOTE : std::vector in C++ is NOT a mathematical vector. Do NOT use it for matrix/vector calculations. Use a math or better 3D graphics library for that. The math you need is explained in many online source. But this might get you started wrt to th e concepts you need : Maths for game development
Mar 5, 2025 at 6:46 history edited Chase M CC BY-SA 4.0
added 2 characters in body
Mar 5, 2025 at 6:36 comment added Chase M i should note that "input_vector" is the camera direction vector
Mar 5, 2025 at 6:35 history asked Chase M CC BY-SA 4.0