|
@@ -0,0 +1,68 @@
|
|
|
|
|
+local scene = getSceneGraph()
|
|
|
|
|
+local events = getEventManager()
|
|
|
|
|
+local rot
|
|
|
|
|
+local node
|
|
|
|
|
+local inst
|
|
|
|
|
+local lcomp
|
|
|
|
|
+
|
|
|
|
|
+node = scene:newReflectionProbeNode("reflprobe0", Vec4.new(-12.6741, -12.6741, -12.6741, 0), Vec4.new(12.6741, 12.6741, 12.6741, 0))
|
|
|
|
|
+trf = Transform.new()
|
|
|
|
|
+trf:setOrigin(Vec4.new(0, 9.1132, 0, 0))
|
|
|
|
|
+rot = Mat3x4.new()
|
|
|
|
|
+rot:setAll(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0)
|
|
|
|
|
+trf:setRotation(rot)
|
|
|
|
|
+trf:setScale(1)
|
|
|
|
|
+node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|
|
|
|
|
+
|
|
|
|
|
+node = scene:newModelNode("floorMaterial-materialnone0", "assets/floorMaterial-material.ankimdl")
|
|
|
|
|
+trf = Transform.new()
|
|
|
|
|
+trf:setOrigin(Vec4.new(0, 0, 0, 0))
|
|
|
|
|
+rot = Mat3x4.new()
|
|
|
|
|
+rot:setAll(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0)
|
|
|
|
|
+trf:setRotation(rot)
|
|
|
|
|
+trf:setScale(1)
|
|
|
|
|
+node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|
|
|
|
|
+node = scene:newStaticCollisionNode("floorMaterial-materialnone0_cl", "assets/floor.ankicl", trf)
|
|
|
|
|
+
|
|
|
|
|
+node = scene:newModelNode("wallsMaterial_001-materialnone1", "assets/wallsMaterial_001-material.ankimdl")
|
|
|
|
|
+trf = Transform.new()
|
|
|
|
|
+trf:setOrigin(Vec4.new(0, 9.10935, 0, 0))
|
|
|
|
|
+rot = Mat3x4.new()
|
|
|
|
|
+rot:setAll(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0)
|
|
|
|
|
+trf:setRotation(rot)
|
|
|
|
|
+trf:setScale(1)
|
|
|
|
|
+node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|
|
|
|
|
+
|
|
|
|
|
+node = scene:newModelNode("SuzanneMaterial-materialnone2", "assets/SuzanneMaterial-material.ankimdl")
|
|
|
|
|
+trf = Transform.new()
|
|
|
|
|
+trf:setOrigin(Vec4.new(-23.0149, 9.70113, 0, 0))
|
|
|
|
|
+rot = Mat3x4.new()
|
|
|
|
|
+rot:setAll(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0)
|
|
|
|
|
+trf:setRotation(rot)
|
|
|
|
|
+trf:setScale(1)
|
|
|
|
|
+node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|
|
|
|
|
+node = scene:newStaticCollisionNode("SuzanneMaterial-materialnone2_cl", "assets/Suzanne.ankicl", trf)
|
|
|
|
|
+
|
|
|
|
|
+node = scene:newPointLightNode("Lamp")
|
|
|
|
|
+lcomp = node:getSceneNodeBase():getLightComponent()
|
|
|
|
|
+lcomp:setDiffuseColor(Vec4.new(100, 100, 100, 1))
|
|
|
|
|
+lcomp:setRadius(30.0003)
|
|
|
|
|
+trf = Transform.new()
|
|
|
|
|
+trf:setOrigin(Vec4.new(4.07624, 5.90386, -1.00545, 0))
|
|
|
|
|
+rot = Mat3x4.new()
|
|
|
|
|
+rot:setAll(-0.290865, -0.771075, 0.566429, 0, -0.0551891, 0.604562, 0.794644, 0, -0.955171, 0.199873, -0.2184, 0)
|
|
|
|
|
+trf:setRotation(rot)
|
|
|
|
|
+trf:setScale(1)
|
|
|
|
|
+node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|
|
|
|
|
+lcomp:setShadowEnabled(1)
|
|
|
|
|
+
|
|
|
|
|
+node = scene:newPerspectiveCameraNode("Camera")
|
|
|
|
|
+scene:setActiveCameraNode(node:getSceneNodeBase())
|
|
|
|
|
+node:setAll(1.22173, 1.0 / getMainRenderer():getAspectRatio() * 1.22173, 0.1, 100)
|
|
|
|
|
+trf = Transform.new()
|
|
|
|
|
+trf:setOrigin(Vec4.new(7.48113, 5.34367, 6.50764, 0))
|
|
|
|
|
+rot = Mat3x4.new()
|
|
|
|
|
+rot:setAll(0.685921, -0.323983, 0.651573, 0, 0, 0.895416, 0.44523, 0, -0.727676, -0.305392, 0.614184, 0)
|
|
|
|
|
+trf:setRotation(rot)
|
|
|
|
|
+trf:setScale(1)
|
|
|
|
|
+node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|