Yo coders!
I got and issue with a vector computation. I'm somewhat "okish" with vectors for basic calculations, but this one, I can't figure out.
I want to control the Window Camera left/right and up/down motions based on it's forward vector no matter the rotation on other axis.
Here's two shot to explain the situation:
On this shot, it's the "easy" situation. The forward vector point to Selene, only X and Y are rotated, so if I'm animating a motion, moving the camera will follow the axis as expected.
On that one, the Z vector is rotated, which suddenly makes the left/right/up/down controls incorrect since "visually" the preview of the shot is correct, but the vectors are rotated.
The idea is to always move based on the orientation of the preview. So, only use the forward axis as a reference and move up/down/left/right based on the world up vector compensated for the forward vector of the camera. I'm just unable to figure out the calculation for this.
I'm kind of starting to believe I would simply have to change the calculations based on the camera and the preview orientation. But I'm wondering if my initial approach is doable ( I suspect so, but I might not have the braincells to do so )
If you have any insights I'd be super happy!
Cheers!
I got and issue with a vector computation. I'm somewhat "okish" with vectors for basic calculations, but this one, I can't figure out.
I want to control the Window Camera left/right and up/down motions based on it's forward vector no matter the rotation on other axis.
Here's two shot to explain the situation:
On this shot, it's the "easy" situation. The forward vector point to Selene, only X and Y are rotated, so if I'm animating a motion, moving the camera will follow the axis as expected.
The idea is to always move based on the orientation of the preview. So, only use the forward axis as a reference and move up/down/left/right based on the world up vector compensated for the forward vector of the camera. I'm just unable to figure out the calculation for this.
I'm kind of starting to believe I would simply have to change the calculations based on the camera and the preview orientation. But I'm wondering if my initial approach is doable ( I suspect so, but I might not have the braincells to do so )
If you have any insights I'd be super happy!
Cheers!