Difference between revisions of "User talk:Jholsenback"

From POV-Wiki
Jump to navigation Jump to search
m (more housekeeping)
m (arrgh)
Line 145: Line 145:
// Is this valid? ie: &lt; and &gt; or just a typo
// Is this valid? ie: &lt; and &gt; if so just remove this line
#declare &lt; ID1, ID2, ... &gt; = VECTOR_EXPR;
#declare &lt; ID1, ID2, ... &gt; = VECTOR_EXPR;

Revision as of 11:12, 23 December 2016

3.7.1 Changes Checklist

The following is a check list of the changes that need to be documented prior to version 3.7.1 release.

New Features

  1. Done A new finish parameter use_alpha has been added to suppress highlights and reflections depending on pigment transparency. See-It
  2. Done A new special pigment pattern user_defined has been added to define the pigment color directly in terms of a set of functions. See-It
  3. Done A new pattern potential has been added to define a pattern based on the potential field of a blob or isosurface object.See-It
  4. Done The map_type keyword now supports the Angular Map projection for light probes, popularized by Paul Devebec, as type 7 See-It
  5. Done Native support for repetition has been added to the crackle pattern to avoid the discontinuities in the pattern caused by repeat warps. See-It
  6. Done Color and pigment maps now support non-linear interpolation to achieve more pleasing gradients. See-It and See-Also
  7. Done Fresnel angle-dependent attenuation can now also be applied to highlights and the diffuse component for more physical realism. See-It
Geometric Primitives
  1. Done UV mapping support has been added to cones and cylinders. See-It
  2. Done A new parameter polarity has been added to isosurfaces. See-It
  3. Done A new geometric primitive lemon has been added. See-It
  4. Done The torus syntax has been extended to give more control over the spindle in a self-intersecting torus. See-It
Scene Description Language, Options and INI settings
  1. Done Support for variable-size arrays has been added
  2. Done A new data container dictionary has been added to support structured storage of data
  3. Done Pseudo-dictionaries local and global have been added, allowing to specifically access local or global identifiers respectively
  4. Done The max_extent function as used to determine the size of an image map in pixels can now also be used on normal maps and density files
  5. Done Macros up to a certain size (currently hard-coded to 65536 characters per macro) are now cached in memory, improving parsing speed of invocations especially when the macro in question is defined in a different file
  6. All instances of gray in keywords or INI file options can now alternatively be spelled grey. Previously this was only the case inside function definitions where it applied only to the .gray color pseudo-component
  7. Done A new inbuilt constant tau has been added
  8. Done The #declare and #local syntax has been extended to support tuple-style assignments.

    Markup completed. Please review before I add to documentation proper: See-It

  9. Done The macro syntax has been extended to allow for optional parameters
  10. Done The creation of a log for the +C render abort-continue feature can now be suppressed using -CC to save disk space
  1. Done Support for the ITU-R BT.709 and BT.2020 transfer functions has been added to POV-Ray's gamma handling portfolio
  2. Done A new function-based user-defined camera type user_defined has been added
  3. Done Light sources distance-based fading can now be set to obey an inverse-power law at all distances See-It
  4. Done CIE L*a*b* conversion macros have been added to colors.inc See-It
  5. Done A new include file colors_ral.inc has been added containing predefined colors according to the RAL Classic standard See-It
  6. Chris says only update copyright date when file otherwise changes.
  7. For a 3.7.1 release we should probably pull all the X11 related sections from the documentation. Remember seeing something about VGA / SVGA support too about which I am suspicious, but maybe this all works?

Changed Behavior

Image Files
  1. By default, gamma handling of NetPBM (PPM/PGM) in and output files now follows the official NetBPM standard, which mandates gamma-encoding using the ITU-R BT.709 transfer function. As usual this can be overridden by the gamma input file parameter or File_Gamma INI setting, respectively
    Already documented at Documentation:Tutorial_Section_3.3#Gamma_in_Output_Images; it might be argued that the "For output files, POV-Ray handles gamma according to the following rules:" list should reside, or be duplicated to, the reference section, but I'm not sure about that. (CLi)
  2. The Compression setting now affects more file types: Specifying Compression=1 with file type T (Targa) will now generate compressed Targa (same as file type C), and explicitly specifying Compression=0 with file type P (Netpbm PPM/PGM) will generate plain (ASCII) Netpbm rather than raw (binary)
    Please review Reference_Talk:File_Output_Options#Output_File_Type (CLi)
  3. POV-Ray will now try to auto-detect whether an input TIFF file with alpha channel uses premultiplied or non-premultiplied alpha mode, rather than blindly presuming premultiplied alpha
  4. The interaction of transmit all and filter all with an image's alpha channel has been changed to be more intuitive: rather than adding the image's transparency to the user-specified transparency, the image's opacity is now effectively multiplied with the user-specified opacity. (requires #version 3.71 or later)
    please review Reference_Talk:Image_Map (CLi)
  5. The image file format previously referred to as IFF (now more precisely referred to as IFF-ILBM) is now associated with the .lbm file extension in addition to the .iff extension
    The term "IFF" does not seem to be mentioned anywhere in the docs (this is an input-only format), just the keyword, which wasn't chaned. (CLi)
  1. On Unix with Simple DirectMedia Layer (SDL) enabled the p key can now be used to pause and un-pause a render
  2. The focus of this change was correcting unix console messages. There was previously no notice 'p' and 'q' were active for +D renders. The final pause, if using +P, had always incorrectly said hitting any key would continue/quit when only 'q', enter or detecting on the SDL window would. Enabling 'p' to also continue from the final pause in addition to mid render ones makes 'p' operation consistent throughout the render (and it was cleaner code-wise). Forgot to mention yesterday this change is self-documenting due the prompts to the console changing to reflect it.

  3. The version pseudo-variable will now evaluate to the effective language version at the time the expression is parsed, except when used in a #version directive, in which case the behavior remains unchanged. The requirement to start each scene with a #version statement is now more strongly enforced for POV-Ray 3.7 scenes. An error is reported if the scene file does not begin with a #version directive but does have a #version 3.71 (or later) directive anywhere in the main scene file
    Change has already been documented. May need addition of Change. See-It (variable) See-It (directive) (CLi)
  4. Using ambient with a suspiciously high value in a non-legacy scene will now issue a warning, unless emission is also specified
  5. A long-standing undocumented inconsistency in the treatment of backslashes in string literals, in which backslashes were essentially not interpreted as escape characters if the parser expected a filename, has been cleaned up. Backslashes are now treated as escape characters in all string literals. requires #version 3.71 or later
    Already documented. May need to be marked as Change. See-It (CLi)

