FractalLand3D_

所属分类:GDI/图象编程
开发工具:Java
文件大小:46KB
下载次数:6
上传日期:2006-07-09 10:26:16
上 传 者jangisho
说明:  zhe shi yi kuang 3D de cheng xu.
(zhe shi yi Kuang 3D de WM xu.)

文件列表:
FractalLand3D (0, 2003-05-21)
FractalLand3D\ColouredPlane.class (1413, 2003-05-21)
FractalLand3D\ColouredPlane.java (1619, 2003-05-15)
FractalLand3D\FractalLand3D.class (1849, 2003-05-21)
FractalLand3D\FractalLand3D.java (2436, 2003-05-09)
FractalLand3D\FractalMesh.class (3946, 2003-05-21)
FractalLand3D\FractalMesh.java (8473, 2003-05-15)
FractalLand3D\images (0, 2003-05-21)
FractalLand3D\images\dryEarth.jpg (1539, 2002-06-10)
FractalLand3D\images\grass.gif (3072, 2003-05-09)
FractalLand3D\images\sand.jpg (1610, 2002-06-10)
FractalLand3D\images\stone.gif (4470, 2002-06-10)
FractalLand3D\images\water-shallow.jpg (1606, 2003-05-09)
FractalLand3D\KeyBehavior.class (3927, 2003-05-21)
FractalLand3D\KeyBehavior.java (6791, 2003-05-09)
FractalLand3D\Landscape.class (4574, 2003-05-21)
FractalLand3D\Landscape.java (8990, 2003-05-15)
FractalLand3D\PlaneEquation (0, 2003-05-21)
FractalLand3D\PlaneEquation\coords1.txt (35, 2003-05-11)
FractalLand3D\PlaneEquation\coords2.txt (35, 2003-05-12)
FractalLand3D\PlaneEquation\coordsH2.txt (37, 2003-05-12)
FractalLand3D\PlaneEquation\PointHeight.class (5047, 2003-05-21)
FractalLand3D\PlaneEquation\PointHeight.java (8225, 2003-05-13)
FractalLand3D\TexturedPlanes.class (2835, 2003-05-21)
FractalLand3D\TexturedPlanes.java (3633, 2003-05-13)
FractalLand3D\WrapFractalLand3D.class (3617, 2003-05-21)
FractalLand3D\WrapFractalLand3D.java (4212, 2003-05-21)

Chapter 17. Fractal Land From: Java Programming Techniques for 2D, 2.5D, 3D, and Network Games Dr. Andrew Davison Dept. of Computer Engineering Prince of Songkla University Hat yai, Songkhla 90112, Thailand E-mail: dandrew@ratree.psu.ac.th Web Site for the book: http://fivedots.coe.psu.ac.th/~ad/jg If you use this code, please mention my name, and include a link to the book's Web site. Thanks, Andrew ============================ FractalLand3D.java ----- Compilation: $ javac *.java ----- Execution: the application takes an optional 'flatness' value argument, that is limited to be between 1.6 and 2.5 (the default is 2.3). A smaller value makes the landscape more rocky. e.g. $ java Fractaland3D - means use a flatness value of 2.3 which is fairly flat $ java FractalLand3D 1.6 - makes a rocky landscape (Note. The fog effect has been compiled into this code. To remove it, then comment out the call to addFog() in createSceneGraph() in WrapFractalLand3D.java.) ========= There is a subdirectory PlaneEquation/ which contains a simple application for calculating y- positions on quads. See the readme.txt file there for more detail. --------- Last updated: 16th May 2003

近期下载者

相关文件


收藏者