-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPBGE: Genralize override camera projection matrix.
Previously due to an issue with orthographic projection, the override camera was always using a projection matrix not computed in the normal way. This introduced branches to detect if the camera was the override camera. But the issue was able to be fixed and let RAS_FramingManager compute camera settings for every camera. To fix the orthographic camera projection issue, LA_BlenderLauncher::InitCamera is now constructing a more complete RAS_CameraData based on the settings created by the function BKE_camera_params_from_view3d, these values are just copied and enought to solve the issue. In the same time we don't need the camera view matrix to get it's position and orientation in KX_KetsjiEngine::PostProcessScene. Only the position and orientation are now passed to KX_KetsjiEngine::EnableCameraOverride and stored which avoid extra computation from the view matrix (inversing) to get these two values.
- Loading branch information
1 parent
61d044b
commit a2de330
Showing
3 changed files
with
72 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters