4. Using Sssim Studio [Advanced]


4.3 Creating the Contents Page

By using the Contents Page, you can operate Solar System Simulator with interfaces whose layout has been designed with freely by HTML. The following describes how to create unique contents pages based on the knowledge you gained in the chapter on creating scenarios.

Basically, create contents page in the same way as the usual HTM. You can use links between pages, as well as various media such as images and Flash.

Commands for operating Solar System Simulator are described using grammar similar to the page jump by hyper-link. Describe hyper-links in the same way as describing normal hyper-links are described as:

<a href="http://www.sssim.com/">Sssim Official website </a>

To embed commands, describe a command starting with "sssim://" instead of "http://".

<a href="sssim://Ssystem.NameTog">Show/hide celestial body names</a>

Actually, "sssim://" is not a kind of protocol, but a keyword indicating that the text that follows is the command of Solar System Simulator. You can also list out multiple commands as shown below partitioned by the semicolon (;).

<a href="sssim://Ssystem.Name 1;Ssystem.Orbit 1">Show names and orbits </a>

You can also describe scenario filenames not commands by the relative path from the HTML file of this guide page. By clicking this hyper link, you can execute the specified scenario file.

<a href="sssim://scenarios/test.scn">Executes a test scenario </a>

Here, you can use the special grammar "condition command". You can determine if a property value is a specific value, and select the command to be executed according to results. Specifically, describe as follows.

Grammar: ?Property Name=Value?command for when condition is true:command for when condition is false
Example: ?Ssystem.Name=1?Ssystem.Name 0:Ssystem.Name 1
Example: ?Camera.Mode=Examine?testA.scn:testB.scn

The contents page can be embedded with the commands of Solar System Simulator, as well as functions for displaying resources such as images and movies on the Media Viewer Window. This function can be realized just by providing links for files of resources such as the normal hyper links.

<a href="images/Sun.jpg">Show Sun image</a>

All the hyper-linked files with extensions in the resource format (Bmp/Jpeg/Png/Gif/AVI/WMV format) work to display in the Media Viewer.

By creating contents pages linked to Solar System Simulator, you can realize various ideas such as the minimum operation interfaces you require, interactive manuals, tutorials, auto-scenarios, pages introducing the latest astronomical phenomenon with simulator and other resources, etc. By publishing your original contents page online like usual websites, other Solar System Simulator users can use your contents just by knowing the URL of your site. We hope that you will make good use of this online feature to publish and share the contents, to make a rich user community

.