Scene.lua 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. -- Generated by: C:\src\anki\build_dbg_vk\Binaries\GltfImporter.exe 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. node:newMaterialComponent():setMaterialFilename("Assets/backWall_361f28d87a6738d3.ankimtl"):setSubmeshIndex(0)
  7. trf = Transform.new()
  8. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  9. rot = Mat3.new()
  10. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  11. trf:setRotation(rot)
  12. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  13. node:setLocalTransform(trf)
  14. node = scene:newSceneNode("Mesh_1")
  15. node:newMeshComponent():setMeshFilename("Assets/Mesh_1_266a0dd9d2092f46.ankimesh")
  16. node:newMaterialComponent():setMaterialFilename("Assets/ceiling_3fd94cde277a48e1.ankimtl"):setSubmeshIndex(0)
  17. trf = Transform.new()
  18. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  19. rot = Mat3.new()
  20. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  21. trf:setRotation(rot)
  22. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  23. node:setLocalTransform(trf)
  24. node = scene:newSceneNode("Mesh_2")
  25. node:newMeshComponent():setMeshFilename("Assets/Mesh_2_be53007bec464649.ankimesh")
  26. node:newMaterialComponent():setMaterialFilename("Assets/floor_71cbd2644e53ab8c.ankimtl"):setSubmeshIndex(0)
  27. trf = Transform.new()
  28. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  29. rot = Mat3.new()
  30. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  31. trf:setRotation(rot)
  32. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  33. node:setLocalTransform(trf)
  34. node = scene:newSceneNode("Mesh_3")
  35. node:newMeshComponent():setMeshFilename("Assets/Mesh_3_c026fdb5b74773ed.ankimesh")
  36. node:newMaterialComponent():setMaterialFilename("Assets/leftWall_fe97b196ed148fca.ankimtl"):setSubmeshIndex(0)
  37. trf = Transform.new()
  38. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  39. rot = Mat3.new()
  40. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  41. trf:setRotation(rot)
  42. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  43. node:setLocalTransform(trf)
  44. node = scene:newSceneNode("Mesh_4")
  45. node:newMeshComponent():setMeshFilename("Assets/Mesh_4_4d4aae6c030c4fd5.ankimesh")
  46. node:newMaterialComponent():setMaterialFilename("Assets/light_1544a10dffc35038.ankimtl"):setSubmeshIndex(0)
  47. trf = Transform.new()
  48. trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
  49. rot = Mat3.new()
  50. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  51. trf:setRotation(rot)
  52. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  53. node:setLocalTransform(trf)
  54. node = scene:newSceneNode("Mesh_5")
  55. node:newMeshComponent():setMeshFilename("Assets/Mesh_5_629309b27fa549a7.ankimesh")
  56. node:newMaterialComponent():setMaterialFilename("Assets/rightWall_d627c19b8205864.ankimtl"):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_7")
  65. node:newMeshComponent():setMeshFilename("Assets/Mesh_7.001_95b61c94f8a0ad1c.ankimesh")
  66. node:newMaterialComponent():setMaterialFilename("Assets/tallBox_15316a0c94bdf7f6.ankimtl"):setSubmeshIndex(0)
  67. trf = Transform.new()
  68. trf:setOrigin(Vec3.new(-1.675000, 3.600000, -1.450001))
  69. rot = Mat3.new()
  70. rot:setAll(0.958636, 0.000000, 0.284634, 0.000000, 1.000000, 0.000000, -0.284634, 0.000000, 0.958636)
  71. trf:setRotation(rot)
  72. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  73. node:setLocalTransform(trf)
  74. node = scene:newSceneNode("Mesh_6")
  75. node:newMeshComponent():setMeshFilename("Assets/Mesh_6.001_2550937d23ca3066.ankimesh")
  76. node:newMaterialComponent():setMaterialFilename("Assets/shortBox_122467965d493dab.ankimtl"):setSubmeshIndex(0)
  77. trf = Transform.new()
  78. trf:setOrigin(Vec3.new(1.637500, 1.800000, 1.862499))
  79. rot = Mat3.new()
  80. rot:setAll(0.966822, 0.000000, -0.255450, 0.000000, 1.000000, 0.000000, 0.255450, 0.000000, 0.966822)
  81. trf:setRotation(rot)
  82. trf:setScale(Vec3.new(5.000000, 5.000000, 5.000000))
  83. node:setLocalTransform(trf)
  84. node = scene:newSceneNode("Camera")
  85. scene:setActiveCameraNode(node)
  86. comp = node:newCameraComponent()
  87. comp:setPerspective(0.100000, 500.000000, getRenderer():getAspectRatio() * 1.024779, 1.024779)
  88. trf = Transform.new()
  89. trf:setOrigin(Vec3.new(0.217066, 6.668793, 17.325689))
  90. rot = Mat3.new()
  91. rot:setAll(0.999854, -0.000334, 0.017085, -0.001690, 0.992972, 0.118341, -0.017005, -0.118352, 0.992826)
  92. trf:setRotation(rot)
  93. trf:setScale(Vec3.new(1.000000, 1.000000, 1.000000))
  94. node:setLocalTransform(trf)
  95. node = scene:newSceneNode("Point")
  96. lcomp = node:newLightComponent()
  97. lcomp:setLightComponentType(LightComponentType.kPoint)
  98. lcomp:setDiffuseColor(Vec4.new(10.000000, 10.000000, 10.000000, 1))
  99. lcomp:setShadowEnabled(1)
  100. lcomp:setRadius(20.000000)
  101. trf = Transform.new()
  102. trf:setOrigin(Vec3.new(0.000000, 8.913514, 0.000000))
  103. rot = Mat3.new()
  104. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
  105. trf:setRotation(rot)
  106. trf:setScale(Vec3.new(1.000000, 1.000000, 1.000000))
  107. node:setLocalTransform(trf)
  108. node = scene:newSceneNode("Cube.011")
  109. comp = node:newGlobalIlluminationProbeComponent()
  110. trf = Transform.new()
  111. trf:setOrigin(Vec3.new(-0.064907, 4.847455, -0.144611))
  112. rot = Mat3.new()
  113. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
  114. trf:setRotation(rot)
  115. trf:setScale(Vec3.new(5.912430, 5.785918, 5.520432))
  116. node:setLocalTransform(trf)