i have some questions about DarkGDK, working on a game but having alot of troubles..
1. which is the best and the easiest program to make 3D objects that can be easily used in the DarkGDK
2. is there a way to delete the terrain?
dbSetupTerrain ( );
dbMakeObjectTerrain ( 1 );
dbSetTerrainHeightMap ( 1, "Media\\height image.jpg" );
dbSetTerrainScale ( 1, 4.0f, 2.0f, 4.0f );
dbSetTerrainLight ( 1, 1.0f, -0.25f, 0.0f, 1.0f, 1.0f, 0.78f, 0.5f );
dbSetTerrainTexture ( 1, 1001, 1002 );
dbBuildTerrain ( 1 );
3. "dbLoadObject()" loads an object into the screen, how can i position this object on the terrain?
4.i have created a game which build terrain and then i can move camera around (similar to the one in the tutorials), but i changed the "while ( LoopGDK())" to "while (1)", and made the esc key opens a menu:
void DisplayMainMenu (void)
{
LoadMainMenu();
dbShowMouse();
dbPasteImage(1007,(dbScreenWidth()/2)-100,(dbScreenHeight()/2)-150);
dbPasteImage(1008,(dbScreenWidth()/2)-100,(dbScreenHeight()/2)-150);
dbPasteImage(1009,(dbScreenWidth()/2)-100,(dbScreenHeight()/2)-150);
dbPasteImage(1010,(dbScreenWidth()/2)-100,(dbScreenHeight()/2)-150);
while(1)
{
if (dbEscapeKey())
break;
if (dbMouseClick())
{
//options
if (dbMouseX() > (dbScreenWidth()/2)-28.57142857142857142857142857143 && dbMouseX() < (dbScreenWidth()/2)+28.57142857142857142857142857143 && dbMouseY() > (dbScreenHeight()/2) - 75 && dbMouseY() < (dbScreenHeight()/2) - 45)
break;
//resmue
if (dbMouseX() > (dbScreenWidth()/2)-28.57142857142857142857142857143 && dbMouseX() < (dbScreenWidth()/2)+28.57142857142857142857142857143 && dbMouseY() > (dbScreenHeight()/2) - 15 && dbMouseY() < (dbScreenHeight()/2) + 15)
{
dbDeleteSprite(1003);
dbDeleteSprite(1004);
dbDeleteSprite(1005);
dbDeleteSprite(1006);
break;
}//end if
//exit
if (dbMouseX() > (dbScreenWidth()/2)-28.57142857142857142857142857143 && dbMouseX() < (dbScreenWidth()/2)+28.57142857142857142857142857143 && dbMouseY() > (dbScreenHeight()/2) + 45 && dbMouseY() < (dbScreenHeight()/2) + 75)
exit(0);
}
}//end while
dbHideMouse();
dbDeleteImage(1007);
dbDeleteImage(1008);
dbDeleteImage(1009);
dbDeleteImage(1010);
Sleep(300);
}
(LoadMenu loads 4 images (menu background and the 3 buttons (options - resmue - exit game)))
this function isnt working at all, it is suposed to show the mouse and display the 3 buttons with the background, it shows the mouse
but it doesnt show any sprites, the function is wrong?
5. is there a place to see all functions in the DGDK? the tutorials doesnt show all of them, also it shows really little info about 3D objects :/