TUD Organische ChemieImmelGraphicsPovray 3.5transformsView or Print this frame onlyView or Print (this frame only)

Example Graphics

(low quality jpg-image only)
transforms

Example file (transforms.pov):

// Persistence of Vision Raytracer Version 3.5 Scene Description File
// File: transforms.pov
// Last updated: 8/19/01
// Author: Chris Huff
// Description:
//
//*******************************************

#version 3.5;

#include "stdinc.inc"

//-------------------------------------------
global_settings {
assumed_gamma 1
}

#default {finish {ambient 0 diffuse 1}}

#declare CamLoc = < 5, 5,-5>;

camera {
up y right x*image_width/image_height
location CamLoc
look_at < 0, 0, 0>
angle 45
}

light_source {CamLoc color White*0.35}
light_source {<-50, 150,-75> color White}

box {<-10,-6,-10>, < 10,-5, 10>
texture {
pigment {checker color rgb < 0.15, 0.75, 0.15>, color White}
finish {ambient 0 diffuse 1}
}
}
box {<-10,-10, 5>, < 10, 10, 6>
texture {
pigment {checker color rgb < 0.15, 0.15, 0.75>, color White}
finish {ambient 0 diffuse 1}
}
}
box {<-6,-10,-10>, <-5, 10, 10>
texture {
pigment {checker color rgb < 0.75, 0.15, 0.15>, color White}
finish {ambient 0 diffuse 1}
}
}
cylinder {o, x*10, 0.1 texture {pigment {color Red}}}
cylinder {o, y*10, 0.1 texture {pigment {color Green}}}
cylinder {o, z*10, 0.1 texture {pigment {color Blue}}}
//-------------------------------------------

#declare BaseObj =
union {
box {< 0, 0, 0>, < 1.5, 1.5, 1.5> texture {pigment {color White}}}
sphere {< 0, 0, 0>, 0.5 texture {pigment {color White}}}

sphere {< 1, 0, 0>, 0.5 texture {pigment {color rgb < 1, 0.5, 0.5>}}}
cylinder {o, x*10, 0.075 texture {pigment {color rgb < 1, 0.5, 0.5>}}}

sphere {< 0, 1, 0>, 0.5 texture {pigment {color rgb < 0.5, 1, 0.5>}}}
cylinder {o, y*10, 0.075 texture {pigment {color rgb < 0.5, 1, 0.5>}}}

sphere {< 0, 0, 1>, 0.5 texture {pigment {color rgb < 0.5, 0.5, 1>}}}
cylinder {o, z*10, 0.075 texture {pigment {color rgb < 0.5, 0.5, 1>}}}
}

object {BaseObj
// Shear_Trans(x, vrotate(y,-z*35), vrotate(z,-y*35))
// Matrix_Trans(x, vrotate(y,-z*35), vrotate(z,-y*35), <1, 1, 1>)

// Axial_Scale_Trans(< 1, 1, 1>, 1/3)

// Axis_Rotate_Trans(< 1, 1, 1>, 35)

// Rotate_Around_Trans(x*45, < 0, 0, 2.5>)

// #local X = vrotate(x, < 25, 15, 25>);
// #local Z = vrotate(z, < 25, 15, 25>);
// Reorient_Trans(X, Z)
// Point_At_Trans(< 1, 1, 1>)
}

//*******************************************

© Copyright PD Dr. S. Immel