Permalink
Browse files

Add a digital clock to povray graphics.

  • Loading branch information...
1 parent 3d37ae9 commit ceecff75ca1994f3e1be421c70bc1a43124fe660 @Noeda Noeda committed Jun 10, 2011
Showing with 125 additions and 2 deletions.
  1. +7 −2 povray_images/Makefile
  2. BIN povray_images/digital_clock.png
  3. +118 −0 povray_images/digital_clock.pov
View
@@ -14,15 +14,16 @@ all: postprocess
clean:
rm -f ascended.png genders.png grand_prize.png most_ascensions.png \
- most_ascensions_streak.png front_view.png pudding_award.png analog_clock.png
+ most_ascensions_streak.png front_view.png pudding_award.png \
+ analog_clock.png digital_clock.png
# Postprocessing normalizes the images. The parameters may need tuning...
# Current effect is just equalization. It makes colors much more vivid
# and adds contrast.
postprocess: ascended.png grand_prize.png genders.png \
most_ascensions.png most_ascensions_streak.png \
front_view.png pudding_award.png \
- analog_clock.png
+ analog_clock.png digital_clock.png
convert -equalize ascended.png ascended.png
convert -equalize genders.png genders.png
convert -equalize grand_prize.png grand_prize.png
@@ -35,6 +36,10 @@ postprocess: ascended.png grand_prize.png genders.png \
analog_clock.png: analog_clock.pov
povray +A +AM2 +W400 +H300 +UA analog_clock.pov
+# Digital clock (for gametime speedruns?)
+digital_clock.png: digital_clock.pov
+ povray +A +AM2 +W400 +H300 +UA digital_clock.pov
+
# Ascended
# A plain trophy without a seal
ascended.png: ascended.pov ${COMMON_POVS}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,118 @@
+#include "include/colors.inc"
+#include "include/metals.inc"
+#include "include/golds.inc"
+#include "include/textures.inc"
+
+camera
+{
+ location <0, 0, -16>
+ look_at <0, 0, 0>
+}
+
+light_source {
+ <-8, 8, -4>, <1, 1, 1, 1>
+ area_light
+ <1, 0, 0>, <0, 0, 1>,
+ 5, 5
+}
+
+light_source
+{
+ <0, 0, -5>, <1, 1, 1, 1>
+}
+
+box
+{
+<-6.5, -3, -2.2>, <6.5, -2, 2.2>
+ pigment
+ {
+ Tan_Wood
+ scale 0.2
+ }
+ normal
+ {
+ gradient x
+ normal_map
+ {
+ [0.0 marble turbulence 0.7]
+ [1.0 marble turbulence 0.7]
+ }
+ scale 0.3
+ }
+}
+
+difference
+{
+ box
+ {
+ <-6, -2, -2>, <6, 2, 2>
+ pigment { color Black }
+ }
+ box
+ {
+ <-5.6, -1.6, -1.6>, <5.6, 1.6, -4.0>
+ pigment { color White }
+ }
+}
+
+#declare indicator = mesh
+{
+ triangle
+ {
+ <-0.2, 0.0, -1.7>
+ <0.0, 0.2, -1.7>
+ <0.0, -0.2, -1.7>
+ }
+ triangle
+ {
+ <0.0, 0.2, -1.7>
+ <1.0, 0.2, -1.7>
+ <0.0, -0.2, -1.7>
+ }
+ triangle
+ {
+ <0.0, -0.2, -1.7>
+ <1.0, -0.2, -1.7>
+ <1.0, 0.2, -1.7>
+ }
+ triangle
+ {
+ <1.2, 0.0, -1.7>
+ <1.0, 0.2, -1.7>
+ <1.0, -0.2, -1.7>
+ }
+ pigment { color Black }
+}
+
+// We'll use the number 2135
+union
+{
+// 2
+object { indicator rotate <0, 0, 0> translate <0, 0, 0> }
+object { indicator rotate <0, 0, 90> translate <1.4, 0.3, 0> }
+object { indicator rotate <0, 0, 0> translate <0, 1.6, 0> }
+object { indicator rotate <0, 0, 90> translate <-0.3, -1.4, 0> }
+object { indicator rotate <0, 0, 0> translate <0, -1.8, 0> }
+
+// 1
+object { indicator rotate <0, 0, 90> translate <1.4+2.3, 0.3, 0> }
+object { indicator rotate <0, 0, 90> translate <1.4+2.3, -1.4, 0> }
+
+// 3
+object { indicator rotate <0, 0, 90> translate <1.4+4.6, 0.3, 0> }
+object { indicator rotate <0, 0, 90> translate <1.4+4.6, -1.4, 0> }
+object { indicator rotate <0, 0, 0> translate <4.6, 0, 0> }
+object { indicator rotate <0, 0, 0> translate <4.6, 1.6, 0> }
+object { indicator rotate <0, 0, 0> translate <4.6, -1.8, 0> }
+
+// 5
+object { indicator rotate <0, 0, 0> translate <6.9, 0, 0> }
+object { indicator rotate <0, 0, 90> translate <6.9-0.3, 0.3, 0> }
+object { indicator rotate <0, 0, 0> translate <6.9, 1.6, 0> }
+object { indicator rotate <0, 0, 90> translate <6.9+1.4, -1.4, 0> }
+object { indicator rotate <0, 0, 0> translate <6.9, -1.8, 0> }
+
+scale <0.7, 0.7, 1.0>
+translate <-0.6, 0, 0>
+}
+

0 comments on commit ceecff7

Please sign in to comment.