Jump to content

Orthographic Camera


arcanine
 Share

Recommended Posts

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/d20575ae46c723f4971250dcf33fefc6c43e91ad

download 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 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...