jacquesr Posted October 29, 2015 Share Posted October 29, 2015 Hi, I have a top-down camera set up as orthographical. Now, I first tried it with position.z = 0 and then we had a forum discussion that revealed that we had to set z to at least 0.1. Else it would never draw the scene top-down I then wanted to change the angle from which the cam is looking and exchanged z 0.1 with x 0.1 so that it would (hopefully) look with the upper edge of the screen aligned along the Z axis instead of the X axis (I hope it's clear what I mean) That didn't work. How do I correctly achieve that?To clarify what I want:imagine we have a long cubic mesh that has an " | " shape when looked at from above.It now appears as " | " and I want it to appear as " _ " Note: Turning the mesh is not an option! Quote Link to comment Share on other sites More sharing options...
iiceman Posted October 29, 2015 Share Posted October 29, 2015 Hmm, hard to imagine without a playground to look at That Camera is a FreeCamera, right? Maybe you can change the UpVector... http://doc.babylonjs.com/classes/2.2/Camera#upvector-vector3-classes-2-2-vector3- Quote Link to comment Share on other sites More sharing options...
jacquesr Posted October 29, 2015 Author Share Posted October 29, 2015 here is the example, I would like to have the cube length drawn on the width of the view instead of the height http://www.babylonjs-playground.com/#ATRFZ Quote Link to comment Share on other sites More sharing options...
iiceman Posted October 29, 2015 Share Posted October 29, 2015 Uhm.. then simply set the rotation around the y-axis: http://www.babylonjs-playground.com/#ATRFZ#1 no? Quote Link to comment Share on other sites More sharing options...
jacquesr Posted October 29, 2015 Author Share Posted October 29, 2015 that was kind of too easy and I think I did that when I was on 2.1 and it did not work oO thank you very much 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.