Difference between revisions of "Reference:Scene Parsing Options"
Jholsenback (talk | contribs) m (1 revision: Reference Migration Initial Load) |
Jholsenback (talk | contribs) m (removed redundant and added link) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
assumptions it should make while parsing it.</p> | assumptions it should make while parsing it.</p> | ||
+ | ==Constant== | ||
{{#indexentry:ini files, constant}} | {{#indexentry:ini files, constant}} | ||
{{#indexentry:Declare, ini-option}} | {{#indexentry:Declare, ini-option}} | ||
− | |||
<table width="100%" class="option-list"> | <table width="100%" class="option-list"> | ||
<tr> | <tr> | ||
Line 41: | Line 41: | ||
... | ... | ||
} | } | ||
− | #end | + | #end |
− | } | + | } |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
==Include File Name== | ==Include File Name== | ||
Line 101: | Line 62: | ||
scene file. You can for example use this option to always include a specific | scene file. You can for example use this option to always include a specific | ||
set of default include files used by all your scenes.</p> | set of default include files used by all your scenes.</p> | ||
+ | |||
==Library Paths== | ==Library Paths== | ||
− | {{#indexentry:Include Path | + | {{#indexentry:Include Path}} |
+ | {{#indexentry:Include Files, finding}} | ||
+ | {{#indexentry:Finding include files}} | ||
+ | {{#indexentry:Search Path}} | ||
+ | {{#indexentry:Path, include files}} | ||
<table width="100%" class="option-list"> | <table width="100%" class="option-list"> | ||
Line 148: | Line 114: | ||
</table> | </table> | ||
− | <p> | + | <p>See also: [[Reference:Version Directive|Version Directive]]</p> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 00:07, 1 October 2018
POV-Ray reads in your scene file and processes it to create an internal
model of your scene. The process is called parsing
. As your file
is parsed other files may be read along the way. This section covers options
concerning what to parse, where to find it and what version specific
assumptions it should make while parsing it.
Constant
Declare=IDENTIFIER=FLOAT |
Declares an identifier with a float value |
You can now declare a constant in an INI file, and that constant will be available to the scene. Since INI file statements may also be laced on the command-line, you can therefore also declare on the command-line (though there is no switch for it).
Declare=MyValue=24
This would be the same as a #declare MyValue=24;
in a scene file. The value on the
right-hand side must be a constant float value.
A possible use could be switching off radiosity or photons from command-line:
--in INI-file / on command-line Declare=RAD=0 --in scenefile global_settings { #if (RAD) radiosity { ... } #end }
Include File Name
Include_Header= file |
Sets primary include file name to file |
+HI file |
Same as Include_Header= file |
This option allows you to include a file as the first include file of a scene file. You can for example use this option to always include a specific set of default include files used by all your scenes.
Library Paths
Library_Path= path |
Add path to list of library paths |
+L path |
Same as Library_Path= path |
POV-Ray looks for files in the current directory. If it does not find a file it needs it looks in various other library directories which you specify. POV-Ray does not search your operating system path. It only searches the current directory and directories which you specify with this option. For example the standard include files are usually kept in one special directory. You tell POV-Ray to look there with...
Library_Path=c:\povray3\include
You must not specify any final path separators ("\" or "/") at the end.
Multiple uses of this option switch do not override previous settings. If you specify the exact same path twice it is only counted once. The current directory will be searched first followed by the indicated library directories in the order in which you specified them.
Language Version
Version= n.n |
Set initial language compatibility to version n.n |
+MV n.n |
Same as Version= n.n |
See also: Version Directive