X_ITE X3D Browser

Have you seen this?

X_ITE v4.0.5

Have you seen this?

X3D Reference

XHTML DOM Integration

XHTML DOM Integration

XHTML DOM integration allows you to integrate 3D content seamlessly into your web page, with just a JavaScript file included the scene can be written directly into the XHTML or HTML markup.

Andreas Plesch wrote a nice plug-in for HTML DOM integration. This enables JavaScript authors to use X3D content as if it would be HTML. cobweb_dom links the X3D DOM nodes to the X3D scene graph and thereby allows for control of the X3D scene using regular DOM manipulation methods. The »cobweb_dom.js« script must be included after X_ITE, then HTML DOM integration is available.

Reference

The complete documentation can be found at https://github.com/andreasplesch/cobweb_dom.

Example

How use the Plug-In with X_ITE

Create an HTML or XHTML page and save it, additionally the »cobweb_dom.js« script must be included after the X_ITE script, then XHTML DOM integration is available. Now, X3D content can directly be written within the X3DCanvas element and regular DOM manipulation methods can be used to manipulate the scene graph. This gives X3D authors the ability to combine HTML with X3D. The »moveHouse« function in the example below demonstrates how to use regular DOM manipulation methods to control the behavior of the X3D content.