Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New model format #212

Open
vuolen opened this issue May 2, 2015 · 4 comments
Open

New model format #212

vuolen opened this issue May 2, 2015 · 4 comments

Comments

@vuolen
Copy link
Contributor

vuolen commented May 2, 2015

I suggest having a format that either refers to or packs in itself some KV6 models and has metadata for joints. For example the point (1,1,1) in arm.kv6 is always connected to point (3,2,1) in body.kv6. In lua you could perhaps call joint.rotate(x,y,z)

@10se1ucgo
Copy link
Contributor

I was thinking about something along the lines of this

├───player folder (for organization's sake)
│ ├───player.head.kv6
│ ├───player.torso.kv6
│ ├───player.arms.kv6
│ ├───player.legs.kv6
│ ├───player.joints.json

@vuolen
Copy link
Contributor Author

vuolen commented May 2, 2015

I wrote my explanation pretty badly. Ill give an example of a possible format:
Header, version, magic numbers etc
numberOfModels
Model[numberOfModels] models
Joint info that refers to models

The Model structure could either be a path/other reference to a kv6 or the kv6 itself.

@rakiru
Copy link
Collaborator

rakiru commented May 2, 2015

Related to #121

I've been looking at how other formats handle their animation data alongside models, and most things seem to use their own format (correct me if I'm wrong). Using our own binary (or JSON-based) format (and preferably some tool to edit it) alongside this packed format could be good (assuming we don't want to animate everything in code). I definitely agree with using KV6 internally, as that cuts down on unnecessary work, and a simple python script could be made to pack/unpack a directory into this format.

Some features I'd like, not sure if necessary:

  • Named bones
  • Proper bone hierarchy with attachment points and such

@vuolen
Copy link
Contributor Author

vuolen commented May 2, 2015

Im thinking for development having 10se1ucgo's setup of a folder, models and json of joints. Then a tool could take a folder and turn it into a packed binary distribution format that Iceball uses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants