Offlining a 3D server modell from the Sun homepage

Maybe you´ve noticed, that we have 3D models of many servers at our home page. You can look at the system from every side, look into the system, take out some components. I found this quite practical in presentations at a customer site instead of showing some pictures, not showing exactly that part, that the customer wanted to see. So i searched for a way to take the complete modell to the customer and finally found one.

  1. Go to the Webpage of the server an click for the 360 degrees model of the server. I will use the 3D model of the Sun Fire x4140.
  2. Use the context menu to display the source code of the page.
  3. Search for the tag IFRAME. This should yield something like
&lt;iframe src="<b></b>index.html" width="535" height="413" scrolling="no" frameborder="0" name="content"&gt;

The highlighted part is the directory for the model on the Sun webserver. You will need this directory in the following steps.

  1. Create a directory for the files and change to this directory.
# mkdir -p server/4140<br />
#cd server/4140
  1. At first gather with your prefered tool the index.html. I will use curl on MacOS X for this task, but other tools like wget will do it as well.
curl > index.html
  1. Grep for kaonApp in the index.html:
grep "kaonApp" index.html<br />
&lt;script&gt;kaonApp(535, 413, 'SplashMessageText=""; SplashMessageImage=""; maxWaitTime=10; Data.Program.model="<b>model_4140.jar</b>"; Data.Program.modelUI="<b>model_4140_ui.jar</b>"; shadowDist=0.1; customizeUI={panLock={false};}; customizeModel={};');&lt;/script&gt;
  1. The both highlighted files are the interesting ones. Download both to your local machine.
# curl > model_4140.jar<br />
#curl > model_4140_ui.jar
  1. Now you have to download serveral other files from this directory:
#curl > mesonApplet.jar<br />
# curl > sceneGluon.jar<br />
# curl > rasterGluon.jar<br />
# curl > ui.jar<br />
# curl > kaonapp.js
  1. At the end all files should found their way to your directory:
dhcp-eham02-157-71:4140 joergmoellenkamp$ ls -l<br />
total 2168<br />
-rw-r--r--  1 joergmoellenkamp  staff     611 17 Apr 18:11 index.html<br />
-rw-r--r--  1 joergmoellenkamp  staff    1558 17 Apr 18:14 kaonapp.js<br />
-rw-r--r--  1 joergmoellenkamp  staff   32753 17 Apr 18:16 mesonApplet.jar<br />
-rw-r--r--  1 joergmoellenkamp  staff  887335 17 Apr 18:14 model_4140.jar<br />
-rw-r--r--  1 joergmoellenkamp  staff    2641 17 Apr 18:14 model_4140_ui.jar<br />
-rw-r--r--  1 joergmoellenkamp  staff   67924 17 Apr 18:17 rasterGluon.jar<br />
-rw-r--r--  1 joergmoellenkamp  staff   62282 17 Apr 18:17 sceneGluon.jar<br />
-rw-r--r--  1 joergmoellenkamp  staff   37328 17 Apr 18:17 ui.jar
  1. Now open the index.html as a file in your browser, in my example on my system open file:///Users/joergmoellenkamp/4140/index.html Tips:
  2. You can resize the window by editing the index.hmtl:
&lt;script&gt;kaonApp(<b>535</b>, <b>413</b>, 'SplashMessageText=""; SplashMessageImage=""; maxWaitTime=10; Data.Program.model="model_4140.jar"; Data.Program.modelUI="model_4140_ui.jar"; shadowDist=0.1; customizeUI={panLock={false};}; customizeModel={};');&lt;/script&gt;

By changing the both highlighted values, you can resize the visualisation to every size you want.