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.
gltf
,glb
,fbx
files. If not set, a cube will keep rotating and you can change the default view.alpha
exists, this option will not take effectlowp
,mediump
or highp
.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.
Post an issue if you need it.