gloss_mc
v0.1.0
Published
Gloss-MC is the thin wrapper on top of [Gloss] that is used at Meshcapade to render and manipulate SMPL body models.
Downloads
1
Readme
Gloss Meshcapade
Gloss-MC is the thin wrapper on top of Gloss that is used at Meshcapade to render and manipulate SMPL body models.
Dependencies
The main dependencies are Gloss and SMPL-RS which you can clone and install by following the instructions in their repos.
After Gloss and SMPL-RS are cloned, you can clone the current repo in the same root path.
$ git clone --recursive https://gitlab.com/meshcapade/graphics/gloss_mc.git
Therefore the file structure should be something like:
├── my_code
│ ├── gloss
│ ├── smpl_rs_suite
│ ├── gloss_mc
Further dependencies can be installed with
$ sudo apt install nodejs npm
Install Web
$ cd gloss_mc
$ wasm-pack build --target web
$ npm i
If that doesn't work, try
RUSTFLAGS=--cfg=web_sys_unstable_apis wasm-pack build --target web
Finally we create a link from gloss_mc/src/pkg to gloss_mc/pkg: pushd src ; ln -sf ../pkg/ . ; popd
Run
Run npm run start
.
If you get any errors about something else running on the same port you can use npx kill-port 3000
Got to http://localhost:3000/
or whatever port is reported by npm run start