Scene.lua 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. -- Generated by: ../../../build_dbg/Binaries/GltfImporter CornellBox.gltf . -rpath Assets -texrpath Assets -v -j 0 -light-scale 0.01839878467931728
  2. local scene = getSceneGraph()
  3. local events = getEventManager()
  4. node = scene:newSceneNode("Mesh_0")
  5. node:newMeshComponent():setMeshFilename("Assets/Mesh_0_d56f58fc33de003f.ankimesh")
  6. mtlc = node:newMaterialComponent()
  7. mtlc:setMaterialFilename("Assets/backWall_361f28d87a6738d3.ankimtl")
  8. mtlc:setSubmeshIndex(0)
  9. trf = Transform.new()
  10. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  11. rot = Mat3.new()
  12. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  13. trf:setRotation(rot)
  14. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  15. node:setLocalTransform(trf)
  16. node = scene:newSceneNode("Mesh_1")
  17. node:newMeshComponent():setMeshFilename("Assets/Mesh_1_266a0dd9d2092f46.ankimesh")
  18. mtlc = node:newMaterialComponent()
  19. mtlc:setMaterialFilename("Assets/ceiling_3fd94cde277a48e1.ankimtl")
  20. mtlc:setSubmeshIndex(0)
  21. trf = Transform.new()
  22. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  23. rot = Mat3.new()
  24. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  25. trf:setRotation(rot)
  26. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  27. node:setLocalTransform(trf)
  28. node = scene:newSceneNode("Mesh_2")
  29. node:newMeshComponent():setMeshFilename("Assets/Mesh_2_be53007bec464649.ankimesh")
  30. mtlc = node:newMaterialComponent()
  31. mtlc:setMaterialFilename("Assets/floor_71cbd2644e53ab8c.ankimtl")
  32. mtlc:setSubmeshIndex(0)
  33. trf = Transform.new()
  34. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  35. rot = Mat3.new()
  36. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  37. trf:setRotation(rot)
  38. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  39. node:setLocalTransform(trf)
  40. node = scene:newSceneNode("Mesh_3")
  41. node:newMeshComponent():setMeshFilename("Assets/Mesh_3_c026fdb5b74773ed.ankimesh")
  42. mtlc = node:newMaterialComponent()
  43. mtlc:setMaterialFilename("Assets/leftWall_fe97b196ed148fca.ankimtl")
  44. mtlc:setSubmeshIndex(0)
  45. trf = Transform.new()
  46. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  47. rot = Mat3.new()
  48. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  49. trf:setRotation(rot)
  50. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  51. node:setLocalTransform(trf)
  52. node = scene:newSceneNode("Mesh_4")
  53. node:newMeshComponent():setMeshFilename("Assets/Mesh_4_4d4aae6c030c4fd5.ankimesh")
  54. mtlc = node:newMaterialComponent()
  55. mtlc:setMaterialFilename("Assets/light_1544a10dffc35038.ankimtl")
  56. mtlc:setSubmeshIndex(0)
  57. trf = Transform.new()
  58. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  59. rot = Mat3.new()
  60. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  61. trf:setRotation(rot)
  62. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  63. node:setLocalTransform(trf)
  64. node = scene:newSceneNode("Mesh_5")
  65. node:newMeshComponent():setMeshFilename("Assets/Mesh_5_629309b27fa549a7.ankimesh")
  66. mtlc = node:newMaterialComponent()
  67. mtlc:setMaterialFilename("Assets/rightWall_d627c19b8205864.ankimtl")
  68. mtlc:setSubmeshIndex(0)
  69. trf = Transform.new()
  70. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  71. rot = Mat3.new()
  72. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  73. trf:setRotation(rot)
  74. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  75. node:setLocalTransform(trf)
  76. node = scene:newSceneNode("Mesh_7")
  77. node:newMeshComponent():setMeshFilename("Assets/Mesh_7.001_95b61c94f8a0ad1c.ankimesh")
  78. mtlc = node:newMaterialComponent()
  79. mtlc:setMaterialFilename("Assets/tallBox_15316a0c94bdf7f6.ankimtl")
  80. mtlc:setSubmeshIndex(0)
  81. trf = Transform.new()
  82. trf:setOrigin(Vec3.new(-1.675000, 3.600000, -1.450001))
  83. rot = Mat3.new()
  84. rot:setAll(0.958636, 0.000000, 0.284634, 0.000000, 1.000000, 0.000000, -0.284634, 0.000000, 0.958636)
  85. trf:setRotation(rot)
  86. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  87. node:setLocalTransform(trf)
  88. node = scene:newSceneNode("Mesh_6")
  89. node:newMeshComponent():setMeshFilename("Assets/Mesh_6.001_2550937d23ca3066.ankimesh")
  90. mtlc = node:newMaterialComponent()
  91. mtlc:setMaterialFilename("Assets/shortBox_122467965d493dab.ankimtl")
  92. mtlc:setSubmeshIndex(0)
  93. trf = Transform.new()
  94. trf:setOrigin(Vec3.new(1.637500, 1.800000, 1.862499))
  95. rot = Mat3.new()
  96. rot:setAll(0.966822, 0.000000, -0.255450, 0.000000, 1.000000, 0.000000, 0.255450, 0.000000, 0.966822)
  97. trf:setRotation(rot)
  98. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  99. node:setLocalTransform(trf)
  100. node = scene:newSceneNode("Camera")
  101. scene:setActiveCameraNode(node)
  102. comp = node:newCameraComponent()
  103. comp:setPerspective(0.100000, 500.000000, getRenderer():getAspectRatio() * 1.024779, 1.024779)
  104. trf = Transform.new()
  105. trf:setOrigin(Vec3.new(0.217066, 6.668793, 17.325689))
  106. rot = Mat3.new()
  107. rot:setAll(0.999854, -0.000334, 0.017085, -0.001690, 0.992972, 0.118341, -0.017005, -0.118352, 0.992826)
  108. trf:setRotation(rot)
  109. trf:setScale(Vec3.new(1.000000, 1.000000, 1.000000))
  110. node:setLocalTransform(trf)
  111. node = scene:newSceneNode("Point")
  112. lcomp = node:newLightComponent()
  113. lcomp:setLightComponentType(LightComponentType.kPoint)
  114. lcomp:setDiffuseColor(Vec4.new(10.000000, 10.000000, 10.000000, 1))
  115. lcomp:setShadowEnabled(1)
  116. lcomp:setRadius(20.000000)
  117. trf = Transform.new()
  118. trf:setOrigin(Vec3.new(0.000000, 8.913514, 0.000000))
  119. rot = Mat3.new()
  120. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  121. trf:setRotation(rot)
  122. trf:setScale(Vec3.new(1.000000, 1.000000, 1.000000))
  123. node:setLocalTransform(trf)
  124. node = scene:newSceneNode("Cube.011")
  125. comp = node:newGlobalIlluminationProbeComponent()
  126. trf = Transform.new()
  127. trf:setOrigin(Vec3.new(-0.064907, 4.847455, -0.144611))
  128. rot = Mat3.new()
  129. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
  130. trf:setRotation(rot)
  131. trf:setScale(Vec3.new(5.912430, 5.785918, 5.520432))
  132. node:setLocalTransform(trf)