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

Debugging VRM support #1

Open
madjin opened this issue Dec 30, 2023 · 0 comments
Open

Debugging VRM support #1

madjin opened this issue Dec 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@madjin
Copy link
Owner

madjin commented Dec 30, 2023

I have been mostly following ifire's changes to add VRM support: zeux#199

Steps to reproduce and test

git clone -b vrm-opt git@github.com:madjin/meshoptimizer.git
cd meshoptimizer
git clone -b gltfpack https://github.com/zeux/basis_universal
cmake . -DMESHOPT_BUILD_GLTFPACK=ON -DMESHOPT_BASISU_PATH=basis_universal -DCMAKE_BUILD_TYPE=Release
cmake --build . --target gltfpack --config Release

after compiling gltfpack, can run it on the sample VRM like so:
./gltfpack -i 225.vrm -kn -km -ke -tc -cc -si 0.5 -o 225_ktx_1.vrm

then to debug, the files I changed are these:

gltf/main.cpp
gltf/gltfpack.h
gltf/gltfpack.cpp

Test with

Results

Everything looks good based on the various validators I tested, not sure what the issue is.
image
image
image

Errors

Error in https://hyperfy.io/
image

Error in https://gltf.report/
image

Error in gltf sample viewer: https://gltf-viewer.donmccurdy.com/
image

Intended Behavior

The exported VRM working in hyperfy / platforms that support ktx + meshopt (upstreet perhaps might too)

@madjin madjin added the bug Something isn't working label Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant