x3dom_page
Convert X3D scene XML into a standalone HTML page that renders 3D content in browsers via X3DOM. Handles boilerplate, CDN includes, and element structure automatically.
Instructions
Wrap X3D scene content in a complete X3DOM HTML page.
Takes either a full X3D XML document or raw X3D scene nodes and produces
a standalone HTML page that renders the 3D scene in the browser using X3DOM.
X3DOM is a JavaScript framework that renders X3D content directly in web
browsers without plugins. This tool handles the HTML boilerplate, CDN includes,
and proper element structure.
Args:
x3d_content: Either a complete X3D XML document (the <Scene> content will
be extracted) or raw X3D node XML to place inside <scene>.
title: Page title shown in the browser tab and as a heading.
width: Width of the 3D viewport (CSS value, e.g., "800px", "100%").
height: Height of the 3D viewport (CSS value, e.g., "600px", "100vh").
show_stats: Show X3DOM rendering statistics overlay.
show_log: Show X3DOM log console overlay.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | No | X3DOM Scene | |
| width | No | 800px | |
| height | No | 600px | |
| show_log | No | ||
| show_stats | No | ||
| x3d_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |