Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
This will change the camera's projection mode to orthogonal (without depth) Usage: camera.setOrthogonal(true); Link: http://pastebin.com/7VZzcWLH |
||||
|
Nice! |
||||
|
I have major deformation on the sides of the canvas (as you would on a real lens with a wide angle) Am I right in saying the above code only works for a model viewer? On my FPS camera, using this prototype, I am basically a mile back with a very long lens, so yes I have an orthogonal view but with some major drawbacks: When I enter a building I am stuck with the view from outside (basically I see items, such as walls, that are behind me) When I look around, as the camera becomes effectively a lever point, my POV raises and lowers dramatically Is there another solution to get an orthogonal view in copperlicht? |
||||
|
From what you describe, isn't that what an orthogonal camera in 3D does? |
||||
|
Not necessarily, in most modern games the view is orthogonal but they definitely do not work like this one. As I said, it is orthogonal but produces other problems which on a FPS camera makes it totally useless. I have played with the max and min plane for the camera (to hide walls behind it) but then I can see walls become transparent on the side of the screen which isn't good either) With this I was hoping to find a way to manage the view so that I could have the view from where the camera is and so I do not see walls behind me. I was also hoping that, when I look around, the view would not rotate around the camera position but in the camera position. Basically it would be nice to have this behavior on a FPS camera, the behavior as it is right now is not usable for a FPS camera... but then maybe I am not understanding this prototype (behaviour) so well, what are all those m00, m01, mo2, etc. in the code? any reference anywhere? |
||||
|
Those m00 etc are the members of the 4x4 projectsion matrix. You can set them freely. If you have a projection matrix which does an orthogonal projection as you want it to, you can set the matrix members to the one you need. |
|