MasterK Posted January 11, 2016 Share Posted January 11, 2016 ipadopen my 3d page. it's ok.then i lock device, and unlock it.the canvas looks like be double magnified. how to make it dont magnify... Quote Link to comment Share on other sites More sharing options...
MasterK Posted January 11, 2016 Author Share Posted January 11, 2016 it done, and i can't delete this... i used to create engine by var engine = new BABYLON.Engine(canvas, true, null, true); //because some time before, change orient in pad will make canvas magnify....so i use this. but it seems not need it now. and change to var engine = new BABYLON.Engine(canvas, true);// will be ok... Quote Link to comment Share on other sites More sharing options...
MasterK Posted January 11, 2016 Author Share Posted January 11, 2016 it's happened again.... in both new BABYLON.Engine(canvas, true, null, true) and new BABYLON.Engine(canvas, true).lock device and unlock will make the canvas content bigger!!!! help... Quote Link to comment Share on other sites More sharing options...
Temechon Posted January 11, 2016 Share Posted January 11, 2016 Sadly I don't have any iPad to test it. Did you try to call engine.resize() ?window.addEventListener("resize", function() {engine.resize();}); Quote Link to comment Share on other sites More sharing options...
MasterK Posted January 12, 2016 Author Share Posted January 12, 2016 15 hours ago, Temechon said: Sadly I don't have any iPad to test it. Did you try to call engine.resize() ? window.addEventListener("resize", function() {engine.resize();}); yes, i always has this code. when size wrong, i make orient change twice, and size will be right. 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.