Problem with Atlas terrain lighting
by Mahmud Hasan · in Torque Game Engine · 01/03/2007 (7:07 am) · 3 replies
Hi,
I am new in TSE. I was playing with the terrain_water_demo that came with TSE. I wanted to make my own development envirionment from where can I start building my own project.
I copied all the folders along with script and executable to a new folder (my new dev envirionmnet) and ran the terrain_water_demo. It worked fine. Then I started to customize the folders and scripts. I rename the "terrain_water_demo" to GameDemo and changed the terrain path in client\init.cs. then changes the static path in main.cs to my new path:
if(0)
{
echo("doing that thing");
atlasGenerateGeometryFromHeightfield
("GameDemo/geometry.atlas", "GameDemo/test_16_513.raw");
AtlasGeomChunk_dumpIOStatistics();
atlasGenerateBlenderTerrain
("GameDemo/sample.atlas", "demo/geometry.atlas",
"GameDemo/opacityMap.atlas", "GameDemo/lightmap.atlas");
AtlasGeomChunk_dumpIOStatistics();
quit();
}
I am getting a weird problem that the terrain is not lighting and the material is not loaded at all. I digged into the problem and it seemed that the *.atlas file also has some path references.
How can I solve this problem? can anyone help me in this regards ? Thanks a lot in advance.
I am new in TSE. I was playing with the terrain_water_demo that came with TSE. I wanted to make my own development envirionment from where can I start building my own project.
I copied all the folders along with script and executable to a new folder (my new dev envirionmnet) and ran the terrain_water_demo. It worked fine. Then I started to customize the folders and scripts. I rename the "terrain_water_demo" to GameDemo and changed the terrain path in client\init.cs. then changes the static path in main.cs to my new path:
if(0)
{
echo("doing that thing");
atlasGenerateGeometryFromHeightfield
("GameDemo/geometry.atlas", "GameDemo/test_16_513.raw");
AtlasGeomChunk_dumpIOStatistics();
atlasGenerateBlenderTerrain
("GameDemo/sample.atlas", "demo/geometry.atlas",
"GameDemo/opacityMap.atlas", "GameDemo/lightmap.atlas");
AtlasGeomChunk_dumpIOStatistics();
quit();
}
I am getting a weird problem that the terrain is not lighting and the material is not loaded at all. I digged into the problem and it seemed that the *.atlas file also has some path references.
How can I solve this problem? can anyone help me in this regards ? Thanks a lot in advance.
#2
The sample Atlas that came with the demo (with arctic shade) did not showed any texture in it.
I am not sure how the atlas terrain works (I'll look into the atlas resources from TDN) but it seems that there are some path issues that prevent the engine to load atlas terrain when I rename the game directory.
Any thought about that?
Thank you
01/03/2007 (10:33 pm)
Hi Stefan you are right. But My problem was the material was not loaded accurately.The sample Atlas that came with the demo (with arctic shade) did not showed any texture in it.
I am not sure how the atlas terrain works (I'll look into the atlas resources from TDN) but it seems that there are some path issues that prevent the engine to load atlas terrain when I rename the game directory.
Any thought about that?
Thank you
#3
Yes Atlas embeds path information into the .atlas file... once it is built it cannot be moved. Ben is aware of this and eventually it will get fixed. Still i'd love to see a community member make the fix and post it to the TSE bugs forum... i'd say it would happen quicker that way.
01/04/2007 (5:14 am)
@Mahmud - First you'll probably be better off moving this conversation to the TSE forums.Yes Atlas embeds path information into the .atlas file... once it is built it cannot be moved. Ben is aware of this and eventually it will get fixed. Still i'd love to see a community member make the fix and post it to the TSE bugs forum... i'd say it would happen quicker that way.
Torque Owner Stefan Lundmark