NasimiAsl Posted March 27, 2016 Share Posted March 27, 2016 hi how can i load .Obj File i just have this link https://www.dropbox.com/s/co128u52td037ow/aw.obj?dl=1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 27, 2016 Share Posted March 27, 2016 Hi N! https://www.dropbox.com/s/co128u52td037ow/aw.obj I show it being 71 bytes. Only data inside is: # This file uses centimeters as units for non-parametric coordinates. FYI... @adam said something about working on a bug in objectLoader regarding material loading... something about needing to load .mtl FIRST, and then the model data. But maybe that is not pertinent, here, yet. Two other threads about .obj loading... have happened recently. Epidemic? Quote Link to comment Share on other sites More sharing options...
Temechon Posted March 27, 2016 Share Posted March 27, 2016 Hi Nasimi, The obj in your link is empty. However, you can load an obj file by using the OBJ loader here : https://github.com/BabylonJS/Babylon.js/tree/master/loaders/OBJ Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted March 27, 2016 Author Share Posted March 27, 2016 i need just make it geometry and i have just .Obj file , test your link it not work i remember i write long time ago just obj parser but i need use babylon library Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted March 27, 2016 Author Share Posted March 27, 2016 why my obj is Empty ( i feel ) sorry for all Quote Link to comment Share on other sites More sharing options...
NasimiAsl Posted March 27, 2016 Author Share Posted March 27, 2016 ok try this : https://www.dropbox.com/s/trfun7nzpg97gn5/aw2.obj?dl=1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted March 27, 2016 Share Posted March 27, 2016 http://www.babylonjs-playground.com/#23UCS8#5 CORs hassles. grrrr. CORs ruined all the fun of the web, it did. Let's borrow some of Xander93's code for a moment. Go here... http://urbanproductions.com/wingy/babylon/khaled/objload01.htm Push gray box in lower right, and load aw2.obj from your local drive. Works fine for me, but that doesn't mean anything important. Pardon the bad assetManager loading screen... I guess I broke it. I have heard some talk (a rumor) about using Append() instead of Load()... but I don't know the status of that. Xander93's app uses Append. (see its source) I changed it to be Append, not Xander93. 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.