SHARE
TWEET

Untitled

a guest Jun 15th, 2018 132 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Strict
  3.  
  4. Framework Openb3dmax.B3dglgraphics
  5.  
  6. Graphics3D 640,480,0,2
  7.  
  8. Local camera:TCamera=CreateCamera()
  9. CameraClsColor camera,100,150,200
  10. CameraRange camera,1,5000
  11. Local light:TLight=CreateLight()
  12. RotateEntity light,90,0,0
  13.  
  14. Local model:TMesh=LoadMesh("../media/bath/RomanBath.b3d")
  15.  
  16. Local t:TTexture=LoadTexture("../media/bath/Default Lightmap.bmp")
  17.  
  18. TextureBlend t,5
  19.  
  20. EntityTexture model,t,0,3
  21.  
  22. PositionEntity model,0,-5,10
  23.  
  24. While Not KeyDown( KEY_ESCAPE )
  25.  
  26. If KeyDown(KEY_W) Then MoveEntity camera,0,0,1
  27. If KeyDown(KEY_A) Then TurnEntity camera,0,4,0
  28. If KeyDown(KEY_S) Then MoveEntity camera,0,0,-1
  29. If KeyDown(KEY_D) Then TurnEntity camera,0,-4,0
  30.  
  31.  
  32. RenderWorld
  33. Flip
  34. Wend
  35.  
  36. End
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top