Hello,
as a follow upon some of my hotspot questions:
Is it somehow possible to attach a Sprite in the 3D realm but keep it from scaling with the camera zoom?
I am basically trying to create clickable Hotspots ( including text ) on a model that should always have the same size.
In this playground example, the sprites are nicely rotating with the model but are scaling:
https://www.babylonjs-playground.com/#IGQ023#3
and in this example, using the gizmo manager, the sprites are always the same size, but they are also visible when they are “behind” the model.
https://www.babylonjs-playground.com/#RQ2T0A#18
Now I would just need to somehow combine the two
Thanks again for all help!
Hello!
You can take your first solution and then add a function on scene.registerBeforeRender()
to scale the sprites up and down based on camera position?
Thanks,
Well, I opted for
sprite.size = .1*scene.activeCamera.lowerRadiusLimit
that keeps it in proportion.