home *** CD-ROM | disk | FTP | other *** search
- { *************************************************************************
- ** Sphere Floating Above a Hardwood Floor R. Barnhardt **
- ** **
- ** The brick pattern was taken from the sample .QRT files in the **
- ** QRT_ST archive. The wood pattern was taken from PIANO.QRT, **
- ** the colours modified, and a bit of reflectivity added. **
- ** **
- ** For use with the QRT ray tracing system. **
- ************************************************************************* }
-
- FILE_NAME = HardWood.raw
- DEFAULT ( x_res = 280 y_res = 160 aspect = 0.75 )
-
- { **************************************************************** }
- { ** Pattern Definitions - Brick and WoodGrain patterns. ** }
- { **************************************************************** }
-
- PATTERN ( x_size = 80,
- y_size = 50,
- name = BRICK,
- RECTANGLE (
- start_x = 0, start_y = 2,
- end_x = 15, end_y = 18,
- diff = (1.00, .20, .20);
- )
- RECTANGLE (
- start_x = 62, start_y = 2,
- end_x = 77, end_y = 18,
- diff = (1.00, .20, .20);
- )
- RECTANGLE (
- start_x = 22, start_y = 2,
- end_x = 55, end_y = 18,
- diff = (.80, .20, .20);
- )
- RECTANGLE (
- start_x = 2, start_y = 27,
- end_x = 35, end_y = 43,
- diff = (.85, .35, .10);
- )
- RECTANGLE (
- start_x = 42, start_y = 27,
- end_x = 75, end_y = 43,
- diff = (.70, .25, .20);
- )
- )
-
- PATTERN ( name = WOODGRAIN,
- x_size = 10,
- y_size = 11,
- POLYGON (
- diff = (.23, .1, .1)
- reflect = .42
- sreflect = 32
- point = (1, 0) point = (1.2, 1)
- point = (1.4, 3) point = (1.4, 4)
- point = (.8, 5) point = (.5, 6)
- point = (.2, 7) point = (.2, 8.4)
- point = (.8, 10) point = (1, 11)
- point = (2, 11) point = (1, 9)
- point = (.6, 8) point = (.7, 7)
- point = (1.4, 6) point = (1.8, 5)
- point = (1.8, 3) point = (2.2, 2)
- point = (2.2, 1) point = (2, 0)
- point = (1, 0)
- )
- POLYGON (
- diff = (.29, .14, .14)
- reflect = .35
- sreflect = 25
- point = (1.8, 8) point = (2, 7)
- point = (2.5, 6) point = (2.8, 5.2)
- point = (3, 5) point = (3.4, 5.4)
- point = (3.4, 6) point = (3.3, 7)
- point = (3.8, 8) point = (3.8, 9)
- point = (3.4, 9.8) point = (3, 10)
- point = (2.4, 9.8) point = (2, 9)
- point = (1.8, 8) )
- POLYGON (
- diff = (.57, .29, .29)
- reflect = .10
- sreflect = 7
- point = (2.8, 7.2) point = (3.1, 8)
- point = (3.1, 9) point = (3, 9.1)
- point = (2.9, 9) point = (2.6, 8.6)
- point = (2.6, 8) point = (2.8, 7.2)
- )
- POLYGON (
- diff = (.44, .24, .24)
- reflect = .20
- sreflect = 15
- point = (4, 0) point = (3.6, .6)
- point = (3, 2) point = (3.6, 3)
- point = (3.8, 4.6) point = (4.2, 5)
- point = (4.8, 8) point = (3.6, 9)
- point = (4, 11) point = (5, 11)
- point = (5.2, 10) point = (5.2, 9)
- point = (5.6, 7.5) point = (5.4, 6)
- point = (4, 4) point = (4, 2)
- point = (5, 0) point = (4, 0)
- )
- POLYGON (
- diff = (.43, .29, .29)
- reflect = .25
- sreflect = 20
- point = (6, 0) point = (6, .8)
- point = (5.4, 2) point = (5.4, 3)
- point = (5.8, 5) point = (6, 6)
- point = (6.1, 8) point = (6, 11)
- point = (6.4, 11) point = (6.6, 9)
- point = (6.6, 8) point = (6.8, 7)
- point = (6.4, 5) point = (6.4, 4)
- point = (6, 3) point = (6.4, 1)
- point = (6.2, 0) point = (6, 0)
- )
- POLYGON (
- diff = (.36, .21, .21)
- reflect = .20
- sreflect = 15
- point = (7.2, 0) point = (7.2, 1)
- point = (6.8, 2.2) point = (7, 3.2)
- point = (7.4, 3) point = (7.8, 1)
- point = (7.8, 0) point = (7.2, 0)
- )
- POLYGON (
- diff = (.36, .29, .29)
- reflect = .18
- sreflect = 13
- point = (7.2, 11) point = (7.4, 9)
- point = (7.2, 8.6) point = (7.2, 7.6)
- point = (7.4, 7.6) point = (7.9, 10)
- point = (7.8, 11) point = (7.2, 11)
- )
- POLYGON (
- diff = (.29, .14, .14)
- reflect = .35
- sreflect = 25
- point = (8.4, 0) point = (8.6, 3)
- point = (8.6, 4) point = (8, 7)
- point = (8.2, 8) point = (8.2, 10)
- point = (8.4, 11) point = (9, 11)
- point = (8.9, 8) point = (9.4, 6)
- point = (9.4, 4.4) point = (9, 2.2)
- point = (9, 0)
- )
- )
-
- { **************************************************************** }
- { ** Room Description - four walls, a floor, and a ceiling. ** }
- { **************************************************************** }
-
- PARALLELOGRAM ( loc = ( 0, 0, -100), { Walls, brick pattern }
- v1 = (100, 0, 0),
- v2 = ( 0, 50, 0),
- diff = ( .4, .25, .25)
- pattern = BRICK,
- xmult = .2,
- ymult = .2
- )
-
- PARALLELOGRAM ( loc = ( 0, 0, 100),
- v1 = (100, 0, 0),
- v2 = ( 0, 50, 0),
- diff = (.4, .25, .25)
- pattern = BRICK,
- xmult = .3,
- ymult = .3
- )
-
- PARALLELOGRAM ( loc = (100, 0, -100),
- v1 = ( 0, 0, 200),
- v2 = ( 0, 50, 0),
- diff = (.4, .25, .25)
- pattern = BRICK
- xmult = .3,
- ymult = .3
- )
-
- PARALLELOGRAM ( loc = ( 0, 0, -100),
- v1 = ( 0, 0, 200),
- v2 = ( 0, 50, 0),
- diff = (.4, .25, .25)
- pattern = BRICK,
- xmult = .3,
- ymult = .3,
- )
-
- PARALLELOGRAM ( loc = ( 0, 0, 100), { Floor, wood grain. }
- v1 = (100, 0, 0),
- v2 = ( 0, 0, -200),
- diff = (.57, .29, .29)
- reflect = .10
- sreflect = 7
- pattern = WOODGRAIN,
- xmult = .7,
- ymult = .7
- )
-
- PARALLELOGRAM ( loc = ( 0, 50, 100), { Ceiling, med. blue. }
- v1 = (100, 0, 0),
- v2 = ( 0, 0, -200)
- diff = (0.4, 0.4, 0.8)
- )
-
- { **************************************************************** }
- { ** The room's sole occupant, a silver ball (arrgh). ** }
- { **************************************************************** }
-
- BEGIN_BBOX
-
- SPHERE ( loc = (50, 25, -25),
- radius = 15,
- diff = (.3, .3, .3),
- mirror = (.7, .7, .7),
- reflect = .4
- sreflect = 20
- )
- END_BBOX
-
-
- { **************************************************************** }
- { ** Technicalities: Our Observer, and a couple of lamps. ** }
- { **************************************************************** }
-
- OBSERVER ( loc = (30, 25, 30),
- lookat = (50, 0, -80)
- )
-
- LAMP ( loc = (50, 45, 0),
- diff = (1.0, 1.0, 0.9),
- radius = 5,
- dist = 40
- )
-
- LAMP ( loc = (30, 10, -10),
- diff = (1.0, 1.0, 0.9)
- radius = 5,
- dist = 20
- )
-