| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- -- Generated by: /home/godlike/src/anki/vkbuilddbg/bin/gltf_importer droid.gltf /home/godlike/src/anki/samples/skeletal_animation/assets/ -rpath assets -texrpath assets
- local scene = getSceneGraph()
- local events = getEventManager()
- node = scene:newModelNode("droid.001", "assets/Mesh_Robot.001.ankimdl")
- trf = Transform.new()
- trf:setOrigin(Vec4.new(0.000000, 0.000000, 0.000000, 0))
- rot = Mat3x4.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
- trf:setRotation(rot)
- trf:setScale(1.000000)
- node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
- node = scene:newGlobalIlluminationProbeNode("Cube")
- comp = node:getSceneNodeBase():getGlobalIlluminationProbeComponent()
- comp:setBoundingBox(Vec4.new(-9.643279, -9.643279, -9.643279, 0), Vec4.new(9.643279, 9.643279, 9.643279, 0))
- trf = Transform.new()
- trf:setOrigin(Vec4.new(0.000000, 11.057286, 0.000000, 0))
- rot = Mat3x4.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
- trf:setRotation(rot)
- trf:setScale(1.000000)
- node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
- node = scene:newReflectionProbeNode("Cube.001", Vec4.new(-9.271889, -9.271889, -9.271889, 0), Vec4.new(9.271889, 9.271888, 9.271889, 0))
- trf = Transform.new()
- trf:setOrigin(Vec4.new(0.000000, 11.057286, 0.000000, 0))
- rot = Mat3x4.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
- trf:setRotation(rot)
- trf:setScale(1.000000)
- node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
- node = scene:newModelNode("room", "assets/room_room.ankimdl")
- trf = Transform.new()
- trf:setOrigin(Vec4.new(0.000000, 11.142166, 0.000000, 0))
- rot = Mat3x4.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
- trf:setRotation(rot)
- trf:setScale(9.000000)
- node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
- node = scene:newPointLightNode("Lamp_Orientation")
- lcomp = node:getSceneNodeBase():getLightComponent()
- lcomp:setDiffuseColor(Vec4.new(100.000000, 100.000000, 100.000000, 1))
- lcomp:setShadowEnabled(1)
- lcomp:setRadius(100.000000)
- trf = Transform.new()
- trf:setOrigin(Vec4.new(4.076245, 5.903862, -1.005454, 0))
- rot = Mat3x4.new()
- rot:setAll(-0.290865, -0.771101, 0.566393, 0.000000, -0.055189, 0.604525, 0.794672, 0.000000, -0.955171, 0.199883, -0.218391, 0.000000)
- trf:setRotation(rot)
- trf:setScale(1.000000)
- node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
- node = scene:newPerspectiveCameraNode("Camera_Orientation")
- scene:setActiveCameraNode(node:getSceneNodeBase())
- frustumc = node:getSceneNodeBase():getFrustumComponent()
- frustumc:setPerspective(0.100000, 100.000000, getMainRenderer():getAspectRatio() * 0.750416, 0.750416)
- trf = Transform.new()
- trf:setOrigin(Vec4.new(5.526846, 8.527484, -6.015655, 0))
- rot = Mat3x4.new()
- rot:setAll(-0.712312, -0.312519, 0.628445, 0.000000, 0.000000, 0.895396, 0.445271, 0.000000, -0.701863, 0.317172, -0.637801, 0.000000)
- trf:setRotation(rot)
- trf:setScale(1.000000)
- node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
- node = scene:newModelNode("room.001", "assets/room.001_room.red.ankimdl")
- trf = Transform.new()
- trf:setOrigin(Vec4.new(0.000000, 11.142166, 0.000000, 0))
- rot = Mat3x4.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
- trf:setRotation(rot)
- trf:setScale(9.000000)
- node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
- node = scene:newModelNode("room.002", "assets/room.002_room.green.ankimdl")
- trf = Transform.new()
- trf:setOrigin(Vec4.new(0.000000, 11.142166, 0.000000, 0))
- rot = Mat3x4.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
- trf:setRotation(rot)
- trf:setScale(9.000000)
- node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
- node = scene:newModelNode("room.003", "assets/room.003_room.blue.ankimdl")
- trf = Transform.new()
- trf:setOrigin(Vec4.new(0.000000, 11.142166, 0.000000, 0))
- rot = Mat3x4.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
- trf:setRotation(rot)
- trf:setScale(9.000000)
- node:getSceneNodeBase():getMoveComponent():setLocalTransform(trf)
|