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

Babylon.js OBJ Loader Assigning materials by IDs

I have single OBJ file with different elements with unique IDs. Have to load this model to Babylon.js with re-assigning materials by these IDs. OBJ | |- Head |- Body |- RightLeg |- LeftLeg | |... material1 for Head material2 for Body ... I know…
VVK
  • 435
  • 2
  • 27
0
votes
1 answer

High ambient value while loading OBJ file

I'm loading OBJ file that has been exported from 3ds max. The material in .mat file has strange ambient value of (1, 1, 1): newmtl crome Ns 96.078423 Ni 1.500000 d 1.000000 Tf 1.000000 1.000000 1.000000 illum 2 Ka 1.000000 1.000000 1.000000 Kd…
shtille
  • 133
  • 5
0
votes
1 answer

How to create .obj and .mtl exporter in maya

I have a task in school to create an custom .obj and .mtl exporter in maya but the documentation is really hard to understand and use. Found a blogpost that looked about like this, the code works but i would like to know more about what it actually…
Hamaro
  • 49
  • 9
0
votes
1 answer

How to correctly format NURBS curves for wavefront .OBJ file format?

I am trying to write a wavefront .OBJ file that contains 3D NURBS curves (not surfaces). I found the following link that describes how to correctly format curves and surfaces within .OBJ files: http://www.martinreddy.net/gfx/3d/OBJ.spec There is no…
chloelle
  • 332
  • 3
  • 12
0
votes
1 answer

How to import a .obj with a .mlt into Maya?

I have a folder with a .obj file, a .mlt file, and a number of .jpgs that are textures for the .obj file. Here's a link to the folder. I'm trying to import this .obj into either Maya or Unity 3D, and when I do I only see a gray, untextured object.…
0
votes
1 answer

How do faces in .obj work?

When parsing an .obj-file, with vertices and vertex-faces, it is easy to pass the vertices to the shader and the use glDrawElements using the vertex-faces. When parsing an .obj-file, with vertices and texture-coordinates, another type of face occur:…
tyuip
  • 157
  • 2
  • 10
0
votes
1 answer

Textures in Opengl ES 2 not working properly

I'm working with Opengl ES 2 on iphone and right now I am trying to get my textures working on my objects. I'm using .obj files and all the data in them are correct. I have written a parser myself to retrieve all data, I convert it to static arrays…
tyuip
  • 157
  • 2
  • 10
0
votes
1 answer

Aframe / Squarespace - How to make OBJ source available to all

Newbie here. I created html incorporating Aframe assets that I am inputting into the Squarespace code editor. Everything loads in fine except for the obj files. How to I link to the obj file I have in a folder on my desktop? Or can I upload the obj…
Cosninety
  • 11
  • 3
0
votes
2 answers

How to create mesh with Three.js

I have an .obj file v 1 2 3 v 4 5 6 v 7 8 9 vt 0 1 vt 1 0 vn 0 0 1 vn 0 1 0 vn 0 0 1 f 1/1/1 2/2/2 3/3/3 f 1/1/2 2/2/3 1/2/3 And I need to create THREE.Mesh. I do var geometry = new THREE.BufferGeometry(); geometry.addAttribute('position', new…
Mike_Device
  • 634
  • 2
  • 8
  • 25
0
votes
1 answer

Draw .obj file with Three.js without native OBJLoader

I need to draw .obj file, without its loading. For example I have .obj file with follow content v 0.1 0.2 0.3 v 0.2 0.1 0.5 vt 0.5 -1.3 vn 0.7 0.0 0.7 f 1 2 3 I read this file, parse content and have its data in a JavaScript object. { v: [ …
Mike_Device
  • 634
  • 2
  • 8
  • 25
0
votes
0 answers

how to Smooth .obj in Three.js

Is there any way to smooth an .OBJ in three.js ? I already load the model but it looks faceted I already use the shading: THREE.SmoothShading, in the material but doesn't affect it var Loader = new…
Evoinsec
  • 43
  • 10
0
votes
1 answer

Why I do not see obj and mtl in this A-frame?

I am just getting started with a-frame 0.4.0 3d objects, but I think I make something basic wrong. I started as I see here: https://aframe.io/docs/0.4.0/components/obj-model.html and I used this model:…
gabor aron
  • 390
  • 2
  • 3
  • 15
0
votes
2 answers

OBJ to Json to browser not working

I have converted my OBJ 3d Model into a .js file using this python script: python convert_obj_three.py -i infile.obj -o outfile.js but now I am having issues implementing the 3d model into my html. Im not sure what kind of script is necessary to…
Topish
  • 3
  • 4
0
votes
0 answers

How to find sub-parts of .stl or .obj model programmatically?

I need to find sub-parts of .obj and .stl model and then I have to show them on browser. I can show them on browser using three.js or X3DOM but I am unable to find sub-parts of these models. Is there any algorithm or functionality to find sub-parts…
0
votes
1 answer

Flip face in obj file

I'm dynamically creating a 3D model and writing an .obj file. I'm having a problem with flipping the visible side of faces. I've made a simple example: v 0.0 0.0 0.0 v 0.0 1.0 0.0 v 1.0 0.0 0.0 v 1.0 1.0 0.0 vn 0.0 0.0 -1.0 f 1//1 …
Ben Lorantfy
  • 963
  • 1
  • 7
  • 19