D3 in 3D (using X3Dom.js)

1,979 views
Skip to first unread message

Ziggy Jonsson

unread,
Oct 16, 2011, 9:15:58 PM10/16/11
to d3-js
Going 3D with D3 looks pretty straightforward, using x3dom.js (http://
www.x3dom.org/) for the webGL rendering and following X3D
specifications within D3.

Here is an example (so far only works in chrome for me):
http://bl.ocks.org/1291667

For an even quicker/shorter one:
http://bl.ocks.org/1291672

Help for screen navigation with mouse and/or keyboard can be found
here
http://x3dom.org/docs/latest/navigation.html

I'm not sure if I am following the namespace definition correctly, but
the initial tests look pretty cool!

Z

Mike Bostock

unread,
Oct 16, 2011, 9:39:05 PM10/16/11
to d3...@googlegroups.com
Wow! I hadn't heard of X3DOM before. This is fantastic!

Mike

Chris Viau

unread,
Oct 16, 2011, 10:23:37 PM10/16/11
to d3...@googlegroups.com
Great! VRML seems so far away that I forgot X3D was still an option. Manipulating Blender 3D models in D3 is just one step away, thanks to your example.

Jon Frost

unread,
Oct 16, 2011, 10:40:54 PM10/16/11
to d3...@googlegroups.com
Nice work! Yes, Chrome seems to be the only one. The blocks are quite
grainy when zooming so we should play with that some more.

Ian Johnson

unread,
Oct 17, 2011, 12:16:58 PM10/17/11
to d3...@googlegroups.com
Awesome! Thanks for sharing!


On Sun, Oct 16, 2011 at 7:40 PM, Jon Frost <jonfro...@gmail.com> wrote:
Nice work!  Yes, Chrome seems to be the only one.  The blocks are quite grainy when zooming so we should play with that some more.




--
Ian Johnson

Harry Voorhees

unread,
Mar 4, 2013, 8:49:38 PM3/4/13
to d3...@googlegroups.com
Here is another example of d3 and x3dom used to implement a dynamic 3d bar plot. This should work on any browser that supports x3dom without the need for a plugin.
http://bl.ocks.org/camio/5087116

John Carlson

unread,
Feb 18, 2015, 9:20:42 PM2/18/15
to d3...@googlegroups.com
I have X3D XML -> JSON -> D3 append/attr api (generated, not loaded on the fly, so you can modify it.) working except for text nodes. My first test case was to load and display an X3D model in X3DOM. Question, what happens if D3 tries to load a script node? Have I created executable JSON? I want the approach to be generic enough to work with most XML namespaces, including XHTML and SVG. See: https://github.com/coderextreme/X3DJSONTOD3/
Reply all
Reply to author
Forward
0 new messages