sample.scene 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. scene terrainSampleScene
  2. {
  3. node terrain
  4. {
  5. terrain = res/common/terrain/sample.terrain
  6. collisionObject
  7. {
  8. type = RIGID_BODY
  9. shape = HEIGHTFIELD
  10. mass = 0
  11. kinematic = true
  12. }
  13. }
  14. node sky
  15. {
  16. url = res/common/terrain/sky.gpb#sphere
  17. material = res/common/terrain/sky.material
  18. scale = 30000,30000,30000
  19. translate = 0,25000,0
  20. }
  21. node directionalLight
  22. {
  23. light
  24. {
  25. type = DIRECTIONAL
  26. color = 1,1,1
  27. }
  28. rotate = 1,0,0, -45
  29. }
  30. node camera
  31. {
  32. camera
  33. {
  34. type = PERSPECTIVE
  35. nearPlane = 1.0
  36. farPlane = 100000
  37. }
  38. // Starting position on ground
  39. translate = 3095, 369, -4393
  40. rotate = 0,1,0, 148
  41. // Screenshot position in air (screenshots)
  42. //translate = 3824, 1466, -3622
  43. //rotate = 0, 1.0, 0, 142
  44. }
  45. // Basic scene lighting properties
  46. ambientColor = 0.2, 0.2, 0.2
  47. // Set active camera
  48. activeCamera = camera
  49. physics
  50. {
  51. // Bump up gravity force for this sample since our units are larger than normal
  52. gravity = 0, -90, 0
  53. }
  54. }