Hey all!
I seem to be having an issue with loading a 3d Model. The Model is in my game directory and I'm trying to follow the tutorial that comes with DarkGDK on 3d Objects and the program works however, the model I am trying to load is not showing up I've tried several different camera positions to try to find my model but I just can't locate it. Here is my code:
// the main entry point for the application is this function
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbBackdropOn ();
// Load in a model
dbLoadObject ("Models/Girl.x", 1);
dbPositionObject (1, 70, 70, 30);
dbFileExist ("Models/Girl.x");
// Make some terrain
dbMakeMatrix (1, 512, 512, 32, 32);
dbRandomizeMatrix (1, 5);
dbPositionMatrix ( 1, 0.0f, 50.0f, 30.0f);
// Position the camera in world space
dbPositionCamera (0.0f, 70.0f, 30.0f);
// Animate the character
dbLoopObject (1, 1, 40);
dbSetObjectSpeed (1, 25);
// our main loop
while ( LoopGDK ( ) )
{
// Camera movement
dbControlCameraUsingArrowKeys(0.0f, 2.0f, 2.0f);
// update the screen
dbSync ( );
}
// return back to windows
return;
}