How can I create fixed AxesViewer with dynamicText?

Hi:
I am newer of babylon.js; I have a development requirement : I want create fixed axis with AxesViewer and my model can scale. like this example

example

in addition I want add dynamicTexture on the axis(x,y,z). and then I have created axis and dynamic texture。 but the text is static not follow the axis when I rotate the scene , how can I do next. what I need is when I rotate the scene , the dynamicTexture(x,y,z) should follow the axis to rotate at the same time . the axis is fixed and the model should enable scaled.

some example like this one can draw the axis, and the text follow the axis to rotate . but the axis is not fixed . how can I make it fixed , or how can I combine this two example
https://playground.babylonjs.com/#2EYZPE

Is that what you have in mind?

1 Like

thanks a lot . I use your code it worked;
and I want to know why this position?

xChar.position = new BABYLON.Vector3(0.02, 0.05, 0.25);
yChar.position = new BABYLON.Vector3(0.0, 0.05, 0.25);
zChar.position = new BABYLON.Vector3(0.02, 0.05, 0.25);

image

two days ago my code is like yours . the different is, I set the position like this

xChar.position = new BABYLON.Vector3(3, 0, 0);
yChar.position = new BABYLON.Vector3(0, 3, 0);
zChar.position = new BABYLON.Vector3(0, 0, 3);

the text close to the axis .but when I rotate the scene , the text is not follow the axis rotation.

I just pust values so that the X/Y/Z texts were correctly placed visually. What makes the texts follow the axis is this bit of code:

        axis.xAxis.parent = axisParent;
        axis.yAxis.parent = axisParent;
        axis.zAxis.parent = axisParent;