Hey, I'm remotely new to Dark GDK 3D Programming and I have been trying to load a test building into my game world, but all that is displayed is a white figure. Why are the textures not displaying on the object?
Here is the code i'm using ( it's just for testing purposes sorry for the sloppyness)
#include "DarkGDK.h"
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
// move our camera back so we can view the objects
dbPositionCamera ( 0, 0, 0 );
// camera variables
float fCameraAngleX = 0.0f;
float fCameraAngleY = 0.0f;
dbLoadObject ( "TestingRoom1.dbo", 1 );
dbSetObjectLight ( 0, 0 );
dbPositionObject(1,0,0,50);
// now we come to our main loop, we call LoopGDK so some internal
// work can be carried out by the GDK
while ( LoopGDK ( ) )
{
dbControlCameraUsingArrowKeys ( 0.5f, 5.0f, 0.3f );
fCameraAngleX = dbWrapValue ( fCameraAngleX + dbMouseMoveY ( ) * 0.4f );
fCameraAngleY = dbWrapValue ( fCameraAngleY + dbMouseMoveX ( ) * 0.4f );
// rotate camera
dbXRotateCamera ( fCameraAngleX );
dbYRotateCamera ( fCameraAngleY );
// here we make a call to update the contents of the screen
dbSync ( );
}
// and now everything is ready to return back to Windows
return;
}
All is revealed with time.