File: povray.rendertemplate

package info (click to toggle)
structure-synth 1.0.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,072 kB
  • ctags: 1,176
  • sloc: cpp: 7,070; python: 167; makefile: 66; lisp: 25
file content (82 lines) | stat: -rw-r--r-- 2,115 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<template defaultExtension="POV-Ray scene file (*.pov)" name="POV-Ray" >
 <description>
A rough POV-Ray export template.
Notice that the camera position is not handled correctly in all cases yet.

Template by Syntopia.
</description>
 <primitive name="begin" ><![CDATA[
// Structure Synth Pov Ray Export. 

// Global settings
global_settings {
  max_trace_level 5
  ambient_light rgb <1,1,1>
}

// Finish and normal
#declare DEFFIN = finish { ambient 0.1 diffuse 0.5 specular 0.5 };
#declare DEFNOR = normal { dents 0 scale 0.01 };

// Background
plane {
  z, 100.0
  texture {
	pigment { color rgb <0.0,0.0,0.0> }
	finish { ambient 1 }
  }
  hollow
}

// Camera
camera {
  location <{CamPosX},{CamPosY},{CamPosZ}>
  look_at <{CamTargetX},{CamTargetY},{CamTargetZ}>
  direction <{CamDirX},{CamDirY},{CamDirZ}>
  right <{CamRightX}*{aspect},{CamRightY}*{aspect},{CamRightZ}*{aspect}>
  up <{CamUpX},{CamUpY},{CamUpZ}>
  angle 60
}

// Lights
light_source { <500,500,-1000> rgb <1,1,1> shadowless } 
light_source { <-500,-500,-1000> rgb <1,1,1> shadowless } 
light_source { <-500,500,1000> rgb <1,1,1> shadowless } 
		]]></primitive>
 <primitive name="end" ><![CDATA[

// Done...

		]]></primitive>
 <primitive name="box" ><![CDATA[
object {   
  box { <0,  0.0, 0>, <1,  1,  1> }
  matrix < {povmatrix} > 
  texture { pigment { color rgbt <{r},{g},{b},{oneminusalpha}> } finish { DEFFIN } normal { DEFNOR } }
}
		]]></primitive>
 <primitive name="sphere" ><![CDATA[
object {   
  sphere { <{cx}, {cy}, {cz}>, {rad} }
  texture { pigment { color rgbt <{r},{g},{b},{oneminusalpha}> } finish { DEFFIN } normal { DEFNOR } }
}
		]]></primitive>
 <primitive type="intersection-begin" name="template" >
	   intersection {
	</primitive>
 <primitive type="intersection-end" name="template" >
		}
	</primitive>
 <primitive type="union-begin" name="template" >
	    union {
	</primitive>
 <primitive type="union-end" name="template" >
	    }
	</primitive>
 <primitive type="difference-begin" name="template" >
	    difference {
	</primitive>
 <primitive type="difference-end" name="template" >
	    }
	</primitive>
</template>