Extension:3DAlloy/zh

描述
MediaWiki extension which allows to add 3D models viewer to site pages. Based on THREE.js, renders image with CanvasRenderer. There you can see example 3D model page.

支援的檔案扩展
THREE.js模型格式：
 * .json
 * .3djson
 * .3dj * .three

THREE.js model buffer geometry format:
 * .buff
 * .buffjson

OBJ文件格式：
 * .obj

STL (binary) file format:
 * .stl
 * .stlb

安装
Download the latest snapshot and extract it to your extensions directory. Then include it in your LocalSettings.php file as in the following example:

Then add these lines to the end of your MediaWiki includes/mime.types file:

application/json json 3djson 3dj three buff buffjson application/obj obj application/stl stl stlb

And then to includes/mime.info file:

application/json [TEXT] application/obj      [TEXT] application/stl      [TEXT]

As Parser function
...

Instead of uploaded filename you can use an url for file located in external site.

As Parser tag
&lt;3d file=&quot;Model.json&quot; width=&quot;&quot; height=&quot;&quot; ... &gt;&lt;/3d&gt; or &lt;3d width=&quot;&quot; height=&quot;&quot; ... &gt;Model.json&lt;/3d&gt;

You also can use url instead of short filename.

Parameters
Width and height can be set to 0 value, so size of viewer will be set according to user screen dimensions.

配置
All default values can be changed in your file:

Controls and hotkeys
Hotkeys automatically disables while you edit or submit wiki page.