Okay so Im working on a simple render at the moment of a Island with a bridge. simple right? well no matter what angle I view the island from, the part im facing is missing. i can see strait through...(image attached)
heres my source:
#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 );
dbLoadObject("Media/Models/island.3ds",1);
dbText(10,60,"Loaded Island");
dbLoadImage("Media/Textures/stone_029.JPG",1);
dbLoadImage("Media/Textures/alterwat05.jpg",2);
dbText(10,70,"Loaded Stone/Water Texture");
dbLoadObject("Media/Models/bridge.3ds",3);
dbText(10,80,"Loaded Bridge");
dbLoadImage("Media/Textures/TN_Stone_015.jpg",3);
dbText(10,90,"Loaded bridge stone texture....Making Water");
dbMakeObjectBox(2,3000,5,3000);
dbText(10,110,"Made Water....Making Ground");
dbMakeObjectBox(4,3000,5,3000);
dbTextureObject(2,2);
dbTextureObject(4,1);
dbPositionObject(1,0,0,0);
dbPositionObject(2,0,20,0);
dbPositionObject(4,0,5,0);
dbPositionCamera(0,0,-100);
dbTextureObject(1,1);
dbTextureObject(2,2);
dbGhostObjectOn(2);
dbPositionObject(3,0,0,0);
dbTextureObject(3,3);
//make bridge segments
dbCloneObject(5,3);
dbCloneObject(6,3);
dbCloneObject(7,3);
dbCloneObject(8,3);
dbPositionObject(5,0,0,-dbObjectSizeZ(3));
dbPositionObject(6,0,0,(-dbObjectSizeZ(3))*2);
dbPositionObject(7,0,0,(-dbObjectSizeZ(3))*3);
dbPositionObject(8,0,0,(-dbObjectSizeZ(3))*4);
// our main loop
while ( LoopGDK ( ) )
{
dbText(10,10,"loaded");
dbText(10,20,"Camera X");
dbText(150,20,dbStr(dbCameraPositionX()));
dbText(10,30,"Camera Y");
dbText(150,30,dbStr(dbCameraPositionY()));
dbText(10,40,"Camera Z");
dbText(150,40,dbStr(dbCameraPositionZ()));
dbText(10,50,"FPS");
dbText(50,50,dbStr(dbScreenFPS()));
dbControlCameraUsingArrowKeys(0,5,3);
if(dbSpaceKey())
{
dbMoveCameraUp(0,5);
}
if(dbReturnKey())
{
dbMoveCameraDown(0,5);
}
//check for on screen
// update the screen
dbSync ( );
}
// return back to windows
return;
}
Your signature has been erased by a mod - please reduce it to 600x120