npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@fern-solutions/three-meta-avatar-gltf-plugins

v0.2.0

Published

GLTFLoader plugins for loading Meta Avatars in Three.js projects

Downloads

6

Readme

GLTFLoader plugins for loading Meta Avatars

npm version npm version github twitter ko-fi

This project is in an experimental state

Usage

See example/index.html for an example of how to use this.

There are various versions of Meta Avatars. These plugins focus on the Avatar2 system, which entails two distinct versions. Those prior to the Connect 2024 update and those after. These will be referred to as v24 and v29 respectively, matching the Meta Avatars SDK versions.

V29

The avatar .glb files contain multiple versions all with names matching LOD0[0-3]_combined(_1stPerson)?_geometry. The meaning of each segment: | Segment | Meaning | | -- | -- | | LOD0[0-3] | Lod level, 00 being the highest quality and 03 the lowest | | (_1stPerson)? | Whether or not the model is for 1st person view or not. First person model has no head and no legs, but is otherwise identical to its third person counterpart |

For example: LOD00_combined_geometry will be the highest detail (LOD00), third person (with legs and head) model.

V24

The avatar .glb files contain multiple versions all with names matching S0_L[0-4]_M[01]_V[01]_optimized_geom. The meaning of each segment: | Segment | Meaning | | -- | -- | | S0 | Unknown | | L[0-4] | Lod level, 0 being the highest and 4 the lowest | | M[01] | Manifestation, 0 being full body and 1 being upper body only | | V[01] | Viewer type, 0 being first person (no head geometry) and 1 being third person |

For example: S0_L0_M0_V1_optimized_geom will be the highest detail (L0), full body (M0), with head (V1).

Sourcing avatar files

The Meta Avatars SDK comes bundled with sample avatars that can be used. The latest v29 version comes bundled with 6 avatars. The older v24 version has 32 sample avatars.

If you'd rather want to use your own avatar, connect your Quest 2 and search for a .glb file in either one of these directories:

  • Quest 2/Internal shared storage/Android/data/com.oculus.shellenv/files/Oculus/Avatars2/
  • Quest 2/Internal shared storage/Android/data/com.oculus.avatar2/cache/Oculus/Avatars2/

There might be multiple files which are either older versions of your avatar or cached avatars of others. When in doubt simply make a small tweak to your avatar and save it. This should result in a new file that's easy to filter out based on the modified date.

[!NOTE]
The above method of extracting your own avatars does not seem to work for the V29 avatars. If anyone knows of an easy way, feel free to open a PR amending this readme.

Limitations

  • It assumes that the KTX2 texture is of a specific format and that the browser supports this natively (no transcoding is done)
  • The tangents aren't dequantized yet.
  • The Meta Avatars have special extensions for the hair and skin material, these are not yet supported.
  • Textures for avatars intended for the Rift can't be loaded
  • [v24 only] Meta Avatars appear to have two color vertex attributes, neither seem to provide correct output when taken as-is, so vertex colors are disabled.