Need help in displaying world axes

Hi
I need to display world axes. In my scenario, I don’t want the world axes to be translated, zoomed,
panned, scaled.
World axes should be in static position.
But it should rotate when the camera rotates.
How to do this?

https://www.babylonjs-playground.com/#TRAIXW#1

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
https://doc.babylonjs.com/how_to/multi_scenes
https://www.babylonjs-playground.com/#L0IMUD#1

1 Like

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.

Hi @gopivell,
Some time ago I created camera.viewport playground. I hope this could help you.

1 Like

@Arte
Thanks. This is the one which exactly matches my requirement.
Kindly close the thread as success.

1 Like

https://www.babylonjs-playground.com/#L0IMUD#50 use this as starter scene and remove all trash from code

2 Likes

As author of the thread you should be able to find a solved button on the post that answers your question.

Hi @kvasss,
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
https://www.babylonjs-playground.com/#L0IMUD#51
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

1 Like

Hi @kvasss,
Yes I have translated the world axes.
It is working good now.
Thanks.

1 Like