Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 538736dd48b90317ef5f42ffe7f54572 > files > 522

povray-3.7.0.8-3.mga7.armv7hl.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<!--  This file copyright Persistence of Vision Raytracer Pty. Ltd. 2009-2011  -->

<html lang="en">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<title>Unix Section 5</title>
<link rel="StyleSheet" href="povray37.css" type="text/css">
<link rel="shortcut icon" href="favicon.ico">

<!--  NOTE: In order to help users find information about POV-Ray using web      -->
<!--  search engines, we ask that you *not* let them index documentation         -->
<!--  mirrors because effectively, when searching, users will get hundreds of    -->
<!--  results containing the same information! For this reason, these meta tags  -->
<!--  below disable archiving of this page by search engines.                    -->

<meta name="robots" content="noarchive">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="expires" content="0">
</head>
<body>

<div class="Page">

<!-- NavPanel Begin -->
<div class="NavPanel">
<table class="NavTable">
<tr>
  <td class="FixedPanelHeading"><a title="1.5" href="#u1_5">Understanding File Types</a></td>
</tr>
<tr>
  <td><div class="divh2"><strong><a title="1.5.1" href="#u1_5_1">POV Files</a></strong></div></td>
</tr>
<tr>
  <td><div class="divh2"><strong><a title="1.5.2" href="#u1_5_2">INI Files</a></strong></div></td>
</tr>
<tr>
  <td><div class="divh3"><a title="1.5.2.1" href="#u1_5_2_1">INI File Sections</a></div></td>
</tr>
<tr>
  <td><div class="divh1">&nbsp;</div></td>
</tr>
<tr>
  <td><div class="divh1">&nbsp;</div></td>
</tr>
</table>
</div>
<!-- NavPanel End -->

<div class="Content">
<table class="HeaderFooter" width="100%">
<tr>
  <td colspan=5 align="left" class="HeaderFooter">
    POV-Ray for Unix <strong class="HeaderFooter">version 3.7</strong>
  </td>
</tr>
<tr >
  <td colspan=5>
    <hr align="right" width="70%">
  </td>
</tr>
<tr>
  <td width="30%"></td>
  <td class="NavBar"><a href="index.html" title="The Front Door">Home</a></td>
  <td class="NavBar"><a href="u1_0.html" title="Unix Table of Contents">POV-Ray for Unix</a></td>
  <td class="NavBar"><a href="t2_0.html" title="Tutorial Table of Contents">POV-Ray Tutorial</a></td>
  <td class="NavBar"><a href="r3_0.html" title="Reference Table of Contents">POV-Ray Reference</a></td>
</tr>
</table>

<a name="u1_5"></a>
<div class="content-level-h2" contains="Understanding File Types" id="u1_5">
<h2>1.5 Understanding File Types</h2>
<p>This section points out the various types of text files that POV-Ray for Unix works with.</p>

</div>
<a name="u1_5_1"></a>
<div class="content-level-h3" contains="POV Files" id="u1_5_1">
<h3>1.5.1 POV Files</h3>
<p>POV-Ray for Unix works with two types of plain text files.</p>

<p>The first is the standard POV-Ray scene description file. Although you may give files of this type any legitimate file name, it is easiest if you give them the <code>.pov</code> extension. In this Help file, scene description files are referred to as POV files.</p>

<p>The second type, the initialization file. Initialization files normally have <code>.ini</code> extensions and are referred to in this help file as INI files.</p>

</div>
<a name="u1_5_2"></a>
<div class="content-level-h3" contains="INI Files" id="u1_5_2">
<h3>1.5.2 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>

<ul>
<li>The place defined by the <code>POVINI</code> environment variable.</li>
<li><code>./povray.ini</code> </li>
<li><code>$HOME/.povray/3.7/povray.ini</code></li>
<li><code>$PREFIX/etc/povray/3.7/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.7 also attempts to read the main INI file from the old locations when none is found at the places above:</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 <code>Input_File_Name=scene.pov</code> 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 the section <a href="u1_6.html#u1_6">Understanding POV-Ray Options</a>. 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 <a href="t2_2.html#t2_2_8_2">Using INI Files</a> for more information.
</p>

</div>
<a name="u1_5_2_1"></a>
<div class="content-level-h4" contains="INI File Sections" id="u1_5_2_1">
<h4>1.5.2.1 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>

<pre>
; RES.INI
; This sample INI file is used to set resolution.

+W120 +H100 ; This section has no label.
; Select it with &quot;RES&quot;

[Low]
+W80 +H60 ; This section has a label.
; Select it with &quot;RES[Low]&quot;

[Med]
+W320 +H200 ; This section has a label.
; Select it with &quot;RES[Med]&quot;

[High]
+W640 +H480 ; Labels are not case sensitive.
; &quot;RES[high]&quot; 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="t2_2.html#t2_2_8">Setting POV-Ray Options</a>.
</p>


</div>

</div>

</div>
</body>
</html>