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

How convert file with extension *.3d to *.obj

I have one file with extension .3d. How to convert it to .obj?
tasha
  • 21
  • 1
  • 3
0
votes
1 answer

Obj Parser scanf giving strange results

I'm making a parser for .obj files . I'm using scanf but I'm getting really strange results. void loader::readIn() { //!takes in the all the data and //!puts in string first. std::string myString; //!save string float…
Student123
  • 323
  • 1
  • 5
  • 14
0
votes
0 answers

How to open .obj file in android

I have been using the code from the following link. https://github.com/ldo/ObjViewer_Android The code runs but the file is not getting opened. It waits for a while and shows an popup box to close the application since it is taking a lot of time to…
Baradwaj Aryasomayajula
  • 1,184
  • 1
  • 16
  • 42
0
votes
1 answer

Export 3D object, Mathematica

I've been researching this, but I cannot find a simple example for how to do this. I would like to export a 3D object as an .obj into a specified folder.
0
votes
1 answer

Access Reading Violation Error - C++ Obj Loader

I've written a basic .obj loader. It works with a cube and some other basic stuff. Once I give it a complex model it fails. Here is some basic code: Functions.h #pragma once #include struct face { bool triangle; int faceNumber; …
Jordan Schnur
  • 1,225
  • 3
  • 15
  • 30
0
votes
1 answer

Loading multitextured .obj file (c++/opengl)

I'm having a problem loading a .obj file in an OpenGL app. It's a car model made of different sections (which use different material for example glass, wheels etc..) I have a WavefrontModel class, which contains an array of WavefrontSection that…
carlduke
  • 560
  • 6
  • 10
0
votes
0 answers

Three.js .obj - reseting children position matrix

I was trying to rotate children of an object, in it's place, but the local and world coordinates where (0,0,0) even if they were not in that position in the original. It looks like, .obj format is changing children original position eg (4, 0, -2)…
SuddenHero
  • 45
  • 8
0
votes
2 answers

.obj Models and normals

I been working on Three.js for a month now, mostly learning how it works and what can i do. Now, i'm trying to do a Car Expo by uploading .obj models of the cars. My problem is that some of the faces of the car are invisible from some points of view…
Tro1ka
  • 3
  • 1
0
votes
0 answers

Open .obj in Azure Error

When I open .obj file in Windows Azure running Windows Server 2008 using Google chrome it gives error (eg: localhost/obj/test.obj) The error is shown below, may I know how can I solve this problem? HTTP Error 404.3 - Not Found. The page you are…
Tim
  • 3,755
  • 3
  • 36
  • 57
0
votes
1 answer

object importing in Three.js

http://victorribeiro.com/modelo3D If you take a look at the example above, you can see a low poly model in .obj format with some texture baked on it. My question is: Is there a way that I import this same model, apply on material on the body and…
user1659565
0
votes
1 answer

how to use obj2opengl.pl

Now, I have a 3d model to .obj file extension, but I use JavaScript and obj2opengl.pl. Guide how to use the steps to export the files .h extension?
0
votes
2 answers

glDrawArrays doesn't draw anything?

Program successfully loads everything, code is completely dirty i accept but i am at least trying to draw something. but it seems something went wrong, no error, no display :P PS: projection, load file etc. everything is set up properly.…
deniz
  • 2,427
  • 4
  • 27
  • 38
0
votes
1 answer

About .obj 3d model format and VBO

Are the amounts of v, vn and vt same in an .obj model ? I ask it because i can only use one index per draw so i have that to use VBO struct VertexCoord { float x,y,z,w; float nx,ny,nz; float u,v; }; so i can use one index for all buffers by…
deniz
  • 2,427
  • 4
  • 27
  • 38
0
votes
1 answer

Computing Bounding Sphere after static .OBJ loading with Three.js

I got the following code for loading a simple, non-animated .OBJ with a .MTL into Three.js. It's very simple indeed and works well, but when I add the line with computeBoundingSphere(), it fails with a "TypeError: object.computeBoundingSphere is not…
Mutos
  • 310
  • 1
  • 10
0
votes
2 answers

Using GLM .obj loader in an Objective-C program

I am trying to use GLM to load a .obj object in my Objective-C Program (Xcode 4.4 Mac Os X). I have added the glm folder to my project. i try to import it using #import "glm/glm.hpp", but the program doesn't build. some of the errors are the…