Extension:3DAlloy/da

Description
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.

Supported file extensions
THREE.js model format:
 * .json
 * .3djson
 * .3dj * .three

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

OBJ file format:
 * .obj

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

Install
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.

Configure
All default values can be changed in your LocalSettings.php file:

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