Extension:X3d

Summary
Use this extension to render x3d content directly in MediaWiki. All content between and tags is passed to a Java applet. No additional plugin is required on the client side.


 * Example
 * Download the source code.

x3d tags recognized

 * DEF / USE
 * Transfom: translation, rotation, position, orientation
 * Appearance.Material.diffuseColor
 * Shape: Sphere, Cylinder, Cone, Box, IndexedFaceSet

Note: The only parameters recognised for the X3D tag are the applet's width and height in pixels, the rest is ignored.

Installation
All the code is open sourced under the BSD licence.

You need to add a x3d folder under extensions with x3d.php and x3d.jar inside.

Then place  inside LocalSettings.php.

Resources

 * Source code Packages.tgz - a Java applet in open source (BSD license)
 * Applet binary x3d.jar
 * php extension x3d.php

Limitations

 * Ligth sources not supported
 * Texture mapping not supported
 * Transparency not supported
 * Interpolators not supported - maybe later

Acknowledgements

 * Uses the org.json Java classes to parse xml code for x3d. The org.json classes are also open-source.

Command line
The x3d.jar package can also display x3d files: java -jar x3d.jar foobar.x3d