bighouse
25-01-2007 06:45:34
Hello, I'm a PLSM2 beginner. I have some questions.
1. How can assign different texture to each page.
2. How can assign a texture to whole page.
Please check config, material and screenshot files. thanks
.gen.cfg (generates 4X4 pages)
.cfg (load 4X4 pages)
.material
.screenshot (texture(Terrain_Shader) is assigned to each page)
1. How can assign different texture to each page.
2. How can assign a texture to whole page.
Please check config, material and screenshot files. thanks
.gen.cfg (generates 4X4 pages)
GroupName=PLSM2
LandScapeFileName=yama
OutDirectory=LandScapeFileName
PageSize=257
TileSize=65
HeightMap=yes
Equalize=yes
.cfg (load 4X4 pages)
GroupName=PLSM2
LandScapeFileName=yama
FileSystem=LandScapeFileName
PageSize=257
TileSize=65
Width=4
Height=4
ScaleX=19000
ScaleY=2000
ScaleZ=19000
TextureFormat=Terrain_Shader
BaseCameraViewpoint.x=-396.0f
BaseCameraViewpoint.y=31000.0f
BaseCameraViewpoint.z=2640.0f
Baselookat.x=0.0f
Baselookat.y=0.0f
Baselookat.z=0.0f
.material
material Terrain_Shader
{
technique
{
pass
{
ambient 1 1 1
diffuse 1 1 1
texture_unit
{
// Base Texture
texture NewLayer.bmp
scale 1 1
}
}
pass
{
ambient 1 1 1
diffuse 1 1 1
scene_blend alpha_blend
depth_func equal
texture_unit
{
// Alpha Map
texture NewLayer1.png 2d unlimited alpha
tex_address_mode clamp
alpha_op_ex source1 src_texture src_texture
colour_op_ex source1 src_current src_current
}
texture_unit
{
// Splat Texture
texture NewLayer1.bmp
tex_address_mode mirror
alpha_op_ex source1 src_current src_current
colour_op_ex source2 src_current src_texture
scale 1 1
}
}
}
}
.screenshot (texture(Terrain_Shader) is assigned to each page)