[X3D-Public] How to get X3DOM working?
Bederov, Sergey
bederov at cortona3d.com
Wed Jun 27 05:25:58 PDT 2012
Hi Yvonne,
Thanks for the explanation about the local .swf file. Strangely, they think that downloading the file from the Internet is "more secure" than from the local disk? ;-)
The check page works, showing a cyan cube, and says:
"With your current browser, X3DOM needs to use Flash to render the scenes. For best performance, consider enabling WebGL in your browser or updating to a recent browser which supports WebGL natively."
The details page says:
X3DOM loaded yes
X3DOM version 1.3.1-dev
X3DOM date Wed Jun 27 11:47:38 2012 +0200
X3DOM backend flash
Native backend n/a
X3D plugin backend (instantPlugin) n/a
WebGL backend n/a
Flash backend Flash version 11.3.300
Sergey Bederov
Senior Developer
Cortona3D
Nakhimovsky pr-t, 47,19-th floor
Moscow, Russia
Phone: +7(499)129-15-00
www.cortona3D.com
From: Yvonne Jung [mailto:yvonne.jung at igd.fraunhofer.de]
Sent: Wednesday, June 27, 2012 3:32 PM
To: Bederov, Sergey
Cc: John Carlson; x3dom-users at lists.sourceforge.net; x3d-public at web3d.org
Subject: Re: [X3D-Public] How to get X3DOM working?
Hi, have you had a look at the check page: http://www.x3dom.org/check/ ?
(BTW: Flash support requires that the swf is located next to the js, but locally there are security issues.)
Am 27.06.2012 13:05, schrieb Bederov, Sergey:
Hello John and all,
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?
I am on Windows 7, the latest Flash Player 11 is installed. The "Browser support" page:
http://www.x3dom.org/?page_id=9
says "Firefox supports WebGL natively".
Today I installed the latest version of Firefox, but your examples don't work. For instance:
http://coderextreme.net/roses/x3dom/bubbles.xhtml
shows a "Bubbles" title and nothing else, blank page below.
http://www.everyday3d.com/j3d/demo/004_Glass.html
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?)
On the other hand, the standard examples work for me:
http://x3dom.org/x3dom/example/x3dom_helloWorld.html
works perfectly both in Firefox and IE.
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?
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?
Sergey Bederov
From: x3d-public-bounces at web3d.org<mailto:x3d-public-bounces at web3d.org> [mailto:x3d-public-bounces at web3d.org] On Behalf Of John Carlson
Sent: Wednesday, June 27, 2012 11:27 AM
To: x3d-public at web3d.org<mailto:x3d-public at web3d.org>; x3dom-users at lists.sourceforge.net<mailto:x3dom-users at lists.sourceforge.net>; Yvonne Jung
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
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><mailto:john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net><mailto:john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org<mailto:x3d-public at web3d.org>, x3dom-users at lists.sourceforge.net<mailto:x3dom-users at lists.sourceforge.net>, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de><mailto: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><mailto:john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net><mailto:john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org<mailto:x3d-public at web3d.org>, x3dom-users at lists.sourceforge.net<mailto:x3dom-users at lists.sourceforge.net>, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de><mailto: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><mailto:john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net><mailto:john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org<mailto:x3d-public at web3d.org>, x3dom-users at lists.sourceforge.net<mailto:x3dom-users at lists.sourceforge.net>, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de><mailto: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><mailto:john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net><mailto:john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org<mailto:x3d-public at web3d.org>, x3dom-users at lists.sourceforge.net<mailto:x3dom-users at lists.sourceforge.net>, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de><mailto: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><mailto:john.carlson3 at sbcglobal.net> wrote:
From: John Carlson <john.carlson3 at sbcglobal.net><mailto:john.carlson3 at sbcglobal.net>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org<mailto:x3d-public at web3d.org>, x3dom-users at lists.sourceforge.net<mailto:x3dom-users at lists.sourceforge.net>, "Yvonne Jung" <yvonne.jung at igd.fraunhofer.de><mailto: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><mailto:yvonne.jung at igd.fraunhofer.de> wrote:
From: Yvonne Jung <yvonne.jung at igd.fraunhofer.de><mailto:yvonne.jung at igd.fraunhofer.de>
Subject: Re: [X3D-Public] help w/ X3DOM cube map and refraction/reflection
To: x3d-public at web3d.org<mailto:x3d-public at web3d.org>, x3dom-users at lists.sourceforge.net<mailto:x3dom-users at lists.sourceforge.net>
Cc: john.carlson3 at sbcglobal.net<mailto: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<mailto: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<mailto: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<mailto: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<mailto: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<mailto:X3D-Public at web3d.org></mc/compose?to=X3D-Public at web3d.org><mailto:/mc/compose?to=X3D-Public at web3d.org>
http://web3d.org/mailman/listinfo/x3d-public_web3d.org
_______________________________________________
X3D-Public mailing list
X3D-Public at web3d.org<mailto: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/7af0ff3c/attachment-0001.html>
More information about the X3D-Public
mailing list