Three.js: Unclear loader usage

Created on 6 Jan 2018  路  3Comments  路  Source: mrdoob/three.js

I'm just trying to get a hang of threejs. Right now I'm at the point where I like to import some external 3d models. The documentation is very unclear on how to achieve this.

I have found several ways on how to achieve this:

1: Blender export addon.
This gives me the ability to export a .json file that should be readable by three, however, the json loader is unable to handle the json, it will throw an error. (trying to get length of undefined property)

2: Obj loader
Here is the documentation for the OBJ loader. But, the loader is not included in the default three package. This is not at all mentioned in the documentation, it just places a link to some example. Therefore it seems to be a part of an example so I will have to use that by including it directly to my html file or something? (

All 3 comments

The discussion here might help a bit: https://discourse.threejs.org/t/advise-a-newbie-on-applications-that-can-be-used-to-prepare-models/899/2

Besides, please ask help request at the forum or at stackoverflow.

But yes, an additional manual page in the docs about loading assets with three.js could be helpful, especially for new users.

A simpler option would be to add a line to to the top of all the docs pages for examples, something like:

NOTE This is not part of the three.js core. To use OBJLoader you will have to include it separately to the main three.js script.

Was this page helpful?
0 / 5 - 0 ratings