<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 HTML \0417\043D\0430\043A";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTML
        {mso-style-name:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 HTML \0417\043D\0430\043A";
        mso-style-priority:99;
        mso-style-link:"\0421\0442\0430\043D\0434\0430\0440\0442\043D\044B\0439 HTML";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Arial","sans-serif";
        color:navy;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:2.0cm 42.5pt 2.0cm 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">Hello John and all,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">A bit off-topic, a newbie question. I cannot view the X3DOM examples you are posting; can you please advise me what should I do?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">I am on Windows 7, the latest Flash Player 11 is installed. The “Browser support” page:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><a href="http://www.x3dom.org/?page_id=9">http://www.x3dom.org/?page_id=9</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">says “Firefox supports WebGL natively”.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">Today I installed the latest version of Firefox, but your examples don’t work. For instance</span><span lang="RU" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><a href="http://coderextreme.net/roses/x3dom/bubbles.xhtml">http://coderextreme.net/roses/x3dom/bubbles.xhtml</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">shows a “Bubbles” title and nothing else, blank page below.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><a href="http://www.everyday3d.com/j3d/demo/004_Glass.html">http://www.everyday3d.com/j3d/demo/004_Glass.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">displays an error message “Oh no! Your browser or GPU does not seem to like WebGL. Click here to learn more”. The auto-detection page indeed says that the browser
 doesn’t support WebGL. (Is WebGL the same as X3DOM?)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">On the other hand, the standard examples work for me:</span><span lang="RU" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="RU" style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><a href="http://x3dom.org/x3dom/example/x3dom_helloWorld.html">http://x3dom.org/x3dom/example/x3dom_helloWorld.html</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">works perfectly both in Firefox and IE.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">When I downloaded the standard example to my computer, it did not work. Recently I needed to test a scene in X3DOM, and the only way to launch my own file was to
 set up a “web server” which fetched files from my local folder. Seems like it works only in a HTTP connection?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">Also, I noticed that the standard examples contain a .swf file which is crucial for them to work. What is actually running/rendering X3DOM: the browser itself or
 a script in the .swf file? What should I do for my Firefox to support X3DOM natively as it should?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy">                                                                                          Sergey Bederov<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:navy"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> x3d-public-bounces@web3d.org [mailto:x3d-public-bounces@web3d.org]
<b>On Behalf Of </b>John Carlson<br>
<b>Sent:</b> Wednesday, June 27, 2012 11:27 AM<br>
<b>To:</b> x3d-public@web3d.org; x3dom-users@lists.sourceforge.net; Yvonne Jung<br>
<b>Subject:</b> Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal">Here's some versions of this, thanks everyone for their help<br>
<br>
http://coderextreme.net/roses/x3dom/bubbles.xhtml (thanks Mick)<br>
http://coderextreme.net/roses/x3dom/bubbles2.xhtml (my attempt--still buggy)<br>
http://coderextreme.net/roses/x3dom/bubbles3.xhtml (thanks Mick)<br>
http://coderextreme.net/roses/x3dom/bubbles4.xhtml (thanks Mick)<br>
Thanks Mick, Yvonne and Bartek, for your shading expertise!<br>
<br>
John<br>
<br>
--- On <b>Tue, 6/26/12, John Carlson <i><john.carlson3@sbcglobal.net></i></b> wrote:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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:51 PM<o:p></o:p></p>
<div id="yiv1114897372">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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<o:p></o:p></p>
<div id="yiv1114897372">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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<o:p></o:p></p>
<div id="yiv1114897372">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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<o:p></o:p></p>
<div id="yiv1114897372">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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<o:p></o:p></p>
<div id="yiv1114897372">
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal">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:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><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<o:p></o:p></p>
<div id="yiv1114897372">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Find attached a working version.<o:p></o:p></p>
<div>
<p class="MsoNormal">Am 25.06.2012 20:32, schrieb John Carlson:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>Okay, I've progessed to this:<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><a href="http://coderextreme.net/roses/x3dom/flowers4.xhtml" target="_blank">http://coderextreme.net/roses/x3dom/flowers4.xhtml</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>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?).<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>Thanks,<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>John<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>X3D-Public mailing list<o:p></o:p></pre>
<pre>X3D-Public@web3d.org<o:p></o:p></pre>
<pre><a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><o:p></o:p></pre>
</blockquote>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
-----Inline Attachment Follows-----<o:p></o:p></p>
<div>
<p class="MsoNormal">_______________________________________________<br>
X3D-Public mailing list<br>
X3D-Public@web3d.org<br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
-----Inline Attachment Follows-----<o:p></o:p></p>
<div>
<p class="MsoNormal">_______________________________________________<br>
X3D-Public mailing list<br>
X3D-Public@web3d.org<br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
-----Inline Attachment Follows-----<o:p></o:p></p>
<div>
<p class="MsoNormal">_______________________________________________<br>
X3D-Public mailing list<br>
X3D-Public@web3d.org<br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
-----Inline Attachment Follows-----<o:p></o:p></p>
<div>
<p class="MsoNormal">_______________________________________________<br>
X3D-Public mailing list<br>
<a href="/mc/compose?to=X3D-Public@web3d.org">X3D-Public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><o:p></o:p></p>
</div>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
</div>
</div>
</body>
</html>