<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Camera snaps back to previous position when moved]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1686</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1686&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Camera snaps back to previous position when moved.]]></description>
		<lastBuildDate>Fri, 29 Jan 2021 20:16:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Camera snaps back to previous position when moved]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7120#p7120</link>
			<description><![CDATA[<p>Thanks! That took care of the problem.</p>]]></description>
			<author><![CDATA[null@example.com (ryahes)]]></author>
			<pubDate>Fri, 29 Jan 2021 20:16:49 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7120#p7120</guid>
		</item>
		<item>
			<title><![CDATA[Re: Camera snaps back to previous position when moved]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7119#p7119</link>
			<description><![CDATA[<p>Hello.</p><p>By default, you cannot control the camera directly, because when something changes pan / tilt, uPano will set its camera rotation.<br />Instead, you need to set a new pan / tilt (Pano.LookAt).<br /><a href="https://infinity-code.com/doxygen/upano/class_infinity_code_1_1u_pano_1_1_pano.html#a90ffa44c40335f29c8e786a9169eae37">https://infinity-code.com/doxygen/upano … a9169eae37</a></p><p>How to find out the pan / tilt you should set:<br />If pan / tilt is known for an object (for example, this is HotSpot), then you can get the value from it (HotSpot.pan, HotSpot.tilt).<br /><a href="https://infinity-code.com/doxygen/upano/class_infinity_code_1_1u_pano_1_1_hot_spots_1_1_hot_spot.html#a6aeae65c2242ea06a5c29b8f3f5551f1">https://infinity-code.com/doxygen/upano … 8f3f5551f1</a><br />If pan / tilt for the object is unknown, then you need to convert the screen position (PanoRenderer&lt;T&gt;.GetPanTiltByScreenPosition) of an object, world position (PanoRenderer&lt;T&gt;.GetPanTiltByWorldPosition) of an object or UV of a panorama texture (SingleTexturePanoRenderer &lt;T&gt; .GetPanTiltByUV) to pan / tilt.<br /><a href="https://infinity-code.com/doxygen/upano/class_infinity_code_1_1u_pano_1_1_renderers_1_1_base_1_1_pano_renderer.html#a6f590c26ca354d8857485385d77456d1">https://infinity-code.com/doxygen/upano … 85d77456d1</a><br /><a href="https://infinity-code.com/doxygen/upano/class_infinity_code_1_1u_pano_1_1_renderers_1_1_base_1_1_single_texture_pano_renderer.html#a1bc973a80163c21e8e0f31fd68373b4f">https://infinity-code.com/doxygen/upano … fd68373b4f</a></p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Fri, 29 Jan 2021 05:57:50 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7119#p7119</guid>
		</item>
		<item>
			<title><![CDATA[Camera snaps back to previous position when moved]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=7117#p7117</link>
			<description><![CDATA[<p>Hi! I needed to add a system where the user can press the Tab key in order to move the camera to focus on each hotspot. Unfortunately, when I then try to use uPano&#039;s keyboard or mouse controls, the view snaps back to the last camera pan/tilt position as remembered by those controls. Is there any way to get the controls to use the camera&#039;s current position instead of a cached position if I need to temporarily take manual control of the camera for this system?</p>]]></description>
			<author><![CDATA[null@example.com (ryahes)]]></author>
			<pubDate>Fri, 29 Jan 2021 02:06:20 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=7117#p7117</guid>
		</item>
	</channel>
</rss>
