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

Loading OBJ Models into M3G

I would like to start learning java 3d for mobile and I started from here: http://fivedots.coe.psu.ac.th/~ad/jg/objm3g/ . I'm trying to load .obj file into m3g by converting it into Java method. My question is how do I do it? Please explain me it…
Vitali Pom
  • 602
  • 1
  • 8
  • 29
1
vote
3 answers

Parsed my .obj file but it is being displayed weirdly

I followed a tutorial of how to create a castle in blender, I then exported as a .obj file and parsed it to a format that looks as follows: GLfloat mesh01_coords[] = { 50, 0.1, 50, -50, 0.1, 50, -50, 0.1, -50, 50, 0.1, -50, -9.6351, 9.94983,…
thesentyclimate413
  • 89
  • 3
  • 4
  • 11
1
vote
2 answers

Changing my converted .obj file into OpenGL primitives

I created a house in Blender and exported it as a .obj file. I then used 3DWin to convert that into a scene.cpp. Im confused as to how I can import this data into my code to render the house though. I have a mesh array now with my coordinates that…
thesentyclimate413
  • 89
  • 3
  • 4
  • 11
1
vote
0 answers

What settings need to be adjusted to export a Blender 3.6.0 file to FBX with a mapped texture image

I am unable to export an FBX file with the correct texture mapping I imported an OBJ file with a material file into Blender 3.6.0 and it displayed as it should, then when I exported it as an FBX file with the Path Mode set to Copy and Embedding Off,…
RobR
  • 11
  • 2
1
vote
0 answers

MTL file along with OBJ file for displaying 3D models in p5.js

I followed the example from p5.js Reference It contains an example of how to load an OBJ file in JavaScript with p5.js: //draw a spinning teapot let teapot; function preload() { // Load model with normalise parameter set to true teapot =…
1
vote
0 answers

How to infer trim loop from rational bspline surface

My primary question is this: Given a rational bspline surface, how do we express its boundaries in curv2/vp notation? Background: I'm reading through the documentation of the .obj file format. I'm a little confused by the documentation for the…
Mackie Messer
  • 1,126
  • 2
  • 8
  • 22
1
vote
1 answer

Render vertex data of .obj file with openGL

so i want to render a 2D Curve. The data for this is provided through Blender as an .obj File. I also have an object loader which retrieves succesfully the vertices of the file. Here is my window/display limits: glutInit(&argc,…
LoveAndMercy
  • 27
  • 1
  • 1
  • 6
1
vote
0 answers

How to convert a .c or a .o or a .exe file to a .obj file?

I am building an LC3 Virtual Machine in C, but one problem that I am facing is that it takes in only .obj files as input. How am I to convert any file that I write in C into a .obj file in order to run it through the Virtual Machine
1
vote
0 answers

Combine single wavefront .obj objects into a clip sequence

Given many .obj files that represent the 3D pose estimation for each frame of a clip, how to combine the .obj files to form an animation? After performing 3D Pose Estimation on a single human's dance movements, I exported every frame as a .obj file.…
Bendemann
  • 735
  • 11
  • 31
1
vote
0 answers

Wordpress plugin for showing OBJ or FBX 3D Object

I hope you are doing well, Kindly help me to find the wordpress plugin for showing 3D object with our woo commerce products on product description page or Is there any other option to develop our custom plugin in wordpress. Kindly guide me I will…
1
vote
1 answer

Problem rendering a mesh from an OBJ file

I am having a problem adapting and or I guess understanding the vertices/indices/faces in an OBJ file. I want to eventually parse a OBJ file programmatically but first I need to understand how to do it manually. I am using an adaptation of the…
Joey
  • 142
  • 2
  • 14
1
vote
1 answer

Three.JS - removing custom object on click

I'm trying to implement: 1) SHIFT + click on object to remove from scene, and 2) clear button to remove all objects from scene. Live version: https://cs12students.dce.harvard.edu/~amarkham/sandbox/ If you add objects from 'Equipment' tab, it seems…
LanderIII
  • 11
  • 1
1
vote
1 answer

How do I delete 4 characters from the end of certain lines in a string?

I've got an .obj file, which is a text file used for 3D graphics, and here's a sample: f 17439/17439 17440/17440 17441/17441 g lCollar_306 f 17442/17442 17443/17443 17444/17444 f 17445/17445 17446/17446 17447/17447 f 17448/17448 17449/17449…
Jack Harris
  • 245
  • 4
  • 13
1
vote
1 answer

THREE.js fails to apply Gradient colors to Imported OBJ file

I'm trying to load and color a sample file from the THREE.js GIT called "WaltHead.obj" located here: https://github.com/mrdoob/three.js/blob/dev/examples/models/obj/walt/WaltHead.obj I'm able to load it into my project, but when I try to paint it…
Sirab33
  • 1,247
  • 3
  • 12
  • 27
1
vote
1 answer

How to make 3d model from code and export it as .obj file

I'm trying to create a 3d model from script and then i want it to store it as .obj .fbx or .dae format is there any way that I could make it from OpenCV or OpenGL?
mustafa
  • 29
  • 6