| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- -- Generated by: C:\src\anki\out\build\x64-Release-VK\Binaries\GltfImporter.exe droid.gltf C:/src/anki/Samples/SkeletalAnimation/Assets/ -rpath Assets -texrpath Assets -v
- local scene = getSceneGraph()
- local events = getEventManager()
- node = scene:newSceneNode("droid.001")
- node:newModelComponent():loadModelResource("Assets/Mesh_Robot.001_514ce62fac09d811.ankimdl")
- node:newSkinComponent():setSkeletonFilename("Assets/Armature.002_9ddcea0a08bd9d11.ankiskel")
- trf = Transform.new()
- trf:setOrigin(Vec3.new(0.000000, 0.000000, 0.000000))
- rot = Mat3.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
- trf:setRotation(rot)
- trf:setScale(Vec3.new(1.000000, 1.000000, 1.000000))
- node:setLocalTransform(trf)
- node = scene:newSceneNode("Cube")
- comp = node:newGlobalIlluminationProbeComponent()
- trf = Transform.new()
- trf:setOrigin(Vec3.new(0.000000, 11.057286, 0.000000))
- rot = Mat3.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
- trf:setRotation(rot)
- trf:setScale(Vec3.new(9.643279, 9.643279, 9.643279))
- node:setLocalTransform(trf)
- node = scene:newSceneNode("Cube.001")
- comp = node:newReflectionProbeComponent()
- trf = Transform.new()
- trf:setOrigin(Vec3.new(0.000000, 11.057286, 0.000000))
- rot = Mat3.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
- trf:setRotation(rot)
- trf:setScale(Vec3.new(9.271889, 9.271889, 9.271889))
- node:setLocalTransform(trf)
- node = scene:newSceneNode("room")
- node:newModelComponent():loadModelResource("Assets/room_room_2c303a64377351de.ankimdl")
- trf = Transform.new()
- trf:setOrigin(Vec3.new(0.000000, 11.142166, 0.000000))
- rot = Mat3.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
- trf:setRotation(rot)
- trf:setScale(Vec3.new(9.000000, 9.000000, 9.000000))
- node:setLocalTransform(trf)
- node = scene:newSceneNode("Lamp")
- lcomp = node:newLightComponent()
- lcomp:setLightComponentType(LightComponentType.kPoint)
- lcomp:setDiffuseColor(Vec4.new(100.000000, 100.000000, 100.000000, 1))
- lcomp:setShadowEnabled(1)
- lcomp:setRadius(100.000000)
- trf = Transform.new()
- trf:setOrigin(Vec3.new(4.076245, 5.903862, -1.005454))
- rot = Mat3.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, -0.000000, 1.000000, 0.000000, -1.000000, -0.000000)
- trf:setRotation(rot)
- trf:setScale(Vec3.new(1.000000, 1.000000, 1.000000))
- node:setLocalTransform(trf)
- node = scene:newSceneNode("Camera")
- scene:setActiveCameraNode(node)
- comp = node:newCameraComponent()
- comp:setPerspective(0.100000, 200.000000, getRenderer():getAspectRatio() * 0.750416, 0.750416)
- trf = Transform.new()
- trf:setOrigin(Vec3.new(5.526846, 8.527484, -6.015655))
- rot = Mat3.new()
- rot:setAll(-0.805081, -0.216096, 0.552401, 0.056206, 0.899296, 0.433714, -0.590496, 0.380223, -0.711860)
- trf:setRotation(rot)
- trf:setScale(Vec3.new(1.000000, 1.000000, 1.000000))
- node:setLocalTransform(trf)
- node = scene:newSceneNode("room.001")
- node:newModelComponent():loadModelResource("Assets/room.001_room.red_99eb56f1f0b59f98.ankimdl")
- trf = Transform.new()
- trf:setOrigin(Vec3.new(0.000000, 11.142166, 0.000000))
- rot = Mat3.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
- trf:setRotation(rot)
- trf:setScale(Vec3.new(9.000000, 9.000000, 9.000000))
- node:setLocalTransform(trf)
- node = scene:newSceneNode("room.002")
- node:newModelComponent():loadModelResource("Assets/room.002_room.green_acfa0c3d40cf5fea.ankimdl")
- trf = Transform.new()
- trf:setOrigin(Vec3.new(0.000000, 11.142166, 0.000000))
- rot = Mat3.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
- trf:setRotation(rot)
- trf:setScale(Vec3.new(9.000000, 9.000000, 9.000000))
- node:setLocalTransform(trf)
- node = scene:newSceneNode("room.003")
- node:newModelComponent():loadModelResource("Assets/room.003_room.blue_1d4e9304c9ecd2fe.ankimdl")
- trf = Transform.new()
- trf:setOrigin(Vec3.new(0.000000, 11.142166, 0.000000))
- rot = Mat3.new()
- rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000)
- trf:setRotation(rot)
- trf:setScale(Vec3.new(9.000000, 9.000000, 9.000000))
- node:setLocalTransform(trf)
- --[[node = scene:tryFindSceneNode("ArmL2")
- getEventManager():newAnimationEvent("Assets/float.001_ccb9eb33e30c8fa4.ankianim", "ArmL2", node)
- node = scene:tryFindSceneNode("Body")
- getEventManager():newAnimationEvent("Assets/float.001_ccb9eb33e30c8fa4.ankianim", "Body", node)
- node = scene:tryFindSceneNode("ArmL1")
- getEventManager():newAnimationEvent("Assets/float.001_ccb9eb33e30c8fa4.ankianim", "ArmL1", node)
- node = scene:tryFindSceneNode("ArmR2")
- getEventManager():newAnimationEvent("Assets/float.001_ccb9eb33e30c8fa4.ankianim", "ArmR2", node)
- node = scene:tryFindSceneNode("Flap1")
- getEventManager():newAnimationEvent("Assets/float.001_ccb9eb33e30c8fa4.ankianim", "Flap1", node)
- node = scene:tryFindSceneNode("PinceL")
- getEventManager():newAnimationEvent("Assets/float.001_ccb9eb33e30c8fa4.ankianim", "PinceL", node)
- node = scene:tryFindSceneNode("Flap2")
- getEventManager():newAnimationEvent("Assets/float.001_ccb9eb33e30c8fa4.ankianim", "Flap2", node)
- node = scene:tryFindSceneNode("ArmR1")
- getEventManager():newAnimationEvent("Assets/float.001_ccb9eb33e30c8fa4.ankianim", "ArmR1", node)
- node = scene:tryFindSceneNode("ArmR2")
- getEventManager():newAnimationEvent("Assets/wave_6cf284ed471bff3b.ankianim", "ArmR2", node)
- node = scene:tryFindSceneNode("ArmR1")
- getEventManager():newAnimationEvent("Assets/wave_6cf284ed471bff3b.ankianim", "ArmR1", node)]]
|