Hi there!
I'm new to Gideros and documentation is way too confusing.
How one is supposed to place a movable and rotatable camera in a 3d environment?
I've tried viewports and rotating the root sprite but it took me nowhere.
Movement is not a big deal, but rotation performs weird tricks.
(
see attachment)
What I want to know is how to make camera rotate around itself and not around some weird point in 3d world.
It's important to not rotate the "stage" node since the text like coordinates should be available at all times.
Regards!
Comments
I've rewritten your main.lua so that it does what you want (well I hope thats what you want). The key is to use a Viewport as camera, it has a lookAngle() function to setup the camera position and angles. You should also forget about application:configureFrustum(), as it will apply to everything on stage, even texts or UI. Configure the projection directly in your Viewport, then scale/place the viewport in your 2D stage.
Likes: keszegh, 4aiman, antix, MoKaLux
Likes: MoKaLux