NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => Wave and Fluid => Topic started by: Fu-Kwun Hwang on August 30, 2011, 08:46:13 am



Title: Creating Moving wave with mouse movement
Post by: Fu-Kwun Hwang on August 30, 2011, 08:46:13 am
The following let you drag mouse inside the simulation region, and a moving wave will be generated with pre-set period (you can change it with slider).
If you change it to click mode, the wave will be generated for each click (when mouse release), the period of the wave is also controlled by yourself. Enjoy it!

This is screen captured demo.


You need to click and drag inside the following simulation region to generate wave!
[ejsapplet]

The attached apk file is similar version for android system.
It has been tested for ASUS transformer (android version3.2).
Just download it and add file to android file system and click on it to install the application. Enjoy it!


Title: Re: Creating Moving wave with mouse movement
Post by: ahmedelshfie on September 02, 2011, 05:32:07 pm
Dear professor Hwang,

I would to know name the program that you use to record videos that explain about applets like the example up.

thx


Title: Re: Creating Moving wave with mouse movement
Post by: Fu-Kwun Hwang on September 02, 2011, 07:45:55 pm
You can download wink from http://www.debugmode.com/wink/


Title: Re: Creating Moving wave with mouse movement
Post by: ahmedelshfie on September 09, 2011, 05:24:04 pm
Thanks, well i already download wink, now i capture a movie and convert to flash to be ready publish at the website, my question is how did you upload swf flash in NTNU, its the same way of upload jar file? and how i upload a video like you at NTNU, what i need to do?

Thanks


Title: Re: Creating Moving wave with mouse movement
Post by: Fu-Kwun Hwang on September 09, 2011, 07:25:00 pm
The code to embed the above swf movie is

<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" WIDTH="544" HEIGHT="499" CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=7,0,0,0"><PARAM NAME=movie VALUE="swf/waverings.swf"><PARAM NAME=play VALUE=true><PARAM NAME=loop VALUE=false><PARAM NAME=wmode VALUE=transparent><PARAM NAME=quality VALUE=low><EMBED SRC="swf/waverings.swf" WIDTH=544 HEIGHT=499 quality=low loop=false wmode=transparent TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED></OBJECT>

It is more than just upload swf file. (I upload it to my server with ftp) , it also require the width and height values to set the size for the movie.
You can upload swf file to any server. And replace the above swf/wavering.swf with fully qualified URL.
And it should work fine.


Title: Re: Creating Moving wave with mouse movement
Post by: ahmedelshfie on September 09, 2011, 08:12:52 pm
Ok work fine with me i upload in my server and follow the steps you explain so is work but i still have other problem, when i convert to swf the size is too large need long time to uploading at my server, i take a look to your swf is good size i think  is 700 kb, how i down size of swf for be more small.
Also how when capture movie you just show the applet for example when i capture i tried show only the applet but also my desktop is appear in video so i need to know how to disappear my desktop in video.
thanks,


Title: Use wink to capture screen shot image and post to the server
Post by: Fu-Kwun Hwang on September 10, 2011, 07:58:05 am
Wink capture snapshot of screen into many image file and use flash to show all those images one after another one.
You capture the whole desktop, that will also increase the total file size.
You can select the screen area you want to capture and set the number of frames to be captured per second.
More frames per second will give better quality, however, it will increase the total file size(proportional to number of frames per second).

You can edit captured image when you are done with the capture.  i.e. delete some images, add some text or button...

  


Title: Re: Creating Moving wave with mouse movement
Post by: ahmedelshfie on September 11, 2011, 11:00:29 pm
Thanks for this valuable information, now im already now to capture video with understanding wink program, thanks for help prof


Title: Re: Creating Moving wave with mouse movement
Post by: lookang on September 26, 2011, 03:54:21 pm
The attached apk file is similar version for android system.
It has been tested for ASUS transformer (android version3.2).
Just download it and add file to android file system and click on it to install the application. Enjoy it!


may i know if you used Ejs to create this apk package?
if not, how did u make it :) ?
interested i didn't notice this earlier before


Title: Re: Creating Moving wave with mouse movement (android version)
Post by: Fu-Kwun Hwang on September 26, 2011, 05:21:35 pm
No. It was not created with EJS.
But we are working on this now.
Paco will re-write EJS code, and we are studying how to generate apk code for android system,
 and we hope EJS can generate apk for android in the future.



Title: Re: Creating Moving wave with mouse movement (android version)
Post by: lookang on September 26, 2011, 06:01:52 pm
No. It was not created with EJS.
But we are working on this now.
Paco will re-write EJS code, and we are studying how to generate apk code for android system,
 and we hope EJS can generate apk for android in the future.


awesome!
hope it can be done asap :)
it potential can create a mobile app community around Ejs.
imagine all Ejs applets becoming apk, it will be awesome.
i will get an Android pad just to be able to play with apk hahahaha

seems like the future is Android first, Apple iOS second in mobile.