How to use the OBJLoader2 function from three
Find comprehensive JavaScript three.OBJLoader2 code examples handpicked from public code repositorys.
GitHub: KleoPetroff/storyboarder
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)
263
0
2
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 = {}
263
0
2
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 ) {
1
0
4
+ 3 other calls in file
GitHub: Indaym/ThreeJsAddons
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 ) {
0
0
3
+ 15 other calls in file
three.Vector3 is the most popular function in three (22341 examples)