Ok. Well, chances are I'm missing something extremely simple here, but whenever I try and load an object nothing renders... like, only when loading something. I can create a cube or sphere and it'll work perfectly. But I've tried loading objects from other demos, then simply place the camera back a few units on the z axis, and sync and all that, but the screen remains black and nothing renders. Heres the basic code I'm using for this:
// Dark GDK - The Game Creators - www.thegamecreators.com
// the wizard has created a very simple project that uses Dark GDK
// it contains the basic code for a GDK application
// whenever using Dark GDK you must ensure you include the header file
#include \"DarkGDK.h\"
// 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 );
dbAutoCamOff();
dbLoadObject(\"media\\statue.x\", 1);
dbPositionCamera(0, 0, -100);
// our main loop
while ( LoopGDK ( ) )
{
// update the screen
dbSync ( );
}
//pObj->drop();
// return back to windows
return;
}
That code looks like it should work right? Nope, black screen. so whats the deal with it?
Hello