Rajkumar Posted April 15, 2016 Share Posted April 15, 2016 Hi, I am trying to implement a feature where in, the meshes need to be fit to say 80% of the canvas size. Created a playground in order to try this, when I double click, I try to zoom all. http://www.babylonjs-playground.com/#RXUCB#0 I require help in finding a relation between bounding info of mesh, with the width and height of canvas so that 1. the mesh should be centered in the canvas 2. the mesh should fit 80% area of the canvas. I am not sure if this was asked in older posts, please help. Regards Rajkumar 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.