Difference between revisions of "User:Jholsenback"

From POV-Wiki
Jump to navigation Jump to search
 
(124 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
+
===Organization===
==Random Scratchings==
+
<p align="justify">
I'm currently working on migrating the current [[Documentation:Contents|documentation]] set to this Wiki. There isn't any content yet, so I've just planted at flag for now
+
Basically, I've been using this area as a scratch pad of sorts. Old pages that I didn't want to loose track of are listed [[User:Jholsenback#Archives|here]] for easy access. </p>
  
===LaTex===
+
===Scratch Pad===
These appear in the reference section, and when they are wrapped in the <nowiki><math></math></nowiki> tags they ...
 
<pre>
 
% FILE: blobdens
 
% --------
 
\begin{displaymath}
 
  \mathit{density} =
 
  \mathit{strength}\cdot
 
  \left(1-\left(\frac{\mathit{distance}}{\mathit{radius}}\right)^2\right)^2
 
\end{displaymath}
 
</pre>
 
render as: <math>density = strength\cdot(1-(\frac {distance}{radius})^2)^2</math>
 
<pre>
 
  % FILE: curvmath
 
% --------
 
\begin{displaymath}
 
  \begin{array}{l}
 
    b = M \cdot x, \mathrm{with:}
 
    \\ \\
 
    b = \left[
 
      \begin{array}{c}
 
        r(j)^2 \\
 
        r(j+1)^2 \\
 
        2 \cdot r(j) \cdot (r(j+1)-r(j-1)) \\
 
        \hline
 
        h(j+1)-h(j-1) \\
 
        2 \cdot r(j+1) \cdot (r(j+2)-r(j)) \\
 
        \hline
 
        h(j+2)-h(j)
 
      \end{array}
 
    \right]
 
    \\ \\
 
    M = \left[
 
      \begin{array}{c c c c}
 
        h(j)^3 & h(j)^2 & h(j) & 1 \\
 
        h(j+1)^3 & h(j+1)^2 & h(j+1) & 1 \\
 
        3\cdot h(j)^2 & 2\cdot h(j) & 1 & 0 \\
 
        3\cdot h(j+1)^2 & 2\cdot h(j+1) & 1 & 0
 
      \end{array}
 
    \right]
 
    \\ \\
 
    x = \left[
 
      \begin{array}{c}
 
        A(j)\\ B(j)\\ C(j)\\ D(j)
 
      \end{array}
 
    \right]
 
  \end{array}
 
\end{displaymath}
 
</pre>
 
render as: not done yet!
 
<pre>
 
% FILE: lattenua
 
% --------
 
\begin{displaymath}
 
  \mathit{attenuation} =
 
  \frac{2}
 
  {1+\left(\frac{d}{\mathit{fade\_distance}}\right)^\mathit{fade\_power}}
 
\end{displaymath}
 
</pre>
 
render as: <math>{attenuation} = \frac{2}{1+(\frac{d}{fade\_distance})^{fade\_power}}</math>
 
<pre>
 
% FILE: medatten
 
% --------
 
\begin{displaymath}
 
  \mathit{attenuation} =
 
  \frac{1}
 
  {1+\left(\frac{d}{\mathit{fade\_distance}}\right)^\mathit{fade\_power}}
 
\end{displaymath}
 
</pre>
 
render as: <math>{attenuation} = \frac{1}{1+(\frac{d}{fade\_distance})^{fade\_power}}</math>
 
<pre>
 
% FILE: prod
 
% ----
 
\begin{displaymath}
 
  \prod_{i=b}^n a
 
\end{displaymath}
 
</pre>
 
render as: <math>prod_{i=b}^n a</math>
 
<pre>
 
% sormath
 
% -------
 
\begin{displaymath}
 
  r^2 = f(h) = A\cdot h^3 + B\cdot h^2 + C\cdot h + D
 
\end{displaymath}
 
</pre>
 
render as: <math>r^2 = f(h) = A\cdot h^3 + B\cdot h^2 + C\cdot h + D</math>
 
<pre>
 
% FILE: sqemath
 
% -------
 
\begin{displaymath}
 
  f(x,y,z) =
 
  \left(|x|^{\left(\frac{2}{e}\right)} + |y|^{\left(\frac{2}{e}\right)}
 
  \right)^{\left(\frac{e}{n}\right)} + |z|^{\left(\frac{2}{n}\right)} - 1 = 0
 
\end{displaymath}
 
</pre>
 
render as: <math>f(x,y,z) = (|x|^{(\frac{2}{e})} + |y|^{(\frac{2}{e})})^{(\frac{e}{n})} + |z|^{(\frac{2}{n})} - 1 = 0</math>
 
<pre>
 
% FILE: sum
 
% ---
 
\begin{displaymath}
 
  \sum_{i=b}^n a
 
\end{displaymath}
 
</pre>
 
render as: <math>sum_{i=b}^n a</math>
 
  
These appear in the tutorial section, and when they are wrapped in the <nowiki><math></math></nowiki> tags they ...
+
====Syntax Diagram Examples====
<pre>
+
<p>This is an example of the proposed format that's going to replace the pre-formatted text blocks which are currently being used, in the reference section narrative. Since there are some differences in the presentation of this construct in <em>html</em> and on <em>this documentation Wiki</em>, here's what you'll need to know.</p>
% FILE: polyfunc1
+
<ol>
% ---------
+
  <li>The syntax diagram is now inside a <strong>div</strong> tag instead of <strong>pre</strong> tag.</li>
\begin{displaymath}
+
  <li>The <strong>dt</strong> and <strong>dd</strong> elements of the list require that their ending tags be enclosed in the comments notation.</li>
  \sqrt{x^2+y^2+z^2} = r
+
  <li>The first <strong>dt</strong> element that precedes the wiki link is required to properly align the link in the box.</li>
\end{displaymath}
+
  <li>Use underscores instead if spaces in the page address of the wiki link. The wiki parses to the first space to get the page address.</li>
</pre>
+
  <li>Please pick up the leading tabs when using copy and paste to maintain source readability when it's converted to html.</li>
render as: <math>sqrt{x^2+y^2+z^2} = r</math>
+
  <li>No edits or comments on this copy, go [[User_Talk:Jholsenback|here]] instead.</li>
<pre>
+
</ol>
% FILE: polyfunc2
+
<p></p>
% ---------
+
<div class="Syntax">
\begin{displaymath}
+
<dl>
  x^2+y^2+z^2-r = 0
+
<dt><!--</dt>--->
\end{displaymath}
+
<dd class="Jump">[http://wiki.povray.org/content/Documentation:Reference_Section_3#Camera Go to documentation Wiki]<!--</dd>--->
</pre>
+
<dt>CAMERA:<!--</dt>--->
render as: <math>x^2+y^2+z^2-r = 0</math>
+
<dd><code>camera {</code> [CAMERA_ITEMS...] <code>}</code><!--</dd>--->
<pre>
+
<dt>CAMERA_ITEMS:<!--</dt>--->
% FILE: polyfunc3
+
<dd>CAMERA_TYPE | CAMERA_VECTOR | CAMERA_MODIFIER | CAMERA_IDENTIFIER<!--</dd>--->
% ---------
+
</dl>
\begin{displaymath}
+
</div>
   z = \frac{2xy^2}{x^2+y^4}
+
====Reference Section Reorganization====
\end{displaymath}
+
<p>Starting a new sub-section for notes ... </p>
</pre>
+
 
render as: <math>z = \frac{2xy^2}{x^2+y^4}</math>
+
====Image Layout Templates====
<pre>
+
 
% FILE: polyfunc4
+
<ul>
% ---------
+
  <li>single image narrative on the right with captions</li>
\begin{displaymath}
+
</ul>
   x^2z + y^4z - 2xy^2 = 0
+
 
\end{displaymath}
+
<table class="centered" width="700px" cellpadding="0" cellspacing="10">
</pre>
+
<tr>
render as: <math>x^2z + y^4z - 2xy^2 = 0</math>
+
<td>
<pre>
+
[[Image:TutImgMediatut6.png|center|320px<!--left--->]]
% FILE: polyfunc5
+
</td>
% ---------
+
<td>
\begin{displaymath}
+
<p>As suggested previously, the scattering color and extinction values were adjusted until the image looked good. In this kind of scene usually very small values are needed.</p>
  \sqrt{\left(\sqrt{x^2+z^2}-r_1\right)^2+y^2} = r_2
+
 
\end{displaymath}
+
<p>Note how the container box is quite smaller than the room itself. Container boxes should always be sized as minimally as possible. If the box were as big as the room much higher values for <code>samples</code> would be needed for a good result, thus resulting in a much slower rendering.</p>
</pre>
+
</td>
render as: <math>sqrt{(\sqrt{x^2+z^2}-r_1)^2+y^2} = r_2</math>
+
</tr>
<pre>
+
<tr>
% FILE: polyfunc6
+
<td>
% ---------
+
   <p class="caption">more advanced scattering media example</p>
\begin{displaymath}
+
</td>
  x^4+2x^2y^2+2x^2z^2-2(r_1^2+r_2^2)x^2+y^4+2y^2z^2+2(r_1^2-r_2^2)y^2+
+
<td>
  z^4-2(r_1^2+r_2^2)z^2+(r_1^2-r_2^2)^2 = 0
+
</td>
\end{displaymath}
+
</tr>
</pre>
+
</table>
render as: <math>x^4+2x^2y^2+2x^2z^2-2(r_1^2+r_2^2)x^2+y^4+2y^2z^2+2(r_1^2-r_2^2)y^2+z^4-2(r_1^2+r_2^2)z^2+(r_1^2-r_2^2)^2 = 0</math>
+
 
 +
<ul>
 +
  <li>same as above only mirrored</li>
 +
</ul>
 +
 
 +
<table class="centered" width="700px" cellpadding="0" cellspacing="10">
 +
<tr>
 +
<td>
 +
<p>As suggested previously, the scattering color and extinction values were adjusted until the image looked good. In this kind of scene usually very small values are needed. </p>
 +
 
 +
<p>Note how the container box is quite smaller than the room itself. Container boxes should always be sized as minimally as possible. If the box were as big as the room much higher values for <code>samples</code> would be needed for a good result, thus resulting in a much slower rendering. </p>
 +
</td>
 +
<td >
 +
[[Image:TutImgMediatut6.png|center|320px<!--right--->]]
 +
</td>
 +
</tr>
 +
<tr>
 +
<td>
 +
</td>
 +
<td>
 +
   <p class="caption">more advanced scattering media example</p>
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
<ul>
 +
  <li>panel of 3 with a border and captions</li>
 +
</ul>
 +
 
 +
<table class="matte" width="700px" cellpadding="0" cellspacing="10">
 +
<tr>
 +
  <td>
 +
    [[Image:TutImgRadA01.png|center|220px<!--leftpanel--->]]
 +
  </td>
 +
  <td>
 +
    [[Image:TutImgRadA03.png|center|220px<!--centerpanel--->]]
 +
  </td>
 +
  <td>
 +
    [[Image:TutImgRadA0103.png|center|220px<!--rightpanel--->]]
 +
  </td>
 +
</tr>
 +
<tr>
 +
  <td>
 +
    <p class="caption">no radiosity</p>
 +
  </td>
 +
  <td>
 +
    <p class="caption">radiosity</p>
 +
  </td>
 +
  <td>
 +
    <p class="caption">difference w/o radiosity</p>
 +
  </td>
 +
</tr>
 +
</table>
 +
 
 +
====Keyword Addition Example====
 +
This outlines the steps to add a new keyword to the documentation. In this case <code>deprecated</code>
 +
 
 +
:* first determine where the [[Reference:Declare_and_Local_Directives#Deprecation_Support|descriptive passage]] goes then add it
 +
:* update the [[Reference:Declare_and_Local_Directives#Declaring_identifiers|syntax diagram]] in the appropriate places
 +
:* update the [[Reference:Keywords|Identifiers and Keywords]] list
 +
:* document any other [[Reference:Glass_old.inc|place(s)]] that it's used
 +
:* add a table of contents [[Documentation:Reference Table of Contents#Scene Description Language|entry]]
 +
 
 +
====NEW Template Test Area====
 +
<p>The {{New}} and {{Change}} templates can now be used inside a paragraph. See additional examples:</p>
 +
:*<p>This is a {{New}} feature as of version 3.7.1</p>
 +
:*<p>... and this is a {{Change}} in behavior as of version 3.7.0</p>
 +
<p>See also:</p>
 +
:*Usage in [[Reference:Numeric Expressions#Built-in Constants|tau]]
 +
:*also for the [[Reference:Torus|torus]] object
 +
 
 +
===Archives===
 +
:* Developers [[ Documentation:Developers_Notes|notes]] from when the Wiki-DocGen project started
 +
:* The source and notes on the [[Documentation:LaTex_Files|LaTeX]] markup used in the documentation
 +
:* The change-log has been reviewed and the results are [[Documentation:ToDo ChangeListReview|here]]
 +
:* <p>Some text here just <span class="formula">f(x) = x&#770;&#915;</span> for comparison.</p>
 +
:* Some <em>wiki-docgen</em> process [[User:Jholsenback/WikiDocGen|notes]]

Latest revision as of 07:19, 18 September 2019

Organization

Basically, I've been using this area as a scratch pad of sorts. Old pages that I didn't want to loose track of are listed here for easy access.

Scratch Pad

Syntax Diagram Examples

This is an example of the proposed format that's going to replace the pre-formatted text blocks which are currently being used, in the reference section narrative. Since there are some differences in the presentation of this construct in html and on this documentation Wiki, here's what you'll need to know.

  1. The syntax diagram is now inside a div tag instead of pre tag.
  2. The dt and dd elements of the list require that their ending tags be enclosed in the comments notation.
  3. The first dt element that precedes the wiki link is required to properly align the link in the box.
  4. Use underscores instead if spaces in the page address of the wiki link. The wiki parses to the first space to get the page address.
  5. Please pick up the leading tabs when using copy and paste to maintain source readability when it's converted to html.
  6. No edits or comments on this copy, go here instead.

Go to documentation Wiki
CAMERA:
camera { [CAMERA_ITEMS...] }
CAMERA_ITEMS:
CAMERA_TYPE | CAMERA_VECTOR | CAMERA_MODIFIER | CAMERA_IDENTIFIER

Reference Section Reorganization

Starting a new sub-section for notes ...

Image Layout Templates

  • single image narrative on the right with captions
TutImgMediatut6.png

As suggested previously, the scattering color and extinction values were adjusted until the image looked good. In this kind of scene usually very small values are needed.

Note how the container box is quite smaller than the room itself. Container boxes should always be sized as minimally as possible. If the box were as big as the room much higher values for samples would be needed for a good result, thus resulting in a much slower rendering.

more advanced scattering media example

  • same as above only mirrored

As suggested previously, the scattering color and extinction values were adjusted until the image looked good. In this kind of scene usually very small values are needed.

Note how the container box is quite smaller than the room itself. Container boxes should always be sized as minimally as possible. If the box were as big as the room much higher values for samples would be needed for a good result, thus resulting in a much slower rendering.

TutImgMediatut6.png

more advanced scattering media example

  • panel of 3 with a border and captions
TutImgRadA01.png
TutImgRadA03.png
TutImgRadA0103.png

no radiosity

radiosity

difference w/o radiosity

Keyword Addition Example

This outlines the steps to add a new keyword to the documentation. In this case deprecated

NEW Template Test Area

The New and Change templates can now be used inside a paragraph. See additional examples:

  • This is a New feature as of version 3.7.1

  • ... and this is a Change in behavior as of version 3.7.0

See also:

Archives

  • Developers notes from when the Wiki-DocGen project started
  • The source and notes on the LaTeX markup used in the documentation
  • The change-log has been reviewed and the results are here
  • Some text here just f(x) = x̂Γ for comparison.

  • Some wiki-docgen process notes