zhg115 Posted September 7, 2016 Share Posted September 7, 2016 var p = BABYLON.Vector3.Project(vector, BABYLON.Matrix.Identity(), scene.getTransformMatrix(), camera.viewport.toGlobal(engine)); it's return P { x: NaN , y: NaN} camera.viewport.toGlobal(engine) is null e {x: NaN, y: NaN, width: NaN, height: NaN} i find google and the result page is return the NaN too. http://www.babylonjs-playground.com/#UWSIL#1 I use it this function last month, and it worked. but now didn't work. I don't konw why? help... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 7, 2016 Share Posted September 7, 2016 yep we changed signature (really rare but sometimes we have to do it) to this new one: http://doc.babylonjs.com/classes/2.4/Viewport#toglobal-renderwidth-renderheight-rarr-viewport-classes-2-4-viewport- 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.