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
25
votes
5 answers

Do Wavefront .obj files support animation?

How does one export a 3D Studio animated model to OBJ format (if possible)? What will be the resulting file like? How would I read that?
zaratustra
  • 8,148
  • 8
  • 36
  • 42
14
votes
1 answer

Create a .obj file from 3d array in python

My goal is to get a .obj file from a nifty (.nii) format using python, with the purpose of open it on Unity. I know that the "scikit-image" package has a module called "measure" which has the Marching cube algorithm implemented. I apply the marching…
Diego Orellana
  • 994
  • 1
  • 9
  • 20
12
votes
4 answers

In Python, how do I voxelize a 3D mesh

I need help on getting started in Python (which I almost know nothing of) to voxelize a 3D mesh generated from Rhino. The data input will be a .OBJ file and so will the output. The ultimate purpose for this usage is to find the shortest distance…
FongYu
  • 767
  • 4
  • 15
  • 24
11
votes
3 answers

Difference between ObjLoader and ObjLoader2 in Three.js

What's the main difference between this two classes, ObjLoader and ObjLoader2? In which case we should use one or another? Why there are two classes? Is one more stable or efficient than the other? It's not very clear for me when I read the…
fsinisi90
  • 1,138
  • 1
  • 16
  • 45
10
votes
1 answer

Map/Fold the multiple .OBJ-index-buffers to OpenGL's 1 index buffer

I am trying to load in a .obj-File and draw it with the help of glDrawElements. Now, with glDrawArrays everything works perfectly, but it is - of course - inefficient. The problem I have right now is, that an .obj-file uses multiple index-buffers…
user4063815
9
votes
2 answers

KE Attribute in MTL Files

I have a .mtl file next to my .obj file which specifies the materials for the object. Im trying to create a parser but dont know what the "Ke" attribute means. e.g: Ka 0.78 0.78 0.78 Kd 0.78 0.78 0.78 Ks 0 0 0 Ke 17 12 4 # What does this line…
juliusmh
  • 457
  • 3
  • 12
9
votes
3 answers

Handling .obj files: Why is it possible to have more vertextextures (vt) than vertices (v)?

I am working on a .obj handler in c++. Importing the data shouldn't be a Problem, but i do not understand why it is possible, that a .obj (e.g. exported from blender) has more 'vt' entries than 'v' entires. If someone could explain me that, i would…
Chrizzldi
  • 521
  • 1
  • 8
  • 22
9
votes
2 answers

.obj : fatal error LNK1107: invalid or corrupt file: cannot read at 0x6592

I am trying to load an .obj model into my c++ opengl 3 code but for some reason it gives me this error : 1>Linking... 1>.\bunny.obj : fatal error LNK1107: invalid or corrupt file: cannot read at 0x6592 I tried to search for similar errors, but…
user1859793
  • 129
  • 1
  • 1
  • 2
8
votes
2 answers

How to load .obj 3D model in Three.js?

Here's the updated code based on your suggestion var scene = new THREE.Scene(); var camera = new THREE.PerspectiveCamera( 75, window.innerWidth/window.innerHeight, 0.1, 1000 ); var element =…
Mostafa Mekawy
  • 85
  • 1
  • 1
  • 4
8
votes
2 answers

Export a three js textured model to a .OBJ with .MTL file

I would like to be able to export an obj file just like in this example http://threejs.org/examples/#webgl_exporter_obj However, i would like to export the .obj file with corresponding textures in the .mtl texture file (i have seen obj files with…
user151496
  • 1,849
  • 24
  • 38
7
votes
1 answer

How to build midas.obj from the midas source code

Recently I discovered a problem on the midas and I fixed it, the problem now is that I want to use MidasLib not the midas.dll and with the source code I'm only able to build the DLL. The source is C++ and I have very few knowledge with it. I know…
6
votes
2 answers

Loading an .obj with JOGL

I have found may tutorials on loading an obj, but nothing on how to load it and use it with java, anyone have links to any useful tutorials?
Sam Mcdonald
6
votes
2 answers

Java - Loading .OBJ files

I want to be able to get information (like names of sub-components) from an .obj file. Is there a loader out there somewhere to do this? Java3D has an ObjectFile, but the list of methods I've seen makes me think it is not exactly what I want. …
will
  • 1,397
  • 5
  • 23
  • 44
6
votes
1 answer

How to place a 3D model of type OBJ with ARKit?

I need some help with placing a 3D model with the new apple ARKit. Is it possible to place an object of type OBJ? I'm trying to place a 3d model of a skull. //Load the OBJ file let bundle = Bundle.main guard let url = bundle.url(forResource:…
CoderOfTheForce
  • 359
  • 7
  • 22
6
votes
2 answers

What types of geometry definition file format is best used with ray tracing to include the type of material

I wanted to use .obj format, but I noticed that it doesn't have representation for the type of material, i.e. opaque, transparent, reflective. Is there a common file format that includes that information as well, or should I just take the known .obj…
SIMEL
  • 8,745
  • 28
  • 84
  • 130
1
2 3
25 26