Qhimm.com Forums

Final Fantasy Forums => Tools => FF7 Tools => Topic started by: picklejar on 2019-03-25 17:15:12

Title: [PC] Translate graphics models to glTF - Kujata (v1.0)
Post by: picklejar on 2019-03-25 17:15:12
Kujata is a suite of tools that translates FF7 assets to web-friendly formats like JSON and glTF, and also provides metadata and statistics.

The Kujata webapp is a website that illustrates examples of what could be done with the data.

Browse every field model in the game:
(https://raw.githubusercontent.com/picklejar76/kujata-webapp/master/screenshots/field-models.png) (https://picklejar76.github.io/kujata-webapp/stage-viewer)

Browse every field map in the game:
(https://raw.githubusercontent.com/picklejar76/kujata-webapp/master/screenshots/field-scenes.png) (https://picklejar76.github.io/kujata-webapp/field-scenes)

See field map details, including links to other maps, field models used in the map, scripts, etc.:
(https://raw.githubusercontent.com/picklejar76/kujata-webapp/master/screenshots/field-scene-details.png) (https://picklejar76.github.io/kujata-webapp/scene-details/chrin_3a)

See op-code statistics, sort and filter by specific fields, and export to CSV.
Example: See every place $GameMoment is set:
(https://raw.githubusercontent.com/picklejar76/kujata-webapp/master/screenshots/op-code-usages.png) (https://picklejar76.github.io/kujata-webapp/field-op-code-details/81)


Edit: Made the screenshots above into links
[/list]
Title: Re: [PC] Translate graphics models to glTF - Kujata (v1.0)
Post by: cmh175 on 2019-04-04 17:13:46
This sounds awesome, I’m very interested in it’s potential. I’ll be able to try it out later this weekend. What’s currently possible with this? Above all, being able to import models without cutting them up and converting them to P files would be great, and would help improve detail and overall quality of mods. Does this work with animations? If we could export animations to Maya and import them back that would probably be one of the biggest improvements to modding the game.
Title: Re: [PC] Translate graphics models to glTF - Kujata (v1.0)
Post by: picklejar on 2019-04-27 23:22:06
cmh175:

Q: "What's currently possible with this? ... Does this work with animations?"

A: It can translate FF7 field models to glTF, including animations, and including references to textures (which must be translated using a separate tool).

Example of translated output data: https://github.com/picklejar76/kujata-data/tree/master/data/field/char.lgp (https://github.com/picklejar76/kujata-data/tree/master/data/field/char.lgp)

Example of translated output visualized on a website: https://picklejar76.github.io/kujata-webapp/stage-viewer (https://picklejar76.github.io/kujata-webapp/stage-viewer)

The examples above do not include animations yet. But the tool can translate them. I have tested the translated glTF in a web browser using THREE.js, including animations, so the translation is pretty decent.

By the way, it uses Ifalna database (bundled with Kimera) to "guess" the default standing animation, and can optionally use the Ifalna database to allow you to include every single animation that is used by that model in the game, although that obviously makes the translated data huge.

Translating in the reverse direction (glTF back to FF7) is not yet supported, so it's not a complete modding solution yet, but I guess you could say it's about halfway there, and it already provides a lot of value.
Title: Re: [PC] Translate graphics models to glTF - Kujata (v1.0)
Post by: picklejar on 2019-04-27 23:30:22
BTW, I imagine that any modder working on models and animations would like to have a nice reference website that provides things like:

"Given a field model, show me a list of all field maps (flevels) and field scripts where the model is used."

"Given a field model animation, show me a list of all field maps (flevels) and field scripts where the animation is used."

I plan to update the Kujata website soon with some of this functionality.
Title: Re: [PC] Translate graphics models to glTF - Kujata (v1.0)
Post by: picklejar on 2019-05-17 02:41:16
Finally decided to start looking at battle models and animations this week, and already made a lot of progress. Here's a beta online viewer:

https://picklejar76.github.io/kujata-webapp/battle-model-details/rtaa
Title: Re: [PC] Translate graphics models to glTF - Kujata (v1.0)
Post by: psiphre on 2019-06-17 16:38:57
Hey, i am interested in those battle models.  is there any way i could help or contribute to your project?