Questions tagged [objloader]

75 questions
0
votes
1 answer

import LOCAL .obj to load with Three.js OBJLoader using React

I'm trying to import a local .obj to be loaded with THREE.OBJLoader().load() function, I know it works because when I pass a non-local URL (for example 'http://downloadOBJfromHere.com') it loads it perfectly, my main problem is that that way…
LuisEgan
  • 952
  • 2
  • 13
  • 28
0
votes
1 answer

Error in OBJFileLoader

There's error in OBJFILELOADER.py file from the link - https://www.pygame.org/wiki/OBJFileLoader . I think there's python2 to python3 version error, however I tried changing the raise ValueError thing and used obj as obj=(filename) But still…
Warlord
  • 33
  • 1
  • 6
0
votes
1 answer

Multiple material on single obj file with three.js

I'm using three.js to load an obj file, a ring with some pearls. I haven't got an mtl file, as the software we use to export the obj (rhinoceros(?)) won't generate it with an obj file (this is what I was told by the graphic designer). I need to set…
gattass69
  • 101
  • 1
  • 12
0
votes
0 answers

OBJLoader 404 error

var loader = new THREE.OBJLoader(); loader.load( '/Models/mi.obj',function (object) { scene.add(object); } ); error message three.min.js:639 GET http://localhost:55127/Models/mi.obj 404 (Not Found) current situation The obj…
오수빈
  • 17
  • 3
0
votes
3 answers

OBJLoader and MTLLoader aren't rendering png/texture in ThreeJS

I imported the 3D model that contains .obj .mtl and bunch of jpeg and pngs trying to load the model with /images like this But, I'm getting is only a black model like his I wonder what I have missed as I followed the guidelines for using the…
0
votes
0 answers

OBJLoader not loading Structure.IO model files in Three.JS

I have the Structure.IO sensor which generates OBJ+MTL models that are correctly loaded into 3D editors (Blender, Cinema4D), but they are not showing in three.js. I've checked the loaded object and it has geometry and material that seems to be…
0
votes
0 answers

THREE.js OBJLoader not working properly

I have this file, I can display it in Blender, Cinema4D and Photoshop, but can´t import it successfully with Three.js OBJLoader. https://drive.google.com/file/d/0B8Hv0HwLV830VDZqVVlseFhEMkk/view?usp=sharing I see the loaded model in black, but with…
0
votes
1 answer

Can't render obj using objloader.js

I can't load my object. The screen is blank. The code to load is: var mtlLoader = new THREE.MTLLoader(); mtlLoader.setBaseUrl('assets/'); mtlLoader.setPath('assets/'); mtlLoader.load('Gita.mtl', function (materials)…
0
votes
2 answers

THREE.OBJLoader can not display obj file?

This is my code ... and I searched a lot about it ... but I couldn't find where is the problem that nothing will show !! also there is not any errors ! I also can send you my files if u can help me ... thank you
Neda
  • 3
  • 3
0
votes
3 answers

ThreeJS - multiple meshes from a .json 3D file

I exported a .json from the online 3D editor and I'm trying to load it and instantiate 20 versions of it, like this example. My code is flawed bc all 20 versions are actually acting like the same object. Not sure why they're not being added to the…
EJW
  • 604
  • 2
  • 10
  • 22
-1
votes
1 answer

Why does attempt to load obj file into a game fail with distorted model

I use a library called rapidobj and attempt to load obj file into the game problem is that whenever i try, i get a distorted model that doesn't look right: even with indice for loop start value changed to "1" which is starting point of indices in…
drk1
  • 65
  • 11
-1
votes
1 answer

Why the number of vertices of the exported obj model is three will become more

When I tried to export a plane obj model in blender, I found it in three JS, the number of vertices has increased, obj model Blender Model renderer After Renderer
-1
votes
1 answer

I am new to Python. I am facing following error: NameError: name 'ObjFile' is not defined

from objloader import ObjFile class Renderer(Widget): def __init__(self, **kwargs): self.canvas = RenderContext(compute_normal_mat=True) self.canvas.shader.source = resource_find('simple.glsl') self.scene =…
-1
votes
1 answer

What does "Cannot set property 'getStrokeStyle' of undefined" mean for a Three.js program?

I'm using SVGloader to load an SVG so I can map it on my OBJ file. But when gave it url to the svg file it generates an error TypeError:Cannot set property 'getStrokeStyle' of undefined I'm using Angular 8 and rendering a Obj file using THREE.js.…
-2
votes
2 answers

OBJFILELOADER - pygame

So I tried running the code but it gives list out of index range error. I changed the index from 1 to 0, but the screen only pops up black. How could I change the code to make it work?
ZDD
  • 9
  • 3
1 2 3 4
5