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
3
votes
1 answer
Wavefront obj loader with material files for c/cpp
I am looking for a wavefront obj loader which supports loading material properties files.
Basically supporing the minimum standard.
In addition I am using math glm library for my vectors and matrices and I am looking for something that integrates…

toeplitz
- 777
- 1
- 8
- 27
3
votes
3 answers
3rd texture coordinate in Wavefront *.OBJ file
What is the meaning of 3rd component in texture coords in Wavefront *.OBJ file ?
File looks like
vt 0.8490 0.1109 -0.2498
vt 0.8580 0.1235 -0.2498
vt 0.8695 0.1338 -0.2498
vt 0.8828 0.1416 -0.2498
vt 0.9135 0.1474 -0.2360
vt 0.8981 0.1457 -0.2360
vt…

Max
- 6,286
- 5
- 44
- 86
2
votes
1 answer
Extracting face vertex indices from a Wavefront .obj file
I'm trying to extract faces and then get the respective vertex indices from the .obj file as follows. I can now print the vertex indices separately using the strtok() function, but I can't seem to find the correct way to parse it.
Here's my…

iwrestledthebeartwice
- 634
- 8
- 26
2
votes
0 answers
Transparent png (alpha channel) support in obj's mtl file
I am scratching my head about this thing: I have simple model of LEGO tile 2x2 brick in OBJ file format in red color that has applied transparent image of yellow arrow to its top surface. It is defined in the mtl file like this (generated with…

qraqatit
- 492
- 4
- 14
2
votes
1 answer
Parse OBJ file with mixed data-types using Boost.Spirit?
I do have an OBJ file that looks like this:
# This file uses centimeters as units for non-parametric coordinates.
# first element
v -0.017050 -0.017928 0.005579
v -0.014504 -0.017928 0.010577
.
.
v -0.000000 -0.017928 0.017967
vt 0.397581…

Bobo Feugo
- 162
- 1
- 10
2
votes
2 answers
Can wavefront OBJ files have per-object (or per-group) vertices?
I have an object broken into many small parts. I could maintain a global list of vertices and figure out which belong to each small part, but it would be easier in my use case if I could index relatively.
IE, I specify that part 0 has 8 vertices,…

Tyler Shellberg
- 1,086
- 11
- 28
2
votes
0 answers
How to mix diffuse value (Kd) with texture (map_Kd) while loading wavefront file?
I'm just trying to write wavefront files loader in c++. I followed the tutorial at www.opengl-tutorial.org. It doesn't say how to handle mtl files, so I decided to do it myself. I know that Kd is responsible for the color of the diffuse property. On…

Roman Kwaśniewski
- 483
- 3
- 17
2
votes
1 answer
How to get vertices of obj model object in Three.JS?
After loading a .obj model in Three.js I am unable to find vertices data. Vertices data is needed to apply collision detection as suggested by this answer
var loader = new THREE.OBJLoader();
loader.load('models/wall.obj', function ( object ) {
…

XIMRX
- 2,130
- 3
- 29
- 60
2
votes
1 answer
Number of wavefronts that can fit on a SIMD
I'm reading an article about an AMD GPU and am confused by a particular example. Given a SIMD unit with a number of registers, how many wavefronts can occupy a SIMD if they require x amount of registers?
Specifically, if a SIMD unit has 16k…

Roger
- 3,411
- 5
- 23
- 22
2
votes
2 answers
How to design different kinds of (nearly) the same (in Scala)
I have the following problem (in Scala)...
I want to read wavefront files (.obj) and transform them to something I can work with later.
The wavefront files I want to support are files with the following definitions for:
TypeA: vertices and…

SleepyX667
- 670
- 9
- 21
2
votes
1 answer
How to set the size of an opengl object?
I have to display an object in opengl(it's a homework) and I found a good code on the internet,but the size of the displayed object is very small,and I don't know how to change it to display the object in bigger size.
I think that I have to modify…

lambozsolty
- 81
- 10
2
votes
1 answer
Problems Using Wavefront .obj's texture coordinates in Android OpenGL ES
I'm writing an android app using openGL ES. I followed some online tutorials and managed to load up a textured cube using hard-coded vertices/indices/texture coordinates
As a next step I wrote a parser for wavefront .obj files. I made a mock file…

James Coote
- 1,975
- 19
- 29
2
votes
1 answer
Using 3D Wavefront OBJ / STL in Visual Studio 2017
I want to import Wavefront OBJ or STL files into my C# WPF application.
On older post are walkthrough which I cannot use anymore.
Using 3D OBJ file in Blend…

Dominic Jonas
- 4,717
- 1
- 34
- 77
2
votes
1 answer
Why are textures displayed incorrectly when using indexed rendering (glDrawElements) when trying to load them from a wavefront .obj file?
Introduction
I am building a simple wavefront .obj file parser. I've managed to make it read the file, store the contents of it (vertex positions, vertex coordinates, vertex normals (not yet using them) and polygonal face element information (eg.…

Fish_In_A_Suit
- 45
- 8
2
votes
1 answer
how to use assimp by fixed function pipeline?
I have learned how to import a .obj with assimp by shaders
However, is it possible to import a .obj with assimp by fixed-function-pipeline.
so that I can program by OpenGL API easily.

W.X.Qiang
- 21
- 2