Questions tagged [objloader]
75 questions
2
votes
1 answer
Adding Physics to OBJ Model in ThreeJS
I am trying to use PhysiJS with ThreeJS. I have an OBJ model that I exported from Blender. When I load it with OBJLoader, I see that it is a BufferGeometry. I also notice that it is missing a vertices property, which is what PhysiJS looks for.
My…

Daniel Hong
- 93
- 1
- 7
2
votes
0 answers
ThreeJS OBJLoader + MTLLoader - Model appearing black
I am having some troubles loading colors onto one of my models. I am using an OBJloader and an MTLloader. The .obj and .mtl files are generated from an export from blender (there is no texture which uses .png/.tga file). MTL files loads perfectly…

JoakimNyland
- 55
- 5
2
votes
0 answers
three.js raycaster unsupported camera type
I am trying to use a THREE.raycaster to trigger the download of a .obj file when it is clicked on. For some reason I keep getting a THREE.Raycaster: Unsupported camera type error. I am using a a THREEPerspectiveCamera. I am using a grid of canvases…

Coffeecoffeecoffee
- 31
- 1
- 4
2
votes
0 answers
Three.js OBJ + MTLLoader causing TypeError "ambientLightColor is undefined"
I'm kind of new to Three JS, but I know the basics of it.
Now I'm having following problem in my code using ThreeJS's MTL and OBJLoader. Object itself is perfectly loaded and rendered to the scene. However, the problem is after object is added to…

SamitheMasi
- 21
- 3
2
votes
0 answers
How to get OES_texture_float_linear support for any browser?
I have been working on webGL for more than 3 months and earlier it was easily rendering my .obj and .mtl with OBJMTLLoader.js. But now it's not rendering properly. It is only rendering .obj file, not .mtl file.
So I searched web and found…

Ashish Akhare
- 27
- 1
- 8
1
vote
2 answers
OBJLoader not displaying anything
I'm trying three js with OBJ files, but it does not get rendered on the screen, can someone please help me with this issue? is there something obvious I'm missing?
On the other hand, a geometric cube renders perfectly.
OBJ file can be downloaded…

Diego
- 67
- 7
1
vote
1 answer
How to import a .obj in electron-vue webpack project with vue-3d-model
Here is my first question to the community :)
My name is Victor, I'm learning programming by myself so I hope I'll be able to explain my problem correctly to you with enough informations.
I'm building an electron + vuejs + vuetify app in which I…

Vico Flurry
- 11
- 1
1
vote
0 answers
How do I prevent the Three.js OBJLoader from merging all the parts of my obj into 1 mesh?
Allright, I've been stuck on this issue for a while now so here I am.
I have an .obj file, created by one of my colleagues, that I need to load into a three.js scene. I need to be able to change the materials and texture of individual parts of said…

Jani S.
- 11
- 3
1
vote
1 answer
Flipped normals after loading in my raytracer
I'm working on a path/ray tracer in C++. But some objects have flipped normals after loading. Where this behaviour comes from or how to fix it?
GitHub page. I thought it was an issue with the normals behind the surface but the normals are flipped…

theVortr3x
- 70
- 10
1
vote
1 answer
How to work with vertices of object loaded by ObjLoader in Three.js
I have a object loaded in my scene by ObjLoader. But then i need to read that object vertices. But i still cant find out how to do it. On normal cube what i made in three.js I can read and change vertices without problem but on object loaded by…

Bahrajn
- 11
- 1
1
vote
1 answer
THREE.js won't to load my .mtl and .obj file
I'm trying to create a 3d model viewer by using three.js but it won't load any .mtl and .obj files. I followed this tutorial https://manu.ninja/webgl-3d-model-viewer-using-three-js/ but it only loads the female model.
This is my script:
…

makonow
- 13
- 5
1
vote
1 answer
Three.js: Load proper model scale/size
I am working on a three.js project where users are able to upload .obj models into a scene. The problem is I have two different sized models (one scaled to mm, other has an arbitrary scale). They are very clearly different in size when loaded in 3D…

Jonathan Drummond
- 105
- 1
- 9
1
vote
1 answer
unable to load .mtl and .obj through react-three-renderer
I'm trying to load .obj and .mtl through react-three-renderer but i'm missing out on loading the model. Currently i'm able to render a cube inside the div. However, i want to replace the cube with my .obj model.
installation:
npm install --save…

CodeZombie
- 2,027
- 3
- 16
- 30
1
vote
1 answer
Can't use animated displacement shader with OBJ Loader (TypeError: mesh is undefined)
I'm trying to put a basic shader with animated displacement on an OBJ object. The shader works fine on a CubeBufferGeometry, but I can't get it to work with OBJLoader.
// OBJ Loader
var loader = new THREE.OBJLoader();
…

qbuffer
- 383
- 4
- 14
1
vote
0 answers
Processing 2.2.1 not correctly load obj. file
my program in Processing 2.2.1 do not display .obj files correctly. It looks like in the picture:
I have .jpg, .obj and .mlt file in directory, but console output is :
Could not find a method to load Documents
This is my source:
import…

Marek Krištof
- 23
- 2
- 4