X3D

Google

X3D viewer in HTML

29. nov 2022

https://www.x3dom.org/

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

X3D examples

X3D Example

Source Use the mouse to rotate and zoom in/out the object.

Inline example

<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>

X3D inline example

X3D inline example

Multiway/Bavla

vlado/work/2m/mwn/x3d.txt · Last modified: 2023/01/16 02:58 by vlado
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki