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
0 answers

Can't load texture from .obj and .mtl - Three.js

I'm developing an app with model 3D but I'm using .obj and .mtl file in three.js. The model is showing but the texture doesn't show. I don't know what im doing wrong. I Have tried in diferents ways to show it but nothing. I tried with a download…
Hector
  • 29
  • 1
  • 6
0
votes
1 answer

three.js .mtl attributes not being set in custom shader

I'm creating a custom three.js app where I load an OBJ/MTL model for rendering. I want to apply a custom shader to the loaded model, but the color & specular uniforms that I manually pass to the RawShaderMaterial aren't being updated. Or rather,…
0
votes
1 answer

How to calculate volume of a 3D mesh from wavefront .obj file?

I am trying to parse wavefront .obj file. From wikipedia I learned it's format specification. I am interested in volume analysis. Before that i worked in .stl files. I can compute volume of tetrahedron by using dot and cross product. In .stl files…
run_time_error
  • 697
  • 1
  • 8
  • 22
0
votes
1 answer

Can't draw a correct cube when loading one from .obj file with opengl

I looked at this problem from every conceivable angle and I don't see what I'm doing wrong so I'm asking you. I have a little C++ program that uses opengl and can draw a cube okay. I tried loading it from an .obj file with this function …
0
votes
1 answer

How to export texture map sculptris alpha 6

I am trying to export my .obj files with color and textures and everything that I painted on them. I looked it up on the internet and apparently the best way to do it is to export texture map, which is supposedly a button somewhere. When I looked…
0
votes
1 answer

Project Tango export scan file with scale

As I see it, one can use the constructor app to create scans and also export those in two different file formats, one being .srb and one being .obj. The former is mostly unreadable though: tango version 1.0 element vertex 73380 element normal…
0
votes
0 answers

UV mapping a blender.obj with multiple parts using faceVertexUvs. THREE.js

I am attempting to texture/UV map a model created in blender with a custom map in three.js... when I try to apply the mapped part of the texture I get this error: Uncaught TypeError: Cannot read property '3' of…
0
votes
1 answer

Extracting relevant information from .obj 3d file

I have generated a .obj file from a scan of a 3d scanner. However, I am not sure how to interpret all this data. I have looked on wikipedia and understood the general structure of the .ibj file. My goal is to extract some information about the…
gunner1024
  • 11
  • 2
0
votes
2 answers

OpenGL: Model not displaying correctly. (Need to fix draw distance?)

I'm new to OpenGL. I'm playing around with JOGL. I have a .obj model that I'm drawing as polygons. It looks ok, except that most of it gets clipped. So I think that I need to increase the draw distance. I'm not really sure how to do it. Here is my…
Nick Heiner
  • 119,074
  • 188
  • 476
  • 699
0
votes
1 answer

How do I swap an OBJ object for another in Three.JS?

I am using ThreeJS to load OBJs into a webpage, which I have done succesfully, but now I want to add buttons to my page that will swap out the displayed OBJ file for a different one. I have attempted to name the object when loading it: object.name =…
Nicolas KK
  • 21
  • 5
0
votes
2 answers

Read integers from .obj file in c++

I have following problem. I need read integers from file xxx.obj. Integers are always 4B. If i use hexdump -C to file, it looks: 04 00 00 00 06 00 00 00 08 00 00 00 50 00 00 00 One pair is 1B. This is, how i open file: ifstream fs1; fs1.open(…
Schrami
  • 89
  • 1
  • 12
0
votes
1 answer

how do obj files work once loaded

Can anyone provide me with a high level over view of how obj or other 3d formats work. I'm trying to learn 3D programming for games but all the tutorials i've found so far only show how to create and manipulate primitives such as a sphere etc. I'm…
Drake
  • 1
  • 1
0
votes
1 answer

get 3d objects name by touching using min3d android

i need to add features of my android project, to get each name of the 3d objects. The objects are irregular and it can be rotate based on the user's gesture. I have lots of reading on openGL ray picking but still cant figure out how to make it work.…
sarabrown
  • 11
  • 2
0
votes
1 answer

THREE.js OBJMTLLoader - Request for simple example files

As detailed in a previous question I have learned how to use THREE.js OBJMTLLoader by using the same objects & materials used in the official example. That example uses a (for me) complex model with the DDSLoader. I would like to load simpler…
steveOw
  • 879
  • 12
  • 41
0
votes
1 answer

THREE.js - Object Picking doesnt report parent object name on object loaded with OBJMTLLoader

I have loaded an OBJ file with MTL file textures using OBJMTLLoader. I copied the example from http://threejs.org/examples/webgl_loader_obj_mtl.html. The main object (man in business suit with hair, hands and shoes) displays OK with correct textures…
steveOw
  • 879
  • 12
  • 41