Help needed in Blended Atlas2 terrain
by Mahmud Hasan · in Torque Game Engine Advanced · 01/16/2007 (5:46 am) · 1 replies
Hi,
I am working on Atlas2 blended terrain and I got some problem generating it.
I have following resource for the blended terrain:
1. Heightmap.raw
2. Opacity.png
3. Lightmap.jpg
4. tile1.jpg (this is my base layer)
5. tile2.jpg
6. tile3.jpg
7. tile4.jpg
I followed the following script to generate terrain:
==================================================================
enableWinConsole(true);
setLogMode(6);
atlasOldGenerateChunkFileFromRaw16
("Game/data/terrains/heightmap.raw", 512, 1.0, 0.001952, "Game/data/terrains/terrain.chu", 1.5, 5);
importOldAtlasCHU("Game/data/terrains/terrain.chu", "Game/data/terrains/geometry.atlas");
atlasGenerateTextureTOCFromTiles
(4, "Game/data/terrains/Opacity", "Game/data/terrains/OpacityTex.atlas", 1);
atlasGenerateTextureTOCFromTiles
(4, "Game/data/terrains/Lightmap", "Game/data/terrains/Lightmap.atlas", 0);
atlasGenerateBlenderTerrain ( "Game/data/terrains/terrain.atlas",
"Game/data/terrains/geometry.atlas",
"Game/data/terrains/OpacityTex.atlas",
"Game/data/terrains/Lightmap.atlas",
32768,
"Game/data/terrains/tile1.jpg",
"Game/data/terrains/tile2.jpg",
"Game/data/terrains/tile3.jpg"
"Game/data/terrains/tile4.jpg"
);
echo("done");
// We're done!
quit();
===============================================================
My heighmap is 512X512 and some of the doc suggested to use teh lightmap and opacity map as teh form of Opacity_x%dy%d ot Lightmap_x%dy%d. What is the significant of the "x%dy%d"? Can anyone explain to me? What do I need to put at the x%dy%d for my work?
Agaain for the atlasGenerateTextureTOCFromTiles() function call the doc says about the arguement as follows (leafcount, tilemask, outfile) but in the example it take 4 argument. what is the fourth argument?
I also used the Atlas2 creator gui from the forum and it did generate the final atlas file but whn i load the terrain it is not visible. I could not bebug it but when i opened the editor it shows that the terrain object is missing. Any idea about it?
I know that a huge post but I am really stuck with it and need help.
Thank you.
I am working on Atlas2 blended terrain and I got some problem generating it.
I have following resource for the blended terrain:
1. Heightmap.raw
2. Opacity.png
3. Lightmap.jpg
4. tile1.jpg (this is my base layer)
5. tile2.jpg
6. tile3.jpg
7. tile4.jpg
I followed the following script to generate terrain:
==================================================================
enableWinConsole(true);
setLogMode(6);
atlasOldGenerateChunkFileFromRaw16
("Game/data/terrains/heightmap.raw", 512, 1.0, 0.001952, "Game/data/terrains/terrain.chu", 1.5, 5);
importOldAtlasCHU("Game/data/terrains/terrain.chu", "Game/data/terrains/geometry.atlas");
atlasGenerateTextureTOCFromTiles
(4, "Game/data/terrains/Opacity", "Game/data/terrains/OpacityTex.atlas", 1);
atlasGenerateTextureTOCFromTiles
(4, "Game/data/terrains/Lightmap", "Game/data/terrains/Lightmap.atlas", 0);
atlasGenerateBlenderTerrain ( "Game/data/terrains/terrain.atlas",
"Game/data/terrains/geometry.atlas",
"Game/data/terrains/OpacityTex.atlas",
"Game/data/terrains/Lightmap.atlas",
32768,
"Game/data/terrains/tile1.jpg",
"Game/data/terrains/tile2.jpg",
"Game/data/terrains/tile3.jpg"
"Game/data/terrains/tile4.jpg"
);
echo("done");
// We're done!
quit();
===============================================================
My heighmap is 512X512 and some of the doc suggested to use teh lightmap and opacity map as teh form of Opacity_x%dy%d ot Lightmap_x%dy%d. What is the significant of the "x%dy%d"? Can anyone explain to me? What do I need to put at the x%dy%d for my work?
Agaain for the atlasGenerateTextureTOCFromTiles() function call the doc says about the arguement as follows (leafcount, tilemask, outfile) but in the example it take 4 argument. what is the fourth argument?
I also used the Atlas2 creator gui from the forum and it did generate the final atlas file but whn i load the terrain it is not visible. I could not bebug it but when i opened the editor it shows that the terrain object is missing. Any idea about it?
I know that a huge post but I am really stuck with it and need help.
Thank you.
Torque Owner Mahmud Hasan
Sorry for the nasty mistake.