hey everyone, I'm hoping I can get some help on a problem I have
using the Dark GDK on windows vista.
Below, I have posted the code for the function I am using to load 3d objects quickly:
void makeAnObject(int objId, char * xFilePath, int diffuseId, char * diffuseFilePath, int bumpMapId, char * bumpMapFilePath, int detailMapId, char * detailMapFilePath){
dbLoadObject(xFilePath,objId);
dbLoadImage(diffuseFilePath,diffuseId);
dbLoadImage(bumpMapFilePath,bumpMapId);
dbLoadImage(detailMapFilePath, detailMapId);
dbTextureObject( objId, diffuseId);
if (bumpMapId != -1){
dbSetBumpMappingOn(objId, bumpMapId);
}
if (detailMapId != -1){
dbSetDetailMappingOn (objId, detailMapId);
}
dbSetObjectLight(objId, 1);
dbSetObjectAmbient (objId, 1);
}
(I call this function before the main DGK loop for any objects I want to load). When I choose not to apply a bump/detail map, it looks like this:
when i apply a detail map, the white triangles still appear but it looks like this:
It basically looks like the color is gone here
.
Does anyone happen to know what I'm doing wrong?