ocstetree

所属分类:OpenGL
开发工具:Visual C++
文件大小:2108KB
下载次数:4
上传日期:2011-12-03 16:56:40
上 传 者taomu
说明:  这是一个基于OpenGl的关于树对地形等数据的管理功能的样例。
(This Demo is based on OpenGL.It writes a tree data.)

文件列表:
195903octree\copying (18464, 2001-11-17)
195903octree\libs\all3937.dll (875915, 2001-11-17)
195903octree\libs\allegro.h (90598, 2001-11-17)
195903octree\libs\bealleg.h (5655, 2001-11-17)
195903octree\libs\cygwin1.dll (731464, 2001-11-17)
195903octree\libs\liballeg.a (942642, 2001-11-17)
195903octree\libs\linalleg.h (1568, 2001-11-17)
195903octree\libs\macalleg.h (2732, 2001-11-17)
195903octree\libs\qnxalleg.h (1626, 2001-11-17)
195903octree\libs\winalleg.h (2892, 2001-11-17)
195903octree\libs\xalleg.h (3246, 2001-11-17)
195903octree\octree\all3937.dll (875915, 2001-11-17)
195903octree\octree\bullet.cpp (2628, 2001-11-17)
195903octree\octree\bullet.h (537, 2001-11-17)
195903octree\octree\bullet.o (3007, 2001-11-17)
195903octree\octree\cone3d.cpp (1036, 2001-11-17)
195903octree\octree\cone3d.h (4134, 2001-11-17)
195903octree\octree\cone3d.h.$$$ (4153, 2001-11-17)
195903octree\octree\cone3d.o (443, 2001-11-17)
195903octree\octree\cone3dfont.cpp (6511, 2001-11-17)
195903octree\octree\cone3dfont.h (1386, 2001-11-17)
195903octree\octree\cone3dfont.o (3870, 2001-11-17)
195903octree\octree\cone3dfrustum.cpp (14384, 2001-11-17)
195903octree\octree\cone3dfrustum.h (1347, 2001-11-17)
195903octree\octree\cone3dfrustum.o (5125, 2001-11-17)
195903octree\octree\cone3dmd2.cpp (24697, 2001-11-17)
195903octree\octree\cone3dmd2.h (6040, 2001-11-17)
195903octree\octree\cone3dmd2.o (10253, 2001-11-17)
195903octree\octree\cone3doctree.cpp (55537, 2001-11-17)
195903octree\octree\cone3doctree.h (3925, 2001-11-17)
195903octree\octree\cone3doctree.o (67175, 2001-11-17)
195903octree\octree\cone3dpcx.cpp (3697, 2001-11-17)
195903octree\octree\cone3dpcx.h (1289, 2001-11-17)
195903octree\octree\cone3dpcx.o (2021, 2001-11-17)
195903octree\octree\cone3dtga.cpp (5395, 2001-11-17)
195903octree\octree\cone3dtga.h (1302, 2001-11-17)
195903octree\octree\cone3dtga.o (1813, 2001-11-17)
195903octree\octree\cone3dtrigs.h (22283, 2001-11-17)
195903octree\octree\cygwin1.dll (731464, 2001-11-17)
195903octree\octree\data\all3937.dll (589824, 2001-09-04)
... ...

OK. Here it is. First of all: There are files in the zip, that are actually not needed. There's also some code that's not needed, it's all still in development. It's the minimum for a game, but it's at least a beginning. There are tools written by me to convert the .raw model format to the for the prog needed .txt format usage: RAWtoTXT data/filename.raw data/world.txt 2.0 the '2.0' is the 'shrink factor' 2.0 means scale by 0.2 Then there's a tool called findEsandNs. It is used to calculate the normals and find edges for cartoon rendering. Usage: findEsandNs data/world.txt data/NE.txt pretty straightforward. The cartoon rendering looks pretty crappy at the moment, just because the heightmap stuff is just a bruteforce approach. If you want I can send you the main.cpp file changed for using the world.txt model.

近期下载者

相关文件


收藏者