| 开发者 | miris |
|---|---|
| 更新时间 | 2026年11月18日 11:13 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
[miris_scene aspect_ratio="16/9"] [miris_camera controls position="0 1.5 6"] [miris_stream uuid="ASSET_ID"] [miris_stream uuid="ASSET_ID" position="3 0 0" rotation="0 90deg 0" scale="1.5"] [miris_group position="-3 0 0"] [miris_stream uuid="ASSET_ID"] [/miris_group] [/miris_scene]
[miris_scene] takes aspect_ratio (default 16/9), or min_height (a CSS length such as 400px or 60vh), and class.[miris_camera] is optional. controls lets visitors move the camera. position and rotation set the starting view; leave them out to use the asset's default view. Without a [miris_camera], controls are on.[miris_stream] takes the asset's uuid, plus position, rotation and scale. scale can be one number for all three axes.[miris_group] takes position, rotation and scale. Groups can't contain other groups.deg, grad, rad or turn.
People who can edit a page see a list of any mistakes in its shortcodes, such as an invalid asset ID. Visitors only see the parts that are valid.
Requirements
Check that your site address starts with https (Settings → General), and that you're using a browser with WebGPU. Tools → Site Health reports whether the site is set up for scenes.
No. The API key stays on your server; Settings → Miris only shows its first six characters. Pages show the viewer key, which only allows streaming assets.
If the new API key's account can still use the stored viewer key, the plugin keeps it. Otherwise it creates a new "WordPress" viewer key on that account. The old key isn't revoked; you can revoke it in the Miris portal.
Yes. Use the shortcodes.
[miris_scene], [miris_camera], [miris_stream] and [miris_group] shortcodes.