Difference between revisions of "Reference Talk:Camera"

From POV-Wiki
Jump to navigation Jump to search
m (version 3.8 first pass)
(→‎Angles: new section)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
===Aspect Ratio===
 
===Aspect Ratio===
<p>Together the <code>right</code> <em>(width)</em> and <code>up</code> <em>(height)</em> vectors define the <em>aspect ratio</em> of the resulting image. A version 3.8 {{Change}} redefines how the <code>right</code> vector default is derived. Previously a fixed value it is now a calculated value that is based on the image width and height specified at render time. As usual, the image width and height can be specified from either the pull down menu available in <em>GUI</em> versions <em>ONLY</em> or the <code>+Wn</code> and <code>+Hn</code> command-line options available to <em>ALL</em> versions. This behavior is conditional upon the <em>last</em> effective <code>#version</code> directive before the camera definition. The use of the <code>angle</code> keyword is generally discouraged, as it defines the <em>horizontal</em> viewing angle and will affect the aspect ratio and appearance of the resulting image. To retain legacy behavior see the example below:</p>
+
<p>Together the <code>right</code> <em>(width)</em> and <code>up</code> <em>(height)</em> vectors define the <em>aspect ratio</em> of the resulting image.</p>
 +
 
 +
<p>A {{Change}} in version 3.8 redefines how the <code>right</code> vector default is derived. Previously a fixed value, it is now a calculated value that is based on the image width and height specified at render time. As usual, the image width and height can be specified from either the pull down menu available in <em>GUI</em> versions <em>ONLY</em> or the <code>+Wn</code> and <code>+Hn</code> command-line options available to <em>ALL</em> versions. This behavior is conditional upon the <em>last</em> effective <code>#version</code> directive before the camera definition. The default <code>up</code> vector remains as <code>&lt;0,1,0&gt;</code>.</p>
 +
 
 +
<p>To retain legacy behavior see the example below:</p>
  
 
<pre>
 
<pre>
Line 9: Line 13:
 
   }
 
   }
 
</pre>
 
</pre>
 +
 +
== Angles ==
 +
 +
Might want to re-mention in the Angles section that the default angle is ~67.380. [[User:SharkD|SharkD]] 23:13, 23 June 2019 (UTC)

Latest revision as of 23:13, 23 June 2019

Aspect Ratio

Together the right (width) and up (height) vectors define the aspect ratio of the resulting image.

A Change in version 3.8 redefines how the right vector default is derived. Previously a fixed value, it is now a calculated value that is based on the image width and height specified at render time. As usual, the image width and height can be specified from either the pull down menu available in GUI versions ONLY or the +Wn and +Hn command-line options available to ALL versions. This behavior is conditional upon the last effective #version directive before the camera definition. The default up vector remains as <0,1,0>.

To retain legacy behavior see the example below:

#version X.y; // X.y is a version less than 3.8
camera {
  location <3,5,-10>
  look_at <0,2,1>
  }

Angles

Might want to re-mention in the Angles section that the default angle is ~67.380. SharkD 23:13, 23 June 2019 (UTC)