[X3D-Public] Available: X3dToX3dom.xslt converter for X3DOM

JOHN COADY johncoady at shaw.ca
Mon Mar 26 09:32:07 PDT 2012


   You might want to consider configuring your web server to return compressed xhtml files when the user is requesting it. This will allow faster download of large X3D scenes. You can see the HTML request and response headers when requesting an x3dom xhtml file from your server.

Request URL:http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/GeometryPrimitiveNodes.xhtml
Request Method:GET
Status Code:200 OK
Request Headersview source
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.19 (KHTML, like Gecko) Chrome/18.0.1025.137 Safari/535.19
Response Headersview source
Date:Mon, 26 Mar 2012 16:09:21 GMT
Keep-Alive:timeout=5, max=100
Last-Modified:Mon, 26 Mar 2012 07:04:53 GMT

>From the request header you can see that the users computer is requesting compressed data.


in the form of gzip, deflate, or sdch. But your server is not sending back a compressed response. Here is some information on configuring a server for compression.


You can configure your server to compress by file type such as html, xhtml, x3d, wrl etc.

Another thing you might want to consider is setting up Cors to allow access of x3d content from external servers. This is from the X3DOM website.


X3DOM is restricted by the same origin policy. It can only display content that resides on the same domain as the xhtml file from which it was served. It cannot load an <inline url='www.otherserver.com/file.x3d'> file coming from a different domain unless that other server has configured CORS to allow it. The x3dom server sends back the following in their response header to allow their x3d content and x3d images to be retrieved by other domains.



----- Original Message -----
From: Don Brutzman <brutzman at nps.edu>
Date: Monday, March 26, 2012 4:50 am
Subject: [X3D-Public] Available:  X3dToX3dom.xslt converter for X3DOM
To: Johannes Behr <johannes.behr at igd.fraunhofer.de>, Yvonne Jung <yvonne.jung at igd.fraunhofer.de>
Cc: X3D Graphics public mailing list <x3d-public at web3d.org>

> I've written a stylesheet to convert .x3d scenes to X3DOM xhtml 
> encoding.Available at
> http://www.web3d.org/x3d/stylesheets/X3dToX3dom.xslt
> Initial conversions are available for inspection in the
> X3D for Web Authors examples archive for each scene.
> Original files in the XML encoding with .x3d extension
> are converted to X3DOM (HTML + X3D) with .xhtml extension.
> http://x3dgraphics.com/examples/X3dForWebAuthors/
> then pick a chapter
> then pick a scene
> see upper right corner for link for x3dom .xhtml
> Example:
> http://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-
> GeometryPrimitives/GeometryPrimitiveNodes.x3dhttp://x3dgraphics.com/examples/X3dForWebAuthors/Chapter02-GeometryPrimitives/GeometryPrimitiveNodes.xhtml
> I also experimented with (and included) the nice Zoom/Unzoom 
> functionalityprovided by the well-documented X3DOM tutorial 
> "Styling with CSS" at
> http://x3dom.org/docs/dev/tutorial/styling.html
> Thanks again to the Fraunhofer team for the stellar X3DOM work.
> Comments and improvements on this converter are welcome.
> all the best, Don
> -- 
> Don Brutzman  Naval Postgraduate School, Code 
> USW/Br       brutzman at nps.edu
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 
> USA   +1.831.656.2149
> X3D graphics, virtual worlds, navy robotics 
> http://faculty.nps.edu/brutzman
> _______________________________________________
> X3D-Public mailing list
> X3D-Public at web3d.org
> http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20120326/ff285ed4/attachment-0001.html>

More information about the X3D-Public mailing list