Pawan Jadhav Posted June 23, 2016 Share Posted June 23, 2016 I am trying to load attached OBJ file using babylonJS with no success. Can someone help me out here? I want to know, what information is missing from this OBJ file. 2.obj Quote Link to comment Share on other sites More sharing options...
Nabroski Posted June 23, 2016 Share Posted June 23, 2016 (edited) Hello The fastest Way, just to get started, would be to scale your model down and set the origin to the model itself The Problem is it is HUGE it looks like a single piece of a spaceship an the meshes origin is far far away from the actual mesh. If you are more advanced you can also use babylon to recalculate the origin of your model, rotate your camera, or scale it down or something, the possibilities are endless. I have fixed it for you, have fun.http://babylonjs-playground.com/#CJNZB#2 3.obj Edited June 24, 2016 by Nabroski change the playground to make things look more nice Quote Link to comment Share on other sites More sharing options...
Pawan Jadhav Posted June 24, 2016 Author Share Posted June 24, 2016 Thank you. i will check this. Quote Link to comment Share on other sites More sharing options...
Nabroski Posted June 24, 2016 Share Posted June 24, 2016 Hello No Problem If you work with a 3d Program, its easy to fix. this is something for advanced users, i created a playground with the original file, if someone wants to recompute the mesh position using babylonjshttp://babylonjs-playground.com/#CJNZB#1 Best Quote Link to comment Share on other sites More sharing options...
Pawan Jadhav Posted June 24, 2016 Author Share Posted June 24, 2016 I couldn't see 3.obj.manifest Quote Link to comment Share on other sites More sharing options...
Nabroski Posted June 24, 2016 Share Posted June 24, 2016 This forum has a great search engine! Everything you need to know to get started at your fingertips. Best Quote Link to comment Share on other sites More sharing options...
name mike is already taken Posted June 24, 2016 Share Posted June 24, 2016 Hi, in what dimensions should a scene be? I just used the babylonjs exporter from 3ds Max and loaded it into the online material editor. There it is huge while it only has only 95x59x46 cm in 3ds Max with cm as system units. As I am totally new to babylonjs (found it an hour ago), is there maybe already a post that gives such collected basic info on dimensions, units, what kind of material and such? Thank you Quote Link to comment Share on other sites More sharing options...
Nabroski Posted June 24, 2016 Share Posted June 24, 2016 Hey Mike I have absolutely no idea. I use Blender. Per default 1 Blender Unit = 1 centimeter. The Problem above happens whenn you export your model not with local coordinates at the center of the object, centering the object at the world you're modelling. Like creating a sphere place a camera in the center and than remove everything except a single piece (somewhere). Size is always a relation between two objects. One single cube is infinite. So while we waiting for an answer from the 3ds Max exporter for Babylon you can grab a local copy of the MaterialEditor and test if your Model loading faster, if you have don't to transmit data over the internet.https://github.com/BabylonJS/Extensions/tree/master/MaterialEditor 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.