File: cwrotate.pov

package info (click to toggle)
tkgate 2.1%2Brepack-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 28,384 kB
  • sloc: ansic: 62,300; tcl: 20,345; xml: 2,731; yacc: 1,177; lex: 839; sh: 664; makefile: 180; perl: 39
file content (110 lines) | stat: -rw-r--r-- 1,776 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
//
// Gate Logo
// by Jeffery P. Hansen
//

//global_settings { assumed_gamma 2.2 }

#include "shapes.inc"
#include "chars.inc"
#include "colors.inc"
#include "textures.inc"
#include "metals.inc"


//
// The sky
//
#declare CV = 0.85098039215686274509;
  sky_sphere {
    pigment {
      colour red CV green CV blue CV
    }
  }


//
// Based on Brushed_Alumium with slightly smaller bumps
//
#declare MyAluminum1 =
    texture {
	Chrome_Metal
	normal {
	   bumps -0.4
	   scale <1, 0.001, 0.001>
	}
     }

//
// Based on Brushed_Alumium with slightly smaller bumps
//
#declare MyAluminum2 =
    texture {
	Chrome_Metal
	normal {
	   bumps -0.1
	   scale <1, 0.001, 0.001>
	}
     }

//
// Based on Brushed_Alumium with slightly smaller bumps
//
#declare MyAluminum3 =
texture {
    pigment { rgb <0.458824, 0.458824, 0.858824> }
    finish {
        ambient 0.3
        diffuse 0.7
        reflection 0.05
        brilliance 8
        specular 0.5
        roughness 0.1
    }
    normal {
	   bumps -0.1
	   scale <1, 0.001, 0.001>
    }
}

#declare R = 1;
#declare RI = 0.33;
#declare RC = 0.7;

#declare AA = 45;
#declare AD = 0.5;

#declare A = 30;

#declare RotateButton =
  union {
    intersection {
      torus { R, RI rotate 90*x } 
      union {
        plane { x,0 rotate (90-A)*z   }
        plane { x,0 rotate (-90+A)*z  }
      }	
//	plane {z, -1 inverse}
    }
    object { cone { <0,0,0>, RC, <1,0,0>, 0 }  rotate z*-90 translate R*x rotate z*A }
    texture { MyAluminum3 }
  }


union {
  object { RotateButton translate 0*x }
}

//
// Where are we anyway?
//
camera {
  location  <2, -2, -44>		// Full view
  look_at <0,0,0>
}

//
// Let there be light!
//
light_source { <-50.0, 50.0, -10> colour White*1 }
light_source { <-10, -10, -20> colour White*1 }