qingliangcn Posted June 27, 2016 Share Posted June 27, 2016 when i use babylon export for 3dmax, i got this error: exportation cancelled: Object reference not set to an instance of an object. my env: win10 + 3dmax 2014 + Max2Babylon-0.4.9. thanks. Unit_510034_Anim3.max Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 27, 2016 Share Posted June 27, 2016 Bug found and fixed It will be available with 3dsmax exporter 0.5 (in a couple of hour) julien-moreau 1 Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 28, 2016 Author Share Posted June 28, 2016 thanks for your god job. Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 28, 2016 Author Share Posted June 28, 2016 now i can export the model, by how to export the animations? max2babylon.bmp could you show some code to explain it ? this doesnot now work. BABYLON.SceneLoader.ImportMesh("", "/obj/", "10001.babylon", scene, function(newMeshes, particleSystems, skeletons){ newMeshes[0].position = new BABYLON.Vector3(0, 0, 0); newMeshes[0].scaling = new BABYLON.Vector3(0.005, 0.005, 0.005); scene.beginAnimation(skeletons[0], 0, 100, true, 1.0); }, function(event) { console.log(event.loaded); }); Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 28, 2016 Author Share Posted June 28, 2016 i'm prepare to try the obj format. Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 28, 2016 Author Share Posted June 28, 2016 seems obj could not include animations. i try export to fbx and then open fbx file in blender and then export to babylon file,it still does not work. Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 28, 2016 Author Share Posted June 28, 2016 is my animation setting wrong ? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted June 28, 2016 Share Posted June 28, 2016 Animations are exported by default so there must be something else. Did you try with http://www.babylonjs.com/sandbox/ ? Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 29, 2016 Author Share Posted June 29, 2016 9 hours ago, Deltakosh said: Animations are exported by default so there must be something else. Did you try with http://www.babylonjs.com/sandbox/ ? i'm trying it. thanks. Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 29, 2016 Author Share Posted June 29, 2016 9 hours ago, Deltakosh said: Animations are exported by default so there must be something else. Did you try with http://www.babylonjs.com/sandbox/ ? the site gives me this error:(chrome 51 + win10) Quote babylon.js:3 Uncaught TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'. and this is my babylon file: 10001.babylon Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 29, 2016 Author Share Posted June 29, 2016 i try to print bones, get this: it seems there is no animation info Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 30, 2016 Author Share Posted June 30, 2016 could anybody give me some advises? Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted June 30, 2016 Share Posted June 30, 2016 How do you export to babylon finally ? From 3dsmax with the babylon exporter ? From Blender with the babylon exporter ? From 3dsmax/Blender to FBX/OBJ then loaded in BJS ? Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 30, 2016 Author Share Posted June 30, 2016 thanks for your attention. the attachment exported from 3dmax (Max2babylon 0.50 64) and i tried Blender and fbx export , got same result. this is from fbx 10001_from_fbx.babylon Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 30, 2016 Author Share Posted June 30, 2016 this is from 3dmax 10001_from_3dmax.babylon Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted June 30, 2016 Share Posted June 30, 2016 Both files don't load here, in the sandbox. Without the source it will be difficult to find the issue i think. You think it's possible to give us your .max ? Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 30, 2016 Author Share Posted June 30, 2016 i tried to first export to fbx then import in blender and then export in blender, it works . the diffrence from before is that i put the texture in the correct position. but max2babylon still can not work. Unit_510034_Anim3.max Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 30, 2016 Author Share Posted June 30, 2016 i'm so stupid, i forgot this code: scene.executeWhenReady sorry for everyone... Quote Link to comment Share on other sites More sharing options...
V!nc3r Posted June 30, 2016 Share Posted June 30, 2016 Ahah I have the same error when i export from 3dsmax (Object reference not set to an instance of an object), but i don't yet test bip animation to BJS, so i could'nt help :-/ Nice anim' Quote Link to comment Share on other sites More sharing options...
qingliangcn Posted June 30, 2016 Author Share Posted June 30, 2016 2 hours ago, V!nc3r said: Ahah I have the same error when i export from 3dsmax (Object reference not set to an instance of an object), but i don't yet test bip animation to BJS, so i could'nt help :-/ Nice anim' still thanks for help. the max2babylon 0.50 fixed this error. 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.