I need to display world axes. In my scenario, I don’t want the world axes to be translated, zoomed,
World axes should be in static position.
But it should rotate when the camera rotates.
How to do this?
i understand what you need/ you need create second scene with new camera and your axes and connect second scene camera with your main scene camera. something like this
Hi @kvasss ,
I tried using Overlay Multiple Scenes method to render scene.
But I am not able get required functionality.
I am not able to link first camera to the second camera.
Thanks. This is the one which exactly matches my requirement.
Kindly close the thread as success.
https://www.babylonjs-playground.com/#L0IMUD#50 use this as starter scene and remove all trash from code
As author of the thread you should be able to find a solved button on the post that answers your question.
I tried using this solution also.
This idea is good. But I prefer the World axes to be on the right side top. something like this example
hi @gopivell. you can use camera viewport properties
or as said Arte camera.viewport = new BABYLON.Viewport(0.85, 0.85, 0.15, 0.15);
my solution works only with ark rotate camera. for other types of camera you need build other situable registerBeforeRender loop function
Yes I have translated the world axes.
It is working good now.