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
0
votes
1 answer
Triangulation 3d - normals
Let's say that I got an Obj file which contains this line:
f 3963//6343 3962//6343 3964//6344 3764//6324
I want to draw the face with 2 triangles which means 2 faces. Right now as you can see this is quad. Each vertex got it own normal.
If I use…

UdiM
- 480
- 3
- 19
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
0 answers
Is there a "standard" extension to the .mtl format which allows specular, normal or parallel maps?
Reading about the MTL material format commonly used with the Wavefront OBJ format, I discovered that it doesn't support additional features like specular mapping, parallel mapping, bump mapping, etc.
I'm wondering, is there a commonly used extension…

jmite
- 8,171
- 6
- 40
- 81
0
votes
1 answer
Loading Wavefont .obj files from relative path error
First, thanks for taking a time for read this.
I'm reading the book Developing Games in Java. The chapter 8 shows how to load Wavefront .obj files.
My obj file is located at C://pathToMyWorkspace//ProjectName//res//coffeCup.obj
When I try to load a…

A Cat
- 629
- 7
- 20
0
votes
1 answer
Single color is displayed instead of texture while loading from obj file
When i try to load texture from mtl file a single color is displayed. i have tried to fix it by changing lighting but it does not work. I am new to Opengl and using cpplusplusguy's opengl tutorial series to learn.
Image i am…

Gautam Chandna
- 13
- 1
- 7
0
votes
1 answer
Why is my triangulated cube not rendering properly in lwjgl?
When I pull vertex data from the obj file using this method:
public static ArrayList parseOBJ(File file) throws FileNotFoundException
{
//If a file is not given, it is null.
if (file == null)
{
…

guyfleeman
- 463
- 7
- 22
0
votes
1 answer
OpenGL ES20 - Wavefront -> glDrawElements -> no pyramid, but a weird shape?
EDIT 2:
Solution: Copy paste mistake: sent color buffer as position buffer.
Parsing my .obj (wavefront) which represents a pyramid, triangulating where its necessary, passing it all into buffers. The buffers look as follows:
Vertex Buffer:
private…

damian
- 2,001
- 20
- 38
0
votes
1 answer
OpenGLES20 and Wavefront - Values too high for short?
Trying to parse an OBJ (wavefront) file to draw it in OpenGL ES20 I'm facing a problem I don't know how to address/solve:
The file has exactly 50,000 (50k) vertices, all being used in faces. When I'm loading the object, I'm parsing faces into…

damian
- 2,001
- 20
- 38
0
votes
1 answer
Including wavefront obj models into each other
Is there a way to include several wavefront obj files into one?
Friend of mine told me, there is definitely some include keyword in obj, which allows me to create obj files like:
#room.obj:
include chair.obj
include table.obj
...
v 26.7903…

relaxxx
- 7,566
- 8
- 37
- 64
0
votes
1 answer
Hide triangle edges for textured mesh
I automatically generate texture for 3D mesh where each triangle face has it associate triangle in a texture file. It's working but there are visible black edges while rendering. (Not only on Unity)
Why are there black edges? And how can I…

TermWay
- 69
- 1
- 5
0
votes
1 answer
JAVA OpenGL - Scale image to fit window
I am having trouble with a program i am writing. Currently i am reading a OBJ file and rendering it correctly. But my problem is, some images don't fit my window.
I've tried to scale it using glScalef, but the image is still deformed. (almost always…

Snox
- 580
- 1
- 10
- 24
0
votes
2 answers
Optimizing OBJ file (3d model) loading in java
Before I begin I apologize for my lack of comments in my code. I am currently making a OBJ file loader (in java.) Although my code works as expected for small files, when files become large (for example I am currently attempting to load a obj file…

nicbit
- 1
0
votes
2 answers
Blender Wavefront Object: number of vertex in face declaration is bigger than the number of all vertices
I am trying to load a Wavefront Object into my C++ OpenGL program using my own parser. The parser works for some .obj-files, but at some files it throws an index out of range exception. After some debugging I recognized that one line in the file…

ThunderStorm
- 766
- 8
- 24
0
votes
1 answer
Three.js Could not convert string to float
I'm using the convert_obj_three.py [link] to convert a simple OBJ to the Three.js format.
I've tried first with a cube with a planar UV map, and it worked.
Now I'm trying with a sphere and a cilinder together and the script tells me: …

Fez Vrasta
- 14,110
- 21
- 98
- 160
0
votes
1 answer
Only first object has normals in OBJ
I've been making a .obj file loader class. At one point I was trying to load obj-file containing multiple objects, but I couldn't get it to work.
Now I realised that when you export multiple objects from Blender into obj-file, only the first object…

Urho
- 2,232
- 1
- 24
- 34