Chris Pollett > Students >

    ( Print View )












Joom's CS298 X3D to SVG translator

This is a demo of the IE version of my X3D-to-SVG translator. To see anything in IE you need to have the Adobe-SVG Plug-in. the demo shows all the primitive X3D shapes: a box, a cone, a cylinder, and a sphere and demonstrates the translator's shading ability. My translator also does simple clipping. Given the way the 3D is drawn, however, it is still quite slow. The demo also has buttons for the user to change perspectives. If you would like to use the translator yourself you need to have the following files all in one directory: (1) Your X3D document. For this example, we are using the file allPrimitives.xml. (2) The displaying html and javascript file demoie.html. You will need to edit the line x3dDoc.load(...) to load your X3D document. You will also probably want to edit the width and height of your SVG canvas. (3) The dtd for our restricted form of X3D: x3dtosvg.dtd. Use this DTD when you create your own X3D documents. Just copy the doctype line from our allPrimitives.xml file.

An X3D image of some of the primitive shapes I support.