--------------------------------- Cosmos3D 1.04 beta - 5 May 2001 --------------------------------- Cosmos3D is Java applet for 3D models of stars and planets Applet and all other Java classes are in file cosmos.jar. It is free. You can use it "as is" as you like it. You need Java 1.1 compatibale browser to see the applet True or High Color mode of display (32 or 16 bit mode) recomended. Manipulations: Scrollbars rotate model around center point You can zoom model with "dinamic scale" (left side of screen) Right click on planet make it the center of rotation/zooming Left click on nexus node loads link (if any). Buttons switch on/off bodies names and orbits. Space distances are very large in comparison with dimensions of heavenly bodies. Special button is provided to scale these bodies and make them visible. You should use tag in your HTML-page: Applet parameteres are to be set as "value" is text string. It can be interpreted as number (value="123"), some numbers (value="10,20,30"), name (value="Mars.jpg") or subparameter list. Subparameter list consists of some parameters identifiers and their values in brackets: "A(xxx)B(yyy)C(zzz)" Subparameter identifier should be near open bracket '(' (no spaces allowed between them). e.g. value="N(Earth)R(0.006378)C(0xff3f7f7f)" It means that N = "Earth" (planet Name) R = 0.006378 (planet Radius) C = 0xFF3F7F7F (planet Color) Space distances are very large in comparison with dimensions of heavenly bodies. Cosmos3D applet can scale these bodies to make them visible. But Sun is very large in comparison with planets. Most planets are very large in comparison with their moons. So it is necessary to use different scales for sun, planets and moons. ====================================================================== parameter parameter parameter name type description ====================================================================== port.scene text name of the Java class to be loaded as the root of 3D scene. It should be "Cosmos" for Cosmos3D applet. port.units float typical distance of model in meters. All displayed objects are not to be too large or too small in compare with this value. So it is to be is about 1E6 if for Earth vicinity, 1E9 for Solar system, 1E12 for near stars, 1E18 for Galaxy model, 1E-9 for moleculars model, etc. port.scale float initial size of "dianmic scale" in applet window in meters. You may consider this value as initial "distance" from the center of model. e.g. value="300e9" port.clips 2 float minimum and maximum allowed distance in meters e.g. value="1e9,1e12" port.direction 3 float 3 angles (in degrees) of point of view rotation around X,Y and Z coordinate axes e.g. value="70,0,0" sun.scale float scale for suns planet.scale float scale for planets moon.scale float scale for moons button.names text button should be added to switch on/off names of stars and planets, "value" is text on button. e.g. value="NamesOn/Off" button.orbits text button should be added to switch on/off orbits value is text on button. e.g. value="OrbitsOn/Off" button.scale text button should be added to scale objects and return scale to real values value is text on button. e.g. value="ScaleOn/Off" input.scale float all distant and size values of planets are multiplied by this value bodies integer number of planets and other heavenly bodies to be shown far.stars subpar description of stars [n] subpar decription of body ( n - body number ) [n].orbit subpar description of body orbit [n].link text html link to be loaded when clicked on this body [n].map text name of gif or jpg file with texture of body. --------------------------------------------------------------------------- Description of body (subparameters for [n], [n].orbit parameter) ----------- -- ---- Each body is described by subparameter string with parameter name [n], n is the number of body. All colors are to be set in hex format: 0xAARRGGBB (For opaque object AA = FF, for transparent or invisible AA=00). All angle values are set in degrees. But you may also enter angle values as degrees-minutes-seconds in format : d.m's'' or d.m' So (45.30') means 45 degrees and 30 min, same as 45.5 degrees. All distances and coordinates are set in "input.scale" units. The following subparameters can be used $ - type of the body - 1 character * - sun . - planet (default) : - moon N - name of the body (string) R - radius (float value) C - color (integer hex value) P - position : (X,Y,Z) - 3 float values, coordinates of body position is not to be set if body has orbit! T - turn planet around it's Z axis (float value - angle in degrees) e.g. The orbit of n-th body can be set with param [n].orbit and subparameters: r - radius of orbit (size of half axes) e - excentricity p - peregee longitude i - inclanation angle a - orbit ascendancy longitude m - angle between planet position and peregee direction e.g. < param name="[2].orbit" value="r(108.21)e(0.006793)p(130.86)a(76.238)i(2.394)m(90)"> ------------------------------------------------------------ The texture of n-th body can be set with param [n].map e.g. Each body may has html link. Use [n].link parameter e.g. ---------------------------------------------------------------------- Description of far stars (subparameters for far.stars parameter) ----------- -- ---- You can either decribe far stars in special files or generate their positions randomly. If you wish to generate them randomly you should use following form of far.stars parameter : 0(n0)1(n1)2(n2)3(n3) n0 - number of brightest stars n1 - number of bright stars n2 - number of usual stars n3 - number of other stars Or you can use following parameter N(sky) Than all stars coordinates and names are read from files sky0s.txt, sky0n.txt, sky1s.txt, sky1n.txt, sky2s.txt, sky2n.txt, sky3s.txt, sky3n.txt These files are packed in cosmos.jar file and can be loaded automaticaly. --------------------------------------------------------------------- You can find the latest versions of Cosmos3D applet on my site: http://www.sakva.orc.ru/cosmos.htm If there are some problems on this site, inform me please and check http://www.aha.ru/~sakva/cosmos.htm ( www.sakva.orc.ru is updated more frequently ) If you have questions, problems, need help or some special modifications write me please: nicksakva@mtu-net.ru Good luck! Nick Sakva