public static void padJointTracks(List<TransformTrack> tracks, Joint staticJoint) { Joint j = staticJoint; if (j != null) { // joint has no track , we create one with the default pose float[] times = new float[]{0}; Vector3f[] translations = new Vector3f[]{j.getLocalTranslation()}; Quaternion[] rotations = new Quaternion[]{j.getLocalRotation()}; Vector3f[] scales = new Vector3f[]{j.getLocalScale()}; TransformTrack track = new TransformTrack(j, times, translations, rotations, scales); tracks.add(track); } }
String jointName = SAXUtil.parseString(attribs.getValue("bone")); joint = nameToJoint.get(jointName); track = new TransformTrack(); track.setTarget(joint); } else if (qName.equals("boneparent")) {
spatials.add(s); if (trackData.rotations != null || trackData.translations != null || trackData.scales != null) { TransformTrack track = new TransformTrack(s, trackData.times, trackData.translations, trackData.rotations, trackData.scales); aTracks.add(track); TransformTrack track = new TransformTrack(jw.joint, trackData.times, trackData.translations, trackData.rotations, trackData.scales); aTracks.add(track); Quaternion[] rotations = new Quaternion[]{joint.getLocalRotation()}; Vector3f[] scales = new Vector3f[]{joint.getLocalScale()}; TransformTrack track = new TransformTrack(joint, times, translations, rotations, scales); aTracks.add(track);
TransformTrack t = new TransformTrack(joint, times, translations, rotations, scales); return t;
}; TransformTrack track1 = new TransformTrack(j1, times, null, rotations, scales); TransformTrack track2 = new TransformTrack(j2, times, null, rotations, null);
}; TransformTrack track1 = new TransformTrack(j1, times, null, rotations, scales); TransformTrack track2 = new TransformTrack(j2, times, null, rotations, null);