Quadear Posted January 5, 2017 Share Posted January 5, 2017 Hi, I have a question here. When I'm using an orthographic camera like here : http://www.babylonjs-playground.com/#10VR41#17 the position field of the camera object is (5, 5, -5), but the point of vue is not rly coming from (5, 5, -5), it's a lot further. Is it possible to know the point where the cam is ? Thank you ! Quote Link to comment Share on other sites More sharing options...
Quadear Posted January 5, 2017 Author Share Posted January 5, 2017 If someone is thinking that it can't be done, because by definition, an orthogonal camera has no view FOV Angles, you just set the min max for every axes, sadly, I agree with you. But I need a solution : I'm building rays to mousepick elements in my scene, but theses rays are built using the camera's position, not the "visual position" so all the distances returned using the scene.mousepick function are visually wrong (even though it's technically true, they are just using a camera position that differs from what the user sees). If you have any ideas on how to solve this problem ... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 6, 2017 Share Posted January 6, 2017 Hey! Can you explain why you need this? Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted January 7, 2017 Share Posted January 7, 2017 That's just your z depth. You can limit your frumstrum to a certain depth. I'm kinda confused on what your trying to accomplish with this method. 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.