Bones - Skeletal and Pose Animations for jPCT/jPCT-AE > Bones
Parsing SkinClipSequence
AGP:
Since EasyOgreExporter exports all clips into a single animation, I'm forced to write a parser. How, then, might I split a SkinClipSequence of one SkinClip into a SkinClipSequence of two or more?
raft:
get clips from sequence, create new sequences, add clips into new sequences
AGP:
No, because I need to say that a single clip is actually two or three. It's not about adding, it's about parsing or splitting.
raft:
ah okay. well, still the same method in other scale, get JointChannel's from SkinClip, create new clips, add channels into new clips
AGP:
OK, I got this far:
--- Code: --- private void addSequence() {
java.util.List<JointChannel> jointChannels = (java.util.List)sequence.getClip(0).iterator();
SkinClip clip = new SkinClip(sequence.getSkeleton(), jointChannels);
clip.setName("1");
java.util.ArrayList<SkinClip> clipList = new java.util.ArrayList<SkinClip>();
clipList.add(clip);
clip = new SkinClip(sequence.getSkeleton(), jointChannels);
clip.setName("2");
clipList.add(clip);
newSequence = new SkinClipSequence(clipList);
newSequence.addClip(clip);
}
--- End code ---
But I still haven't given the clips proper information. Is it as simple as passing each half of the JointChannels?
Navigation
[0] Message Index
[#] Next page
Go to full version