File:Trilite.png

From Wikiquote
Jump to navigation Jump to search

Trilite.png(800 × 600 pixels, file size: 74 KB, MIME type: image/png)

This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

 
This image was created with POV-Ray.

Summary

Description
English: A doubly-truncated cylinder, illuminated by 3 perpendicular spotlights. Inspired by File:Dualite.jpg. Also known as a "cork plug". [1]
Date
Source Own work
Author Kostmo

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution
This file is licensed under the Creative Commons Attribution 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

Source code

// Author: Karl Ostmo
// Date: 09/05/2010
// Version: 1.2

#include "colors.inc"
#include "textures.inc"

#declare camera_pos = 7;
#declare point_lightsource_pos = 20;

#declare spotlight_distance = 60;

#declare wall_spacing = 3;
#declare object_radius = 0.75;

#declare object_right_edge = wall_spacing - object_radius;
#declare wedge_slope = 0.5;

#declare first_wedge_plane_z_intercept = wall_spacing - wedge_slope*object_right_edge;
#declare first_wedge_plane_distance = first_wedge_plane_z_intercept / sqrt(wedge_slope*wedge_slope + 1);

#declare second_wedge_plane_z_intercept = wall_spacing + wedge_slope*object_right_edge;
#declare second_wedge_plane_distance = second_wedge_plane_z_intercept / sqrt(wedge_slope*wedge_slope + 1);

camera {
	location camera_pos
	look_at	0
}

difference {
	intersection {

		cylinder {
			<wall_spacing - object_radius, wall_spacing, wall_spacing>, <wall_spacing + object_radius, wall_spacing, wall_spacing>, object_radius
		}

		plane {
			<-1, 0, 1/wedge_slope>, first_wedge_plane_distance
		}
	}

	plane {
		<1, 0, 1/wedge_slope>, second_wedge_plane_distance
	}

	pigment {
		Candy_Cane
		scale 0.25
	}
}

#declare planes = array[3] {x, y, z}

#declare lightsource_positions = array[3] {
	<spotlight_distance, wall_spacing, wall_spacing>,
	<wall_spacing, spotlight_distance, wall_spacing>,
	<wall_spacing, wall_spacing, spotlight_distance>
}

#declare lightsource_targets = array[3] {
	<0, wall_spacing, wall_spacing>,
	<wall_spacing, 0, wall_spacing>,
	<wall_spacing, wall_spacing, 0>
}

#declare lightsource_colors = array[3] {
	Red,
	Green,
	Blue
}

#declare Index = 0;
#while(Index < 3)

	light_source {
	    lightsource_positions[Index]
	    color White
	    spotlight
	    radius 1
	    falloff 2.5
	    point_at lightsource_targets[Index]
	}

	plane {
		planes[Index], 0
		pigment {
			lightsource_colors[Index]
		}
	}

	#declare Index = Index + 1;
#end

light_source {
	point_lightsource_pos
	color 0.4
}

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

5 September 2010

File history

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

Date/TimeThumbnailDimensionsUserComment
current00:45, 6 September 2010Thumbnail for version as of 00:45, 6 September 2010800 × 600 (74 KB)KostmoMade the square more square
20:20, 5 September 2010Thumbnail for version as of 20:20, 5 September 2010800 × 600 (80 KB)Kostmo{{Information |Description={{en|1=A doubly-truncated cone, illuminated by 3 perpendicular spotlights. Inspired by File:Dualite.jpg.}} |Source={{own}} |Author=Kostmo |Date=2010-09-05 |Permission= |other_versions= }} [[Category:Perspe

There are no pages that use this file.

Global file usage

The following other wikis use this file: