jessepmason Posted January 31, 2016 Share Posted January 31, 2016 Hello everybody! I am trying to transition between a perspective camera and a orthographic camera seamlessly..while I have gotten close just animating the parameters like the .fov, targets and .orthoTop etc. I just cant seem to perfectly match a perspective camera and a orthographic camera so I thought maybe to just animate the cameras matrix... is that possible? I made a playground to show my failed attempt at animating the matrices: http://www.babylonjs-playground.com/#15MTKL#1 it only seems to update at the end of the animation instead of every frame Thanks a ton! Quote Link to comment Share on other sites More sharing options...
jessepmason Posted January 31, 2016 Author Share Posted January 31, 2016 Nevermind! I actually was able to align the cameras by animating the parameters... I was just being silly and didn't set the .orthoTop/.orthoBottom/... values correctly. But I am still curious to know if you are able to animate the camera matrices? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 1, 2016 Share Posted February 1, 2016 The problem with animating matrices is that they are computed by the engine. But if you do not change any paramters related to the projection (like ofv, etc..) Matrices animations need an extra parameter: http://www.babylonjs-playground.com/#15MTKL#2 Quote Link to comment Share on other sites More sharing options...
jessepmason Posted February 1, 2016 Author Share Posted February 1, 2016 Awesome! Good to know! Thanks! GameMonetize 1 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.