nskrypnik / kivy3

3D graphics framework for Kivy.
MIT License
85 stars 43 forks source link

Add RUB vectors and viewport matrix #17

Closed KeyWeeUsr closed 7 years ago

KeyWeeUsr commented 7 years ago

Working with PR #16 this PR includes the right, up, back vectors taken directly from modelview matrix for easier use for users + refreshes them when the matrices are updated in renderer (RUB should be up-to-date, but until now the up was only Y axis - no refresh from modelview matrix).

KeyWeeUsr commented 7 years ago

Apparently when the up is up-to-date, sooner or later the main axis changes, which in my code results as switching from Y axis as up to negative Z as up, which basically inverts the camera. It's still useful to have a simple access to RUB though.