#.obj loader doesn't work

13 messages · Page 1 of 1 (latest)

night cedar
#
  1. The package you're attempting to use (ie. three-obj-loader) hasn't been updated in 6 years 🥲 consider using Three.OBJLoader from three package itself (three/examples/jsm/loaders/OBJLoader)
  2. On a separate note - consider also not using OBJ format at all. GLTF / GLB is way easier and less troublesome.
  3. It's very likely models/AvatarRemodel.obj is an invalid path - check in devtools Network tab whether the request returns the model.
limber haven
#

And you can easily convert your .obj models to glb/gltf through any online tool like:
https://products.aspose.app/3d/conversion/obj-to-glb
or
https://anyconv.com/obj-to-glb-converter/

3D Conversion Online

Convert 3D File to Autodesk, Draco, Wavefront, 3D Studio and many other formats.

#

or by some software like Blender, Inventor too

night cedar
#

if you have a blend file - don't convert, just export

#

Export as GLTF - blender has exported built-in

#

show file

#

I. Meant. Drop. The file. Here.

#

So I can view.

#

What am I to do with a photo of a model in vscode cat_the_kot

#

You most likely added bevel via modifiers in Blender

#

modifiers are not exportable

#

you need to apply all modifiers before exporting the model