home *** CD-ROM | disk | FTP | other *** search
/ Serif Graphics Collection / Serif_Graphics_Collection_6_DTP_Porgrams_on_One_CD_Serif-SPF.iso / 3DPLUS / data1.cab / VRML / computer.wrl < prev    next >
Text File  |  1998-04-22  |  8KB  |  515 lines

  1. #VRML V1.0 ascii
  2.  
  3. #This is my computer
  4.  
  5. #First a big block
  6.  
  7. Material {
  8.     shininess 0.15
  9.     diffuseColor 1.0 0.925 0.69
  10.     specularColor 0.95 0.95 0.95
  11. }
  12. Cube {
  13.     depth 8.0
  14.     width 3.5
  15.     height 6.0
  16. }
  17.  
  18. #Now for the co-ordinates for the contours of the front bit
  19. Coordinate3 {
  20.     point [
  21.         -1.75 3.0 4.0,
  22.         1.75 3.0 4.0,
  23.         1.75 -3.0 4.0,
  24.         -1.75 -3.0 4.0,
  25.         -1.75 3.0 4.5,
  26.         1.75 3.0 4.5,
  27.         1.75 -3.0 4.5,
  28.         -1.75 -3.0 4.5,
  29.         #Now for the contours
  30.         -1.5 2.8 4.5,
  31.         1.5 2.8 4.5,
  32.         1.5 0.5 4.5,
  33.         1.4 0.4 4.5,
  34.         1.25 0.25 4.5,
  35.         1.0 0.2 4.5,
  36.         0.75 0.15 4.5,
  37.         0.5 0.0 4.5,
  38.         0.25 -0.125 4.5,
  39.         0.0 -0.25 4.5,
  40.         -0.25 -0.25 4.5,
  41.         -0.75 -0.2 4.5,
  42.         -1.0 -0.15 4.5,
  43.         -1.6 0.0 4.5,
  44.         0.25 -3.0 4.5,
  45.         0.25 -0.6 4.5,
  46.         0.3 -0.5 4.5,
  47.         0.5 -0.25 4.5,
  48.         0.75 -0.125 4.5,
  49.         1.0 0.0 4.4,
  50.         1.5 0.0 4.3,
  51.         -1.6 -2.25 4.5,
  52.         -1.6 -2.15 4.3,
  53.         0.125 -2.25 4.5,
  54.         0.125 -2.15 4.3,
  55.         -1.6 -2.05 4.5,
  56.         -1.6 -1.95 4.3,
  57.         0.125 -2.05 4.5,
  58.         0.125 -1.95 4.3,
  59.         -1.6 -1.85 4.5,
  60.         -1.6 -1.75 4.3,
  61.         0.125 -1.85 4.5,
  62.         #Number 40 is next
  63.         0.125 -1.75 4.3,
  64.         -1.6 -2.15 4.5,
  65.         0.125 -2.15 4.5,
  66.         -1.6 -1.95 4.5,
  67.         0.125 -1.95 4.5,
  68.         -1.6 -1.75 4.5,
  69.         0.125 -1.75 4.5,
  70.         #Now we're up to number 47
  71.         0.5 -3.0 4.3,
  72.         0.5 -0.6 4.3,
  73.         1.5 -3.0 4.3,
  74.         1.75 -0.6 4.5,
  75.         0.25 -2.75 4.3,
  76.         1.75 -2.75 4.3,
  77.         #Ok, we're up to 53
  78.         #to think that all these points have been
  79.         #drawn on a 2cm square bit of paper
  80.         0.75 -0.5 4.3,
  81.         1.0 -0.33 4.3,
  82.         1.25 -0.25 4.3,
  83.         #Time for a break
  84.         #---------------------------
  85.         #That's better
  86.         -1.3 2.8 4.3,
  87.         1.3 2.8 4.3,
  88.         1.3 0.5 4.3,
  89.         -1.3 0.0 4.3,
  90.         -1.5 2.6 4.3,
  91.         1.5 2.6 4.3,
  92.         #Alright number 62, after this set of points
  93.         #we can do all the fun stuff
  94.         1.4 0.6 4.3,
  95.         1.25 0.45 4.3,
  96.         1.0 0.4 4.3,
  97.         0.75 0.25 4.3,
  98.         0.5 0.15 4.3,
  99.         0.25 0.06 4.3,
  100.         0.0 -0.05 4.3,
  101.         -0.25 -0.05 4.3,
  102.         -0.75 0.0 4.3,
  103.         -1.0 0.01 4.3,
  104.     ]
  105. }
  106. IndexedFaceSet {
  107.     coordIndex [
  108.         4, 5, 1, 0, -1,
  109.         3, 7, 4, 0, -1,
  110.         2, 6, 7, 3, -1,
  111.         1, 5, 6, 2, -1,
  112.         #Now for the grill bits at the bottom
  113.         31, 32, 30, 29, -1,
  114.         32, 42, 41, 30, -1,
  115.         42, 35, 33, 41, -1,
  116.         35, 36, 34, 33, -1,
  117.         36, 44, 43, 34, -1,
  118.         44, 39, 37, 43, -1,
  119.         39, 40, 38, 37, -1,
  120.         40, 46, 45, 38, -1,
  121.         #Now for the outline contours
  122.         7, 29, 8, 4, -1,
  123.         22, 31, 29, 7, -1,
  124.         23, 46, 31, 22, -1,
  125.         21, 45, 46, 23, -1,
  126.         21, 23, 20, -1,
  127.         19, 20, 23, -1,
  128.         18, 19, 23, -1,
  129.         17, 18, 23, -1,
  130.         16, 17, 23, -1,
  131.         16, 23, 24, -1,
  132.         15, 16, 24, 25, -1,
  133.         14, 15, 25, 26, -1,
  134.         13, 14, 26, 27, -1,
  135.         12, 13, 27, 28, -1,
  136.         48, 23, 22, 47, -1,
  137.         28, 49, 6, 50, -1,
  138.         51, 22, 6, 52, -1,
  139.         #This is really getting confusing
  140.         11, 12, 28, -1,
  141.         10, 11, 28, 50, -1,
  142.         4, 8, 9, 5, -1,
  143.         5, 9, 10, 50, -1,
  144.         24, 23, 48, 53, -1,
  145.         25, 24, 23, 53, -1,
  146.         25, 24, 53, 54, -1,
  147.         26, 25, 54, 55, -1,
  148.         27, 26, 55, 28, -1,
  149.         56, 8, 21, 59, -1,
  150.         9, 57, 58, 10, -1,
  151.         9, 8, 60, 61, -1,
  152.         #Alright here's another tricky bit
  153.         10, 62, 63, 11, -1,
  154.         11, 63, 64, 12, -1,
  155.         12, 64, 65, 13, -1,
  156.         13, 65, 66, 14, -1,
  157.         14, 66, 67, 15, -1,
  158.         15, 67, 68, 16, -1,
  159.         16, 68, 69, 17, -1,
  160.         69, 18, 17, -1,
  161.         18, 69, 70, 19, -1,
  162.         19, 70, 71, 20, -1,
  163.         20, 71, 59, 21
  164.     ]
  165. }
  166. #The backing
  167. Translation {
  168.     translation 0.0 0.0 4.3
  169. }
  170. Cube {
  171.     height 5.9
  172.     width 3.4
  173.     depth 0.01
  174. }
  175. Separator {
  176. Translation {
  177.     translation -0.8 -0.75 0.2
  178. }
  179. Material {
  180.     diffuseColor 0.0 0.0 0.0
  181.     shininess 0.0
  182. }
  183. Cube {
  184.     width 0.75
  185.     height 0.4
  186.     depth 0.01
  187. }
  188. Separator {
  189.     Translation {
  190.         translation -0.375 0.0 0.0
  191.     }
  192.     Rotation {
  193.         rotation 1.0 0.0 0.0 1.571
  194.     }
  195.     DEF endbit Cylinder {
  196.         height 0.01
  197.         radius 0.1925
  198.     }
  199.     Translation {
  200.         translation 0.75 0.0 0.0
  201.     }
  202.     USE endbit
  203.     Rotation {
  204.         rotation 1.0 0.0 0.0 -1.571
  205.     }
  206.     Material {
  207.         diffuseColor 1.0 0.518 0.04
  208.         transparency 0.4
  209.         emissiveColor 1.0 0.518 0.04
  210.     }
  211.     DEF light Sphere {
  212.         radius 0.03
  213.     }
  214.     Translation {
  215.         translation 0.0 0.12 0.0
  216.     }
  217.     Material {
  218.         diffuseColor 0.45 1.0 0.35
  219.         transparency 0.4
  220.         emissiveColor 0.694 1.0 0.392
  221.     }
  222.     USE light
  223.     Translation {
  224.         translation 0.0 -0.24 0.0
  225.     }
  226.     Material {
  227.         diffuseColor 1.0 0.0 0.0
  228.         transparency 0.4
  229.         emissiveColor 1.0 0.0 0.0
  230.     }
  231.     USE light
  232.     Translation {
  233.         translation -0.25 0.2 0.01
  234.     }
  235.     Material {
  236.         diffuseColor 1.0 1.0 1.0
  237.         transparency 0.0
  238.     }
  239.     FontStyle {
  240.         family SANS
  241.         size 0.05
  242.     }
  243.     AsciiText {
  244.         string [ "POWER",
  245.             "TURBO",
  246.             "H. D. D."
  247.         ]
  248.         spacing 1.5
  249.     }
  250.     Translation {
  251.         translation -0.4 -0.175 0.0
  252.     }
  253.     Material {
  254.         diffuseColor 0.0 1.0 0.0
  255.         emissiveColor 0.0 1.0 0.0
  256.     }
  257.     FontStyle {
  258.         family SANS
  259.         size 0.2
  260.         style ITALIC
  261.     }
  262.     AsciiText {
  263.         string "H I"
  264.     }
  265. }
  266. Switch {
  267.     whichChild -1
  268.     Material {
  269.         diffuseColor 0.0 0.0 0.0
  270.         shininess 0.8
  271.         specularColor 1.0 1.0 1.0
  272.         transparency 2.0
  273.     }
  274.     Translation {
  275.         translation 0.0 0.0 0.04
  276.     }
  277.     Cube {
  278.         width 0.75
  279.         height 0.4
  280.         depth 0.001
  281.     }
  282.     Translation {
  283.         translation -0.375 0.0 0.0
  284.     }
  285.     Rotation {
  286.         rotation 1.0 0.0 0.0 1.571
  287.     }
  288.     DEF enbit Cylinder {
  289.         height 0.001
  290.         radius 0.1925
  291.     }
  292.     Translation {
  293.         translation 0.75 0.0 0.0
  294.     }
  295.     USE enbit
  296.     Rotation {
  297.         rotation 1.0 0.0 0.0 -1.571
  298.     }
  299. }
  300. }
  301.  
  302. #Now for the buttons on the right
  303.  
  304. Separator {
  305.     Material {
  306.         shininess 0.15
  307.         diffuseColor 1.0 0.925 0.69
  308.         specularColor 0.95 0.95 0.95
  309.     }    
  310.     Translation {
  311.         translation 0.8 -1.0 0.0
  312.     }
  313.     Scale {
  314.         scaleFactor 1.0 1.0 0.25
  315.     }
  316.     Sphere {
  317.         radius 0.15
  318.     }
  319.     Translation {
  320.         translation 0.0 -0.5 0.0
  321.     }
  322.     Sphere {
  323.         radius 0.12
  324.     }
  325.     Translation {
  326.         translation 0.0 -0.5 0.0
  327.     }
  328.     Sphere {
  329.         radius 0.12
  330.     }
  331.     Translation {
  332.         translation 0.0 -0.55 0.0
  333.     }
  334.     Material {
  335.         shininess 1.0
  336.         specularColor 1.0 1.0 1.0
  337.         diffuseColor 0.75 0.75 0.75
  338.     }
  339.     Rotation {
  340.         rotation 1.0 0.0 0.0 1.571
  341.     }
  342.     Cylinder {
  343.         height 0.05
  344.         radius 0.13
  345.     }
  346.     Rotation {
  347.         rotation 1.0 0.0 0.0 -1.571
  348.     }
  349.     Scale {
  350.         scaleFactor 1.0 1.0 4.0
  351.     }
  352.     Translation {
  353.         translation 0.28 1.55 0.05
  354.     }
  355.     Material {
  356.         shininess 0.0
  357.         specularColor 0.0 0.0 0.0
  358.         diffuseColor 0.0 0.0 0.0
  359.     }
  360.     FontStyle {
  361.         size 0.07
  362.         style BOLD
  363.     }
  364.     AsciiText {
  365.         justification LEFT
  366.         string "POWER"
  367.         width 7.0
  368.     }
  369.     Translation {
  370.         translation 0.0 -0.5 0.0
  371.     }
  372.     AsciiText {
  373.         string "TURBO"
  374.     }
  375.     Translation {
  376.         translation 0.0 -0.5 0.0
  377.     }
  378.     AsciiText {
  379.         string "RESET"
  380.     }
  381. }
  382.  
  383. #The drives and slots
  384. Separator {
  385.     #A few points for the outlining
  386.     Switch {
  387.         whichChild -1
  388.         Coordinate3 {
  389.             point [
  390.                 -1.31 1.05 0.05,
  391.                 -1.31 0.56 0.05,
  392.                 0.21 0.56 0.05,
  393.                 0.21 1.05 0.05,
  394.                 -1.31 0.05 0.05,
  395.                 0.21 0.05 0.05,
  396.                 -1.3 2.57 0.05,
  397.                 -1.3 1.80 0.05,
  398.                 1.3 1.80 0.05,
  399.                 1.3 2.57 0.05,
  400.                 -1.3 1.05 0.05,
  401.                 1.3 1.05 0.05,
  402.                 -1.26 2.5 0.1,
  403.                 -1.26 2.1 0.1,
  404.                 1.26 2.1 0.1,
  405.                 1.26 2.5 0.1,
  406.                 0.95 1.975 0.1,
  407.                 0.95 1.825 0.1,
  408.                 1.25 1.825 0.1,
  409.                 1.25 1.975 0.1
  410.             ]
  411.         }
  412.         Material {
  413.             diffuseColor 0.0 0.0 0.0
  414.             shininess 0.0
  415.         }
  416.         IndexedLineSet {
  417.             coordIndex [
  418.                 0, 1, 2, 3, 0, -1,
  419.                 1, 4, 5, 2, 1, -1,
  420.                 6, 7, 8, 9, 6, -1,
  421.                 7, 10, 11, 8, 7, -1,
  422.                 12, 13, 14, 15, 12, -1,
  423.                 16, 17, 18, 19, 16
  424.             ]
  425.         }
  426.     }
  427.     Material {
  428.         shininess 0.15
  429.         diffuseColor 1.0 0.925 0.69
  430.         specularColor 0.95 0.95 0.95
  431.     }
  432.     Translation {
  433.         translation -0.55 0.8 0.0
  434.     }
  435.     DEF block Cube {
  436.         depth 0.1
  437.         height 0.5
  438.         width 1.5
  439.     }
  440.     Translation {
  441.         translation 0.0 -0.51 0.0
  442.     }
  443.     USE block
  444.     Translation {
  445.         translation 0.55 1.89 0.0
  446.     }
  447.     DEF blockii Cube {
  448.         depth 0.1
  449.         width 2.6
  450.         height 0.74
  451.     }
  452.     Separator {
  453.         #These are the details on the CD player
  454.         Translation {
  455.             translation 0.0 0.1 0.0
  456.         }
  457.         Cube {
  458.             depth 0.15
  459.             width 2.5
  460.             height 0.4
  461.         }
  462.         Translation {
  463.             translation 1.1 -0.375 0.0
  464.         }
  465.         Cube {
  466.             depth 0.2 
  467.             width 0.3
  468.             height 0.15
  469.         }
  470.     }
  471.     Translation {
  472.         translation 0.0 -0.76 0.0
  473.     }
  474.     USE blockii
  475.     #Now to fill in the gaps
  476.     Translation {
  477.         translation 0.7525 -0.9 0.0
  478.     }
  479.     Cube {
  480.         width 1.05
  481.         depth 0.1
  482.         height 1.0
  483.     }
  484.     Translation {
  485.         translation -1.3025 -0.76 0.0
  486.     }
  487.     USE block
  488.     Translation {
  489.         translation 1.3025 0.9 0.0
  490.     }
  491.     Material {
  492.         diffuseColor 1.0 1.0 1.0
  493.     }
  494.     Cube {
  495.         width 0.5
  496.         height 0.5
  497.         depth 0.15
  498.     }
  499.     Material {
  500.         diffuseColor 1.0 0.0 0.0
  501.         shininess 0.0
  502.     }
  503.     FontStyle {
  504.         family SERIF
  505.         style (BOLD|ITALIC)
  506.         size 0.07
  507.     }
  508.     Translation {
  509.         translation 0.0 0.0 0.1
  510.     }
  511.     AsciiText {
  512.         string "VRMLibrary"
  513.         justification CENTER
  514.     }
  515. }