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
<iframe src="http://frsun.downloads.edgesuite.net/sun/08C12320/index.html" width="535" height="413" scrolling="no" frameborder="0" name="content">
The highlighted part is the directory for the model on the Sun webserver. You will need this directory in the following steps.
4. Create a directory for the files and change to this directory.
# mkdir -p server/4140
#cd server/4140
5. 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 http://frsun.downloads.edgesuite.net/sun/08C12320/index.html > index.html
6. Grep for
kaonApp in the
index.html:
grep "kaonApp" index.html
<script>kaonApp(535, 413, 'SplashMessageText=""; SplashMessageImage=""; maxWaitTime=10; Data.Program.model="model_4140.jar"; Data.Program.modelUI="model_4140_ui.jar"; shadowDist=0.1; customizeUI={panLock={false};}; customizeModel={};');</script>
7. The both highlighted files are the interesting ones. Download both to your local machine.
# curl http://frsun.downloads.edgesuite.net/sun/08C12320/model_4140.jar > model_4140.jar
#curl http://frsun.downloads.edgesuite.net/sun/08C12320/model_4140_ui.jar > model_4140_ui.jar
8. Now you have to download serveral other files from this directory:
#curl http://frsun.downloads.edgesuite.net/sun/08C12320/mesonApplet.jar > mesonApplet.jar
# curl http://frsun.downloads.edgesuite.net/sun/08C12320/sceneGluon.jar > sceneGluon.jar
# curl http://frsun.downloads.edgesuite.net/sun/08C12320/rasterGluon.jar > rasterGluon.jar
# curl http://frsun.downloads.edgesuite.net/sun/08C12320/ui.jar > ui.jar
# curl http://frsun.downloads.edgesuite.net/sun/08C12320/kaonapp.js > kaonapp.js
9. At the end all files should found their way to your directory:
dhcp-eham02-157-71:4140 joergmoellenkamp$ ls -l
total 2168
-rw-r--r-- 1 joergmoellenkamp staff 611 17 Apr 18:11 index.html
-rw-r--r-- 1 joergmoellenkamp staff 1558 17 Apr 18:14 kaonapp.js
-rw-r--r-- 1 joergmoellenkamp staff 32753 17 Apr 18:16 mesonApplet.jar
-rw-r--r-- 1 joergmoellenkamp staff 887335 17 Apr 18:14 model_4140.jar
-rw-r--r-- 1 joergmoellenkamp staff 2641 17 Apr 18:14 model_4140_ui.jar
-rw-r--r-- 1 joergmoellenkamp staff 67924 17 Apr 18:17 rasterGluon.jar
-rw-r--r-- 1 joergmoellenkamp staff 62282 17 Apr 18:17 sceneGluon.jar
-rw-r--r-- 1 joergmoellenkamp staff 37328 17 Apr 18:17 ui.jar
10. 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:
1. You can resize the window by editing the
index.hmtl:
<script>kaonApp(535, 413, 'SplashMessageText=""; SplashMessageImage=""; maxWaitTime=10; Data.Program.model="model_4140.jar"; Data.Program.modelUI="model_4140_ui.jar"; shadowDist=0.1; customizeUI={panLock={false};}; customizeModel={};');</script>
By changing the both highlighted values, you can resize the visualisation to every size you want.