phr00t / FocusEngine

Focus Game Engine. This is Stride/Xenko fast-tracked for Phr00t's Software games. Improvements over the original Focus on Vulkan support, PC platforms, VR, performance & ease. Cherry-picks commits from other forks as needed.
MIT License
98 stars 11 forks source link

3D text in editor's Camera preview follows game view, not selected camera #84

Closed phr00t closed 5 years ago

phr00t commented 5 years ago

When selecting a camera in GameStudio, a little camera preview box pops up to show what the camera sees. 3D text doesn't get rendered properly in this camera preview box. The 3D text follows the projection of the editor's camera (moved with the WASD keys and mouse), not the selected camera. Other 3D objects (like sphere meshes etc.) behave as expected: stay still when the selected camera stands still, while the editor's camera is moving.

phr00t commented 5 years ago

This causes problems for rendering to texture in games. Probably just getting the main camera projection and not the Rendering camera.

phr00t commented 5 years ago

Fixed with https://github.com/phr00t/xenko/commit/272ed0af59dab8350dd7cf8a2449bce4d1080c89