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

Convert dicom .dcm files into .obj format

I have sets of .dcm files of an MRI scan. I am trying to convert them into 3d formats like obj (preferably) or fbx to import them into Unity 3d. I used the following open source software dcmtk to convert .dcm file into text file. Converting DICOM…
-1
votes
1 answer

Wavefront OBJ Loading Error: Missing and incorrect faces

I'm trying to load Wavefront OBJ files for a game I'm trying to make. I have it down... sort of. Some of the faces are either missing when rendered, or they have incorrect vertex positions. The way I'm loading them probably isn't very optimized,…
David
  • 41
  • 6
-1
votes
2 answers

Java LWJGL OPENGL trying to render .obj file with no success

I'm trying to render a 3D model of a bunny. I tried to render the .obj file but nothing shows up on my screen, here's the code : MainDisplay class : Code: package com.dryadengine.gui; import com.dryadengine.core.Model; import…
-2
votes
1 answer

Insert 3d objects (.obj) in WPF project

I'm beginer in WPF, and i need to insert 3d objects (.obj) in the project and do some animations on theme. I use Visual Studio 2015. Can you tell me the best practice? Thank you.
-2
votes
1 answer

Error while referencing vector index in another vector : 'std::out_of_range at memory location'

I am trying to parse an .obj file and I have my file parsed and stored in vec3's and int vectors respectively. However when I try to create my aitVertex struct by linking everything up using the faces to correspond to the vertex and normal's I am…
-2
votes
1 answer

Obj file structure

I need to render a model in openGL from an obj file(on Android). I got the vertices, texture coordinates, etc. I need help with the faces. They indicate the indices right? What does... f 41/1/1 38/2/1 45/3/1 mean. I tried rendering it in a few…
Shadow
  • 1
  • 5
-2
votes
1 answer

Three.js beginner questions (where to start)

I have a project where I want to load/use/display 3D models in a web browser, and provide control/interactivity over these models.. (add more than one to the stage/canvas..upon button events/clicks..etc) I saw a similar project to mine, and after…
whispers
  • 962
  • 1
  • 22
  • 48
-2
votes
2 answers

Need to get .obj file names of Executable(which one is crrently executing) at runtime programatically in VC++?

Suppose I have a VC++ project containing number of Source (.cpp) files (e.g. 5), it will generate 5 .obj files (corresponding to my .cpp files not all kernel and OS layers including .obj files). My project includes xyz_1.cpp, xyz_2.cpp, xyz_3.cpp,…
Usman
  • 2,742
  • 4
  • 44
  • 82
-2
votes
1 answer

Parsing obj. files through opengl

I have an obj. file almost completed. im stuck on the final part with a single error. //load the filename textures (only BMP, R5G6B5 format) unsigned int objloader::loadTexture(const char* filename){ unsigned int…
Richard Cripps
  • 193
  • 1
  • 11
-6
votes
1 answer

c++ infinite loop when reading .obj file using std::ifstream

I am writing a raytracer program in C++. Part of this program should be able to read a 3D model from a mesh.obj file. I am currently having problems with reading the file using std::ifstream. I wrote a function read_mesh, which takes a string…
1 2 3
25
26