texturegen

所属分类:OpenGL
开发工具:Visual C++
文件大小:856KB
下载次数:21
上传日期:2006-11-30 16:44:27
上 传 者小郭软件
说明:  快速创建基于高度图的纹理。方便在OpenGL中渲染高度图heightmap
(rapid creation of the basis of a high degree of texture map. Facilitate the OpenGL highly exaggerated map heightmap)

文件列表:
创建高度图纹理\Examples\AddLighting.tgs (313, 2001-04-06)
创建高度图纹理\Examples\base03.bmp (66614, 1999-12-09)
创建高度图纹理\Examples\black.bmp (12344, 2001-03-30)
创建高度图纹理\Examples\Coast.tgs (890, 2001-04-06)
创建高度图纹理\Examples\grass1.bmp (66614, 1999-12-09)
创建高度图纹理\Examples\heightmap.bmp (49206, 2001-04-06)
创建高度图纹理\Examples\HeightMask.tgs (497, 2001-04-06)
创建高度图纹理\Examples\Hills-tex.bmp (786486, 2006-11-19)
创建高度图纹理\Examples\Hills.bmp (196662, 2001-04-06)
创建高度图纹理\Examples\Hills.tgs (706, 2001-04-06)
创建高度图纹理\Examples\pak2_grs1_bs1.bmp (66614, 1998-12-12)
创建高度图纹理\Examples\rock7_base1.bmp (66368, 1998-12-09)
创建高度图纹理\Examples\rock7_base2.bmp (65856, 1998-12-09)
创建高度图纹理\Examples\rock_base.bmp (66492, 1998-12-09)
创建高度图纹理\Examples\sand_base1.bmp (66024, 1998-12-09)
创建高度图纹理\Examples\SlopeMap.tgs (415, 2001-04-06)
创建高度图纹理\Examples\small.bmp (3126, 2001-04-06)
创建高度图纹理\Examples\white.bmp (12342, 2001-03-30)
创建高度图纹理\heightmap.bmp (196662, 2006-11-19)
创建高度图纹理\Source\fxTexture.cpp (5748, 2001-04-06)
创建高度图纹理\Source\fxTexture.h (1159, 2001-04-06)
创建高度图纹理\Source\fxVector.cpp (4915, 2001-03-29)
创建高度图纹理\Source\fxVector.h (2184, 2001-03-29)
创建高度图纹理\Source\LayerEditForm.cpp (3205, 2001-03-29)
创建高度图纹理\Source\LayerEditForm.dfm (2325, 2001-03-25)
创建高度图纹理\Source\LayerEditForm.h (1831, 2001-03-25)
创建高度图纹理\Source\TexGen.bpr (5168, 2001-04-07)
创建高度图纹理\Source\TexGen.cpp (909, 2001-04-06)
创建高度图纹理\Source\TexGen.res (876, 2001-04-07)
创建高度图纹理\Source\Unit1.cpp (25437, 2001-04-06)
创建高度图纹理\Source\Unit1.dfm (4667, 2001-04-07)
创建高度图纹理\Source\Unit1.h (4598, 2001-04-06)
创建高度图纹理\template.n (1559, 2001-04-06)
创建高度图纹理\texgen.cfg (25, 2006-11-20)
创建高度图纹理\TexGen.exe (557568, 2001-04-07)
创建高度图纹理\texture.bmp (196662, 2006-11-19)
创建高度图纹理\Examples (0, 2006-11-19)
创建高度图纹理\Source (0, 2006-11-14)
创建高度图纹理 (0, 2006-11-19)
... ...

Terrain Texture Generator (c) 2001 Insane Software Here's a little toy that synthesizes a unique terrain texture by blending a set of base texture layers (according to their parameters). Given a light direction, it can also calculate per pixel lighting. Ok first I'll explain the texture layer parameters: Each layer consists of an image, and a set of parameters that tell the programm how and where to blend this image into the target texture. With the altitude constraints you can limit this layer to appear only between "Min" and "Max" (0.0 beeing the lowest possible level and 1.0 beeing the highest possible level). The "Min Value" and "Max Value" define the alpha value at the "Min" and "Max" levels. With the slope constraints you can further limit this layer to a certain "steepnes" of the terrain. This layer only appears if the slope at the current heightmap pixel is between the "Min" and "Max" parameters (0.0 beeing absolut flat and 90.0 beeing totally vertical. Actually this is the angle between the heightmap normal and the up-vector (0,1,0) in degrees). Again the "Min Value" and "Max Value" are the alpha values at the "Min" and "Max" slopes. That's it! I guess the options tab needs a bit explaining too: The "texture size" combobox determines the size of the output texture. The "slope threshold" is a value used during slope calculation. It's something like a tolerance value. If the slider is all the way left, every little variation of the heightmap luminance produces a different slope, if the slider is all the way right only big changes of heightmap luminance produce a noticeable slope. If the "lighting" checkbox is checked, the generator does perpixel lighting calculations. Enter the light direction vector below "light direction" (xyz order). Use the "light influence" slider to change the contrast of the output texture. It basicaly determines "how much" light is applied. If the slider is all the way left, the lighting has almost no effect on the output texture. I have included a couple of example script that you can load. If you play a bit with the parameters you can produce very realistic landscape textures (the included are not that realistic, mainly because of the textures...). You can even use it to add perpixel lighting to your existing textures only (see the "AddLighting" example"). Some things to note: -Textures/Heightmaps need not be square -To create a high res texture you need a high res heightmap. If you create a 512x512 texture from a 32x32 heightmap it will be awfully "blocky". I tried to reduce this effect by adding subpixel accuracy and interpolating altitude/slope between the pixels, but it didn't help much -In the "Texture" tab you can find a "Preview" button. You need nebula (www.radonlabs.de) and the optional nflatterrain package. When pressed the first time it will ask you to locate the gfxserv.exe file (it's usually in the nebula/bin/win32 directory). If you have further questions look at our website (http://insanesoftware.exit.de) and/or ask me! Happy texturing, Dirk ulbdir@web.de

近期下载者

相关文件


收藏者