| | |
Disapearing objects!
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Im on Windows XP pro.
im using DarkGDK engine.
I am making a FPS in a map that a tutorial provides.
T tell it to load my object and position it under the camera and when i run it i look down and i can see it, but if I move at all, the gun disapears!
heres my code:
any help would be appreciated, thanks in advance
im using DarkGDK engine.
I am making a FPS in a map that a tutorial provides.
T tell it to load my object and position it under the camera and when i run it i look down and i can see it, but if I move at all, the gun disapears!
heres my code:
C++ Syntax (Toggle Plain Text)
#include "DarkGDK.h" void DarkGDK ( void ) { dbSyncOn ( ); dbSyncRate ( 60 ); SetCurrentDirectory ( "resources" ); dbLoadObject ( "universe.dbo", 1 ); dbSetObjectLight ( 1, 0 ); dbLoadObject ( "skybox2.x", 2 ); dbSetObjectLight ( 2, 0 ); dbSetObjectTexture ( 2, 3, 2 ); dbScaleObject ( 2, 5000, 5000, 5000 ); dbLoadObject ( "mp5.x", 3 ); //this is the object dbPositionObject ( 3, 434, 447, -517 ); dbPositionCamera ( 434, 450, -517 ); float fCameraAngleX = 0.0f; float fCameraAngleY = 0.0f; while ( LoopGDK ( ) ) { dbHideMouse ( ); dbControlCameraUsingArrowKeys ( 0, 5.0f, 0.3f ); fCameraAngleX = dbWrapValue ( fCameraAngleX + dbMouseMoveY ( ) * 0.4f ); fCameraAngleY = dbWrapValue ( fCameraAngleY + dbMouseMoveX ( ) * 0.4f ); dbXRotateCamera ( fCameraAngleX ); dbYRotateCamera ( fCameraAngleY ); dbSync ( ); } return; }
any help would be appreciated, thanks in advance
![]() |
Other Threads in the C++ Forum
- Previous Thread: want to login to windows progammatically
- Next Thread: Templates and return types
| Thread Tools | Search this Thread |
api array based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion count database delete deploy desktop developer directshow dll download dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez graph homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct temperature template templates text text-file tree url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





