@Deltakosh Thanks for answer, but I have another problem with this. I need render our galaxy Milky Way and our planet Earth abreast. Milky Way has diameter 100 000 light years (it's 946 100 000 000 000 000 km), and Earth has diameter 12 756 km.
So, when Milky Way is 10^5 Babylon's size-units long, my function is x / 10^14. Then Earth must have 10^(-9) Babylon's size-units. Unfortunately, Earth is not visible (even if I zoom it), and if I set:
camera.minZ = Math.pow(10, -9)
there is same problem as when I set big maxZ - pointer events are not called on mesh.
Any idea how to do this?