Advertisement
Guest User

Untitled

a guest
Oct 20th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.33 KB | None | 0 0
  1. <!DOCTYPE html>
  2.  
  3. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5.     <meta charset="utf-8" />
  6.     <title>My first X3DOM page</title>
  7.     <script type='text/javascript' src='http://www.x3dom.org/download/x3dom.js'> </script>
  8.     <link rel='stylesheet' type='text/css' href='http://www.x3dom.org/download/x3dom.css'></link>
  9. </head>
  10. <body>
  11.     <h1>Hello, X3DOM!</h1>
  12.     <p>
  13.         This is my first html page with some 3d objects.
  14.     </p>
  15.     <x3d width='600px' height='400px'>
  16.         <scene>
  17.             <shape>
  18.                 <appearance>
  19.                     <material diffusecolor='1 0 0'></material>
  20.                 </appearance>
  21.                 <box></box>
  22.             </shape>
  23.             <transform translation='-3 0 0'>
  24.                 <shape>
  25.                     <appearance>
  26.                         <material diffusecolor='0 1 0'></material>
  27.                     </appearance>
  28.                     <cone></cone>
  29.                 </shape>
  30.             </transform>
  31.             <transform translation='3 0 0'>
  32.                 <shape>
  33.                     <appearance>
  34.                         <material diffusecolor='0 0 1'></material>
  35.                     </appearance>
  36.                     <sphere></sphere>
  37.                 </shape>
  38.             </transform>
  39.         </scene>
  40.     </x3d>
  41. </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement