Difference between revisions of "User:Jholsenback"

From POV-Wiki
Jump to navigation Jump to search
 
(132 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Intro==
+
===Organization===
I'm playing around with these LaTex markup files that are used in the POV-Ray documentation.
+
<p align="justify">
==Reference==
+
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>
These are in the reference section.
 
===blobdens===
 
<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>
 
Produces: <math>density = strength\cdot(1-(\frac {distance}{radius})^2)^2</math>
 
  
===curvmath===
+
===Scratch Pad===
<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>
 
===lattenua===
 
<pre>
 
% FILE: lattenua
 
% --------
 
\begin{displaymath}
 
  \mathit{attenuation} =
 
  \frac{2}
 
  {1+\left(\frac{d}{\mathit{fade\_distance}}\right)^\mathit{fade\_power}}
 
\end{displaymath}
 
</pre>
 
Produces: <math>{attenuation} = \frac{2}{1+(\frac{d}{fade\_distance})^{fade\_power}}</math>
 
  
===medatten===
+
====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: medatten
+
<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>
  \mathit{attenuation} =
+
  <li>The first <strong>dt</strong> element that precedes the wiki link is required to properly align the link in the box.</li>
  \frac{1}
+
  <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>
  {1+\left(\frac{d}{\mathit{fade\_distance}}\right)^\mathit{fade\_power}}
+
  <li>Please pick up the leading tabs when using copy and paste to maintain source readability when it's converted to html.</li>
\end{displaymath}
+
  <li>No edits or comments on this copy, go [[User_Talk:Jholsenback|here]] instead.</li>
</pre>
+
</ol>
Produces: <math>{attenuation} = \frac{1}{1+(\frac{d}{fade\_distance})^{fade\_power}}</math>
+
<p></p>
 +
<div class="Syntax">
 +
<dl>
 +
<dt><!--</dt>--->
 +
<dd class="Jump">[http://wiki.povray.org/content/Documentation:Reference_Section_3#Camera Go to documentation Wiki]<!--</dd>--->
 +
<dt>CAMERA:<!--</dt>--->
 +
<dd><code>camera {</code> [CAMERA_ITEMS...] <code>}</code><!--</dd>--->
 +
<dt>CAMERA_ITEMS:<!--</dt>--->
 +
<dd>CAMERA_TYPE | CAMERA_VECTOR | CAMERA_MODIFIER | CAMERA_IDENTIFIER<!--</dd>--->
 +
</dl>
 +
</div>
 +
====Reference Section Reorganization====
 +
<p>Starting a new sub-section for notes ... </p>
  
===prod===
+
====Image Layout Templates====
<pre>
 
% FILE: prod
 
% ----
 
\begin{displaymath}
 
  \prod_{i=b}^n a
 
\end{displaymath}
 
</pre>
 
Produces: <math>prod_{i=b}^n a</math>
 
===sormath===
 
<pre>
 
% sormath
 
% -------
 
\begin{displaymath}
 
  r^2 = f(h) = A\cdot h^3 + B\cdot h^2 + C\cdot h + D
 
\end{displaymath}
 
</pre>
 
Produces: <math>r^2 = f(h) = A\cdot h^3 + B\cdot h^2 + C\cdot h + D</math>
 
===sqemath===
 
<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>
 
Produces: <math>f(x,y,z) = (|x|^{(\frac{2}{e})} + |y|^{(\frac{2}{e})})^{(\frac{e}{n})} + |z|^{(\frac{2}{n})} - 1 = 0</math>
 
  
===sum===
+
<ul>
<pre>
+
  <li>single image narrative on the right with captions</li>
% FILE: sum
+
</ul>
% ---
+
 
\begin{displaymath}
+
<table class="centered" width="700px" cellpadding="0" cellspacing="10">
  \sum_{i=b}^n a
+
<tr>
\end{displaymath}
+
<td>
</pre>
+
[[Image:TutImgMediatut6.png|center|320px<!--left--->]]
Produces: <math>sum_{i=b}^n a</math>
+
</td>
 +
<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>
 +
</tr>
 +
<tr>
 +
<td>
 +
  <p class="caption">more advanced scattering media example</p>
 +
</td>
 +
<td>
 +
</td>
 +
</tr>
 +
</table>
 +
 
 +
<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