<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Okay, this appears to be the best version so far, but the sphere doesn't change when the camera changes.  http://coderextreme.net/roses/x3dom/flowers5.xhtml<br><br>--- On <b>Tue, 6/26/12, John Carlson <i><john.carlson3@sbcglobal.net></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: John Carlson <john.carlson3@sbcglobal.net><br>Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection<br>To: x3d-public@web3d.org, x3dom-users@lists.sourceforge.net, "Yvonne Jung" <yvonne.jung@igd.fraunhofer.de><br>Date: Tuesday, June 26, 2012, 3:11 PM<br><br><div id="yiv518458650"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Okay, perhaps http://coderextreme.net/roses/x3dom/flowers6.xhtml will work if we somehow
 include uEyePosition?  How does one pull in the eye position into a shader?<br><br>Time to do some searching.<br><br>John<br><br>--- On <b>Tue, 6/26/12, John Carlson <i><john.carlson3@sbcglobal.net></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>From: John Carlson <john.carlson3@sbcglobal.net><br>Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection<br>To: x3d-public@web3d.org, x3dom-users@lists.sourceforge.net, "Yvonne Jung" <yvonne.jung@igd.fraunhofer.de><br>Date: Tuesday, June 26, 2012, 2:25 PM<br><br><div id="yiv518458650"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Here's where I've buggered it all
 up again, trying to get back to something similar to what the original scene did.  Help!  flowers5.xhtml should still work for comparison.<br><br>http://coderextreme.net/roses/x3dom/flowers6.xhtml<br><br>--- On <b>Tue, 6/26/12, John Carlson <i><john.carlson3@sbcglobal.net></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>From: John Carlson <john.carlson3@sbcglobal.net><br>Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection<br>To: x3d-public@web3d.org, x3dom-users@lists.sourceforge.net, "Yvonne Jung" <yvonne.jung@igd.fraunhofer.de><br>Date: Tuesday, June 26, 2012, 1:37 PM<br><br><div id="yiv518458650"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Here's the
 shader in the original scene, you can look down at the skull and see the change.   I will work on getting the right dispersion colors.<br><br>John<br><br>http://www.everyday3d.com/j3d/demo/004_Glass.html<br><br>--- On <b>Tue, 6/26/12, John Carlson <i><john.carlson3@sbcglobal.net></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>From: John Carlson <john.carlson3@sbcglobal.net><br>Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection<br>To: x3d-public@web3d.org, x3dom-users@lists.sourceforge.net, "Yvonne Jung" <yvonne.jung@igd.fraunhofer.de><br>Date: Tuesday, June 26, 2012, 1:31 PM<br><br><div id="yiv518458650"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Here's my current
 version; http://coderextreme.net/roses/x3dom/flowers5.xhtml<br><br>If there sphere is supposed to be like glass, why does it show dark if you look up at the sky?  If you use the indexed face set instead, you can see the steps through the surface no matter which way you look.<br><br>I will keep looking into this.<br><br>Thanks,<br><br>John<br><br>--- On <b>Tue, 6/26/12, Yvonne Jung <i><yvonne.jung@igd.fraunhofer.de></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><br>From: Yvonne Jung <yvonne.jung@igd.fraunhofer.de><br>Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection<br>To: x3d-public@web3d.org, x3dom-users@lists.sourceforge.net<br>Cc: john.carlson3@sbcglobal.net<br>Date: Tuesday, June 26, 2012, 2:39 AM<br><br><div id="yiv518458650">
  

    
  
  <div>
    Find attached a working version.<br>
    <br>
    <div class="yiv518458650moz-cite-prefix">Am 25.06.2012 20:32, schrieb John
      Carlson:<br>
    </div>
    <blockquote type="cite">
      <pre>Okay, I've progessed to this:

<a rel="nofollow" class="yiv518458650moz-txt-link-freetext" target="_blank" href="http://coderextreme.net/roses/x3dom/flowers4.xhtml">http://coderextreme.net/roses/x3dom/flowers4.xhtml</a>

Note that the shaders aren't working due to missing/hardcoded fields, I believe.  What mechanism do I use to send the matrices, etc to the fields?  I'm assuming I use routes or something like that.  Some assistance would be welcome (what nodes do I get the matrices from?).

Thanks,

John

</pre>
      <br>
      <fieldset class="yiv518458650mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
X3D-Public mailing list
<a rel="nofollow" class="yiv518458650moz-txt-link-abbreviated">X3D-Public@web3d.org</a>
<a rel="nofollow" class="yiv518458650moz-txt-link-freetext" target="_blank" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a>
</pre>
    </blockquote>
  </div>

</div></blockquote></td></tr></tbody></table></div><br>-----Inline Attachment Follows-----<br><br><div class="yiv518458650plainMail">_______________________________________________<br>X3D-Public mailing list<br><a rel="nofollow">X3D-Public@web3d.org</a><br><a rel="nofollow" target="_blank" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br></div></blockquote></td></tr></tbody></table></div><br>-----Inline Attachment Follows-----<br><br><div class="yiv518458650plainMail">_______________________________________________<br>X3D-Public mailing list<br><a rel="nofollow">X3D-Public@web3d.org</a><br><a rel="nofollow" target="_blank" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br></div></blockquote></td></tr></tbody></table></div><br>-----Inline Attachment Follows-----<br><br><div
 class="yiv518458650plainMail">_______________________________________________<br>X3D-Public mailing list<br><a rel="nofollow">X3D-Public@web3d.org</a><br><a rel="nofollow" target="_blank" href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br></div></blockquote></td></tr></tbody></table></div></blockquote></td></tr></table>