Game Development Community

Atlas2 file creation functions Q

by Jeromy Stroh · in Torque Game Engine Advanced · 09/19/2006 (12:07 am) · 3 replies

So I got the TDN doc version code working, aka:
http://tdn.garagegames.com/wiki/TSE/Atlas/Using_Atlas2

But then I saw some functions in terrain_water_demo that I couldn't find in a search:
echo("doing that thing");
atlasGenerateGeometryFromHeightfield("terrain_water_demo/geometry.atlas", "terrain_water_demo/test_16_513.raw");
AtlasGeomChunk_dumpIOStatistics();
atlasGenerateBlenderTerrain("terrain_water_demo/sample.atlas", "demo/geometry.atlas", "terrain_water_demo/opacityMap.atlas", "terrain_water_demo/lightmap.atlas");
AtlasGeomChunk_dumpIOStatistics();
quit();

So my question is... Should I be using some new functions for MS4 or is the TDN example code still fine?

#1
09/19/2006 (9:57 am)
Jeromy, the code that you reference was also in the previous release. My impression, although I have not researched this, is that atlasGenerateGeometryFromHeightfield() is not yet implemented (ie: you have to generate a chu file and convert it to atlas). I'm not sure about the statistics. I've been tempted to try it but have not done so yet. If you remove the if(0) to allow the block of script to execute you would be generating your atlas terrain each time TSE ran - assuming of course the routines exist. This isn't necessary so why do it? The terrain_water_demo is a very small atlas terrain but what about large terrains that can take significant amounts of time to generate? Fortunately there are better ways to do this ahead of time including the "Using_Atlas2" post you reference.

A more recent post is www.garagegames.com/mg/forums/result.thread.php?qt=50615 shows some of the newer features in MS4.
#2
09/19/2006 (1:55 pm)
Thanks so much Dennis, this helps a lot.
#3
09/19/2006 (10:32 pm)
We've also updated the TDN docs - you can find some good info at tdn.garagegames.com/wiki/TSE/Atlas/Using_Atlas2. There's also an update to Atlas coming out into CVS soon that fixes several annoying issues.