Jump to content

Problem with loading OBJ file in babylon


Pawan Jadhav
 Share

Recommended Posts

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 by Nabroski
change the playground to make things look more nice
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...