POV-Ray : Documentation : INI Files
  POV-Ray 3.6 Documentation Online View POV Files   3.2.6 Using the Internal Editor INI Files

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 file called POVRAY.INI in the INI directory under the POV-Ray for Windows home directory. You can pass any other INI file to POV-Ray for Windows by selecting it (through Render/Select File and Render) or by dragging it from the Windows File Manager and dropping it onto the POV-Ray window.

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. If you now activate the INI file, the POV file referred to will be processed with the settings specified in the INI file. This way you can customize POV-Ray settings for any individual scene file.

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 ask POV-Ray to render SCENE.INI, POV-Ray will process SCENE.POV with the options specified in SCENE.INI.

Remember, though, that any options set at the POV-Ray for Windows command line when you activate an INI file override any corresponding options in the INI file (see Command-line Options and Render Menu). 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 POVRAY.INI.

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 Using INI Files for more information about INI files. INI File Sections

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:

; This sample INI file is used to set resolution.

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

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

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

+W640 +H480 ; Labels are not case sensitive.
; "RES[high]" works

[Really High]
+W800 +H600 ; Labels may contain blanks

If you select this INI file, the default resolution setting will be 120 x 100. As soon as you select the [High] section, however, the resolution becomes 640 x 480. See Edit Settings/Render in the Render Menu for instructions on selecting sections.

For more information on POV-Ray options and INI files consult the section on POV-Ray Options.

More about "Command-line Options"

More about "Render Menu" POV Files   3.2.6 Using the Internal Editor

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.