Issue 1:
I copied code from an official example (http://mrdoob.github.io/three.js/examples/webgl_materials_normalmap.html) to do an globe with displacement mapping (http://threejs.thiele-medien.de/index_.html).

Everything seems to be fine, but could this be avoided?

In both Im getting multiple console warnings, this is the output of the official example :

"gl.getProgramInfoLog()" "(59,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll

(208,20): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
(192,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll
(281,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll

" three.min.js:537
"gl.getProgramInfoLog()" "(96,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll

(225,20): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
(209,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll
(278,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll
(90,5): error X6077: texld/texldb/texldp/dsx/dsy instructions with r# as source cannot be used inside dynamic conditional 'if' blocks, dynamic conditional subroutine calls, or loop/rep with break*.

Warning: D3D shader compilation failed with
default
flags.
Retrying with
avoid flow control
.

(225,20): warning X3571: pow(f, e) will not work for negative f, use abs(f) or conditionally handle negative values if you expect them
(209,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll
(278,6): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll
"

Screenshot: http://abload.de/image.php?img=warningsu8kwa.jpg

Threejs R67

Firefox 29.0.1, Windows 7, Nvidia GTX 275

Issue 2:
Description of the problem

When you import and set up a GLTF scene containing transformation animations that apply to multiple objects, they're played in sync out of the box:

When the animations in question use multiple armatures and skinned meshes, however, this isn't the case:

In this scenario, only the first of the skinned objects receives the animations in question.

This test file used a cloned armature, but duplicated armatures produce the same result.

I also tried manually setting up a separate AnimationMixer() on the second skinned mesh using the imported AnimationClips and didn't get that to work, but I'm not sure if that particular issue was user error.

Inspecting the file manually and re-importing it into Blender shows that it is structured correctly such that the animations are associable to both armatures and skinned meshes, and maybe should reasonably work out of the box the same way as non-armature animations:

(The Blender importer splits each animation into a named NLA track per object.)

Three.js version

r118

Browser

Chrome

Test Files

TwoArmatures.gltf

{"asset":{"generator":"Khronos glTF Blender I/O v1.2.75","version":"2.0"},"scene":0,"scenes":[{"name":"Scene","nodes":[1,2,4,5]}],"nodes":[{"name":"Bone","translation":[0,2,0]},{"mesh":0,"name":"Cube","skin":0},{"children":[0],"name":"Armature","translation":[-2,0,0]},{"name":"Bone","translation":[0,2,0]},{"mesh":1,"name":"Cube.001","skin":1},{"children":[3],"name":"Armature.001","translation":[2,0,0]}],"animations":[{"channels":[{"sampler":0,"target":{"node":0,"path":"translation"}},{"sampler":1,"target":{"node":0,"path":"rotation"}},{"sampler":2,"target":{"node":0,"path":"scale"}},{"sampler":3,"target":{"node":3,"path":"translation"}},{"sampler":4,"target":{"node":3,"path":"rotation"}},{"sampler":5,"target":{"node":3,"path":"scale"}}],"name":"Down","samplers":[{"input":13,"interpolation":"LINEAR","output":14},{"input":13,"interpolation":"LINEAR","output":15},{"input":13,"interpolation":"LINEAR","output":16},{"input":13,"interpolation":"LINEAR","output":17},{"input":13,"interpolation":"LINEAR","output":18},{"input":13,"interpolation":"LINEAR","output":19}]},{"channels":[{"sampler":0,"target":{"node":0,"path":"translation"}},{"sampler":1,"target":{"node":0,"path":"rotation"}},{"sampler":2,"target":{"node":0,"path":"scale"}},{"sampler":3,"target":{"node":3,"path":"translation"}},{"sampler":4,"target":{"node":3,"path":"rotation"}},{"sampler":5,"target":{"node":3,"path":"scale"}}],"name":"Up","samplers":[{"input":13,"interpolation":"LINEAR","output":20},{"input":13,"interpolation":"LINEAR","output":21},{"input":13,"interpolation":"LINEAR","output":22},{"input":13,"interpolation":"LINEAR","output":23},{"input":13,"interpolation":"LINEAR","output":24},{"input":13,"interpolation":"LINEAR","output":25}]}],"materials":[{"doubleSided":true,"emissiveFactor":[0,0,0],"name":"Material","pbrMetallicRoughness":{"baseColorFactor":[0.800000011920929,0.800000011920929,0.800000011920929,1],"metallicFactor":0,"roughnessFactor":0.4000000059604645}}],"meshes":[{"name":"Cube","primitives":[{"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2,"JOINTS_0":3,"WEIGHTS_0":4},"indices":5,"material":0}]},{"name":"Cube","primitives":[{"attributes":{"POSITION":7,"NORMAL":8,"TEXCOORD_0":9,"JOINTS_0":10,"WEIGHTS_0":11},"indices":5,"material":0}]}],"skins":[{"inverseBindMatrices":6,"joints":[0],"name":"Armature"},{"inverseBindMatrices":12,"joints":[3],"name":"Armature.001"}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[-1,1,1],"min":[-3,-1,-1],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":24,"type":"VEC4"},{"bufferView":4,"componentType":5126,"count":24,"type":"VEC4"},{"bufferView":5,"componentType":5123,"count":36,"type":"SCALAR"},{"bufferView":6,"componentType":5126,"count":1,"type":"MAT4"},{"bufferView":7,"componentType":5126,"count":24,"max":[3,1,1],"min":[1,-1,-1],"type":"VEC3"},{"bufferView":8,"componentType":5126,"count":24,"type":"VEC3"},{"bufferView":9,"componentType":5126,"count":24,"type":"VEC2"},{"bufferView":10,"componentType":5123,"count":24,"type":"VEC4"},{"bufferView":11,"componentType":5126,"count":24,"type":"VEC4"},{"bufferView":12,"componentType":5126,"count":1,"type":"MAT4"},{"bufferView":13,"componentType":5126,"count":1,"max":[0.041666666666666664],"min":[0.041666666666666664],"type":"SCALAR"},{"bufferView":14,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":15,"componentType":5126,"count":1,"type":"VEC4"},{"bufferView":16,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":17,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":18,"componentType":5126,"count":1,"type":"VEC4"},{"bufferView":19,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":20,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":21,"componentType":5126,"count":1,"type":"VEC4"},{"bufferView":22,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":23,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":24,"componentType":5126,"count":1,"type":"VEC4"},{"bufferView":25,"componentType":5126,"count":1,"type":"VEC3"}],"bufferViews":[{"buffer":0,"byteLength":288,"byteOffset":0},{"buffer":0,"byteLength":288,"byteOffset":288},{"buffer":0,"byteLength":192,"byteOffset":576},{"buffer":0,"byteLength":192,"byteOffset":768},{"buffer":0,"byteLength":384,"byteOffset":960},{"buffer":0,"byteLength":72,"byteOffset":1344},{"buffer":0,"byteLength":64,"byteOffset":1416},{"buffer":0,"byteLength":288,"byteOffset":1480},{"buffer":0,"byteLength":288,"byteOffset":1768},{"buffer":0,"byteLength":192,"byteOffset":2056},{"buffer":0,"byteLength":192,"byteOffset":2248},{"buffer":0,"byteLength":384,"byteOffset":2440},{"buffer":0,"byteLength":64,"byteOffset":2824},{"buffer":0,"byteLength":4,"byteOffset":2888},{"buffer":0,"byteLength":12,"byteOffset":2892},{"buffer":0,"byteLength":16,"byteOffset":2904},{"buffer":0,"byteLength":12,"byteOffset":2920},{"buffer":0,"byteLength":12,"byteOffset":2932},{"buffer":0,"byteLength":16,"byteOffset":2944},{"buffer":0,"byteLength":12,"byteOffset":2960},{"buffer":0,"byteLength":12,"byteOffset":2972},{"buffer":0,"byteLength":16,"byteOffset":2984},{"buffer":0,"byteLength":12,"byteOffset":3000},{"buffer":0,"byteLength":12,"byteOffset":3012},{"buffer":0,"byteLength":16,"byteOffset":3024},{"buffer":0,"byteLength":12,"byteOffset":3040}],"buffers":[{"byteLength":3052,"uri":"data:application/octet-stream;base64,AACAvwAAgD8AAIA/AACAvwAAgD8AAIC/AABAwAAAgD8AAIC/AABAwAAAgD8AAIA/AABAwAAAgD8AAIA/AABAwAAAgL8AAIA/AACAvwAAgL8AAIA/AACAvwAAg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8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAACAAAAAAAAAAIAAAACAAACAPwAAAIAAAAAAAAAAAAAAAIAAAIA/AAAAgAAAAMAAAAAAAAAAgAAAgD+rqio9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAPwAAgD8AAIA/AACAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgD8AAIA/AACAPwAAgD8AAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAIA/AACAPwAAgD8AAIA/AAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAACAPwAAgD8AAIA/AACAPw=="}]}

TwoBoxes.gltf

{"asset":{"generator":"Khronos glTF Blender I/O v1.2.75","version":"2.0"},"scene":0,"scenes":[{"name":"Scene","nodes":[0,1]}],"nodes":[{"mesh":0,"name":"Cube","translation":[-2,0,0]},{"mesh":0,"name":"Cube.001","translation":[2,4,0]}],"animations":[{"channels":[{"sampler":0,"target":{"node":0,"path":"translation"}},{"sampler":1,"target":{"node":1,"path":"translation"}}],"name":"Down","samplers":[{"input":4,"interpolation":"STEP","output":5},{"input":4,"interpolation":"STEP","output":6}]},{"channels":[{"sampler":0,"target":{"node":0,"path":"translation"}},{"sampler":1,"target":{"node":1,"path":"translation"}}],"name":"Up","samplers":[{"input":4,"interpolation":"STEP","output":7},{"input":4,"interpolation":"STEP","output":8}]}],"meshes":[{"name":"Cube.001","primitives":[{"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3}]}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[1,1,1],"min":[-1,-1,-1],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":36,"type":"SCALAR"},{"bufferView":4,"componentType":5126,"count":1,"max":[0.041666666666666664],"min":[0.041666666666666664],"type":"SCALAR"},{"bufferView":5,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":6,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":7,"componentType":5126,"count":1,"type":"VEC3"},{"bufferView":8,"componentType":5126,"count":1,"type":"VEC3"}],"bufferViews":[{"buffer":0,"byteLength":288,"byteOffset":0},{"buffer":0,"byteLength":288,"byteOffset":288},{"buffer":0,"byteLength":192,"byteOffset":576},{"buffer":0,"byteLength":72,"byteOffset":768},{"buffer":0,"byteLength":4,"byteOffset":840},{"buffer":0,"byteLength":12,"byteOffset":844},{"buffer":0,"byteLength":12,"byteOffset":856},{"buffer":0,"byteLength":12,"byteOffset":868},{"buffer":0,"byteLength":12,"byteOffset":880}],"buffers":[{"byteLength":892,"uri":"data:application/octet-stream;base64,AACAvwAAgD8AAIC/AACAvwAAgL8AAIC/AACAvwAAgL8AAIA/AACAvwAAgD8AAIA/AACAPwAAgD8AAIC/AACAPwAAgL8AAIC/AACAvwAAgL8AAIC/AACAvwAAgD8AAIC/AACAPwAAgD8AAIA/AACAPwAAgL8AAIA/AACAPwAAgL8AAIC/AACAPwAAgD8AAIC/AACAvwAAgD8AAIA/AACAvwAAgL8AAIA/AACAPwAAgL8AAIA/AACAPwAAgD8AAIA/AACAvwAA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