Forum

Camera turning upside down

04 October 2018 22:04
Hello,

I have a question about orienting the camera. I have 3 options for the user to switch between front, side, and top views, done using Move Camera nodes. Most of the time it works, but if I click "Top" and then "Front" once I load the application, the camera turns upside down. I suspect it's because internally Blend4Web calculates the shortest transition for the distance and rotation and this is the by-product.

Upon searching "camera orientation" a few posts came up (e.g., https://www.blend4web.com/en/forums/topic/1404/) but the answer doesn't seem to be related to what I'm experiencing.

Is there a way to make sure that the camera never turns upside down? Someone mentioned "correct_up" (https://www.blend4web.com/en/forums/topic/3809/) but since I want to work on the nodes only I prefer not to use code to do that.

Attached is the file I'm working on and you can give it a try to see the problem.

Thanks!

-victor
03 November 2018 13:20
No, the orientation doesn't work in whatever else either. Furthermore, it appears that any application that uses the inner 'gyrator' doesn't work either. For instance, Temple Run 2 flips around on in the position - all non gyroscope apps are fine.
Also, check the Laptop camera orientation on Error Code 0xc00000e9 and get help.
 
Please register or log in to leave a reply.