@Kaedroho, I did what you said and all the demos compile now, BUT I have warnings now
1>------ Build started: Project: 05TerrainLoading, Configuration: Release Win32 ------
2>------ Build started: Project: 04Exclusion, Configuration: Release Win32 ------
1>Compiling...
2>Compiling...
2>Main.cpp
1>Main.cpp
2>Linking...
1>Linking...
2>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _realloc imported in function "unsigned short __cdecl BT_Intern_AddEnvironment(struct BT_EnvironmentMap *,unsigned long)" (?BT_Intern_AddEnvironment@@YAGPAUBT_EnvironmentMap@@K@Z)
2>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _free imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
2>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _malloc imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
1>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _realloc imported in function "unsigned short __cdecl BT_Intern_AddEnvironment(struct BT_EnvironmentMap *,unsigned long)" (?BT_Intern_AddEnvironment@@YAGPAUBT_EnvironmentMap@@K@Z)
1>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _free imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
1>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _malloc imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
2>Embedding manifest...
1>Embedding manifest...
2>Build log was saved at "file://c:\Documents and Settings\Jozef.MAINCOMP\My Documents\Downloads\BlitzTerrain200GDKBeta2\BlitzTerrainGDK\examples\04Exclusion\Release\BuildLog.htm"
2>04Exclusion - 0 error(s), 3 warning(s)
1>Build log was saved at "file://c:\Documents and Settings\Jozef.MAINCOMP\My Documents\Downloads\BlitzTerrain200GDKBeta2\BlitzTerrainGDK\examples\05TerrainLoading\Release\BuildLog.htm"
1>05TerrainLoading - 0 error(s), 3 warning(s)
3>------ Build started: Project: 03SmoothingandQuadRotation, Configuration: Release Win32 ------
3>Compiling...
3>Main.cpp
4>------ Build started: Project: 02AddSomeLOD, Configuration: Release Win32 ------
4>Compiling...
4>Main.cpp
3>Linking...
3>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _realloc imported in function "unsigned short __cdecl BT_Intern_AddEnvironment(struct BT_EnvironmentMap *,unsigned long)" (?BT_Intern_AddEnvironment@@YAGPAUBT_EnvironmentMap@@K@Z)
3>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _free imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
3>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _malloc imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
4>Linking...
3>Embedding manifest...
4>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _realloc imported in function "unsigned short __cdecl BT_Intern_AddEnvironment(struct BT_EnvironmentMap *,unsigned long)" (?BT_Intern_AddEnvironment@@YAGPAUBT_EnvironmentMap@@K@Z)
4>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _free imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
4>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _malloc imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
4>Embedding manifest...
3>Build log was saved at "file://c:\Documents and Settings\Jozef.MAINCOMP\My Documents\Downloads\BlitzTerrain200GDKBeta2\BlitzTerrainGDK\examples\03SmoothingandQuadRotation\Release\BuildLog.htm"
3>03SmoothingandQuadRotation - 0 error(s), 3 warning(s)
4>Build log was saved at "file://c:\Documents and Settings\Jozef.MAINCOMP\My Documents\Downloads\BlitzTerrain200GDKBeta2\BlitzTerrainGDK\examples\02AddSomeLOD\Release\BuildLog.htm"
4>02AddSomeLOD - 0 error(s), 3 warning(s)
5>------ Build started: Project: 01GenerateATerrain, Configuration: Release Win32 ------
5>Compiling...
5>Main.cpp
5>Linking...
5>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _realloc imported in function "unsigned short __cdecl BT_Intern_AddEnvironment(struct BT_EnvironmentMap *,unsigned long)" (?BT_Intern_AddEnvironment@@YAGPAUBT_EnvironmentMap@@K@Z)
5>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _free imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
5>BlitzTerrain.lib(EnvironmentMapping.obj) : warning LNK4217: locally defined symbol _malloc imported in function "void __cdecl BT_Intern_CreateEnvironmentMap(struct BT_EnvironmentMap *,unsigned long,unsigned long,unsigned long *)" (?BT_Intern_CreateEnvironmentMap@@YAXPAUBT_EnvironmentMap@@KKPAK@Z)
5>Embedding manifest...
5>Build log was saved at "file://c:\Documents and Settings\Jozef.MAINCOMP\My Documents\Downloads\BlitzTerrain200GDKBeta2\BlitzTerrainGDK\examples\01GenerateATerrain\Release\BuildLog.htm"
5>01GenerateATerrain - 0 error(s), 3 warning(s)
========== Build: 5 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
And with the demo code untouched the terrains work but have no texture OR detail (texture.jpg,detail.tga) but the exclusion map DOES work fine, but it does not seem to like making detail or textures appear, I have noticed that it does change the color of the terrain, but its just from solid white to w/e is the majority color in said texture, so in the demo the terrain turns a fleshy peach color
ALSO
In the GDK file that you have for download DO NOT have the updated header files, even the ones I freshly downloaded still have the incorrect LOD and LODDistance parameters
EDIT: I also noticed that the terrains when created appear reversed when made in game from a heightmap
Is there anyway other than changing the heightmap to fix this? like maybe a bool value to tell the Blitzterrain how to read and render the terrain
Original Image Corners
AB
CD
Blitzterrain Creation Corners
CD
AB
IMAGE
The problem I had with this was when I went to line all my terrains up, they didn't match up and I noticed that its more than likely the way its reading the heightmap
And sorry if I am being annoying lol, but yeah, I love Blitzterrain its everything I hoped for in a terrain system, just having some issues
Making dreams possible, one line at a time...