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
0
votes
1 answer

THREE.js loading .OBJ files - why do some render flat?

I am using the same general purpose code to load basic mesh objects (no textures) from OBJ files (obtained free from sites on the web). Some objects render OK in that different faces reflect light with different intensities towards the camera. But…
steveOw
  • 879
  • 12
  • 41
0
votes
1 answer

.obj-Loader - output not quite right

I'm working on a small 3D engine to learn more of OpenGL. I'm using Scala and lwjgl for the task. Loading "hand-made" (all vertices, texture coordinates and indices - arrays specified by hand) models works like a charm, so I wanted to move on to…
user4063815
0
votes
1 answer

three.js JsonLoader is not showing JSON object converted from .obj

i have this code: var camera, scene, controls, renderer; init(); animate(); function init() { scene = new THREE.Scene(); camera = new THREE.PerspectiveCamera(75, window.innerWidth…
0
votes
1 answer

Display object file in Metal

I was trying to use metal api to display 3D object and I followed this tutorial (http://metalbyexample.com/textures-and-samplers/) but when I tried to change the Object he use with my object it showed like a block، I'm sorry I can't post an image,…
Yassmin
  • 3
  • 3
0
votes
1 answer

When loading multiple indexed VAOs, their geometry seems to merge

I've written a very basic .obj file loader (just loads the vertex coords and triangular face indices) and renderer. When I only load one model at a time, it works great. When I load a 2nd model (or more), each one draws itself and part of the…
Daniel
  • 71
  • 4
0
votes
1 answer

Three.js imported obj incorrect shadow rendering

I imported an object from blender, set every mesh of it to cast and receive shadows, but the shadows rendered are incorrect. I also merged the meshes of the object thinking this will resolve the problem, but the result is the same. The problem seems…
culeaalex
  • 47
  • 1
  • 7
0
votes
0 answers

OBJ Model parser doesn't work correctly OpenGL

I'm working on an OBJ parser for my engine and the model displays wrongly. Here is the code: //Variables vector pVertexData; vector pNormalData; vector pTexCoordData; The LoadModel Function string line; ifstream…
Sup3rlum
  • 51
  • 7
0
votes
1 answer

My .obj model is white even though I attached an .mtl file to it

I'm working on three.js and I'm trying to import a .obj file with its corresponding mtl file. The textures the mtl file was referencing were .bmp so I tweaked the mtl file to point to all .dds files and converted all my assests to dds. Problem is…
Mat
  • 7
  • 6
0
votes
2 answers

Exporting an OBJ file to another OBJ file using Python in Maya

I'm having trouble getting an export function to work and I'm sure I just have dumb syntax or something somewhere. Basically I'm opening an OBJ file, manipulating it, and saving it to another OBJ file. Everything works fine until the end export. Any…
0
votes
1 answer

Three .js object rotation on keypress

I'm desperate. been trying for so long to simply rotate an object on key press event. I can't just figure it, can anyone please show how to do it? this is my model https://www.dropbox.com/s/8yefhx3yc11zbik/b.obj?dl=0 i need to keep rotating it on x…
0
votes
1 answer

HTC M9 .obj files wont import into blender

So I have the texture files and the .obj files for an HTC M9 yet when i go to import them into blender it just doesn't show up...I'll leave a link to my google drive with the files and if anyone does get it any help would be much appreciated! Google…
Skyler Martin
  • 99
  • 1
  • 8
0
votes
1 answer

Three.js transparent object and color change (load .obj + .mtl)

I am using Three.js to load .obj + .mtl files to view 3d model in the browser. currently at the beginning and I will be happy if someone could help a little :) Two things I did not understand yet: The model on which I am working (need to drag with…
greenrod
  • 33
  • 7
0
votes
0 answers

How can I make a more robust OBJ loader for my game?

At the moment I have a pretty sweet little OBJ loader that I am using for my game that I am creating with LWJGL, and it has worked out great so far, however I attempted to use an .obj file I found on a NASA website or something, and it wouldn't…
Jake
  • 1
  • 2
0
votes
1 answer

What could be wrong with my obj-parser?

Given the following rendered objects (dragon with completely white texture) and stall with a basic texture. What might be the error? Are my indices wrong? Are some vertices or faces wrong? : What could possibly be wrong in my obj-renderer class? I…
Frame91
  • 3,670
  • 8
  • 45
  • 89
0
votes
1 answer

incorporating "tinyobjloader" in my OpenGL project

So that i can load OBJ files and have them rendered in my openGL window. So far i've managed to: create an OpenGL context and window using glfw3 created an executable (of test.cc, and its associated libraries and headers) which just outputs OBJ…
user4397892
  • 105
  • 2
  • 6