home *** CD-ROM | disk | FTP | other *** search
- /*
- * Bump-mapped transparent drinking glass on checkerboard
- * C Kolb 12/90
- */
- /*
- * Drinking glass object.
- * C. Kolb 12/89
- */
- name glass
- union
- torus 0.95 0.06 0 0 2 0 0 1
- difference
- list /* outer glass */
- cone 0.9 0 0 -0.001 1.0 0 0 2
- disc 1 0 0 2 0 0 1
- disc 0.9 0 0 -.001 0 0 -1
- end
- list /* inner glass */
- cone 0.7 0 0 0.1 0.9 0 0 2.2
- disc .9 0 0 2.2 0 0 1
- disc .7 0 0 0.1 0 0 -1
- end
- end
- end
-
- surface glass
- diffuse .08 .08 .08 specular .2 .3 .3
- reflect 1. /*transp 1 body .7 .8 .8 index 1.3*/
- surface white ambient 1 1 1
- surface red diffuse .8 0 0 ambient .1 0 0 specular .6 .6 .6
-
- object glass glass texture wood /*texture bump 0.2 scale .2 .2 .2*/
-
- plane ambient .1 .1 .1 diffuse .7 .7 .7 0 0 0 0 0 1
- texture checker red scale .8 .8 .8 translate 0 0 -.2
-
- background .1 .3 .8
- eyep 0 -10 7
- fov 30
- light 1. directional 1. -1. 1.
- screen 256 256
- screen 128 128