You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
Is there a "proper" way to switch Urho3D to use a right handed coordinate system?
(As Urho defaults to a left handed system)
The reason I need this is for compatibility with a large system I am trying to adapt to use Urho3D for the 3D engine.
So far, I seem to have made good progress by misusing the Camera::SetFlipVertical function in both DX9 and OGL modes. However, this is not ideal because that seems to really be intended for internal use, plus in OGL I have to keep re-enabling it because Urho resets it to false after each frame. I think there are probably other things that will bite me for this kludge too.
I did wonder if setting a custom projection via Camera::SetProjection, but that seems to disable the automatic aspect ratio adjustment. So I wondered if there is something I'm missing that would help me here?
The text was updated successfully, but these errors were encountered:
The simplest way to go is to tweak "flip vertical" so it's not reset after each frame.
This is basically the same thing as "custom projection", except it also properly handles culling.
Good shout, thanks. Removing the reset seems to have fixed the issue. Although presumably when Urho makes use of it internally to fix render to texture issue difference between OGL and DX, that would need to be the inverse of whatever the setting set from outside?
Is there a "proper" way to switch Urho3D to use a right handed coordinate system?
(As Urho defaults to a left handed system)
The reason I need this is for compatibility with a large system I am trying to adapt to use Urho3D for the 3D engine.
So far, I seem to have made good progress by misusing the
Camera::SetFlipVertical
function in both DX9 and OGL modes. However, this is not ideal because that seems to really be intended for internal use, plus in OGL I have to keep re-enabling it because Urho resets it to false after each frame. I think there are probably other things that will bite me for this kludge too.I did wonder if setting a custom projection via Camera::SetProjection, but that seems to disable the automatic aspect ratio adjustment. So I wondered if there is something I'm missing that would help me here?
The text was updated successfully, but these errors were encountered: