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

Easy Java Simulations (2001- ) => Questions related to EJS => Topic started by: ahmedelshfie on June 23, 2010, 02:27:28 am



Title: Earth and moon 3d
Post by: ahmedelshfie on June 23, 2010, 02:27:28 am
Hello prof
I add code on project Earth and moon 3d to add stars,,i use code project Earth Orbit Model on site OPS(open source physic)
My idea was that i want add stars in java 3d simple and make background black with move of earth and moon
And stars black will be good and a simple example by java like on any way after i add code simulation work by this way could you check please.
Thanks
Here is XML source code


Title: Re: Earth and moon 3d
Post by: Fu-Kwun Hwang on June 23, 2010, 05:33:26 pm
I have no experience with java3D yet and I do not really know what you want me to check for?
I am sorry that I do not know how to help!


Title: Re: Earth and moon 3d
Post by: ahmedelshfie on June 23, 2010, 05:40:11 pm
This code is for java normally that we use in EJS not java 3d in jar file of project have two choose
Java simple and java 3d my ask about java simple that i want add stars in background java simple by EJS
So i had code of stars from another project but stars not appear like i want my idea stars full back ground
Could you check prof please.


Title: Re: Earth and moon 3d
Post by: Fu-Kwun Hwang on June 23, 2010, 11:11:00 pm
I was not able to read your xml file. There is an error message. (May be there are some string written in your own language.)


Title: Re: Earth and moon 3d
Post by: ahmedelshfie on June 23, 2010, 11:21:06 pm
I will uplaod jar file
Strange jar file no appear so strange i think have a big wrong in my source code   :-\ :-\
I will try again
Now is work prof


Title: Re: Earth and moon 3d
Post by: Fu-Kwun Hwang on June 24, 2010, 07:21:27 am
I can see those 6 brightStarPoints,the size of those points are very small. Some of them are in the back of the earth.
It will be easier to be seen if you change the visible property from (stars && bstars) to bstars


Title: Re: Earth and moon 3d
Post by: ahmedelshfie on June 24, 2010, 05:18:25 pm
I change from (stars && bstars) to bstars
But is the same,,no have way to full all background by stars In 3d java simple
I'm no understand code good and code is hard and long
So prof if have any way for full background by stars will be very good