OBJ (or .OBJ) is a geometry definition file format first developed by Wavefront Technologies for its Advanced Visualizer animation package.
Questions tagged [wavefront]
334 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
24
votes
1 answer
What are the specifications for a Wavefront .obj file?
I want to write a parser for Blender's .obj file. The file format seems self explanatory, but also it seems to be missing some data. For example, a simple cube (the default Blender cube) has 8 lines of vertexes, but I was expecting to see 36 lines…

James
- 538
- 1
- 6
- 23
17
votes
2 answers
Converting quadriladerals in an OBJ file into triangles?
At first, it seemed obvious... Make 2 triangles per face wherever 4 indices were found, right?
Meaning, the following:
v 1.000000 1.000000 0.000000
v -1.000000 1.000000 -0.000000
v 1.000000 -1.000000 0.000000
v -1.000000 -1.000000 -0.000000
f -4 -3…

RectangleEquals
- 1,825
- 2
- 25
- 44
16
votes
5 answers
MIME Type of Wavefront's OBJ and MTL
I was building a little 3D-application using ThreeJS and WebGL. I purposely chose not to convert models into ThreeJS compatible .json files, instead started building an importer. It works, but I also planned to have the application decide what type…

Kiruse
- 1,703
- 1
- 12
- 23
9
votes
1 answer
shininess, emissive and specular are not a property of this material in React VR
I'm developing an application with React VR and I've created an 3D pokeball with blender. I've export this as Wavefront .obj file and use it in my React VR application.
In the console I see this warnings:
THREE.MeshBasicMaterial: shininess,…

H. Pauwelyn
- 13,575
- 26
- 81
- 144
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
7
votes
3 answers
in a wavefront object file (.obj) how am i supposed to render faces with more than 4 vertices in opengl?
So using a Wavefront object file how am i supposed to render faces that have more than 4 vertices in OpenGL?
I understand that if it has 3 vertices I use GL_TRIANGLES, if it has 4 I use GL_QUADS, but if it has 5 or more, what am I supposed to use? …

Derick F
- 2,749
- 3
- 20
- 30
7
votes
5 answers
Parsing a Wavefront .obj file using C++
While trying to a parse a wavefront .obj file, I thought of two approaches:
Create an 2D array the size of the number of vertices. When a face uses a vertex, get it's coordinates from the array.
Get the starting position of the vertex list and then…

viraj
- 1,784
- 4
- 35
- 52
7
votes
1 answer
OpenGL - vertex normals in OBJ
I want to know how can I use the vertex normals for lightning effect? Currently what I have is I can send both vertex and texture coords to the shader and use them but with normals, I don't know how to use them in the shader program. Below is what I…

zyneragetro
- 139
- 1
- 2
- 13
7
votes
2 answers
LibGDX and ObjLoader not displaying .mtl?
I am trying to load .obj files into an Android project with LibGDX. The files have no texture file, but include materials in .mtl files. I'm using the latest official nightly, and rendering the object file only results in the object appearing white.…

cavemaneca
- 101
- 1
- 6
6
votes
2 answers
Wavefront OBJ Format -> Groups & usemtl command
So I'm writing a parser for wavefront obj model files and there are a few irregularities that I'm not sure how to handle.
So based off of my reading, a mesh can be broken up into groups using the 'g' command and a material can be assigned to each…

Sunny724
- 156
- 2
- 12
6
votes
1 answer
MATLAB: Making matrix like in Wavefront algorithm
I have this kind of matrix (13 x 13):
0 0 0 0 0 0 0 0 0 0 0 0 0
0 1 1 1 1 1 1 1 1 1 1 1 0
0 1 1 1 1 1 1 1 1 1 1 1 0
0 1 1 1 1 1 1 1 1 1 1 1 0
0 1 1 …

Aidos
- 729
- 7
- 20
5
votes
4 answers
Troubles parsing Wavefront .obj texture coordinates
I'm coding my own .obj parser in objc for OpenGL ES 2.0 to get a better understanding on how this OpenGLES thing works. Loading the vertices and showing a model with vertex colors on it works like a charm. Just a small note: I'm using an index…

polyclick
- 2,704
- 4
- 32
- 58
5
votes
1 answer
PyOpenGL how do I import an obj file?
import pygame
import OpenGL
from pygame.locals import *
from OpenGL.GL import *
from OpenGL.GLU import *
import pywavefront
scene = pywavefront.Wavefront('Handgun_obj.obj')
vertices =(
(1,-1,-1),
(1,1,-1),
(-1,1,-1),
(-1,-1,-1),
…

Rapiz
- 161
- 2
- 2
- 9