The ability to handle and manage large and complex terrains is one of the selling points for Delta3d, sill it is a unclear from the example provided how to perform the most basic operations with terrain.
First of all the example is referencing resources and paths that are not available in the downloadable package.
Second there are no default parameters that exemplify functionality.
More concretely I am talking about %DELTA_ROOT%\examples\testterrain.cpp
- In the main function:
&nbps;&nbps; dtCore::SetDataFilePathList(dataPath + ";" +
&nbps;&nbps;&nbps;&nbps;&nbps; dtCore::GetDeltaRootPath() + "/examples/data" + ";" +
&nbps;&nbps;&nbps;&nbps;&nbps; dtCore::GetDeltaRootPath() + "/examples/testTerrain" + ";");
These folders do not contain all the resources referenced in the source.
- In the main function
&nbps;&nbps; arguments.getApplicationUsage()->addCommandLineOption("--geo <geopath>","Set file for geospecific data");
&nbps;&nbps; arguments.getApplicationUsage()->addCommandLineOption("--geodrape <path>","Set file for geospecific drape texture across the terrain.");
What does the geospecific data represent? - no sample data is provided, the default value is&nbps; geospecific&nbps; = "";
- in the CreateTerrain method a call is made to:
&nbps;&nbps;&nbps;&nbps;&nbps;&nbps;&nbps;&nbps; // Add Geospecific Dataset
&nbps;&nbps;&nbps;&nbps;&nbps;&nbps;&nbps;&nbps; mVeg->SetGeospecificImage(mGeospecificPath);
yet no sample data is provided.
- in the&nbps; the CreateLCCType method.
&nbps;&nbps;&nbps;&nbps;&nbps;&nbps; industrial.AddModel("models/industry1.ive");
&nbps;&nbps;&nbps;&nbps;&nbps;&nbps; industrial.AddModel("models/industry2.ive");
&nbps;&nbps;&nbps;&nbps;&nbps;&nbps; deciduous.AddModel("models/Maple_silver_alone_16_1.flt/Maple_silver_alone_16_1.flt",4.0);
&nbps;&nbps;&nbps;&nbps;&nbps;&nbps; deciduous.AddModel("models/Maple_silver_alone_21_1.flt/Maple_silver_alone_21_1.flt",4.0);
&nbps;&nbps;&nbps;&nbps;&nbps;&nbps; deciduous.AddModel("models/Maple_silver_alone_32_1.flt/Maple_silver_alone_32_1.flt",4.0);
...etc
No such models exist in the default distribution.
---- additional_information ----
I tried to fix the example by removing the references to missing resources, but still it doesn't work.
I have attached the stdout and stderr console outputs of when I tried to run the modified version of testTerrain with no command line arguments.