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

Printing onto the command prompt

I am new here. I was writing multiple programs and whenever I run them on the command prompt the produce a .obj file. Is there anyway to stop this? int getComments(const char *fileName) { char line[300]; int comment = 0; FILE *fp =…
Gilgamesh
  • 1
  • 1
0
votes
1 answer

How do I name the nodes/faces in obj file so that I should be able to see these custom names in model browser of forge viewer after translation?

I am trying to name the nodes/faces in my obj file. So that after translation when I open the file in forge viewer I should be able to see the same names in model browser. I tried using 'o' parameter for object naming in my .obj file but still, I am…
ketan shinde
  • 212
  • 2
  • 10
0
votes
1 answer

Obj file becomes white when mtl is added

I'm writing a script in aframe to showcase the earth. However, when I try to add texture it becomes all white. This is my script:
Felipe Bpm
  • 58
  • 6
0
votes
1 answer

three js import .obj - mesh showing incorrectly

I've exported 3d object as a .obj and it's showing up with the right end a bit messed up. I also tried a .fbx with the same results. Attached are some images of what is going on. How can I fix this? It seems like it may be a flaw in the 3d object…
Jacksonkr
  • 31,583
  • 39
  • 180
  • 284
0
votes
1 answer

fscanf returning nonsense values

I'm trying to read from a file following this tutorial: http://www.opengl-tutorial.org/beginners-tutorials/tutorial-7-model-loading/ The problem is that when I try to copy the code and do fscanf, the values are always initialized to crazy values…
0
votes
1 answer

What am I supposed to place in "filename" in the OBJFileLoader?

In the OBJFileLoader found at https://www.pygame.org/wiki/OBJFileLoader, what am I supposed to put in place of "filename". In the Class OBJ, in the line: def init(self, filename, swapyz=False): when I put the full path to the .obj file, it says…
Manly Winter
  • 21
  • 1
  • 9
0
votes
1 answer

Microsoft Visual Studio Not Linking My CUDA .obj Files Into My .lib

So, we recently upgraded our project to be using Microsoft Visual Studio 2010 and we are having some issues with our CUDA projects. I do have 2008 installed, and I am using the vc90 toolkit, and the files appear to be compiling (their associate .obj…
Chad Mourning
  • 608
  • 2
  • 12
  • 25
0
votes
1 answer

.obj to fbx exporter and vice versa

Does there exists any command line tool that helps you import/export obj/fbx files. I couldn't get the autodesk fbx converter to work. Any decent package preferably CLI tool out there that does the heavy weight lifting or if there's any three.js…
Alien128
  • 313
  • 1
  • 2
  • 18
0
votes
1 answer

OBJ file in C++ with ubuntu problems

I'm having a problem reading an OBJ file... Problem 1 is that the vectors are declared as floats (and have been declared as doubles), but print out in the terminal gives me all integers. Terminal output has been: 1-1-1 1-11 -1-11 …
Joe Diaz
  • 23
  • 4
0
votes
1 answer

Simply assign a Material to loaded .OBJ - ThreeJS

I've been hitting myself overhead with this one for the good three hours now.. My question is, would someone be kind enough to reorganize my example in such a way, that the object that I load comes with a color, any color var loader…
Lovro Mirnik
  • 77
  • 10
0
votes
1 answer

Internal structure of .obj files and calculation of vertices in relation to conditional statements.

Being new to .obj and 3D rendering please excuse my ignorance, I will formulate the question as clearly as I can. My program will accept .obj files formatted like this: g Cube.006 v 2.016505 -3.960833 -1.000000 v 2.016505 -3.960833 1.000000 v…
Leo Naylor
  • 13
  • 2
0
votes
1 answer

Unresolved external in .obj files concerning FreeType library class destructors T::~T

After having solved in a more or less good manner this problem : How to update a Borland 6 C++ Project from including indy.bpi to indy60.bpi? ... I now meet another difficulty : I now have "unresolved external" destuctors in .obj files : I have…
Arnaud
  • 17
  • 1
  • 4
0
votes
0 answers

Feature detection wavefront object using python. is there any libraries?

I am doing a 3D Scan and export the result as a wavefront object (.obj with the mesh, and .mtl and .jpeg for the texture). the link between the faces of the mesh and the texture are in the .obj. I am trying to detect "circles" for example on the 3D…
p.deman
  • 584
  • 2
  • 10
  • 24
0
votes
0 answers

Multiple scenes and multiple .obj models in Three.js

I am stuck with loading in two .obj models into two different div elements. Currently, both objects end up in the last div element, as seen here: https://casagroupproject.github.io/template1/test.html My code is based on this example…
emily
  • 97
  • 14
0
votes
1 answer

Putting textures on an obj file

I want to put a texture on my obj file, but I'm getting an error message. This is my code: new THREE.MTLLoader() .setPath( 'models/cool' ) .load( 'CobbleStones.mtl', function ( mat ) { …
Boby
  • 77
  • 3
  • 10