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
6
votes
2 answers

UV mapping not working on imported obj file

I have exported an .obj file (along with .mtl and a .png) from Blender to import into a libgdx project. The file contains both UV and normal data. I am pulling the file into the app like this: ModelLoader loader = new ObjLoader(); model =…
andypaxo
  • 6,171
  • 3
  • 38
  • 53
5
votes
1 answer

How to display .obj file with .mtl in Android using Processing

I want to run a Processing sketch on Android mode where I load and display an .obj file. In Java mode it works perfectly but in Android mode the .obj geometry shows up without the materials (.mtl file). My .obj and .mtl(including png textures) are…
uip luis
  • 51
  • 4
5
votes
1 answer

disable backface culling for imported .obj file three.js

I am having difficulty turning off wire frame rendering at the backside of my car. How do you turn off backface culling in wire frame mode for three.js ? https://i.stack.imgur.com/P07lt.jpg
sourcevault
  • 313
  • 1
  • 3
  • 10
5
votes
3 answers

How to reduce the size of 3D .obj file

I'm developing a game using Android OpenGLES2. Making use of .obj files to draw 3D models, and the load time is too much because of the size of .obj file i.e., 3MB. Please suggest a method to minimize the obj file size
David
  • 75
  • 1
  • 1
  • 7
5
votes
1 answer

Mapping Wavefront .obj texture vertex on OpenGL

An artist gave me all 3D models for me exporting to .obj and .mtl in order that I can render it using OpenGL. But I can't figure out why the texture vertex are greater than 1 and sometimes negative. Take a look at this example: (...) vn -0.000717425…
rodrigogq
  • 1,943
  • 1
  • 16
  • 25
5
votes
4 answers

How do I prevent Visual Studio from creating obj folders in my source directory?

I've set the OutputPath, IntermediateOutputPath, and BaseIntermediateOutputPath tags in all my csproj files. Despite that, Visual Studio creates extra "obj" folders in my source directories. As far as I can tell, it creates the directory…
Timwi
  • 65,159
  • 33
  • 165
  • 230
4
votes
2 answers

Mapping Wavefront .obj's vt to OpenGL texture coordinates

an artist friend has sent me an .obj file exported by 3DS Max 2009 which contains three texture coordinates as parameters to the vt command. And that's correct according to .obj specification. However, I'm not sure how to map U-V-W coordinates that…
Ivan Vučica
  • 9,529
  • 9
  • 60
  • 111
4
votes
1 answer

Command Line/Terminal 3D Rendering

I have a lot of computer-generated 3D meshes that I would like to render as 3D images. I only need one snapshot of each mesh, and since I have a lot of these mesh files, I would like to automate the image rendering. I can easily convert the 3D data…
Jason
  • 13,563
  • 15
  • 74
  • 125
4
votes
3 answers

parsing .obj 3D graphics file with JavaScript

I have a question. I know that its not possible to parse .obj 3D graphics file using JavaScript and we have to convert it into some other format (preferably JSON). But I want to know why? Why we can't parse .obj file using JavaScript? I would really…
Vik
  • 488
  • 2
  • 10
  • 19
4
votes
1 answer

How to setup/calculate texturebuffer in glTexCoordPointer when importing from OBJ-file

I'm parsing an OBJ-file in Android and my goal is to render & display the object. Everything works fine except the correct texture mapping (importing the resource/image into opengl etc works fine). I don't know how to populate the texture related…
Aydin K.
  • 3,309
  • 36
  • 44
4
votes
1 answer

Creating .obj files in Java

is there a Java library in existence for creating .obj files. There are many for loading .obj files for use with APIs like JOGL but I can't find anything to do with creating an .obj file.
Affian
  • 3,380
  • 5
  • 22
  • 26
4
votes
1 answer

ModelIO Framework Not Working

I'm trying to import 3D model files and render them with Metal using ModelIO and MetalKit (on OS X 10.11), but the behavior I'm seeing from these frameworks (specifically ModelIO) is not as expected. I can import .obj files and convert them to…
lcmylin
  • 2,552
  • 2
  • 19
  • 31
4
votes
2 answers

THREE.js OBJLoader - load to Geometry, manipulate, then save to BufferGeometry

I'm trying establish why I can't smooth shade geometry loaded with OBJLoader. var loader = new THREE.OBJLoader(manager); loader.load('/manmodel/js/man.obj', function (object, materials) { console.log(object); console.log(materials); man…
grateful
  • 1,128
  • 13
  • 25
4
votes
1 answer

Add color to .obj in ThreeJS

I am new to ThreeJS and have a simple question. I have the following code that will work properly, but I cannot add color to my .obj. The short and narrow of it is that I designed a game controller in Solidworks 2012, then I exported the CAD file as…
user3229941
  • 41
  • 1
  • 2
4
votes
3 answers

Linking C .obj files into Delphi application, resolving standard C dependencies

I compiled libxml2 with BCC 5.5 command line compiler, now I have lots of .obj files which I'd like to link into my Delphi application. Unfortunately, I get lots of "Unsatisfied forward or external declaration" errors, pointing to standard C library…
migajek
  • 8,524
  • 15
  • 77
  • 116
1
2
3
25 26