ovmihai Posted September 22, 2015 Share Posted September 22, 2015 Hello. I have a question. After the setup from this playground: http://www.babylonjs-playground.com/#1YPN9C i expected the view to be from the top and the camera looking perpendicular down at Vector3.Zero. But instead it is perpendiculary looking from a side, you have to pull down to acheieve the top view. Do you guys have any idea wham am i doing wrong? Thank you. Quote Link to comment Share on other sites More sharing options...
RaananW Posted September 22, 2015 Share Posted September 22, 2015 hey, without debugging too much, you are doing nothing wrong. For some reason when the Z axis of the camera's position is 0, you don't get the right results.Here - http://www.babylonjs-playground.com/#1YPN9C#1 . I assume it's a bug, I will try debugging it later and understand what's wrong with it. Or maybe DK can help with a hint as to where to search for it :-) Quote Link to comment Share on other sites More sharing options...
ovmihai Posted September 22, 2015 Author Share Posted September 22, 2015 Hi RaananW, thank for the hint. It made me curious why i can not obtain a top view since everything was looking ok to me. Thank you for the "hack". Let's hope that DK will come with a more logical approach . Quote Link to comment Share on other sites More sharing options...
Jaskar Posted September 23, 2015 Share Posted September 23, 2015 Hey, Yes, it's a bug. Babylon don't love 0 value, idk why.So, keep in mind, when something is wrong with 0 value, try with 0.1. Have fun with BJS Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 23, 2015 Share Posted September 23, 2015 Bug spotted:) This comes from Matrix.LookAt I'll fix it right now 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.