Questions tagged [.obj]

A text-based file format that stores 3d geometry.

The .obj file format was developed originally by Wavefront Technologies for their flagship 3d graphics software The Advanced Visualizer.

It is a text-based format that is human readable and simple to parse. .obj can only store the position, UV coordinates, and normal of a vertex. Mesh hierarchies and animation of any kind are not supported. Free-form geometry like curves and surfaces are defined in the specification, but are not used that often, and as a result, not commonly implemented in parsers.

Links

385 questions
0
votes
1 answer

Loading .obj file strange results

I'm writing a Java LWJGL 3D game-engine. I decided to rewrite my mesh class and the .obj loader. The mesh class works fine when putting in data manually, but wehn loading from an .obj-file it gives some strange results: (it's supposed to be a dragon…
l'arbre
  • 719
  • 2
  • 10
  • 29
0
votes
0 answers

Loading .obj file with OBJMTLLoader.js

In Three.js I'm using OBJMTLLoader.js to load my 3D model. After Chrome has loaded the scene, the model is not shown. In the console I have >60'000 warnings. They all look like: THREE.OBJMTLLoader: Unhandled line f -215//-215 -202//-202…
ossmoos
  • 1
  • 2
0
votes
0 answers

Unity objects and terrain exporter

I am trying to export a terrain and models in a unity evironment to an .obj file. I have a code which exports a terrain properly and also one which exports the models properly. When I try to combine them, the models (inside unity!) jump to the…
Paktwis Homayun
  • 300
  • 3
  • 17
0
votes
1 answer

VB .NET - failed to use OpenTk & Meshomatic - for loading and drawing a .obj file - 3D

I am trying to draw a loaded .obj file with VB .NET, but without any success. Here is my test.obj file, it's a simple cube: # test.obj # g cube v 0.0 0.0 0.0 v 0.0 0.0 1.0 v 0.0 1.0 0.0 v 0.0 1.0 1.0 v 1.0 0.0 0.0 v 1.0 0.0 …
Erwan
  • 1,055
  • 1
  • 12
  • 26
0
votes
1 answer

Three.js load separated object

My object separated into 9 files, so I need to load all 9 files: file_1.obj, ..., file_9.obj, merge them all and after that somehow use file.mtl with the result "big" object. How am I suppose to do it? I thought about this solution: mainObjGeometry…
Eugene Kolesnikov
  • 643
  • 2
  • 6
  • 15
0
votes
2 answers

Importing a .obj mesh in runtime

What I am attempting to do for about 2 days is importing a mesh in runtime with this: http://wiki.unity3d.com/index.php?title=ObjImporter In total I found 3 importers, one that I must pay for, one that was probably a modified version of the importer…
Po0ka
  • 107
  • 3
  • 9
0
votes
1 answer

parsing obj files on webgl, XMLHttpRequest issue

I making a loader of .obj models for WebGL on javascript, and the problblem i'm having appears to be something with the XMLHttpRequest method, let me explain; var textureArray=[]; loadTexture=function(name){ var request = new XMLHttpRequest(); …
Orion390
  • 127
  • 1
  • 8
0
votes
0 answers

Three.js - Importing an .obj model with ObjLoader.js

I've been trying to load an .obj model into 'THREE' using ObjLoader.js, but I'm not seeing the model and I'm getting 2 pairs of errors saying: Uncaught TypeError: Object [object Object] has no method 'dispatchEvent' ...twice from line 24 and the…
moosefetcher
  • 1,841
  • 2
  • 23
  • 39
0
votes
1 answer

Push vertices of an OBJ file- Edit .obj

I have a .obj 3D model where I want to move some of the surface vertices for a given length. How can I get to do this. For smaller files I can just open it in the notepad and edit the vertices position. But when the model gets bigger this becomes…
RoshBosh
  • 1
  • 1
0
votes
1 answer

Obj not exporting with texture points

Every time I try to export a obj from some 3d model making program it exports without indices for the texture coordinates. I don't want x//xn y//yn z//zn I want x/xn/u y/yn/v z/zn/w. I've tried blender and maya. Maya doesn't have a option for…
Andrew Wilson
  • 157
  • 4
  • 10
0
votes
1 answer

.Obj Faces format DirectX11

When I use Maya or Rhino to export a obj file(Rhinoceros has a check box for exporting texture coordinates) the texture coordinates don't export to the .obj file. So I've looked at the stuff .obj can store and when I make something in Maya and…
Andrew Wilson
  • 157
  • 4
  • 10
0
votes
1 answer

Threejs objmtlloader black model

I'm new to ThreeJS and I made this example which shows one of our model. http://petrie3dtesting.museums.ucl.ac.uk/3DFootCover/index.html I created a Petrie3Dviewer and in the HTML page created a viewer object which takes as input an .obj and .mtl…
0
votes
1 answer

Three.js unable to render obj file. The obj file has vertices defined in large numbers

I have a face mesh which a friend had send over. I am trying to load it in the browser using Three.js with the standard OBJLoader but it is unable to do so. Following is the code I am using. loader.load( 'models/'+modelname+'.obj', function ( object…
dstudios
  • 11
  • 3
0
votes
4 answers

Away3D load and display .obj at runtime

I'm having my first go with Away3D and am having great difficulties in simply loading a 3D model at runtime. I’m using AIR 4.0 and the latest Away3D Library. The setup seems fine, I can compile without errors!! I have tried all sorts I have found on…
M4tchB0X3r
  • 1,531
  • 1
  • 15
  • 28
0
votes
1 answer

Three.js Loaded Model Missing Bump and Specular Maps

I'm having trouble getting bump and specular mapping working on an imported model in three.js. I'm exporting a model from 3DS Max to a .obj file, then using the convert_obj_three.py script to convert it to .js. Inside the model.js file I can see…
bbeckford
  • 4,467
  • 6
  • 34
  • 48