Re: Welcome to the Developing Interactive Simulations in HTML5 Google Group!

1248 views
Skip to first unread message

Madhan Karthik

unread,
Oct 9, 2014, 9:31:58 AM10/9/14
to developing-interactiv...@googlegroups.com
Hi ,

Will you guide me for the development of HTML 5 simulation in Linux/Ubuntu.

On Monday, September 29, 2014 10:26:05 PM UTC+5:30, samrreid wrote:
Greetings and welcome to the Developing Interactive Simulations in HTML5 Google Group!  Developing complex, high-performance interactive simulations in HTML5 that work well on many platforms is tricky business, and we thought this would be a nice place to discuss problems, solutions, strategies and ideas.
 
PhET Interactive Simulations is developing several open-source libraries to facilitate simulation development, and we have documented the libraries as well as patterns and practices that work well for us in our PhET Development Overview: http://bit.ly/phet-development-overview.
 
Looking forward to hearing from you,
Sam Reid
PhET Interactive Simulations
University of Colorado Boulder

samrreid

unread,
Oct 10, 2014, 11:53:25 AM10/10/14
to developing-interactiv...@googlegroups.com
Hi Madhan,

I don't have a Linux/Ubuntu machine at the moment, so I can't be sure of anything, but to set up for development there, the main ingredients are the same:

1. Install git
2. Create a directory phetsims
3. Change into the directory
4. Run these git clone commands:



Download and install node + npm, Linux binaries are available here: http://nodejs.org/download/

Install the http-server as a command line program:
npm install http-server -g

Change into the phetsims directory (if you were not already there).
cd phetsims/

Run the http server program
http-server

Open a browser to the path for one of the simulations:  http://localhost:8080/example-sim/example-sim_en.html

Now you can edit/create simulation JS files and start creating things.

If you get the setup process working well on Linux/Ubuntu, we could add that to the instructions in the PhET Development Overview:

Good luck and let me know how it goes,
Sam

Madhan Karthik

unread,
Oct 12, 2014, 9:39:31 PM10/12/14
to developing-interactiv...@googlegroups.com
Hi Sam,

I tried in my machine(Ubuntu).It is working well.So,you can include the manual for the linux machine also.

Thanks a lot. 
Madhan Karthik

samrreid

unread,
Oct 13, 2014, 6:18:19 PM10/13/14
to developing-interactiv...@googlegroups.com
Sounds good, thanks for testing that out.

Best Regards,
Sam

ahsan...@gmail.com

unread,
Oct 17, 2014, 3:03:28 AM10/17/14
to developing-interactiv...@googlegroups.com
Hi Sam,
I want to develop physics optical labs.
Kindly guide me.

samrreid

unread,
Oct 17, 2014, 4:20:07 PM10/17/14
to developing-interactiv...@googlegroups.com, ahsan...@gmail.com
Ahsanul,

Can you please provide more information about the labs you are thinking about?  How would it look on the screen?  What is the user able to do?  What specific topics and learning goals in the field of optics do you want to address?
PhET currently provides a geometric optics lab in Flash here: http://phet.colorado.edu/en/simulation/geometric-optics
PhET also provides a Java simulation called "Bending Light" here: http://phet.colorado.edu/en/simulation/bending-light

Best Regards,
Sam

Madhan Karthik

unread,
Oct 31, 2014, 6:16:10 AM10/31/14
to developing-interactiv...@googlegroups.com
Hi Sam,

What framework are you using for the simulation? or do you've any separate tool for that.If so,Kindly share the tutorial/docs.

Thanks
MadhanKarthik R

samrreid

unread,
Nov 12, 2014, 11:37:51 AM11/12/14
to developing-interactiv...@googlegroups.com
MadhanKarthik R,

I work with a group called PhET Interactive Simulations, and we publish our simulations online here: http://phet.colorado.edu

The best place to look for overview, documentation, explanation, etc is the PhET Development Overview: http://bit.ly/phet-development-overview

The framework + libraries are free and open source, and hosted on GitHub here: https://github.com/phetsims/

Good luck and let me know if you have any further questions,
Sam

Gabrielle Legault

unread,
Jan 21, 2015, 2:30:12 PM1/21/15
to developing-interactiv...@googlegroups.com
Hello Sam,
I work for a school publishing house (PearsonERPI) and we are very interested in the PhET simulations for our etexts. I wanted to know, once we have changed the source code from Java to HTML where can we harbour or shelter the simulations to keep them active ? These etexts will be around for quite a while and we couldn't find the answer to this "problem" on the website. I hope you understand my question.

Thanks, Gabrielle   I 

samrreid

unread,
Jan 21, 2015, 2:44:08 PM1/21/15
to developing-interactiv...@googlegroups.com
Gabrielle,

The answer to your question depends on how you are storing and delivering the etexts.  If your delivery medium is HTML5 capable and web access is available, then one solution is to include the PhET simulation as an iframe, linking to the version on PhET's servers.  If your etexts will be available offline, or through some other delivery medium, then we would need to discuss other ways to embed the simulations (and we should discuss how we can keep them up to date as bugs are fixed or improvements are made).  What is your context and delivery model?

Best Regards,
Sam Reid
PhET Interactive Simulations

shailaj...@gmail.com

unread,
May 14, 2015, 8:51:11 AM5/14/15
to developing-interactiv...@googlegroups.com
On Monday, 29 September 2014 22:26:05 UTC+5:30, samrreid wrote:
> Greetings and welcome to the Developing Interactive Simulations in HTML5 Google Group!  Developing complex, high-performance interactive simulations in HTML5 that work well on many platforms is tricky business, and we thought this would be a nice place to discuss problems, solutions, strategies and ideas.
>  
> PhET Interactive Simulations is developing several open-source libraries to facilitate simulation development, and we have documented the libraries as well as patterns and practices that work well for us in our PhET Development Overview: http://bit.ly/phet-development-overview.
>  
> Looking forward to hearing from you,
> Sam Reid
> PhET Interactive Simulations
> University of Colorado Boulder

Hi

I am using Windows and followed all the steps given in PhET Development Overview.
When I open any browser to the path : http://localhost:8080/example-sim/example-sim_en.html
The error message on Git bash is - "GET/joist/strings/joist-strings_en.json?bust=1431607520150" Error (404): "Not found"

Please help
Shailaja

cmalley

unread,
May 15, 2015, 10:28:27 AM5/15/15
to developing-interactiv...@googlegroups.com, shailaj...@gmail.com
Hi Shailaja,

http://localhost:8080/example-sim/example-sim_en.html is an example path. You'll need to modify the URL based on where you have installed it on your computer, and how your local web server is configured (HTTP port, etc).

I will make sure that this gets clarified in the "PhET Development Overview" document. See https://github.com/phetsims/tasks/issues/238.  

Chris

samrreid

unread,
May 15, 2015, 11:11:06 AM5/15/15
to developing-interactiv...@googlegroups.com, shailaj...@gmail.com
It is unclear what Shailaja's problem is.  If it is erroring on "GET/joist/strings/joist-strings_en.json?bust=1431607520150", doesn't that mean that it found the HTML file itself (as a precursor to loading requirejs + joist strings) and hence the port and relative path are correct?  Perhaps there is some downstream error, such as joist not being checked out, or joist not being checked out in the right location?

Best Regards,
Sam

cmalley

unread,
May 15, 2015, 4:50:26 PM5/15/15
to developing-interactiv...@googlegroups.com, shailaj...@gmail.com
Shailaja, do you have all dependencies for the sim checked out?  It might be better if you tried this with a published sim; example-sim is not published, and its README.md therefore does not have the instructions for checking out all dependencies. See for example https://github.com/phetsims/acid-base-solutions, where the "Quick Start" section of README.md enumerates the "git clone" commands required to check out all dependencies.  For the error that you're seeing, it sounds like you may be missing the "joist" repository, which is required by all sims.

Chris

cmalley

unread,
May 16, 2015, 10:34:28 AM5/16/15
to developing-interactiv...@googlegroups.com, shailaj...@gmail.com
Shailaja replied to me via email:

> Now I have cloned all dependencies for acid-base-solutions. I can see the commands executing on Git but the browser is blank and does not show the sim.
>  
> What could be the error.
>  
> Sorry for bothering again.

cmalley

unread,
May 16, 2015, 10:36:28 AM5/16/15
to developing-interactiv...@googlegroups.com, shailaj...@gmail.com
Shailaja,

Please post your questions to the Google Group, do not contact individual via email. Thanks.

In this specific case, post any error messages that you see during the “git clone” commands, or in the web browser console when running the sim.

Thanks,

Chris

shailaj...@gmail.com

unread,
May 16, 2015, 1:36:14 PM5/16/15
to developing-interactiv...@googlegroups.com, shailaj...@gmail.com
Sorry about that.

No error messages both in git clone command and the browser. I tried http://localhost:8080/acid-base-solutions/acid-base-solutions_en.html - the browser window is blank and white in color
http://localhost:8080/forces-and-motion-basics/forces-and-motion-basics_en.html - the browser window is blank and black in color.

samrreid

unread,
May 27, 2015, 8:14:58 AM5/27/15
to developing-interactiv...@googlegroups.com, shailaj...@gmail.com
I just tried running all of the git clone commands from the Development Overview http://bit.ly/phet-development-overview and launching the example-sim, and it worked OK on my platform OSX + Chrome.  What OS + browser are you running?  Can you open the JavaScript console in your browser and report the problems you see?  Have you tried this on Chrome?

Best Regards,
Sam

Shailaja J

unread,
May 27, 2015, 8:52:25 AM5/27/15
to developing-interactiv...@googlegroups.com, samrreid
Thank you so much Sam it worked on Chrome.
 
Regards
Shailaja

samrreid

unread,
Jun 3, 2015, 3:16:30 PM6/3/15
to developing-interactiv...@googlegroups.com, shailaj...@gmail.com
That is good news, thanks for reporting back.  If you have any insight about why it failed on the other browser, I'd be curious to hear about it.

Best Regards,
Sam
Message has been deleted

Alexandre Enkerli

unread,
Dec 23, 2015, 9:53:11 AM12/23/15
to Developing Interactive Simulations in HTML5
Gabrielle: Interested in knowing more about this project. Are you still involved in it?

We (Vitrine technologie-éducation) are exploring diverse ways to work with learning resources in Quebec’s college system (Cegeps). For instance, we have a catalogue of Open Educational Resources and we’ve been experimenting with ePUB3. Creating HTML5 simulations and embedding them in an eBook is something we’re looking at.
In fact, PhET simulations would probably make excellent test cases, as many of them are self-contained. Hm… This could open up interesting possibilities. For instance, it should be possible to just drop the code in InDesign or iBooks Author…

Alexandre Enkerli

unread,
Dec 23, 2015, 11:45:28 AM12/23/15
to Developing Interactive Simulations in HTML5
Ok! With a bit of fiddling (such as renaming the main HTML file), was able to convert a PhET sim into a widget for use in iBooks Author and create an ePub3 file with that sim embedded.

Everything is in this Dropbox folder.

The “ph-scale” folder contains the file for the widget (you convert it into a widget by adding .wdgt to the folder name):
  • ph-scale.wdgt.html is the full sim (originally called ph-scale_en.html on PhET).
  • Info.plist contains some info about the content, including an identifier and version number. (Should probably modify the size values).
  • Def...@2x.png and Default.png are two copies of the same screenshot from the sim.

ph-scale.wdgt is that same folder with the .wdgt extension, so iBooks Author can recognize it.

ph-scale.iba is the iBooks Author file, based on the blank ePUB3 template.
ph-scale.epub is the ePUB3 exported from iBooks Author.

Maybe this was all very obvious to other people, but my guess is that some people might find it useful. In fact, it’s easy enough to produce these widgets that it could make for a neat activity with teachers and students.

Of course, as Sam was saying, it might be necessary to keep these things up-to-date (and it might make more sense to use <iframe> embeds). But having such a portable document with sims in it could prove very useful, in some situations. Could easily imagine students downloading a sim-enhanced ePub for offline use on a tablet.

Thanks for the inspiration, Gabrielle. And thanks to the whole PhET team for such stimulating simulations!

— Alex

--
Alex Enkerli, Learning Technology Advisor
Vitrine technologie-éducation http://www.vteducation.org/

b...@cs.umass.edu

unread,
Apr 18, 2016, 5:25:57 PM4/18/16
to Developing Interactive Simulations in HTML5

Dear Sam,

Thanks for the great job you are doing to build PhET simulations and then convert them all to HTML5.

I am working with a group of researchers to teach about Electronic Circuits.

Can you tell me which of your simulations in the category of Physics/ Electricity, Magnetism and Circuits you will be porting to HTML5. The HTML5 sims work well within our tutor. However the Java simulations are much more difficult as the student would need to download Java first.

Many thanks,

Beverly Woolf.

samrreid

unread,
Apr 19, 2016, 11:38:00 AM4/19/16
to Developing Interactive Simulations in HTML5, b...@cs.umass.edu
Greetings Beverly,

Thanks for reaching out to me, I'm glad to hear our HTML5 sims work nicely in your tutor.  I'll have to check with our development coordinator about the list of sims we are porting, I'll ask him to respond here.

Best Regards,
Sam

ariel.phet

unread,
Apr 19, 2016, 11:46:54 AM4/19/16
to Developing Interactive Simulations in HTML5, b...@cs.umass.edu
Hi Beverly,

Unfortunately the conversion process is long and expensive. Further complicating matter is that traditional funding sources like government grant agencies only fund "innovation" not sustainability, so it is difficult to secure funding for this conversion process. Through the help of donations we are slowly working our way through our legacy sims until we secure more robust resources for the conversion. Ideally we will eventually convert all popular sims, but on the horizon you can expect the following sims to be in HTML5 within the next couple of years:

Masses and Springs
Pendulum Lab
Gravity and Orbits
Fluid Pressure and Flow
Circuit Construction Kit
Faraday's Electromagnetic Lab
Rutherford Scattering
Energy Forms and Changes

There may well be more (and we hope there are) but those are the ones I can say with reasonable confidence are on the horizon.

Thanks for your use and support of PhET!

Ariel

Bev Woolf

unread,
Apr 20, 2016, 12:37:33 PM4/20/16
to ariel.phet, Emily B Moore, Developing Interactive Simulations in HTML5
Dear Ariel,

Many thanks for your detailed discussion about the conversion process in PhET. I do understand all
the issues you discuss below.

I certainly understand the funding issue, being in the same position at Umass as you-all are in Colorado.

Can you advise me about funding of PhET simulations from agencies. For example, can an agency request the conversion of certain simulations and make a donation to compensate for same?

Regards,
Beverly


-----------------------------------

Beverly Park Woolf

Research Professor
College of Information and Computer Science
University of Massachusetts
b...@cs.umass.edu






chimac...@gmail.com

unread,
Oct 23, 2016, 11:47:37 AM10/23/16
to Developing Interactive Simulations in HTML5
On Monday, 29 September 2014 17:56:05 UTC+1, samrreid wrote:
> Greetings and welcome to the Developing Interactive Simulations in HTML5 Google Group!  Developing complex, high-performance interactive simulations in HTML5 that work well on many platforms is tricky business, and we thought this would be a nice place to discuss problems, solutions, strategies and ideas.
>  
> PhET Interactive Simulations is developing several open-source libraries to facilitate simulation development, and we have documented the libraries as well as patterns and practices that work well for us in our PhET Development Overview: http://bit.ly/phet-development-overview.
>  
> Looking forward to hearing from you,
> Sam Reid
> PhET Interactive Simulations
> University of Colorado Boulder

Hi Sam

Please how can I create my own simulations using templates?

Awaiting your response.

Chima Clement

samrreid

unread,
Oct 24, 2016, 3:39:03 PM10/24/16
to Developing Interactive Simulations in HTML5, chimac...@gmail.com
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

AKumar

unread,
Jul 1, 2018, 7:07:12 AM7/1/18
to Developing Interactive Simulations in HTML5
I am helping couple of high school kids develop physics and other science simulations as they learn to code. Checkout their work at https://SimPop.org. All development is in HTML5 and Javascript.

exc...@gmail.com

unread,
Jul 20, 2018, 3:43:50 PM7/20/18
to Developing Interactive Simulations in HTML5
On Monday, September 29, 2014 at 12:56:05 PM UTC-4, samrreid wrote:
> Greetings and welcome to the Developing Interactive Simulations in HTML5 Google Group!  Developing complex, high-performance interactive simulations in HTML5 that work well on many platforms is tricky business, and we thought this would be a nice place to discuss problems, solutions, strategies and ideas.
>  
> PhET Interactive Simulations is developing several open-source libraries to facilitate simulation development, and we have documented the libraries as well as patterns and practices that work well for us in our PhET Development Overview: http://bit.ly/phet-development-overview.
>  
> Looking forward to hearing from you,
> Sam Reid
> PhET Interactive Simulations
> University of Colorado Boulder

Hello Sam

I would like to develop experimental optics on the subject of wdm.
How could I use PhET to create the content I want?

samrreid

unread,
Jul 21, 2018, 11:55:21 AM7/21/18
to Developing Interactive Simulations in HTML5
SimPop looks great, keep up the good work!

Best Regards,
Sam

samrreid

unread,
Jul 21, 2018, 11:59:47 AM7/21/18
to Developing Interactive Simulations in HTML5
I don't know much about wavelength-division multiplexing, but here is a document about how PhET creates interactive simulations: https://phet.colorado.edu/publications/phet_design_process.pdf

For the development side, you can use the PhET Development Overview http://bit.ly/phet-html5-development-overview about getting started with PhET development.

Good Luck and Best Regards,
Sam

thetruthal...@gmail.com

unread,
Jul 21, 2018, 2:10:46 PM7/21/18
to Developing Interactive Simulations in HTML5
On Monday, September 29, 2014 at 9:56:05 AM UTC-7, samrreid wrote:
> Greetings and welcome to the Developing Interactive Simulations in HTML5 Google Group!  Developing complex, high-performance interactive simulations in HTML5 that work well on many platforms is tricky business, and we thought this would be a nice place to discuss problems, solutions, strategies and ideas.
>  
> PhET Interactive Simulations is developing several open-source libraries to facilitate simulation development, and we have documented the libraries as well as patterns and practices that work well for us in our PhET Development Overview: http://bit.ly/phet-development-overview.
>  
> Looking forward to hearing from you,
> Sam Reid
> PhET Interactive Simulations
> University of Colorado Boulder

Hi, I would like to find someone that can help me with the Wave on a String app? Would really like a finer tuning capability with the frequency.
You can email me at dav...@netzero.com
Thank you

afr...@purdue.edu

unread,
Sep 11, 2018, 11:43:42 AM9/11/18
to Developing Interactive Simulations in HTML5
On Monday, September 29, 2014 at 12:56:05 PM UTC-4, samrreid wrote:
> Greetings and welcome to the Developing Interactive Simulations in HTML5 Google Group!  Developing complex, high-performance interactive simulations in HTML5 that work well on many platforms is tricky business, and we thought this would be a nice place to discuss problems, solutions, strategies and ideas.
>  
> PhET Interactive Simulations is developing several open-source libraries to facilitate simulation development, and we have documented the libraries as well as patterns and practices that work well for us in our PhET Development Overview: http://bit.ly/phet-development-overview.
>  
> Looking forward to hearing from you,
> Sam Reid
> PhET Interactive Simulations
> University of Colorado Boulder

Sam,

I'm a faculty member at Purdue and we've been using several phet simulations each semester for our freshman biology course (up to 1800 students a year).

We generally love the simulations, but I noticed yesterday that the pH simulation (html5) no longer allows one to enter the pH directly into the box.

Is this readily fixable? I'm learning html, javascript and git, so it's something I might like to get involved with myself, unless it's just a line or two that you know exactly how to fix. If it's not so simple that you could just do it, please let me know how to get started.

Thanks for your interest and all the work you and your colleagues have put into phet.

Alan Friedman

Ariel

unread,
Sep 11, 2018, 12:02:14 PM9/11/18
to Developing Interactive Simulations in HTML5
Alan,

On the "My Solution" screen you can change the pH manually using the vertical "spinner" arrows to the right of the pH readout. These buttons are designed to be "fire on hold" so if you hold them down you can quickly get close, and then fine tune with a few clicks to the desired pH.

If you think direct entry would truly be necessary (being able to type in the pH) let us know. Unfortunately, due to the cross-platform nature of HTML5 sims, this can not just be done with keyboard entry. Our solution has been to have a keypad on the screen that allows number entry, which would be possible in the simulation, but would require some amount of design work.

compact...@gmail.com

unread,
Nov 12, 2018, 12:25:13 PM11/12/18
to Developing Interactive Simulations in HTML5
I'm developing phet simulation in html.
and I'm using phet framework.
I didn't understand what tandem means.
I want to know about phet project structure.
I'm looking forward to hear from you
Message has been deleted
Message has been deleted

samrreid

unread,
Nov 12, 2018, 1:23:04 PM11/12/18
to Developing Interactive Simulations in HTML5
Greetings,

PhET uses "Tandem" instances to provide unique global string IDs to simulation components.  The implementation is here: https://github.com/phetsims/tandem/blob/master/js/Tandem.js

You can look at any of PhET's open source simulations as an example of project structure: https://github.com/phetsims

For example, here is PhET's "Example Sim" https://github.com/phetsims/example-sim

Best Regards,
Sam
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

bhava...@gmail.com

unread,
Aug 20, 2019, 3:59:40 PM8/20/19
to Developing Interactive Simulations in HTML5
Hello 

I Have installed everything as described in the http://bit.ly/phet-development-overview. Worked well i could the see page on my localhost. but when i make changes in my simulation code i couldnt see changes on the browser page. could you please help?

Michael J Kauzmann

unread,
Aug 20, 2019, 4:59:11 PM8/20/19
to bhava...@gmail.com, Developing Interactive Simulations in HTML5
Hello! Thanks for posting to the group. It is likely that this is a caching problem. Please try adding `?cacheBust` as a query parameter. Another option is to load the sim in Google Chrome with the developer tools open. There is an option in those developer tools to disable caching while they are open. Or another way is explained here, https://www.technipages.com/google-chrome-how-to-completely-disable-cache. Let me know how I can assist further.

Good luck,
Michael

--
You received this message because you are subscribed to the Google Groups "Developing Interactive Simulations in HTML5" group.
To unsubscribe from this group and stop receiving emails from it, send an email to developing-interactive-simu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/developing-interactive-simulations-in-html5/62c9dd0f-bfd6-4b03-9a26-e4806cc168b7%40googlegroups.com.


--
Michael Kauzmann
PhET Interactive Simulations
University of Colorado
Michael....@Colorado.edu
Message has been deleted
Message has been deleted
Message has been deleted

samrreid

unread,
Nov 5, 2019, 11:22:01 AM11/5/19
to Developing Interactive Simulations in HTML5
The PhET Development Overview has been moved to https://github.com/phetsims/phet-info/blob/master/doc/phet-development-overview.md.  I'll delete the top post since it refers to an older version.  Also, I'll lock this thread, since new questions and problems should be posted in new threads.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages