1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../../css/manpage.css" type="text/css" /> 7<title>GetMaxParallax</title> 8 </head> 9 <body> 10<h1><CODE>nn::ulcd::CTR::StereoCamera::GetMaxParallax</CODE> Member Function</h1> 11<h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition">#include <nn/ulcd.h> 14f32 GetMaxParallax( 15 void 16) const; 17</pre> 18 </div> 19<h2>Arguments</h2> 20 <div class="section"> 21<p>None.</p> 22 </div> 23<h2>Return Values</h2> 24<div class="section">Amount of offset required to display an object at the farthest possible distance. </div> 25<h2>Description</h2> 26 <div class="section"> 27<p>Gets the parallax at the farthest possible distance. The parallax is expressed as a ratio of the screen width.</p><!-- write here --><P>It calculates and returns the left/right offset of an object located at infinity as seen by the left and right cameras, relative to the base camera. This offset is expressed as a percentage (<CODE>1.0</CODE>f = 100%). 28</P><P>For example, let's assume you are rendering a distant landscape as a single image. You can make the landscape appear to be at the farthest possible depth by offsetting this image by <CODE>[return value]×[screen width]</CODE> pixels to the left and right. 29</P><P>However, infinity in terms of this function is the distant position that the player senses when a limited parallax is specified by the <CODE>SetLimitParallax</CODE> function. The calculated offset follows the 3D volume values. 30</P><P>When using the application-priority method, you will never exceed the infinity of this function. With the realism-priority method, however, caution is needed because it is possible to apply a parallax that it is greater than the offset that can be derived by this function. 31</P><P>The calculations made by this function are based on the results obtained during the last call to either <CODE>CalculateMatrices</CODE> or <CODE>CalculateMatricesReal</CODE>. 32 </P></div> 33<h2>Revision History</h2> 34 <div class="section"> 35 <dl class="history"> 36 <dt>2010/10/26</dt> 37<dd>Added <B>Description</B>. 38 </dd> 39 <dt>2010/04/02</dt> 40<dd>Initial version.<br /> 41 </dd> 42 </dl> 43 </div> 44 <hr><p>CONFIDENTIAL</p></body> 45</html> 46