Author Topic: Ejs Open Source Earth and Moon Model  (Read 32958 times)

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Ejs Open Source Earth and Moon Model
« Reply #15 on: June 17, 2010, 08:08:51 pm »
I really do it but XML source code have wrong.Ejs cant running XML so i try solve but i don't find variable
That have wrong on XML file i notice a thing earth and moon 3d created by ejs version 4.3.0 and I'm use
Version 4.2.7 may this problem for cant run XML source code .

Yes. u need to get the latest Ejs

anyway, on Mac OSX
the web apple didn't run
the error is
java.lang.NullPointerException
at users.sgeducation.lookang.ejs_EarthAndMoon3D.EarthAndMoon3D_pkg.EarthAndMoon3DView.reset(EarthAndMoon3DView.java:266)
at org.colos.ejs.library.Animation.reset(Unknown Source)
at users.sgeducation.lookang.ejs_EarthAndMoon3D.EarthAndMoon3D_pkg.EarthAndMoon3DSimulation.(EarthAndMoon3DSimulation.java:25)
at users.sgeducation.lookang.ejs_EarthAndMoon3D.EarthAndMoon3D_pkg.EarthAndMoon3D.(EarthAndMoon3D.java:96)
at users.sgeducation.lookang.ejs_EarthAndMoon3D.EarthAndMoon3D_pkg.EarthAndMoon3DApplet.init(EarthAndMoon3DApplet.java:27)
at sun.applet.AppletPanel.run(AppletPanel.java:424)
at java.lang.Thread.run(Thread.java:637)
maybe prof Paco will be interested in this error on Mac later one day
« Last Edit: June 17, 2010, 08:10:43 pm by lookang »

ahmedelshfie

  • Hero Member
  • Posts: 930
Re: Ejs Open Source Earth and Moon Model
« Reply #16 on: June 17, 2010, 09:33:54 pm »
Quote
Yes. u need to get the latest Ejs
I really download EJS latest version but is the same error
EarthAndMoon3D_pkgEarthAndMoon3D.java:189: ';' expected
  permission java.util.PropertyPermission "j3d.stereo", "read"; // added by lookang  // > Initialization.Lights:5
  ^


« Last Edit: June 17, 2010, 09:36:27 pm by ahmedelshfie »

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Ejs Open Source Earth and Moon Model
« Reply #17 on: June 18, 2010, 10:14:18 am »
i think i know what is your problem.

file name too long.

D:EasyJavaSimulationEJS_4.3.0_100613EJS_4.3.0workspacesourceuserssgeducationlookangusers_sgeducation_lookang_ejs_EarthAndMoon3D_EarthAndMoon3D.xml

rename the file to EarthAndMoon3D.xml before you save it to your PC. Do not change file name in Ejs editor mode, the file is already not read correctly so it will not work still.

i think java has some number of character restriction from the root directory so how i solve this problem is rename file to a short name.
try it

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Ejs Open Source Earth and Moon Model
« Reply #18 on: June 18, 2010, 10:19:42 am »
the method just described did not work still.

how i did it is the download the jar file (1.9 mb file)

unzip in its folder

go in to find the source xml and the folder that is needed
for example
D:EasyJavaSimulationEJS_4.3.0_100613EJS_4.3.0workspaceexport
D:EasyJavaSimulationEJS_4.3.0_100613EJS_4.3.0workspaceexportejs_users_sgeducation_lookang_ejs_EarthAndMoon3D_EarthAndMoon3Duserssgeducationlookangejs_EarthAndMoon3D
need
EarthAndMoon3D.xml and folder TEXTURES
copy these into the usual source user ... / ...
D:EasyJavaSimulationEJS_4.3.0_100613EJS_4.3.0workspacesourceuserssgeducationlookangejs_EarthAndMoon3D

it should work now



ahmedelshfie

  • Hero Member
  • Posts: 930
Re: Ejs Open Source Earth and Moon Model
« Reply #19 on: June 18, 2010, 06:22:30 pm »
Quote
i think i know what is your problem.

file name too long.

D:EasyJavaSimulationEJS_4.3.0_100613EJS_4.3.0workspacesourceuserssgeducationlookangusers_sgeducation_lookang_ejs_EarthAndMoon3D_EarthAndMoon3D.xml

rename the file to EarthAndMoon3D.xml before you save it to your PC. Do not change file name in Ejs editor mode, the file is already not read correctly so it will not work still.

i think java has some number of character restriction from the root directory so how i solve this problem is rename file to a short name.
try it
I really do it from first time i change however i will wait answer see with prof Hwang what is the problem in my system

Fu-Kwun Hwang

  • Administrator
  • Hero Member
  • *****
  • Posts: 3062
    • Enjoy the fun of physics with simulations
Re: Ejs Open Source Earth and Moon Model
« Reply #20 on: June 18, 2010, 11:13:06 pm »
I would suggest you download the jar file and run it at your computer.
Then, right click mouse and select "open ejs model" and it will extract and save all the necessary files for the simulation at the right place.
May be this will solve your problem. Try it!

ahmedelshfie

  • Hero Member
  • Posts: 930
Re: Ejs Open Source Earth and Moon Model
« Reply #21 on: June 19, 2010, 01:32:01 am »
Thanks prof Hwang about your solution now is work very well  :D

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Ejs Open Source Earth and Moon Model
« Reply #22 on: September 16, 2010, 07:33:31 pm »
Textures for the applet

lookang

  • Moderator
  • Hero Member
  • *****
  • Posts: 1772
  • http://weelookang.blogspot.com
    • lookang web
Re: Ejs Open Source Earth and Moon Model
« Reply #23 on: August 02, 2011, 04:39:39 pm »
submited a bug on http://www.um.es/fem/EjsWiki/FeedbackEn/00078

Title
bug in java 3d texture implementation
 
Type
Bug
 
Raised by
lookang
 
Date opened
Tuesday, 2 August 2011
 
Description
notice the earth texture is render wrongly.
amercia africa asia is the order from left to right
the bug is
asia africa amercia, everything is rendered i think inside out?
 
Importance
3
 
Proposed solution
should be a easy bug to solve.
http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=1830.0 to see the bug
 
Urgency
3
 
Status
Open
 
Resolution
should be a easy bug to solve.