jogldevelopmentfile
所属分类:OpenGL
开发工具:Java
文件大小:2049KB
下载次数:5
上传日期:2015-07-08 06:22:56
上 传 者:
1108086
说明: jogl开发使用的安装软件包,网上很难找到的,我分享给大家来看看,希望能帮到大家
(jogl developed using the installation package, Internet is difficult to find)
文件列表:
jogldevelopmentfile (0, 2007-05-30)
jogldevelopmentfile\.classpath (644, 2007-05-30)
jogldevelopmentfile\.project (381, 2007-05-30)
jogldevelopmentfile\bin (0, 2007-06-14)
jogldevelopmentfile\bin\ModelLoaderGL$1$1.class (848, 2007-06-14)
jogldevelopmentfile\bin\ModelLoaderGL$1.class (881, 2007-06-14)
jogldevelopmentfile\bin\ModelLoaderGL.class (3371, 2007-06-14)
jogldevelopmentfile\bin\ModelLoaderGLListener.class (3439, 2007-06-14)
jogldevelopmentfile\bin\models (0, 2007-06-14)
jogldevelopmentfile\bin\models\barbell.mtl (246, 2007-05-30)
jogldevelopmentfile\bin\models\barbell.obj (14326, 2007-05-30)
jogldevelopmentfile\bin\models\beisishou2.md2 (307864, 2007-06-14)
jogldevelopmentfile\bin\models\beisishou2.png (355326, 2007-06-14)
jogldevelopmentfile\bin\models\colorCube.mtl (126, 2007-05-30)
jogldevelopmentfile\bin\models\colorCube.obj (431, 2007-05-30)
jogldevelopmentfile\bin\models\couch.mtl (35, 2007-05-30)
jogldevelopmentfile\bin\models\couch.obj (80177, 2007-05-30)
jogldevelopmentfile\bin\models\formula.mtl (2781, 2007-05-30)
jogldevelopmentfile\bin\models\formula.obj (709155, 2007-05-30)
jogldevelopmentfile\bin\models\heli.mtl (205, 2007-05-30)
jogldevelopmentfile\bin\models\heli.obj (75149, 2007-05-30)
jogldevelopmentfile\bin\models\metal.jpg (2321, 2007-05-30)
jogldevelopmentfile\bin\models\pawn.mtl (69, 2007-05-30)
jogldevelopmentfile\bin\models\pawn.obj (22717, 2007-05-30)
jogldevelopmentfile\bin\models\penguin.gif (27313, 2007-05-30)
jogldevelopmentfile\bin\models\penguin.mtl (179, 2007-05-30)
jogldevelopmentfile\bin\models\penguin.obj (14325, 2007-05-30)
jogldevelopmentfile\bin\models\rose+vase.mtl (465, 2007-05-30)
jogldevelopmentfile\bin\models\rose+vase.obj (368428, 2007-05-30)
jogldevelopmentfile\bin\OBJLoader (0, 2007-06-14)
jogldevelopmentfile\bin\OBJLoader\FaceMaterials.class (2478, 2007-06-14)
jogldevelopmentfile\bin\OBJLoader\Faces.class (3902, 2007-06-14)
jogldevelopmentfile\bin\OBJLoader\Material.class (3746, 2007-06-14)
jogldevelopmentfile\bin\OBJLoader\Materials.class (4957, 2007-06-14)
jogldevelopmentfile\bin\OBJLoader\ModelDimensions.class (2719, 2007-06-14)
jogldevelopmentfile\bin\OBJLoader\OBJModel.class (7450, 2007-06-14)
jogldevelopmentfile\bin\OBJLoader\Tuple3.class (1216, 2007-06-14)
jogldevelopmentfile\bin\Sounds (0, 2007-06-14)
... ...
JOGL Chapter 3. Picking on the Models
From the online book:
Killer Game Programming in Java
http://fivedots.coe.psu.ac.th/~ad/jg
Contact Address:
Dr. Andrew Davison
Dept. of Computer Engineering
Prince of Songkla University
Hat Yai, Songkhla 90112, Thailand
E-mail: ad@fivedots.coe.psu.ac.th
If you use this code, please mention my name, and include a link
to the book's Web site.
Thanks,
Andrew
==================================
ModelLoaderGL
ModelLoaderGL is a viewer for Wavefront OBJ models, which
uses the OBJLoader package. It automatically centers and
resizes the model, and rotates it.
What's Here?
------------
- 2 Java files:
ModelLoaderGL.java, ModelLoaderGLListener.java
- 2 batch files:
compileGL.bat and runGL.bat
- a models/ directory
It contains OBJ models for the viewer.
The viewer should be supplied with the OBJ file name, minus
its .obj extension.
* a colored barbell: barbell.obj, barbell.mtl
* a colored cube: colorCube.obj, colorCube.mtl
* a red couch: couch.obj, couch.mtl
* a helicopter: heli.obj, heli.mtl
* a chess pawn: pawn.obj, pawn.mtl
* a penguin: penguin.obj, penguin.mtl, penguin.gif
==================================
Requirements:
* J2SE 5.0 or later from http://java.sun.com/j2se/
(I use its nanosecond timer, System.nanoTime()).
I recommend the release version of Java SE 6.
* JOGL, the JSR-231 1.0.0 release version, from
https://jogl.dev.java.net/
See the readme.txt file in the top-level directory for
details on installing it.
* The batch files in this directory, compileGL.bat and runGL.bat
assume that the JOGL JAR and DLLs are in d:\jogl,
and that the OBJLoader package is also in d:\jogl,
stored as the JAR OBJLoader.jar
-----
Compilation:
1. Use the compileGL.bat batch file.
$ compileGL *.java
-----
Execution:
Use the runGL.bat batch file, with the name of the program,
ModelLoaderGL, and the name of an OBJ file in models\.
e.g.
$ runGL ModelLoaderGL pawn
// loads pawn.obj and its MTL file, pawn.mtl, from models\
$ runGL ModelLoaderGL penguin
Optional arguments can be given to change the model's
rendering size and to switch off the rotation.
The default model size is 4.0f units.
e.g.
$ runGL ModelLoaderGL couch 5.0f
// render the couch a bit bigger than the default size
$ runGL ModelLoaderGL heli -nr
// -nr means "no rotation"
$ runGL ModelLoaderGL colorCube 1.0f -nr
-----------
Last updated: 3rd January 2007
近期下载者:
相关文件:
收藏者: