Extension:3DAlloy/fr

Description
Une extension MediaWiki permettant d'ajouter un visualisateur de modèles 3D aux pages. Basé sur THREE.js, renvoie les images avec CanvasRenderer. Vous pouvez voir un exemple de modèle 3D sur une page ici.

Supported file extensions
Formats de modèle THREE.js :
 * .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 file:

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