Noteworthy Improvements

  1. Done Array elements no longer have to be of the same type. See-It
  2. Dithering is now fully supported for Radiance HDR output files
    No change seems needed (except maybe in the "what's new" section), since the docs never said otherwise See-It (CLi)
  3. Trailing whitespace in INI files no longer causes a warning
    No change seems needed (except maybe in the "what's new" section), since the docs never said otherwise See-It (Tutorial) See-It (Reference) (CLi)
  4. Animation status messages now include the nominal frame number
  5. POV-Ray for Windows now reports file names and line numbers of warnings
  6. Radiosity can now honor the brilliance setting of a surface
  7. Done Color maps, pigment maps and the like are no longer limited to 256 entries.
  8. The number of components per blob is no longer artificially limited. Over-Here
    I don't think any documentation is necessary except in the "what's new section", as the upper limit never seems to have been officially documented in the first place. (CLi)

Code Snippet's Comments and Content Related

Use this section for code snippet's to be included in reference. Comments and content related items are welcome too.

BEGIN tuple-style syntax extensions

New tuple-style syntax extensions has been added to #declare and #local in order to simplify passing multiple values out of a macro:

#declare ( ID1, ID2, ...) = ( EXPR1, EXPR2, ... );

//This statement is fully equivalent to:
#declare ID1 = EXPR1;
#declare ID1 = EXPR2;

Note: This equivalence holds true even for constructs like #declare (A,B) = (B,A); which does not swap the contents of A and B as you might expect. The terminating semicolon is optional.

In addition, a similar syntax extension has been added for easier assignment of vector components to individual variables:

// Is this valid? ie: < and > if so just remove this line
#declare < ID1, ID2, ... > = VECTOR_EXPR;

//This statement is fully equivalent to:
#declare ID1 = TEMP.x;
#declare IDY = TEMP.y;

Note: The new syntax does not actually define the local variable TEMP. The terminating semicolon is mandatory.

The #local statement syntax has also been extended accordingly. The deprecated keyword can be used with these new syntax variants by placing it right before the respective identifier:

#declare (A, deprecated B) = (47, 11);

Extended #declare and #local tuple syntax to also support assignment from arrays, and to support assignment to mismatching number of identifiers. Using ...


... will assign the first elements of the array expression (either an array identifier or an array declaration with initializer) to the given identifiers. The IDENTIFIER_LIST may now contain empty elements, in which case the corresponding element from the right-hand side will be skipped accordingly.

Extended tuple assignment syntax to allow for omission of right-hand side elements; extend array initializer syntax to allow for omission of elements.

Left-hand side elements in tuple assignments can now be prepended with the optional keyword. If an element is flagged this way, or left empty, the corresponding right-hand side element may be an uninitialized identifier or left empty. In this case, the respective left-hand side element remains unchanged (it is NOT undefined).

An array initializer may now be prepended with the optional keyword ...

#declare A = array[10] optional { ... }

... in this case, each individual element of the initializer may be an uninitialized identifier or left empty.

Note: Due to parser limitations, uninitialized identifiers do not encompass uninitialized array elements. This limitation also applies to optional macro parameters.

END tuple-style syntax extensions

3.7.1 Scene File Checklist

  1. Done spindle torus example
  2. Done user_defined camera example
  3. Done Pavement pattern example
  4. Done Unit square scalings for pavement and tiling patterns added to pavement.pov and tiling.pov
  5. Potential pattern using blobs. Second with iso or as option in first scene.
  6. Nothing with ovus or lemon. Add to primativ.pov perhaps?
  7. Rename primativ.pov to primative.pov or delete and create individual files?
  8. portfolio/allobjects.pov out of date.
  9. Recent scenes with rendered PNGs - even some 3.7 ones - are not part of the scene directory html Friedrich A. Lohmueller created in 2013.
  10. Replace while loops with for loops where counting. Cleans up our example scenes.


Do we admit 3.7.1 is slower and explain why (C++)? See: https://github.com/POV-Ray/povray/issues/48


Just came across a nest of multilinks on Reference:Language_Directives, thought you'd like to know; would have eliminated them in passing, but since you say that triggers some performance-hogging process I won't touch them. (CLi)