| 12
 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
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 
 | 
<!--  This file copyright Persistence of Vision Raytracer Pty. Ltd. 2003-2004  -->
<html> 
<head>
  
<!--  NOTE: In order to users to help find information about POV-Ray using  -->
 
<!--  web search engines, we ask you to *not* let them index documentation  -->
 
<!--  mirrors because effectively, when searching, users will get hundreds  -->
 
<!--  of results containing the same information! For this reason, the two  -->
 
<!--  meta tags below disable archiving and indexing of this page by all  -->
 
<!--  search engines that support these meta tags.  -->
 
 <meta content="noarchive" name="robots">
   
 <meta content="noindex" name="robots">
   
 <meta content="no-cache" http-equiv="Pragma">
   
 <meta content="0" http-equiv="expires">
   
<title>1.5.2 INI Files</title>
 <link href="povray35.css" rel="stylesheet" type="text/css"> 
</head>
 <body> 
<table class="NavBar" width="100%">
  
 <tr>
   
  <td align="left" nowrap="" valign="middle" width="32">
    <a href="s_30.html"><img alt="previous" border="0" src="prev.png"></a> 
   
  </td>
   
  <td align="left" valign="middle" width="30%">
    <a href="s_30.html">1.5.1 POV Files</a> 
  </td>
   
  <td align="center" valign="middle">
    <strong class="NavBar">POV-Ray 3.6 for UNIX documentation</strong><br> <strong>1.5.2 
   INI Files</strong> 
  </td>
   
  <td align="right" valign="middle" width="30%">
    <a href="s_32.html">1.6 Understanding POV-Ray Options</a> 
  </td>
   
  <td align="right" nowrap="" valign="middle" width="32">
    <a href="s_32.html"><img alt="next" border="0" src="next.png"></a> 
   
  </td>
   
 </tr>
  
</table>
 
<h3><a name="s01_05_02">1.5.2 </a>INI Files</h3>
<p>
  An INI file is a text file containing settings for what used to be called POV-Ray command-line options. It replaces 
 and expands on the functions of the DEF files associated with previous versions of POV-Ray. You can store a default 
 set of options in the main POV-Ray INI file which is searched for at the following locations: 
</p>
<p>
  
</p>
<ul>
 
 <li>
   The place defined by the <code>POVINI</code> environment variable. When you want to use an INI file at a custom 
  location you can set this environment variable. 
 </li>
 <li>
   <code>./povray.ini</code> 
 </li>
 <li>
   <code>$HOME/.povray/3.6/povray.ini</code> 
 </li>
 <li>
   <code>PREFIX/etc/povray/3.6/povray.ini</code> (<code>PREFIX</code> by default is <code>/usr/local</code>) 
 </li>
</ul>
<p>
  For backwards compatibility with version 3.5, POV-Ray 3.6 also attempts to read the main INI file from the old 
 locations when none is found at the places above: 
</p>
<p>
  
</p>
<ul>
 
 <li>
   <code>$HOME/.povrayrc</code> 
 </li>
 <li>
   <code>PREFIX/etc/povray.ini</code> (<code>PREFIX</code> by default is <code>/usr/local</code>) 
 </li>
</ul>
<p class="Note">
  <strong>Note:</strong> Use of these locations is deprecated, they will not be available in future 
 versions. 
</p>
<p>
  Any other INI file can be specified by passing the INI file name on the command line. 
</p>
<p>
  One of the options you can set in the INI file is the name of an input file. You can specify the name of a POV file 
 here. This way you can customize POV-Ray settings for any individual scene file. 
</p>
<p>
  For instance, if you have a file called scene.pov, you can create a file scene.ini to contain settings specific for 
 scene.pov. If you include the option 'Input_File_Name=scene.pov' in scene.ini, and then run <code>povray scene.ini</code>, 
 POV-Ray will process scene.pov with the options specified in scene.ini. 
</p>
<p>
  Remember, though, that any options set at the command line when you activate an INI file override any corresponding 
 options in the INI file (see <a href="s_32.html#s01_06">Understanding POV-Ray Options</a>). Also, any options you do 
 not set in the INI file will be taken as last set by any other INI file or as originally determined in <code>povray.ini</code>. 
 
</p>
<p>
  You can instruct POV-Ray to generate an INI file containing all the options active at the time of rendering. This 
 way, you can pass a POV file and its associated INI file on to another person and be confident that they will be able 
 to generate the scene exactly the same way you did. See the section titled <a href="s_64.html#s02_02_08_02">Using INI 
 Files</a> for more information about INI files. 
</p>
<h4><a name="s01_05_02_01">1.5.2.1 </a>INI File Sections</h4>
<p>
  Sections are not files in themselves; they are portions of INI files. Sections are a means of grouping multiple 
 sets of POV-Ray options together in a single INI file, by introducing them with a section label. Consider the 
 following INI file, taken from the POV-Ray 3 documentation: 
</p>
<p>
  
</p>
<pre>
; RES.INI
; This sample INI file is used to set resolution.
+W120 +H100 ; This section has no label.
; Select it with "RES"
[Low]
+W80 +H60 ; This section has a label.
; Select it with "RES[Low]"
[Med]
+W320 +H200 ; This section has a label.
; Select it with "RES[Med]"
[High]
+W640 +H480 ; Labels are not case sensitive.
; "RES[high]" works
[Really High]
+W800 +H600 ; Labels may contain blanks
</pre>
<p>
  If you select this INI file, the default resolution setting will be 120 x 100. As soon as you select the <code>[High]</code> 
 section, however, the resolution becomes 640 x 480. 
</p>
<p>
  For more information on POV-Ray options and INI files consult the section on <a href="s_64.html#s02_02_08">POV-Ray 
 Options</a>. 
</p>
 <br> 
<table class="NavBar" width="100%">
  
 <tr>
   
  <td align="left" nowrap="" valign="middle" width="32">
    <a href="s_30.html"><img alt="previous" border="0" src="prev.png"></a> 
   
  </td>
   
  <td align="left" valign="middle" width="30%">
    <a href="s_30.html">1.5.1 POV Files</a> 
  </td>
   
  <td align="center" valign="middle">
    <strong>1.5.2 INI Files</strong> 
  </td>
   
  <td align="right" valign="middle" width="30%">
    <a href="s_32.html">1.6 Understanding POV-Ray Options</a> 
  </td>
   
  <td align="right" nowrap="" valign="middle" width="32">
    <a href="s_32.html"><img alt="next" border="0" src="next.png"></a> 
   
  </td>
   
 </tr>
  
</table>
 </body> </html>
 |