OBJ2OPENGL
Convert OBJ file to OpenGL format


OBJ2OPENGL is a PERL script that reads an OBJ file describing a 3D object, and writes a C include file describing the object in a form suitable for use with Open GL.

To see how to use the include file created by this program, refer to the example in the Open GL examples directory.

The author wishes to point out that this script was developed for a specific purpose, and was not intended to be able to handle all variations of the OBJ file format.

Related Data and Programs:

IVCON is an executable C++ program which can convert graphics information between OBJ and other formats.

IVREAD is an executable FORTRAN90 program which can convert graphics information between OBJ and other formats.

OBJ is a data directory which has some examples of OBJ files.

OBJ_2_PLY is an executable C program which reads an OBJ file and writes similar information to a PLY file.

OBJ_IO is a library of FORTRAN90 routines which transfer graphics information to and from 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 an executable FORTRAN90 program which can read a TECPLOT file describing a surface in 3D composed of triangles or quadrilaterals, and write an OBJ file.

Usage:

obj2opengl file.obj
reads file.obj and writes an INCLUDE file.

Author:

Margaret Geroch,
Associate Professor,
Wheeling Jesuit University,
Wheeling, West Virginia.

Reference:

Source Code:

Files you may copy include (for some loopy security reason, we must avoid the "PL" extension on the source code as distributed here:

Examples and Tests:

CUBE is a simple cube. Files you may copy include:

GOURD is a complicated shape that represents a gourd. Files you may copy include:

You can go up one level to the PERL source codes.


Last revised on 30 October 2007.