burbonvagin Posted July 21, 2014 Share Posted July 21, 2014 I noticed that when the canvas' height and width are set to 100% so it fills the window babylon.js changes the canvas' width and height properties to the size of the window. Is it possible to disable this so that the canvas could run at 720p but fill the window? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 22, 2014 Share Posted July 22, 2014 Yep you can call engine.setHardwareScalingLevel(720.0 / window.innerHeight) styxxx 1 Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted June 20, 2016 Share Posted June 20, 2016 I'm greatly interested by this option, just a little comment : my default resolution is 1920x965, and when i copy/paste the mentionned code above, it switch to 2573x1293 ! So i have write engine.setHardwareScalingLevel(window.innerHeight/720); to obtain 1432x720. I don't know why, i'm crap at maths GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.