File:Wikibooks povray coordinates.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Wikibooks_povray_coordinates.png (480 × 360 pixels, file size: 58 KB, MIME type: image/png)
File information
Structured data
Captions
DescriptionWikibooks povray coordinates.png | Povray coordinate axis |
Source | Own work |
Author | User:MatthiasKabel |
Permission (Reusing this file) |
GFDL |
#include "colors.inc" #include "textures.inc" // create a regular point light source light_source { <5,5,-5> // light's position (translated below) color rgb <1,1,1> // light's color // translate <-20, 40, -20> } // perspective (default) camera camera { location <5.0, 5.0, -5.0> look_at <0.0, 0.0, 0.0> right x*image_width/image_height } #declare Axis_texture = // pigment { gradient <1,0,0> color_map {[0.0 color <1,1,1>] [0.5 color <1,1,1>] [0.5 color <1,0,0>] [1.0 color <1,0,0>] } scale 2 } #declare Diameter = 0.1; #declare Length = 3; #declare axis = // union { cylinder { <0, 0, 0>, <Length, 0, 0>, Diameter } cone { <Length, 0, 0>, Diameter * 2, <Length + Diameter * 5 , 0, 0>, 0 } texture { Axis_texture} // pigment { Candy_Cane // color rgb <1, 1, 1> // } finish {ambient 0.1 diffuse 0.9 phong 1} // } } declare XYZ_axis = // union { text { ttf "crystal.ttf", "0", .1, 0 scale 0.5 pigment{color<1,1,0> } } union { object {axis } text { ttf "crystal.ttf", "X", .1, 0 scale 0.5 pigment{color<1,1,0> } translate <Length, Diameter*2,Diameter*2>} } union { object {axis } text { ttf "crystal.ttf", "Y", .1, 0 scale 0.5 pigment{color<1,1,0>} translate <Length, Diameter*2,Diameter*2>} rotate <0,90,0> } union { object {axis } text { ttf "crystal.ttf", "Z", .1, 0 rotate <0,0,-90> scale 0.5 pigment{color<1,1,0>} translate <Length,Diameter*2,Diameter*2> } rotate <0,0,90> } } object {XYZ_axis}
I, the copyright holder of this work, hereby publish it under the following licenses:
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 15:49, 13 August 2006 | 480 × 360 (58 KB) | MatthiasKabel (talk | contribs) | ||
15:03, 13 August 2006 | 480 × 360 (10 KB) | MatthiasKabel (talk | contribs) | {{Information |Description=Povray coordinate axis |Source=Own work |Author=User:MatthiasKabel |Permission=GFDL }} <pre> #include "colors.inc" #include "textures.inc" // create a regular point light source light_source { <5,5,-5> |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file: