[X3D-Public] help w/ X3DOM cube map and refraction/reflection
John Carlson
john.carlson3 at sbcglobal.net
Wed Jun 27 00:26:56 PDT 2012
Here's some versions of this, thanks everyone for their help
http://coderextreme.net/roses/x3dom/bubbles.xhtml (thanks Mick)
http://coderextreme.net/roses/x3dom/bubbles2.xhtml (my attempt--still buggy)
http://coderextreme.net/roses/x3dom/bubbles3.xhtml (thanks Mick)
http://coderextreme.net/roses/x3dom/bubbles4.xhtml (thanks Mick)
Thanks Mick, Yvonne and Bartek, for your shading expertise!
John
--- On Tue, 6/26/12, John Carlson <john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org, x3dom-users at lists.sourceforge.net, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de>
Date: Tuesday, June 26, 2012, 3:51 PM
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
--- On Tue, 6/26/12, John Carlson <john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org, x3dom-users at lists.sourceforge.net, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de>
Date: Tuesday, June 26, 2012, 3:11 PM
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?
Time to do some searching.
John
--- On Tue, 6/26/12, John Carlson <john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org, x3dom-users at lists.sourceforge.net, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de>
Date: Tuesday, June 26, 2012, 2:25 PM
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.
http://coderextreme.net/roses/x3dom/flowers6.xhtml
--- On Tue, 6/26/12, John Carlson <john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org, x3dom-users at lists.sourceforge.net, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de>
Date: Tuesday, June 26, 2012, 1:37 PM
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.
John
http://www.everyday3d.com/j3d/demo/004_Glass.html
--- On Tue, 6/26/12, John Carlson <john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org, x3dom-users at lists.sourceforge.net, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de>
Date: Tuesday, June 26, 2012, 1:31 PM
Here's my current
version; http://coderextreme.net/roses/x3dom/flowers5.xhtml
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.
I will keep looking into this.
Thanks,
John
--- On Tue, 6/26/12, Yvonne Jung <yvonne.jung at igd.fraunhofer.de> wrote:
From: Yvonne Jung <yvonne.jung at igd.fraunhofer.de>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org, x3dom-users at lists.sourceforge.net
Cc: john.carlson3 at sbcglobal.net
Date: Tuesday, June 26, 2012, 2:39 AM
Find attached a working version.
Am 25.06.2012 20:32, schrieb John
Carlson:
Okay, I've progessed to this:
http://coderextreme.net/roses/x3dom/flowers4.xhtml
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
_______________________________________________
X3D-Public mailing list
X3D-Public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-----Inline Attachment Follows-----
_______________________________________________
X3D-Public mailing list
X3D-Public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-----Inline Attachment Follows-----
_______________________________________________
X3D-Public mailing list
X3D-Public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-----Inline Attachment Follows-----
_______________________________________________
X3D-Public mailing list
X3D-Public at web3d.org
http://web3d.org/mailman/listinfo/x3d-public_web3d.org
-----Inline Attachment Follows-----
_______________________________________________
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/20120627/c19e5e8a/attachment.html>
More information about the X3D-Public
mailing list