Ok, i didnt get an answer to my previous post but thats ok. i was wondering why i can't seem to save a terrain. here is the code:
dbSetupTerrain ( );
dbMakeObjectTerrain ( 1 );
dbSetTerrainHeightMap ( 1, "second_map.bmp" );
dbSetTerrainScale ( 1, 10.0f, 0.6f, 10.0f );
dbSetTerrainLight ( 1, 1.0f, -0.25f, 0.0f, 1.0f, 1.0f, 0.78f, 0.5f );
dbBuildTerrain ( 1 );
dbSaveTerrain ("test.dbt", 1);
for some reason every time i try this i get this error with visual c++:
Unhandled exception at 0x00000000 in Upland Game Hunter.exe: 0xC0000005: Access violation reading location 0x00000000.
any ideas?
also, when i try to load a terrain (I have made terrains in the .map format and the .obj format as well as .t3d and various others) I get an error message "Error: 6" and then the program crashes. anyone know if any of these formats are supported?