加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

OBJ2OPENGL Convert OBJ file to OpenGL format

发布时间:2020-12-16 00:27:48 所属栏目:大数据 来源:网络整理
导读: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 e

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:

  • The?OBJ data directory?contains some example OBJ files.
  • OBJ is a file format from ALIAS (?http://www.alias.com/eng/index.shtml)
  • Open GL examples.

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:

  • obj2opengl.perl,the source code (your copy will have a "PERL" extension,which you will probably want to change back to "pl");
  • graphicsDefs.h,an include file that will be needed when the C file is compiled;

Examples and Tests:

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

  • cube.obj,an?OBJ file?of the shape;
  • cube.h,the corresponding INCLUDE file created by obj2opengl.pl;

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

  • gourd.obj,an?OBJ file?of the shape;
  • gourd.h,the corresponding INCLUDE file created by obj2opengl.pl;

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


Last revised on 30 October 2007.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读