VidyaBharati Posted September 29, 2016 Share Posted September 29, 2016 Hello all, while loading "sample.obj" file its giving me an "sample.obj.manifest" not found error. also for the sample.obj its throwing an unhandled expression error at line 629 in babylon.objFileLoader.js need to know the reason for these error. Also when doing incremental loading .obj / .babylon any file already added in that project gives Not Found issue. Thanks Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 29, 2016 Share Posted September 29, 2016 Hello we cannot help you with so few info Please share playground with repro Quote Link to comment Share on other sites More sharing options...
VidyaBharati Posted September 29, 2016 Author Share Posted September 29, 2016 Downloaded the 3d model (.obj) which contains .mtl also. My object files doesnt work in playground and i dont know how to upload that .obj to playground site. so this is my code. var loader = new BABYLON.AssetsManager(scene); myDoor = loader1.addMeshTask("myDoor", "", "objDoor/", "door.obj"); myDoor.onSuccess = function(c) { c.loadedMeshes.forEach(function(b) { b.position.x = pickResult.pickedPoint.x; b.position.z = pickResult.pickedPoint.z; b.position.y = pickResult.pickedPoint.y; }); }; loader.onFinish = function() { engine.runRenderLoop(function () { scene.render(); }); }; loader.load(); While loading door.obj gives an door.obj.manifest not found error. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted September 29, 2016 Share Posted September 29, 2016 ignore it just apply your materials to your object in scene... forget a manifest file unless its a custom one you made to handle the materials and objects... Just sayin its a waist of time, and that error drops no matter what, so yeah ignore it. Quote Link to comment Share on other sites More sharing options...
JohnK Posted September 29, 2016 Share Posted September 29, 2016 If you want to have a manifest file then read about it here https://doc.babylonjs.com/tutorials/Caching_Resources_in_IndexedDB Quote Link to comment Share on other sites More sharing options...
VidyaBharati Posted September 29, 2016 Author Share Posted September 29, 2016 thanks, But still my obj is not loading as its giving an unhandled expression error and not well fomed. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted September 29, 2016 Share Posted September 29, 2016 check your network report, bet its a 404 error Quote Link to comment Share on other sites More sharing options...
VidyaBharati Posted October 13, 2016 Author Share Posted October 13, 2016 Thanks All.. Quote Link to comment Share on other sites More sharing options...
aWeirdo Posted October 13, 2016 Share Posted October 13, 2016 @VidyaBharati you don't need a manifest, you can ignore that error completely. it doesn't affect anything. Regarding the " unhandled expression error".. please copy & paste the error you get in your browser console.. there could be many reasons. Also if possible; create a PG (you can host your obj file from github for free and reference it in the PG via github raw) Or, a live demo on your own server/website, etc, displaying the error. we can't help with no real information on the error itself. Quote Link to comment Share on other sites More sharing options...
Pryme8 Posted October 13, 2016 Share Posted October 13, 2016 Engine.enableOfflineSupport = false;. I believe will stop that error from popping up in your console. Bladetrick and GameMonetize 2 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.