Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta charset="utf-8" />
- <title>My first X3DOM page</title>
- <script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'> </script>
- <link rel='stylesheet' type='text/css' href='http://www.x3dom.org/download/x3dom.css'></link>
- </head>
- <body>
- <h1>Hello, X3DOM!</h1>
- <p>
- This is my first html page with some 3d objects.
- </p>
- <x3d width='600px' height='400px'>
- <scene>
- <shape>
- <appearance>
- <material diffusecolor='1 0 0'></material>
- </appearance>
- <box></box>
- </shape>
- <transform translation='-3 0 0'>
- <shape>
- <appearance>
- <material diffusecolor='0 1 0'></material>
- </appearance>
- <cone></cone>
- </shape>
- </transform>
- <transform translation='3 0 0'>
- <shape>
- <appearance>
- <material diffusecolor='0 0 1'></material>
- </appearance>
- <sphere></sphere>
- </shape>
- </transform>
- </scene>
- </x3d>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement