APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

3D Element Container in EJSS post and replies

Return to the 3D Element Container in EJSS thread
Login to post to this thread

3D Element Container in EJSS
Nick Gross
17 Posts

when I try inserting a 3D container into the HTML view when using EJSS it gives a message
"WebGL not supported!". Is there a work around for this?


Replies to 3D Element Container in EJSS

Re: 3D Element Container in EJSS -
lookang Avatar
lookang
222 Posts

Yes.
deploy using the browser has allowed me to view the webgl implementation.
Enjoy!


OSP@SG blog
OSP@SG Digital Library


Re: 3D Element Container in EJSS -
Francisco Esquembre
228 Posts

Hi,

LooKang is right.

The Emulator (which uses javafx) does not support WebGL, and we don't know if it will ever support it (sigh!).

But, if you use the EjsS options to tell it to run using the Browser, the browser will display the scene right. (Select the "Use browser as your preferred run method" in the EjsS Options "Running" tab. This applies to ALL your JS simulations. There is also a similar per-simulation option in each simulation information dialog - top-right icon.)

Yes. I know. This makes it difficult to see your 3D scene while you design the interface. But we need to way for javafx to support WebGL, if it ever does.

The Emulator is still useful, because it lets you see the outline of your complete interface while designing it.

Paco



Re: Re: 3D Element Container in EJSS -
Nick Gross
17 Posts

Great! Thanks for the suggestions. I probably should have thought of this.



Re: Re: Re: 3D Element Container in EJSS -
Nick Gross
17 Posts

I spoke too soon.  This apparently fails also.

Attached is the zip  file that I  that is generated.  It generates the "WebGL not supported" error when I run it with the browser only option.  I am running this in Safari.  Is that an issue?

Attached File: ejss_model_Dipole.zip



Re: Re: Re: Re: 3D Element Container in EJSS -
lookang Avatar
lookang
222 Posts

dear nick, u need to provide the src for me to help you trouble shoot. for example mine WEbGL implemenation model source code is attached https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/lookangejss/02_newtonianmechanics_7gravity/ejss_model_EarthAndMoon3Dwee.zip https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/lookangejss/02_newtonianmechanics_7gravity/ejss_src_EarthAndMoon3Dwee.zip

 

test it

https://dl.dropboxusercontent.com/u/44365627/lookangEJSworkspace/export/ejss_model_EarthAndMoon3Dwee/EarthAndMoon3Dwee_Simulation.html

Post edited October 13, 2014 at 12:12 AM EST.


OSP@SG blog
OSP@SG Digital Library


Re: Re: Re: Re: Re: 3D Element Container in EJSS......DOH! -
Nick Gross
17 Posts

Turns out I did not enable WebGL in Safari.  Works once I did that.
Thanks for the support and encouragement.



Re: Re: Re: Re: 3D Element Container in EJSS -
Francisco Esquembre
228 Posts

Nick,

Please, attach the src code. (Righ-click on the package icon and select "ZIP the simulation source files".)


WebGL is either supported by your browser or it is not.

You might have found a bug in one of our 3D elements. But I need to see what you are doing.

Paco



Re: 3D Element Container in EJSS -
Wolfgang
146 Posts

WebGL is also supported on Apple tablets running the latest iOS 8.  The best way to view EjsS 3D models on Apple tablets is to use the EjsS Reader available from the iTunes store and then open the EjsS generated model zip in the Reader.  I usually do this by saving the zip from my computer in a DropBox account so that I have access to the file on my tablet.

There is also an EjsS Reader for Android although it does not yet support WebGL.  We expect that Android 5 (Android Lollipop) will support WebGL in the EjsS Reader.



OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book