This sounds very tricky indeed. This topic parse(convert)toVector3 ( by reference to canvas or viewport. ) looked at a similar problem and playing around with one of the PGs allows you to re-size the screen and maintain a spheres position as in https://playground.babylonjs.com/#JQJ8UM#7. HOWEVER the camera is not attached to the canvas. Attaching the camera moves the sphere as the camera moves. It might help but then again it could be a red herring. Hopefully others more knowledgeable may have more ideas.
1 Like