; dxLoadAnimMesh Example ; -------------------- ; In this example we will demonstrate the use of the dxLoadAnimMesh command. ; Quite simply, we will load an anim mesh from file, dxAnimate it, and then view it. dxGraphics3D 640,480 dxSetBuffer dxBackBuffer() camera=dxCreateCamera() dxPositionEntity camera,0,20,-100 ; position camera so that robot will be in view when loaded light=dxCreateLight() dxRotateEntity light,90,0,0 ; Load anim mesh robot=dxLoadAnimMesh("media/makbot/mak_robotic.3ds") ; dxAnimate mesh - this will begin an animation sequence which is updated when dxUpdateWorld is called dxAnimate robot,2 While Not dxKeyDown(1) dxUpdateWorld ; Update anim - without this our anim mesh will freeze dxRenderWorld ; Render everything dxFlip ; Show everything Wend End