# gloss_mc

> Gloss-MC is the thin wrapper on top of [Gloss] that is used at Meshcapade to render and manipulate SMPL body models.

Latest version **0.1.0** (published 2023-11-13) · 0 weekly downloads

## Install

```sh
npm install gloss_mc
pnpm add gloss_mc
yarn add gloss_mc
bun add gloss_mc
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-11-13 |
| First published | 2023-11-13 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | radualexandru |

## Links

- npm: https://www.npmjs.com/package/gloss_mc
- npm.io page: https://npm.io/package/gloss_mc

## Recent versions

- 0.1.0 (latest) — 2023-11-13

## 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. 
```sh
$ 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 
```sh
$ sudo apt install nodejs npm 
```


## Install Web
```sh
$ 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`

<!-- * Start example in **parent** directory with `python3 -m http.server` and go to `http://localhost:8000/visualizer/` -->
Got to `http://localhost:3000/` or whatever port is reported by `npm run start`

<!-- ## Development

1. cargo install cargo-watch
2. run `npm run start` in one shell (`examples/web/visualizer`) to start the TS build and server which watches for file changes
3. run `npm run dev` in another shell (`examples/web/visualizer`) to watch the folder `visualizer` and rebuild the rust/Cargo code, which then gets loaded/served by the TS server in the other shell. -->


[Gloss]: <https://gitlab.com/meshcapade/graphics/gloss>
[SMPL-RS]: <https://gitlab.com/meshcapade/graphics/smpl_rs_suite>

---
_Source: https://npm.io/package/gloss_mc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
