How to use the OBJLoader2 function from three

Find comprehensive JavaScript three.OBJLoader2 code examples handpicked from public code repositorys.

8
9
10
11
12
13
14
15
16
17
const onlyOfTypes = require('./only-of-types')

require('three/examples/js/loaders/GLTFLoader')
require('../vendor/three/examples/js/loaders/OBJLoader2')
const loadingManager = new THREE.LoadingManager()
const objLoader = new THREE.OBJLoader2(loadingManager)
const gltfLoader = new THREE.GLTFLoader(loadingManager)
const imageLoader = new THREE.ImageLoader(loadingManager)

objLoader.setLogging(false, false)
fork icon263
star icon0
watch icon2

51
52
53
54
55
56
57
58
59
60

window.Zlib = Zlib.Zlib
let loadingManager = new THREE.LoadingManager()
let loader = new THREE.JDLoader()
let fbxLoader = new THREE.FBXLoader(loadingManager)
let objLoader = new THREE.OBJLoader2(loadingManager)
let gltfLoader = new THREE.GLTFLoader(loadingManager)
gltfLoader.setDRACOLoader(new THREE.DRACOLoader())
objLoader.setLogging(false, false)
let textures = {}
fork icon263
star icon0
watch icon2

109
110
111
112
113
114
115
116
117
118
}

/**
 * Add a mesh created within callback.
 *
 * @memberOf THREE.OBJLoader2.LoadedMeshUserOverride
 *
 * @param {THREE.Mesh} mesh
 */
LoadedMeshUserOverride.prototype.addMesh = function ( mesh ) {
fork icon1
star icon0
watch icon4

+ 3 other calls in file

31
32
33
34
35
36
37
38
39
40
        this.validated = false;
}

/**
 * Base path to use.
 * @memberOf THREE.OBJLoader2
 *
 * @param {string} path The basepath
 */
OBJLoader2.prototype.setPath = function ( path ) {
fork icon0
star icon0
watch icon3

+ 15 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)