home *** CD-ROM | disk | FTP | other *** search
- // Persistence of Vision Raytracer
- // Sample file
- // By Jorge Arreguin
-
- {
- car.dat PvRay Script February 27, '91
-
- By Jorge Arreguin
- i. Allende # 611
- Cortazar , Gto.
- Mexico cp 38300
-
- Renders a Futuristic Car, making a diferent use of the imagemap
- }
-
- {-----------------------------declaraciones------------------------}
-
- #include "shapes.dat"
- #include "colors.dat"
- #include "textures.dat"
-
- #declare JA_Hyperboloid = quadric
- < 1.0 -1.0 1.0>
- < 0.0 0.0 0.0>
- < 0.0 0.0 0.0>
- -0.6
- end_quadric
-
- #declare Near_Black = colour red 0.1 green 0.1 blue 0.1
-
- #declare Llanta = intersection
- quadric QSphere scale < 1.0 1.0 1.0 > end_quadric
- quadric JA_Hyperboloid scale < 0.7 0.3 0.7 > inverse end_quadric
- end_intersection
-
- #declare Polvera = object
- quadric QSphere scale < 0.8 0.2 0.8 > end_quadric
- texture
- color Gray
- reflection 0.3
- phong 0.8
- phongsize 10.0
- end_texture
- color Gray
- end_object
-
- view_point
- location <0.0 -33.0 0.0>
- direction <0.0 2.0 0.0>
- up <0.0 0.0 1.0>
- right <1.33333 0.0 0.0>
- rotate < -30.0 0.0 30.0 >
- end_view_point
-
- object
- sphere <0.0 0.0 0.0> 5.0 end_sphere
- translate <-10.0 -30.0 50.0>
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
- object
- sphere <0.0 0.0 0.0> 2.0 end_sphere
- translate <40.0 -40.0 45.0>
- colour red 1.0 green 1.0 blue 1.0
- texture
- colour White
- ambient 1.0
- diffuse 0.0
- end_texture
- light_source
- colour White
- end_object
-
- {--------------------------------------- cuerpo --------------------}
-
- object
- intersection
- quadric
- QSphere
- scale < 10.0 10.0 4.0 >
- end_quadric
- plane < 1.0 0.0 0.0 > 0.0
- rotate < 0.0 -16.2379 0.0 >
- translate < -5.0 0.0 0.0 >
- inverse
- end_plane
- plane < 0.0 0.0 1.0 > 0.01 end_plane
- plane < 0.0 0.0 1.0 > 0.005 inverse end_plane
- quadric
- Cylinder_X
- scale < 1.0 5.0 5.0 >
- end_quadric
- end_intersection
- bounded_by sphere < 0.0 0.0 0.0 > 10.0 end_sphere end_bound
- texture
- color CBlue
- reflection 0.4
- end_texture
- color CBlue
- end_object
-
- object
- union
- intersection
- quadric
- QSphere
- scale < 10.0 10.0 4.0 >
- end_quadric
- plane < 1.0 0.0 0.0 > 0.0
- rotate < 0.0 -16.2379 0.0 >
- translate < -5.0 0.0 0.0 >
- inverse
- end_plane
- plane < 0.0 0.0 1.0 > 0.01 inverse end_plane
- quadric
- Cylinder_X
- scale < 1.0 5.0 5.0 >
- end_quadric
- end_intersection
- intersection
- quadric
- QSphere
- scale < 3.352 8.380 3.352 >
- rotate < 0.0 -16.2379 0.0 >
- translate < -5.0 0.0 0.0 >
- end_quadric
- plane < 1.0 0.0 0.0 > 0.0
- rotate < 0.0 -16.2379 0.0 >
- translate < -5.0 0.0 0.0 >
- end_plane
- plane < 1.0 0.0 0.0 > 0.0
- rotate < 0.0 -64.0 0.0 >
- translate < -5.0 0.0 0.0 >
- inverse
- end_plane
- plane < 0.0 0.0 1.0 > 0.01 inverse end_plane
- quadric
- Cylinder_X
- scale < 1.0 5.0 5.0 >
- end_quadric
- end_intersection
- end_union
- bounded_by sphere < 0.0 0.0 0.0 > 10.0 end_sphere end_bound
- texture
- imagemap < 1.0 -1.0 0.0 > gif "glass3.gif"
- interpolate 2.0
- once
- end_map
- scale < 18.6 10.0 1.0 >
- translate < -8.38 -5.0 0.0 >
- phong 0.8
- phongsize 20.0
- reflection 0.4
- end_texture
- color CBlue
- end_object
-
- {------------------------------- llantas ------------------------------}
-
- object
- intersection
- Llanta
- scale < 1.907 1.0 1.907 >
- translate < -4.0 -5.0 0.907 >
- end_intersection
- texture
- color Near_Black
- phong 0.8
- phongsize 40.0
- end_texture
- color Near_Black
- end_object
-
- object
- intersection
- Llanta
- scale < 1.907 1.0 1.907 >
- translate < -4.0 5.0 0.907 >
- end_intersection
- texture
- color Near_Black
- phong 0.8
- phongsize 40.0
- end_texture
- color Near_Black
- end_object
-
- object
- intersection
- Llanta
- scale < 1.435 1.0 1.435 >
- translate < 6.5 -5.0 0.435 >
- end_intersection
- texture
- color Near_Black
- phong 0.8
- phongsize 40.0
- end_texture
- color Near_Black
- end_object
-
-
- object
- intersection
- Llanta
- scale < 1.435 1.0 1.435 >
- translate < 6.5 5.0 0.435 >
- end_intersection
- texture
- color Near_Black
- phong 0.8
- phongsize 40.0
- end_texture
- color Near_Black
- end_object
-
- {---------------------------- polveras -------------------------}
-
- object
- Polvera
- scale < 1.3 1.0 1.3 >
- translate < 6.5 5.0 0.435 >
- end_object
-
- object
- Polvera
- scale < 1.3 1.0 1.3 >
- translate < 6.5 -5.0 0.435 >
- end_object
-
- object
- Polvera
- scale < 1.8 1.0 1.8 >
- translate < -4.0 5.0 0.907 >
- end_object
-
- object
- Polvera
- scale < 1.8 1.0 1.8 >
- translate < -4.0 -5.0 0.907 >
- end_object
-
- {------------------------------ piso y bardas -----------------------------}
-
- object
- plane < 0.0 0.0 -1.0 > 1.0 end_plane
- texture
- checker color Brown color Khaki
- rotate < -90.0 0.0 0.0 >
- reflection 0.5
- end_texture
- color Maroon
- end_object
-
- object
- plane < -1.0 0.0 0.0 > 11.0 end_plane
- texture
- color Maroon
- reflection 0.5
- end_texture
- color Maroon
- end_object
-
- object
- plane < 0.0 1.0 0.0 > 7.0 end_plane
- texture
- color Maroon
- reflection 0.5
- end_texture
- color Maroon
- end_object
-