| | |
Disapearing objects!
![]() |
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 binary bitmap business c++ c/c++ char class classes code coding commentinghelp compile console conversion count decide delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez graph guess gui hash homeworkhelp homeworkhelper iamthwee ifpug ifstream incrementoperators infinite input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem proficiency program programming project python random read recursion reference rpg string strings temperature template test text text-file tree url variable vector video win32 windows winsock word wordfrequency wxwidgets





