home *** CD-ROM | disk | FTP | other *** search
- // Demonstration of Dice.Inc. This one has one of each DieNUp in it
-
- #include "colors.inc"
- #include "textures.inc"
- // All dice are Red with Yellow spots
- #declare DieSpotTexture = texture {pigment {color Yellow}}
- #include "dice.inc"
- #declare DieTexture = texture {pigment {color Red}}
-
- camera {
- location <10, 10, -15>
- direction <0, 0, 3>
- up <0, 1, 0>
- right <4/3, 0, 0>
- look_at <0, 0, 0>
- }
-
- light_source {<20, 20, -30> color White}
-
- //Put 6 dice in the middle of the picture
-
- object {
- Die1Up
- texture {DieTexture}
- scale 0.5
- translate <-1, 0.5, 2.5>
- }
-
- object {
- Die2Up
- texture {DieTexture}
- scale 0.5
- translate < 1, 0.5, 2.5>
- }
-
- object {
- Die3Up
- texture {DieTexture}
- scale 0.5
- translate <-1.5, 0.5, 0>
- }
-
- object {
- Die4Up
- texture {DieTexture}
- scale 0.5
- translate <1.5, 0.5, 0>
- }
-
- object {
- Die5Up
- texture {DieTexture}
- scale 0.5
- translate <-1, 0.5, -2.5>
- }
-
- object {
- Die6Up
- texture {DieTexture}
- scale 0.5
- translate < 1, 0.5, -2.5>
- }
-
- //Add a plane for the dice to rest on
- object {
- plane {y, 0}
- texture {pigment {color White}}
- }
-