I just have a quick question about
dbSaveMesh. I was trying to convert a DBO file to a X file by loading it, making a mesh from it, and then saving it as a X file.
When I tried this, though, no file was created.
Here's my code:
void DarkGDK ( void )
{
// turn on sync rate and set maximum rate to 60 fps
dbSyncOn ( );
dbSyncRate ( 60 );
dbSetDir("Files");
dbLoadObject("universe.dbo", 1);
dbMakeMeshFromObject(1, 1);
dbSaveMesh("test.x", 1);
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Any ideas? Thanks!