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

Importing PBR models into Xcode results in incorrect shader properties

I have been experimenting with different 3D model file formats in Xcode, primarily .obj and .dae. However, after I export these files from Blender, they either don't have any lighting associated with them or all of the values (especially their…
rmLuma
  • 829
  • 1
  • 6
  • 4
1
vote
0 answers
1
vote
2 answers

writing .3ds or .obj loader in java

Iv'e exported a model in blender to a .obj file. Iv'e managed to create a very simple class that loads vertices and indices to arrays. My problem is that i want the texture coordinates (vt) and normals (vn) as well. So for example, i would need 4…
Henrik
  • 1,147
  • 2
  • 11
  • 22
1
vote
0 answers

How to assemble wavefront .obj data into element and vertex arrays of minimal size?

I'm having trouble putting the data inside a wavefront .obj file together. These are the vec3 and vec2 definitions template struct vec3 { T x; T y; T z; }; template struct vec2 { T x; T y; }; Used…
Big Temp
  • 434
  • 4
  • 12
1
vote
0 answers

Is it possible to add doublesidedness and alpha cutoff value into an .obj file?

I am new to the 3D world and am exploring ways to embed alpha cutoff and double-sidedness into different file formats. I know that gltf allows us to specify alphaMode, alphaCutoff and doublesided value. I wanted to know if there is a way this can be…
rkd
  • 11
  • 1
1
vote
1 answer

Scene Kit View with moving Object

How can I show a moving 3D object in my Simple view Application using scene kit view with swift 4. For example bee.glb file in windows, I am using these four files: body.bmp body.jpg volkeswagon-vw-beetle.mtl volkeswagon-vw-beetle.obj import…
mahr33n
  • 29
  • 7
1
vote
2 answers

How to correctly read information from OBJ file and use it to render a model with DirectX 11

I'm trying to render a model in OBJ file format with DirectX. I'm using simple cube model, but I get some really strange results(picture below) I've tried to render a cube by filling vertecies array manually and it worked pretty good. After studing…
1
vote
1 answer

Importing Object working in Unity editor, error when running build project

I am trying to import a .obj file into my unity project at runtime. I used the framework SimpleOBJ to import this file. When running the project inside of the Unity editor everything works as expected and the object gets imported and…
WouterV
  • 11
  • 3
1
vote
0 answers

Three.js - Set imported .obj as mesh and not linesegments

I am importing a obj + mtl file (exported from blender) in my three.js project. The problem is that i get a linesegments object (buffergeometry+linesegment material) instead of a mesh. How can i solve this? This is my code: var mtlLoader= new…
zed87
  • 435
  • 5
  • 16
1
vote
0 answers

Can not determine file format for @path to the obj file@ USDZ windows

i am trying to convert my usda to usdz using the usdzip command line tool provided by pixar. i have managed to successfully build the package using their official build-method. however when i try to view the usda or usdz using the usdzview command…
Alien128
  • 313
  • 1
  • 2
  • 18
1
vote
2 answers

Convert 3D model (obj or gltf) to < div's> and CSS

Is there any possibility to convert 3D element (obj or gltf details and relevant nodal coordinates) into HTML < div's> and CSS to recreate the same object.
1
vote
1 answer

OBJLoader is not a constructor

I want to display a .obj file with THREE.js. Before I even load the .obj file, I want to load the OBJLoader.js file which I linked in the index.html file. OBJ Car rendering