<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv605212632"><table id="yiv605212632bodyDrftID" class="yiv605212632" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td id="yiv605212632drftMsgContent" style="font:inherit;font-family:arial;font-size:10pt;">Can someone help me get this X3DOM code into a cube map and using refraction/reflection?  Thanks!<br><br>http://coderextreme.net/roses/x3dom/flowers.xhtml<br><br>I tried downloading X3DOM code from the examples, but apparently, I need to download a zip or something, or I need to have it on a remote site.  If possible, I'd like to use a local site, but that's not a requirement.  If it's easy enough to use the X3DOM code on a remote site and include my flower in it, let me know.  I'm also not quite sure what the licensing is for X3DOM, so I have used the remote code references in my code--that may be an issue as
 well.<br><br>Here's the X3DOM code I've been trying to use locally:<br><br>http://www.x3dom.org/x3dom/example/x3dom_composedShader.xhtml<br><br>I don't mind
 collaborating, and you can have non-commercial use of my code for tutorials and demos.<br><br>I currently use this code in sagemath to display my equations and "animate" them by hand:<br><br>x,y=var('x,y')<br>@interact<br>def _(A=(1,10,1),B=(1,10,1),C=(1,10,1),D=(1,10,1)):    <br>    show(spherical_plot3d(A+B*cos(C*x)*cos(D*y),(x,0,2*pi),(y,0,pi),rgbcolor=(1,.1,.1)), viewer='tachyon')<br><br>It would be cool to get this kind of solution with the cubemap and reflection/refraction into a math package.  Is there some option in sagemath to get a cube map and reflection/refraction?<br><br>If you're way ahead of me and know this sort of thing has already been done, please point me to an example...thanks!<br><br>John<br></td></tr></tbody></table></div></td></tr></table>