OBJ Files
A 3D Object Format
These are some examples of OBJ files.
An OBJ file is format for storing a description of the surface of
a 3D object, composed of triangles or higher degree polygons.
OBJ File Characteristics:
-
ASCII (there is also a binary version, for which an "MOD"
extension is used in the file name);
-
Color;
-
3D;
-
No compression;
-
contain definitions of 1 or more named 3D objects;
Related Data and Programs:
An OBJ file may define and access an external
MTL file, which contains
definitions of various material types.
Reference:
-
http://www.alias.com/eng/index.shtml,
The Alias web site.
-
../../txt/obj_format.txt,
some information about the OBJ format.
Programs to create an OBJ file:
-
MATHEMATICA has an Export command that can output graphics
files in OBJ format.
Routines to read an OBJ file:
-
OBJ_IO
includes routines that will read 3D graphics data from an
OBJ file;
Routines to write an OBJ file:
-
OBJ_IO
includes routines that will write 3D graphics data as an
OBJ file;
-
The routine voxel_to_obj in the MRI library
region.
Routines to display an OBJ file:
-
OBJ_DISPLAY
is a MATLAB program which
can read an OBJ file and display it on the screen.
Programs to convert an OBJ file to another format:
-
ivcon
can read in an OBJ file, and write it out in a
variety of formats;
-
ivread
can read in an OBJ file, and write it out in a
variety of formats;
-
obj2opengl is a PERL script that converts an OBJ
file to a C/C++ include file appropriate for use with
Open GL;
-
obj_to_ply
is a C program that reads an OBJ file and writes a
PLY file.
Programs to convert a file to OBJ format:
-
IVCON
can read in a variety of 3D file formats, and write
them out as OBJ files;
-
IVREAD
can read in a variety of 3D file formats, and write
them out as OBJ files;
-
PLY_TO_OBJ
is a C program which
reads a PLY 3D graphics file and writes an equivalent OBJ graphics file.
-
TEC_TO_OBJ is a
FORTRAN90 program which can read a TECPLOT file describing a
surface in 3D composed of triangles or quadrilaterals, and write
an OBJ file.
-
The Visual Toolkit
routine vtkOBJExporter can export a
VTK image to an OBJ file.
Sample OBJ files:
-
cessna.obj,
a Cessna airplane,
using 3745 nodes and 3897 faces with orders from 3 up to 32.
-
cessna.png,
a snapshot of the shape as displayed by OBJ_DISPLAY.
-
cube.obj,
a cube,
using 8 nodes and 12 faces of order 3;
-
cube.png,
a snapshot of the shape as displayed by OBJ_DISPLAY.
-
diamond.obj,
a diamond;
-
dodecahedron.obj,
a dodecahedron;
-
gourd.obj,
a gourd,
using 326 nodes and 648 faces of order 3.
-
gourd.png,
a snapshot of the shape as displayed by OBJ_DISPLAY.
-
humanoid_quad.obj,
a humanoid shape
using 48 quadrilateral faces;
-
humanoid_tri.obj,
a humanoid shape
using 64 nodes, and 96 faces of order 3;
-
humanoid_tri.png,
a snapshot of the shape as displayed by OBJ_DISPLAY.
-
icosahedron.obj,
an icosahedron;
-
lamp.obj,
a lamp;
-
magnolia.obj,
a magnolia blossom,
using 806 nodes and 1247 faces;
-
magnolia.png,
a snapshot of the shape as displayed by OBJ_DISPLAY.
-
octahedron.obj,
an octahedron;
-
power_lines.obj,
power lines;
-
pyramid.obj,
a pyramid;
-
roi.obj,
an MRI scan, originally a set of 3D voxels, now grouped into
contiguous regions of interest;
-
sandal.obj,
a sandal;
-
shuttle.obj,
the Space Shuttle;
-
shuttle.png,
a snapshot of the shape as displayed by OBJ_DISPLAY.
-
skyscraper.obj,
a skyscraper;
-
slot_machine.obj,
a slot machine;
-
teapot.obj,
a teapot,
using 3644 nodes and 6320 faces of order 3.
-
teapot.png,
a snapshot of the shape as displayed by OBJ_DISPLAY.
-
tetrahedron.obj,
a tetrahedron,
using 4 nodes and 4 faces of order 3.
-
tetrahedron.png,
a snapshot of the shape as displayed by OBJ_DISPLAY.
-
trumpet.obj,
a trumpet;
-
violin_case.obj,
a violin case,
using 1080 nodes and 944 faces, of orders from 3 to 14.
-
violin_case.png,
a snapshot of the shape as displayed by OBJ_DISPLAY.
You can go up one level to
the DATA page.
Last revised on 27 September 2008.