home *** CD-ROM | disk | FTP | other *** search
- // "Sunlight Barrel"
- // This file will render an image as seen from inside a tubing wave at daytime.
- // Copyright 1994 Robert A. Mickelsen 71042,751
-
-
- #include "colors.inc"
- #include "textures.inc"
- #include "shapes.inc"
- #include "wave.inc"
-
- camera {
- location <-1.007, -4.494, 0.750>
- direction <0.0, 0.0, 3.0071>
- sky <0.0, 0.0, 1.0>
- up <0.0, 0.0, 1.0>
- right <1.3333, 0.0, 0.0>
- look_at <-0.769, 1.842, 0.581>
- }
-
- light_source { // Light1
- <-100.808, 130.393, 190.547>
- color rgb <1.000, 1.000, 1.000>
- }
-
-
- #declare wave1_1 = object {
- bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
- <-3.834245, -0.928592, 0.000000> <-3.617966, -3.920313, 0.000000> <-3.944313, -6.103953, 0.000000> <-0.498921, -4.543246, 0.000000>
- <-3.144655, 1.854024, 0.000000> <-1.122566, -1.003017, 0.000000> <1.343171, -2.073385, -1.220344> <0.970462, -3.346160, 1.129725>
- <-2.045748, 3.110262, 0.000000> <1.319439, 0.222955, -0.504014> <-0.035272, -1.122613, 2.694834> <-0.497226, -4.540582, 2.299598>
- <-0.489370, 2.615655, 0.000000> <1.006780, 1.700975, 1.432659> <-0.880942, 2.507347, 2.426552> <-2.587043, -0.906394, 0.050321> }
- }
- object { // wave1
- wave1_1
- texture {
- wavetex
- }
- }
-
- #declare surfboard_1 = object {
- bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
- <-0.259823, -0.050429, -0.001825> <-0.275056, -0.094569, -0.001932> <-0.175234, -0.098592, -0.065883> <0.016538, -0.098592, -0.063910>
- <-1.155093, 0.015129, 2.391714> <-1.221830, -0.094569, 2.391245> <-0.634415, -0.098592, 2.395370> <-0.016854, -0.098592, 2.399708>
- <-1.171948, 0.015129, 4.791421> <-1.238684, -0.094569, 4.790953> <-0.651270, -0.098592, 4.795078> <-0.033709, -0.098592, 4.799416>
- <-0.944463, 0.015129, 7.152488> <-1.011200, -0.094569, 7.152020> <-0.167505, 0.678019, 10.389944> <-0.115601, 0.678019, 10.390952> }
- }
- #declare surfboard_2 = object {
- bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
- <0.016538, -0.098592, -0.063910> <0.208309, -0.098592, -0.061937> <0.295613, -0.094569, 0.002076> <0.277829, -0.050429, 0.001951>
- <-0.016854, -0.098592, 2.399708> <0.600707, -0.098592, 2.404045> <1.177854, -0.094569, 2.408099> <1.105984, 0.015129, 2.407594>
- <-0.033709, -0.098592, 4.799416> <0.583852, -0.098592, 4.803753> <1.161000, -0.094569, 4.807807> <1.089129, 0.015129, 4.807302>
- <-0.115601, 0.678019, 10.390952> <-0.063696, 0.678019, 10.391960> <0.880102, -0.094569, 7.164918> <0.808232, 0.015129, 7.164413> }
- }
- #declare surfboard_3 = object {
- bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
- <0.277829, -0.050429, 0.001951> <0.260046, -0.006290, 0.001826> <0.198224, 0.017905, -0.062008> <0.006452, 0.017905, -0.063981>
- <1.105984, 0.015129, 2.407594> <1.034113, 0.124826, 2.407089> <0.600707, 0.179278, 2.404045> <-0.016854, 0.179278, 2.399708>
- <1.089129, 0.015129, 4.807302> <1.017259, 0.124826, 4.806797> <0.583852, 0.179278, 4.803753> <-0.033709, 0.179278, 4.799416>
- <0.808232, 0.015129, 7.164413> <0.736361, 0.124826, 7.163909> <-0.053610, 0.673485, 10.392031> <-0.105515, 0.678528, 10.391023> }
- }
- #declare surfboard_4 = object {
- bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
- <0.006452, 0.017905, -0.063981> <-0.185320, 0.017905, -0.065953> <-0.244589, -0.006290, -0.001718> <-0.259823, -0.050429, -0.001825>
- <-0.016854, 0.179278, 2.399708> <-0.634415, 0.179278, 2.395370> <-1.088356, 0.124826, 2.392182> <-1.155093, 0.015129, 2.391714>
- <-0.033709, 0.179278, 4.799416> <-0.651270, 0.179278, 4.795078> <-1.105211, 0.124826, 4.791890> <-1.171948, 0.015129, 4.791421>
- <-0.105515, 0.678528, 10.391023> <-0.157420, 0.683571, 10.390015> <-0.877726, 0.124826, 7.152957> <-0.944463, 0.015129, 7.152488> }
- }
- union { // surfboard
- object { surfboard_1 }
- object { surfboard_2 }
- object { surfboard_3 }
- object { surfboard_4 }
- texture {
- boardtex1
- scale <8.000000, 4.000000, 0.674073>
- rotate <270.000000, 270.000000, 0.000000>
- translate <-2.099817, 0.340019, 2.534052>
- }
- scale <0.200000, 0.200000, 0.200000>
- rotate <95.126228, 16.352993, -175.795502>
- translate <-0.863999, -3.885364, 0.459396>
- }
-
- object { // sky
- sphere {<0,0,0>,1}
- texture {
- Skytex
- scale <1, .25, .25>
- }
- scale <1000.000000, 1000.000000, 1000.000000>
- }
-
-
-
- #declare lip_1 = object {
- bicubic_patch { type 1 flatness 0.0000 u_steps 5 v_steps 5
- <-2.304130, -2.000000, 0.521366> <-0.869658, -2.263290, 0.347578> <0.000000, -2.263290, 0.651708> <0.869658, -2.000000, 0.955838>
- <-4.053811, -1.000000, 0.738602> <-2.319678, -1.000000, 0.260683> <1.455854, -1.000000, 0.000000> <1.420320, -1.000000, 1.737888>
- <-4.053811, 0.000000, 0.738602> <-2.319678, 0.000000, 0.260683> <1.455854, 0.000000, 0.000000> <1.420320, 0.000000, 1.737888>
- <-2.304130, 1.000000, 0.521366> <-0.869658, 1.300903, 0.347578> <0.000000, 1.300903, 0.651708> <0.869658, 1.000000, 0.955838> }
- }
- object { // lip
- lip_1
- texture {
- liptex
- }
- scale <0.500000, 1.500000, 0.500000>
- rotate <-178.414886, -33.245899, 0.000000>
- translate <-1.072524, -2.370918, 1.559552>
- }
-