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

Build C/C++ library to link it into delphi application... How?

if I have a source of library written in C/C++ (lets say its libxml2), now I'd like to build it, and link it into the delphi application... I know it is possible, since Delphi Zlib does it ( http://www.dellapasqua.com/delphizlib/ ) ... But my…
migajek
  • 8,524
  • 15
  • 77
  • 116
4
votes
1 answer

Disassemble and use a .obj file

I have a course (reverse engineering) in uni and i have a homework. I got a .obj file (which was compiled with visual studio 2008), and i have to disassemble it, figure out the control structure and call it in a little c program. I used IDA…
amman
  • 142
  • 4
  • 12
3
votes
1 answer

How can I open .obj files with color in python?

I tend to load the .obj file with its color in python and save it as png. I had many searches, but none were suitable for my purpose. here is the code I found for saving as a png file: and output appears like this: but the desired output is like…
Ali Ganjbakhsh
  • 541
  • 7
  • 13
3
votes
1 answer

THREE.js loading obj + mtl with png textures

I'm trying to load mtl file with reference to png textures to my obj model, but I'm getting following error: TypeError: manager.getHandler is not a function here is my three.js code: var loadOBJ = function(){ var mtlLoader = new…
shadow
  • 99
  • 12
3
votes
1 answer

Different indices array for texture/vertices

Im trying to draw a globe in Android, I use OpenGL for this. However to make it easier to understand i will start by making a simple 3D cube. I use Blender to create my 3D object (cube) and export it as a .obj file after i have unwrapped it to get…
Henrik
  • 1,147
  • 2
  • 11
  • 22
3
votes
3 answers

How to use Crtl in a Delphi unit in a C++Builder project? (or link to C++Builder C runtime library)

I have a Delphi unit that is statically linking a C .obj file using the {$L xxx} directive. The C file is compiled with C++Builder's command line compiler. To satisfy the C file's runtime library dependencies (_assert, memmove, etc), I'm including…
Zoë Peterson
  • 13,094
  • 2
  • 44
  • 64
3
votes
1 answer

How to import an obj file in Scenekit macOS App

I am trying to read a .obj file into a SCNNode from the local drive on a macOS app (not iOS) with the following code: let url = NSURL(string: objPath!) let asset = MDLAsset(url: url! as URL) let node = SCNNode(mdlObject: asset.object(at:…
Sarbartha Sengupta
  • 316
  • 1
  • 4
  • 11
3
votes
1 answer

3D Model is not looking same as size in ARKit

Problem statement I am facing a trouble in AR that our model size does not match with real products.This iPhone has the same dimension as real iPhone but it doesn't match with real products. IPhone Model Size - (5.44 x 2.64 x 0.28 in)…
Arpit
  • 31
  • 2
3
votes
1 answer

Load .obj to .scn with multiple sub-objects, textures, materials in SceneKit & Model I/O?

I'm currently working with large .obj files in Apple's SceneKit/Model I/O that contain multiple objects within, each with separate textures and materials. This means I cannot apply one single texture to the file like many other form posts suggest.…
3
votes
2 answers

How to make an MTL from an OBJ glow (emission)?

I have a very simple monocolor icon for AR that needs to emit light. How can I edit the MTL file to make it do so? This is what I made so far but is not glowing. newmtl #63c7b2 Kd 0.3058824 0.8470588 0.5921569 Ka 0.3882 0.780 0.6980 Ke 17 12…
M_Maria
  • 93
  • 1
  • 8
3
votes
1 answer

Mesh disappears after setting material (obj + mtl) using three.js

I've being trying to load some 3D models found on the web in my THREE.scene. I've followed basic tutorials, handled my light and cameras well and it works perfectly for some objects: function loadObject(path, modelName) { …
3
votes
1 answer

Three.js -> FileLoader(scope.manager) not constructor

This might seems as a duplicated question, since it is very similar to this one or many others, but none of the posts I have seen really helped me to figure out where the problem is ( sure, it's me ;) ...), hence I dare to post it here, since it…
3
votes
1 answer

Three.js Loading .mtl and .obj - object stays white

I want to load an object with different textures on different places - so I looked at the examples provided by three.js at https://threejs.org/examples/webgl_loader_obj_mtl.html. The object is getting loaded but it has no different textures on…
Matthias Herrmann
  • 2,650
  • 5
  • 32
  • 66
3
votes
4 answers

Can't use 'defined(@array)' warning in converting .obj to .h

I'm trying to convert my .obj file to a .h header file, but i'm getting "Can't use 'defined(@array)' (Maybe you should just omit the defined()?)" warning and no .h files has created. I've tried replacing @center to $center or omintting defined()…
tbp
  • 85
  • 1
  • 1
  • 7
3
votes
2 answers

How to find sub-parts of a .OBJ 3D model using three.js?

I need to implement a functionality where user can upload a OBJ 3D model and then I will show different sub-parts of that model in browser. (Same as https://www.sculpteo.com is doing.). But I am unable to find sub-parts of OBJ model. I am using…
1 2
3
25 26