Ok, so dark sdk supposidly supports bump mapping? Yes... Ok... then why is it that when I turn bump mapping on the model just dissapears? An example:
#include "DarkSDK.h"
}
void DarkSDK ( void )
{
dbSyncOn();
dbSyncRate(60);
dbMakeLight ( 1 ) ;
dbPositionLight(1,50,50,50);
dbLoadImage("main.jpg",1);
dbLoadImage("bump.jpg",2);
dbMakeObjectCube(1,20);
dbTextureObject(1,1);
dbSetBumpMappingOn(1,2);
while(LoopSDK()){
dbSync();
if(dbEscapeKey())return;
}
}
What am I doing wrong? Has it something to do with .fx shaders? *wonders*
Might it have something to do with the bit depth of the greyscale bump map?
Incase your wondering, yes my graphics card does support bump maps (nvidia 6800 ultra).
Note: I'm using dsdk 1.1