Skip to content

Instantly share code, notes, and snippets.

@pelly
Last active December 22, 2015 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pelly/6539709 to your computer and use it in GitHub Desktop.
Save pelly/6539709 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/d3/3.2.2/d3.v3.min.js"></script>
<script type="text/javascript" src="http://x3dom.org/x3dom/example/x3dom.js"></script>
</head>
<body>
</body>
<script type="text/javascript">
d3.ns.prefix.x3da="http://www.web3d.org/specifications/x3d-namespace"
x3d = d3.select("body")
.append("x3d:x3d")
.attr("height","500px")
.attr("width","100%");
scene = x3d.append("x3d:scene")
box= scene.append("x3d:shape")
.append("x3d:box")
</SCRIPT>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment