Questions tagged [objloader]
75 questions
7
votes
3 answers
three.js OBJLoader not loading in react
I am trying to load an object (.obj) file to use with three.js and react (with react-three-renderer), yet get an
My code looks like:
import React from 'react';
import ReactDOM from 'react-dom';
import React3 from 'react-three-renderer';
import…

Shlomi Zadok
- 278
- 4
- 10
3
votes
1 answer
Is it possible to load .obj file with colors if I don't have .mtl?
I'm new to three.js and I came up to this problem. I made a 3D scan of my face and it gave me only .obj file. If I open that file on Meshlab model comes with color on it. But after I load it on three.js it is without texture.
…

TMAC
- 45
- 4
3
votes
1 answer
Three.js: Huge Chrome Performance Issue on Intel Macs
I have created a three.js based web application for showcasing 3d tiles. You can find the showcase following this link: https://www.karak.at/workbench/dd6228117c6faec166b208710b5a52d5
How it works: an OBJ file is loaded and cloned multiple times…

turboLoop
- 601
- 1
- 4
- 16
3
votes
1 answer
Loading Obj with OBJLoader2 to load Vertex Colors
I have an .obj file which has Vertex Colors in it.
That is it doesn't have seperate .mtl file for its Texture .
The .obj File itself contains the color for each vertex.
I wanted to load it using three.js
I knew I can load a normal .obj file with…

WhiteBall
- 143
- 1
- 1
- 8
3
votes
1 answer
Three.js Manipulate an object from ObjLoader
I am trying to manipulate (e.g. change position, scale, rotation) an object loaded using OBJLoader in Three.js. While this is easy to do so once, I cannot work out how to do this when I want e.g. during the animate loop, or anywhere outside of the…

Jolyon
- 65
- 8
3
votes
1 answer
Uncaught TypeError: THREE.MTLLoader is not a constructor 2.0
I earlier asked this question in here: Uncaught TypeError: THREE.MTLLoader is not a constructor
Where I got it to work by changing the three-mtl-loader file. But as I am going to upload my work to github later, I have to create a solution without…

some_name
- 389
- 3
- 17
3
votes
1 answer
Three.js -> FileLoader(scope.manager) not constructor
This might seems as a duplicated question, since it is very similar to this one or many others, but none of the posts I have seen really helped me to figure out where the problem is ( sure, it's me ;) ...), hence I dare to post it here, since it…

Kristievnee
- 43
- 6
3
votes
0 answers
How do I get vertex of an imported obj mesh Three.js
I'm trying to get althe vertex of imported obj.
Here is my code:
// model
var loader = new THREE.OBJLoader( manager );
loader.load( 'tagliatella.obj', function ( object ) {
object.traverse( function ( child ) {
if ( child.geometry !==…

Balestrini Giovanni
- 31
- 3
2
votes
1 answer
How to add custom shadermaterial to an obj 3D object in Three.js
The following is a working example with ObjLoader for 3D object. Is there anyone that can teach me how to add shader material to this 3D object?
Most tutorials are like using standard three.geometry and then add the geometry and shader to a scene.…

Sloan
- 79
- 7
2
votes
2 answers
WebGL INVALID OPERATION insufficient buffer size
I'm trying to write a simple program in WebGL and javascript to draw a simple object from .obj files. I'm using npm's webgl-obj-loader to load the objects. As the title says I keep getting Insufficient buffer size (Edge) and index buffer too…

turbos
- 53
- 6
2
votes
2 answers
How do you import three.js OBJLoader in Nuxt.js? "Cannot use import statement outside a module"
Total noob, need help.
System: Win 10. Browser Chrome. Framework: Nuxt, default configs
I installed three.js through npm (via gitbash) with npm install three --save. It is in the package.json dependencies as "three": "^0.116.1",. I have a scene.json…

Quinlan Harsch
- 33
- 6
2
votes
1 answer
How to get vertices of obj model object in Three.JS?
After loading a .obj model in Three.js I am unable to find vertices data. Vertices data is needed to apply collision detection as suggested by this answer
var loader = new THREE.OBJLoader();
loader.load('models/wall.obj', function ( object ) {
…

XIMRX
- 2,130
- 3
- 29
- 60
2
votes
4 answers
How to disable THREE notification messages?
I want to disable console.log's like THREE.WebGLRenderer: Context Lost,
OBJLoader: 1.8330078125ms and so on. Do you have any suggestions?

Milord Vladyslav
- 21
- 6
2
votes
1 answer
"THREE.OBJLoader is not a constructor" and "Unexpected token {" in OBJLoader and OrbitControls
I'm trying to display an OBJ 3D model as a wireframe that can be moved with OrbitControls using Three.js. I'm new with three.js, so I apologize if I'm missing something "obvious".
I've been able to get a cube to show as a wireframe with…

Cécile Lebleu
- 125
- 2
- 14
2
votes
0 answers
Why OBJLoader not working with three.js ? es6
I would like to load an object ".obj" with three.js.
My code :
/********** Imports **********/
import React, { PureComponent } from 'react';
import * as THREE from 'three';
import OBJLoader from…

Solenne Daguerre
- 119
- 1
- 2
- 8