Red - I'll Scope that as tip #1
APEXNow - You may have missed that the Screen Shot shows the offending line being the dbBuildTerrain call.
Images Assumptions add a wild card to this - Good point ApeX - let me explain. The Main texture is 2048x2048 24bit bitmap currently (to big to post) the Height Map is 1024x1024 24bit also. Detail.png is a 512x512 png (Gray shades - the one that came with the AT demof ro DBPro)
The media is pretty plain - not ready any time spent on it - just was using the biggest that worked great in DBPro. Just to get it up and running. That's all I'm doing here.
[edit] There are other parts of the code that accept the "D:/mdir/mydir2/" for Set Dir and I know windows allows this also - but I'm going to try the escaped backslashes per your suggestion anyways Red!
Thanx Guys!
[/edit]
[edit]
No dice - Tried:
dbSetDir("D:\files\code\DarkBasicPro\IronInfantry\tmedia\Terrain");
dbSetDir("D:\files\code\DarkBasicPro\IronInfantry\tmedia\Terrain\");
UGH. Ok.. Maybe Smaller Bitmaps - maybe it doesn't have the same abilities as DBPro Terrain - this Terrain configuration is VERBATUM to dbPro Iron Infantry Landscape/terrain.
I'm going to Try smaller maps, less scale - just to see what is going on. Who know. the Directory "Depth" could be to much, the Bitmaps are to much, perhaps the Scale, at this point I don't know and I REALLY didn't want to spend my Saturday fighting with something I thought would be a no brainer - I have so much coding yet to do just to get things "Moving" in DarkGDK like I have in DBPro! (Like driving a tank! ...forget the heli for now!
)
Ok - I'll try some more tests etc - but I'm already wonding if I need to go after a Tiled Mesh Approach or something now. Feel a bit shell shocked - no pun intended.
----Another Edit - Just reread Paul's "Check mGFILE etc part - and I wanted to point out that is commented out - that is basically a MACRO that points to My little "Wrapper" for the file functions - I commented it out for that very reason. It's only a wrapper in that case so Intellisense groups the DarkGDK for me. Basically the macro is:
#define mGFILE GDK->File
So it expands to GDK->File->Dir_Set("Path here") for example which ONLY does little helper things like:
//-------------------------------------------------------------------------------------------------
void JGC_FILE::Dir_Set(char *p_char){
//-------------------------------------------------------------------------------------------------
this->pvtDir_Current->Set(p_char);
dbSetDir(this->pvtDir_Current->Get());
};
//-------------------------------------------------------------------------------------------------
And stores "Directory At Startup" for later use and as you see tracks the Current Dir in case I need to refer to it in code or something.