arcanine Posted November 30, 2014 Share Posted November 30, 2014 I don't see any mention of this in the documentation, but I saw it in the source code and according to wiki it makes a 2D camera because you don't get weird perspective angles applied at the sides of the view port I've figured out how to enable it camera.mode = 1 but I basically lose control of the scene, is this camera ready or am I misusing it somehow? to see an example of the problem go to this github repo (at this commit): https://github.com/slifin/Flourish-babylon/tree/d20575ae46c723f4971250dcf33fefc6c43e91addownload the files and open index.html you will see how it's supposed to look then go to this line:https://github.com/slifin/Flourish-babylon/blob/d20575ae46c723f4971250dcf33fefc6c43e91ad/js/game.js#L15 and simply uncomment the line and refresh index.html you'll see it's weird and broken Quote Link to comment Share on other sites More sharing options...
Temechon Posted December 1, 2014 Share Posted December 1, 2014 Hello You will find in this post all the answers you need. Basically, you need to set 4 variables : camera.orthoTop;camera.orthoBottom;camera.orthoLeft;camera.orthoRight;Cheers ! Quote Link to comment Share on other sites More sharing options...
arcanine Posted December 1, 2014 Author Share Posted December 1, 2014 ah brilliant, will try this when I get home 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.