How to Fill SkinData

Started by AGP, June 16, 2016, 06:44:26 AM

Previous topic - Next topic

raft

we are talking about Bones' SkinData class, right?

when you import any skeletal animation into Bones, SkinData is automatically generated for you. you can access it via Animated3D.getSkinData()

AGP

I'd still need the very first one, for the model itself, right? We're still talking about my JSON-serialized format, you see.

raft

Quote from: AGP on January 04, 2017, 08:03:12 PM
I'd still need the very first one, for the model itself, right?
sorry?
Quote from: AGP on January 04, 2017, 08:03:12 PM
We're still talking about my JSON-serialized format, you see.
in that case you shouldnt care about vertex count or unique vertex count in jPCT. your exporter from 3dsMax and importer to jPCT should agree on that.

AGP

Our skeleton order, on a regular Biped skeleton, goes: index 0 for the skeleton itself, 1 for "footsteps", 2 for pelvis, from which it then moves to the head before moving to the clavicles and arms. Is there any particular order (since what is basically a tree has to be converted into an ordered array) needed?

raft

as you intend to write the importer part too, it doesnt actually matter.

but Bones' internal logic requires joints in a skeleton are ordered such that a joint's parent joint always comes before the joint itself. this should be handled either at exporter or importer.

AGP

Yeah, we did that on both ends for performance. Still, we get joint issues. I'll post more on Tuesday. Thanks for the quick response.