Hi,
When I try to load a 3ds model (est. 2500 polygons) it takes about 10-15 seconds before the program will fully load on to the screen. By commenting it out and creating a box on the fly, the program runs fine (1-3 seconds). I'm pasting the snippet of the top part of the DarkGDK function for reference.
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbPrint ( "Please wait loading model..." );
dbSync();
dbSync();
dbSetNormalizationOn ( );
// 3ds object that takes very long to load - commented
//dbLoadObject("XroadTraffLightScene.3DS",1); // load the skybox model
//dbFastSync();
//Making the box instead, much faster
dbMakeObjectBox(1,500,1,500);
dbLoadImage ( "dark01.bmp", 1);
dbSetLightMappingOn ( 1, 1 );
dbSetObjectSpecular ( 1, 0 );
//Smaller 3ds model no problem with this one.
dbLoadObject("Gen2.3DS",2);
dbFastSync();
I'm thinking it's the 3ds model itself, but maybe is there an angle i'm not looking at? If it's the 3ds model, are there any things I need to tell my 3d designer to make it faster to load on DarkGDK?
Thanks,
Adrian