view3dscene
Instant Player
29. nov 2022
The file X3DOMexample.html
has the content
<html> <head> <title>X3D examples</title> <script src="http://www.x3dom.org/release/x3dom.js"></script> <link rel="stylesheet" href="http://www.x3dom.org/release/x3dom.css"> </head> <body> <h1>X3D Example</h1> <a href="https://www.x3dom.org/">Source</a> <x3d width='500px' height='400px'> <scene> <shape> <appearance> <material diffuseColor='1 0 0'></material> </appearance> <box></box> </shape> </scene> </x3d> </body> </html>
Try it in a web browser or you can simply include it in a wiki page as I did here
<html> <head> <title>X3D inline example</title> <script src="http://www.x3dom.org/release/x3dom.js"></script> <link rel="stylesheet" href="http://www.x3dom.org/release/x3dom.css"> </head> <body> <h3>X3D inline example</h3> <a href="https://github.com/bavla/ibm3m/tree/master/multiway/X3D">Multiway/Bavla</a> <x3d width='500px' height='400px'> <scene> <inline url="https://raw.githubusercontent.com/bavla/ibm3m/master/multiway/X3D/testColor.x3d"> </inline> </scene> </x3d> </body> </html>