Skip to content

Instantly share code, notes, and snippets.

@endolith
Last active April 10, 2022 22:56
Show Gist options
  • Select an option

  • Save endolith/854709 to your computer and use it in GitHub Desktop.

Select an option

Save endolith/854709 to your computer and use it in GitHub Desktop.
Tonnetz on a torus in POV-Ray
// Persistence Of Vision raytracer version 3.1 sample file.
// File by Alexander Enzmann
//
// -w320 -h240
// -w800 -h600 +a0.3
//Sets a background colour for the image (dark grey)
background { color rgb <1, 1, 1> }
global_settings { assumed_gamma 2.2 }
camera {
location <0, 0, -3.5>
direction <0, 0, 1>
look_at <0, 0, 0>
}
torus {
1, .5
scale 1
rotate <0, 0, 0>
translate <0, 0, 0>
finish {
ambient 0.2
diffuse 0.8
}
pigment
{ image_map
{ png "tilewide.png"
map_type 5
once
interpolate 2
}
}
rotate <-50, 10, 0>
}
light_source { <-10, 3, -20> color red 1 green 1 blue 1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment