itisModelViewer

Embed

To embed the viewer in you website, just add an <iframe> and set src attribute to the /viewer/ folder, such as https://jiajiajiang.github.io/itisModelViewer/viewer/. (You’d better not embed it from GitHub Pages here cause options may be changed in the feature, please pull the viewer to your server.)

This viewer parses options from URL hash, the format is name1=value1&name1=value1. If no value followed, the name will become a switch.

All names and values will be URI decoded, so if there are some special signs in the name or value, do URI encode first.

Options

Example

https://jiajiajiang.github.io/itisModelViewer/viewer/#url=%2F%2Fio.luojia.me%2Fmodel%2F2021%2F0120%2FIRCameraShell.glb&gridHelper&meshDebug&campos=-1.2eao01gol6y%2C1.15w7zgww1yy%2C1.ygqpqruzf9%2C-0.cuylbsfvj1%2C-0.cr4do7btrm%2C-0.9fk4eco1w7s

This URL turns on gridHelper and meshDebug, and set camera to a position.

API

Post an issue if you need it.