brean Posted October 27, 2018 Share Posted October 27, 2018 Hi, I am building a openstreetmap-integration to Babylon.js and I like to only load tiles that need to be shown and dispose tiles that are not visible anymore. To do that I need some way to figure out what tiles are in the view. I already found BABYLON.Vector3.Unproject which I could feed with the screen width/height divided by 2 in all directions to calculate the dimensions of the viewport in babylon coordinates. I only manage to get this working when the camera is directly in front of the screen, so I need to figure out how the distance from the camera to the screen can be used, see: http://www.babylonjs-playground.com/#ZFXWSF Can anyone tell me how I get the dimensions of the viewport at a cirtain distance in babylon coordinates? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.