3Dlove Posted January 22, 2016 Share Posted January 22, 2016 Hello guys =) I used BJS 2.2.0 and I updated to 2.3.0-beta, but my Blender Scene has differences now : before (2.2.0) in Camera.Parse function, there were : if (parsedCamera.type === "...") { ... } else { // Free Camera is the default value camera = new BABYLON.FreeCamera(parsedCamera.name, position, scene); } and now (2.3.0-beta) its by default a Touch Camera : // Touch Camera is the default value camera = new BABYLON.TouchCamera(parsedCamera.name, position, scene); Why FreeCamera type isn't take account ? (my Blender export in the JSON file "type":"FreeCamera") Just add this : else if (parsedCamera.type === "FreeCamera") { camera = new BABYLON.FreeCamera(parsedCamera.name, position, scene); } Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 22, 2016 Share Posted January 22, 2016 Because I forgot it I'll fix it RIGHT NOW! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted January 22, 2016 Share Posted January 22, 2016 But BTW, the TouchCamera inherits from FreeCamera and provides EXACTLY the same service + touch Quote Link to comment Share on other sites More sharing options...
3Dlove Posted January 25, 2016 Author Share Posted January 25, 2016 Thanks ;-) Yes, but I don't know why, when it's a TouchCamera, the scene.activeCamera.detachcontrol(canvas); function doesn't work as FreeCamera :-/ 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.