fateriddle Posted November 2, 2018 Share Posted November 2, 2018 How do I convert float32Array data into Babylon.js Matrix? I read real device camera data in float32Array format, how do I convert it into babylonjs Matrix? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 2, 2018 Share Posted November 2, 2018 Hello, is your data a 4x4 matrix? is it left handed? you can directly create a matrix with BABYLON.Matrix.FromFloat32ArrayToRefScaled(data, 0, 1, newMatrix): http://doc.babylonjs.com/api/classes/babylon.matrix#fromfloat32arraytorefscaled Quote Link to comment Share on other sites More sharing options...
fateriddle Posted November 5, 2018 Author Share Posted November 5, 2018 Thank you for the help! Quote Link to comment Share on other sites More sharing options...
Guest Posted November 5, 2018 Share Posted November 5, 2018 Pleasure! Flagging as solved 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.