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

Would a Mozilla Hubs asset pack be feasible? #1

Open
Utopiah opened this issue Jan 24, 2024 · 2 comments
Open

Would a Mozilla Hubs asset pack be feasible? #1

Utopiah opened this issue Jan 24, 2024 · 2 comments

Comments

@Utopiah
Copy link

Utopiah commented Jan 24, 2024

I'm thinking of https://hubs.mozilla.com/docs/hubs-cloud-asset-packs.html which says

A pack is just a simple text file with a .pack file extension that is a list of URLs, on per line, pointing to avatar or scene URLs on any existing hub on the web.

I imagine serving directing through Github as raw file might not be feasible though and more importantly that the rigging might not be compatible.

@vincentfretin
Copy link
Member

We could write a script that reads the json file and generate a pack file, how to create the jsdelivr url is explained in the README in this repo. That's the easy part.
Hubs avatars system doesn't use the same skeleton so you will have no animations on the avatar for sure without a custom modification of the hubs client.
I just tested uploading a glb in a hubs instance, hubs didn't configure the meshopt decoder, so you would need a change for that in hubs client as well.

@vincentfretin
Copy link
Member

vincentfretin commented Jan 24, 2024

The hubs ik-controller component is using LeftEye, RightEye, Head, Neck, LeftHand, RightHand, Spine bone names, that's actually the same name as in the mixamo skeleton, so some movement of the avatar may work, but probably will be weird.
For a more heavy customization that play specific animation inside the glb, you can look at Hubs-Foundation/hubs#6428 but in my glitch example we use external fbx animation files, not animation embedded in the avatar glb.
For a bitECS implementation I have no idea.

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

2 participants