File:UniversalBricks03.jpg

From Marspedia
Revision as of 10:49, 25 November 2013 by Rfc (talk | contribs) (cat+)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

UniversalBricks03.jpg(800 × 600 pixels, file size: 24 KB, MIME type: image/jpeg)

ten-hole-cube with pin

Source: User:Rfc has created this image.

Tool: POV-Ray Version 1.0

Scene code:


#include "colors.inc"           // Standard colors library
#include "shapes.inc"           // Commonly used object shapes
#include "textures.inc"         // LOTS of neat textures.  Lots of NEW textures.
#include "stones.inc"           // SPECIAL!  Mike Miller's stone library.

camera 
{
  location <100.0  40.0  -65.0>
  direction <0.0 0.0 2.9>
  //up  <0.0  1.0  0.0>
  right <1.4 0.0 0.0>
  look_at <0 0 0>
}

object { light_source { <700 500 -500>  color White  } }
object { light_source { <700 300 200>  color Grey  } }

#declare brick1 = 
  object
  {
     difference
     {
        box { <-9.8 -9.8 -9.8> <9.8 9.8 29.8> } 
        quadric {  Cylinder_X       scale <5.0 5.0 5.0>  translate <0 0 20>}
        quadric {  Cylinder_Y       scale <5.0 5.0 5.0>  translate <0 0 20>}
        quadric {  Cylinder_X       scale <5.0 5.0 5.0>  }
        quadric {  Cylinder_Y       scale <5.0 5.0 5.0>  }
        quadric {  Cylinder_Z       scale <5.0 5.0 5.0>  }
     }
     texture  { color red 1.0 green 0.3 blue 0.3 }
  }

#declare pin1 = 
  object
  {
     intersection
     {
        box { <-4.9 -4.9 -4.9> <4.9 4.9 4.9> } 
        quadric {  Cylinder_X       scale <5.0 5.0 5.0>  }
     }
     texture  {   color red 0.6 green 1.3 blue 0.6  }
  }

composite
{
  object { brick1 translate <0 0 0>}
  object { pin1  rotate <0 90 0> translate <0 0 -25>}
}

object 
{
  sphere { <0.0 0.0 0.0> 10000.0 }
  texture
  {
     color red 1.0 green 1.0 blue 1.0
  }
  color red 10.2 green 0.9 blue 0.9
}

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current12:42, 28 October 2008Thumbnail for version as of 12:42, 28 October 2008800 × 600 (24 KB)Rfc (talk | contribs)ten-hole-cube with pin Source: User:Rfc has created this image. Tool: POV-Ray Version 1.0 Scene code: #include "colors.inc" // Standard colors library #include "shapes.inc" // Commonly used object shapes #include "textures

The following page uses this file: