THREE.OBJLoader2 is not a constructor

Description of the problem

OBJLoader2 appears to be an empty object. When you create a new instance with

var objLoader = new THREE.OBJLoader2();

I get the error THREE.OBJLoader2 is not a constructor

Three.js version
  • Dev
  • r88
  • All of them
  • Chrome (Version 61.0.3163.100 (Official Build) (64-bit))
  • Firefox
  • Internet Explorer
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Author: Fantashit

4 thoughts on “THREE.OBJLoader2 is not a constructor

  1. Oh, I missed that LoaderSupport is now also required… that would IMO be worth documenting, or at least throwing a user-friendly error about the need for it.

  2. @Itee and @looeee especially the THREE.LoaderSupport.Builder and THREE.LoaderSupport.WorkerSupport can be re-used by other loaders in the future. The functionality is independent of OBJ loading and can be commonly used by other loaders if desired.
    Please see #12048 for more background info.

Comments are closed.