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
1
vote
1 answer
Black window when render obj file in opengl
I used opengl in qt5 on ubuntu 18.4, i wanted to load a simple cube(store in an .obj file) and render it. I followed the tutorial here http://www.opengl-tutorial.org/beginners-tutorials/tutorial-7-model-loading/, but i got a black window at last.…

Bruce
- 51
- 8
1
vote
1 answer
How can I parse a simple .obj file into triangles?
I'm trying to implement a ray caster and I'm starting out with simple .obj files (utah-teapot) and currently I only made classes for Spheres and Triangles, I basically have all the functions for the intersections, generating view rays, etc.. all…

Josh Aston
- 21
- 1
- 5
1
vote
1 answer
Assign mirror operation to vertices array
I understand the math in flipping vertex coordinates in a .obj vertices array to get the mirrored coordinate across a plane/axis. But, how do you populate the vertices array for an actual mirror operation (as opposed to just a flip)

ina
- 19,167
- 39
- 122
- 201
1
vote
1 answer
Extending Wavefront OBJ for bones
I'm extending Wavefront OBJ to use bones with it. Here's my example:
bn my_bone 0.0 0.0 0.0
wgh 1 1.0
wgh 2 1.0
wgh 3 1.0
wgh 4 1.0
wgh 5 1.0
bn my_bone2 1.0 0.0 0.0
prt my_bone
wgh 11 0.1
wgh 12 0.2
wgh 13 0.3
Here's the description:
Bones:
bn…

paxbun
- 316
- 1
- 2
- 9
1
vote
0 answers
Is there something wrong with my OBJ file reader?
I had implemented code that read .obj files for my Ray-Tracer, construct a bunch of triangles and send it to be rendered by a ray-tracer.
And it works........for the first kind of .obj files that I tried.
For instance, with files that presented.…

user2752471
- 444
- 1
- 6
- 14
1
vote
1 answer
OpenGL vertex array objects with tinyobjloader
In order to use modern openGl with tinyobjloader, I'm trying to change the viewer exemple.
I just change the LoadObjAndConvert function, to add vertex array objects as i seen in this tutorial, and to no longer use the buffer object that contains all…

Leon
- 554
- 4
- 18
1
vote
1 answer
Cannot properly convert OBJ or OpenGL doesn't draw the object well
I spent hours trying to draw my .obj models in OpenGL. I figured that probably there is something wrong with my Python script (that converts obj models to C++ files). Or there is something wrong with .obj file. I don't know how to make it working…

Deloryn
- 41
- 1
- 7
1
vote
1 answer
Using VBO to draw the cube by loading wavefront object
I am required to Using VBO to draw the cube by loading wavefront object.
by drawing the triangles.
here is the object:
v -1.000000 -1.000000 1.000000
v -1.000000 1.000000 1.000000
v -1.000000 -1.000000 -1.000000
v -1.000000 1.000000 -1.000000
v…

ShaoyuPei
- 199
- 9
1
vote
2 answers
Is there a ruby parser for IFC ISO-10303-21 files (STEP-files)?
I'm looking for a STEP file parser for ruby that will spit out OBJ files or a model structure similar to OBJ files.
I also have found a make your own parser gem here but not quite sure how to properly set up the parser / lexer rules to use it.

Babbz77
- 283
- 3
- 18
1
vote
1 answer
I'm trying to render a model using vbo in OpenGL (LWJGL)
I am trying to render a model by importing the .obj File. Im successfully importing and preparing the data to be rendered in FloatBuffers/IntegerBuffers but cant manage to render it. Can someone help me?
This is the class that renders and…

N. J. Funk
- 122
- 8
1
vote
1 answer
C++ obj loader texture coordinates messed up
I have written a simple obj parser in c++ that loads the vertices, indices and texture coordinates (that's all the data I need).
Here is the function:
Model* ModelLoader::loadFromOBJ(string objFile, ShaderProgram *shader, GLuint texture)
{
…

456panos
- 55
- 2
1
vote
1 answer
Calculate indices from a vector of vec3 objects by finding duplicate vertices
I am trying to build an .obj file importer that renders said model to the screen.
At present I have imported the vertices and they are stored in a
std::vector vertices;
My renderer class quite large so I'll link github instead of posting it…
user5930979
1
vote
1 answer
OBJ File: Why are there so many normal indices in comparison to normal values?
So I am reading obj files and make lists to store the vertices, texture vertices, normal, vertex texture and normal indices. Testing this with a cube results in 8 vertices and 6 normals but there are 24 items in the normal indices list.
Can anyone…

Bluehand
- 43
- 1
- 4
1
vote
1 answer
Problems with model texture coords opengl
I have a program I use for test-loading models into OpenGL in C. The code for this is pretty straightforward as far as model loading with Assimp goes (to my understanding):
const struct aiScene* scene = aiImportFile(objfile,…

YourNameHere
- 23
- 2
1
vote
1 answer
How to derive index buffer from .obj faces?
I'm struggling to figure out how to create an index buffer from Wavefront object files. I understand that faces may be comprised of an arbitrary number of vertices, such as:
f 1 2 3 4
f 2 3 4 5
How do I recognize the proper way to construct…

Dino Bojadzievski
- 23
- 3