<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Camera snaps back to previous position when moved]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1686&amp;type=atom" />
	<updated>2021-01-29T20:16:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1686</id>
		<entry>
			<title type="html"><![CDATA[Re: Camera snaps back to previous position when moved]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7120#p7120" />
			<content type="html"><![CDATA[<p>Thanks! That took care of the problem.</p>]]></content>
			<author>
				<name><![CDATA[ryahes]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1474</uri>
			</author>
			<updated>2021-01-29T20:16:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7120#p7120</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Camera snaps back to previous position when moved]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7119#p7119" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2021-01-29T05:57:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7119#p7119</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Camera snaps back to previous position when moved]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=7117#p7117" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ryahes]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1474</uri>
			</author>
			<updated>2021-01-29T02:06:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=7117#p7117</id>
		</entry>
</feed>
