Skip to content

Instantly share code, notes, and snippets.

@sressler
sressler / .block
Created January 29, 2019 16:26 — forked from d3indepth/.block
Spinning globe
license: gpl-3.0
height: 440
border: no
@sressler
sressler / index.html
Created July 20, 2012 17:26 — forked from ZJONSSON/index.html
Using D3 to create and animate X3D - with x3dom
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script>
<script type="text/javascript" src="http://x3dom.org/x3dom/example/x3dom.js"></script>
</head>
<body>
<h1>a modification of using D3 with X3D via X3DOM</h1>
<p>This version uses spheres instead of boxes, there are less spheres and they are colored with random colors. Of interest is the correct creation of the <shape><appearance><material> tag hierarchy which allows the color modifications of the spheres to work. Totally based on https://gist.github.com/1291667 from ZJONSSON (whoever that is ;-)</p>