<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Multi-Camera Rendering]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1037&amp;type=atom" />
	<updated>2019-02-24T03:36:02Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1037</id>
		<entry>
			<title type="html"><![CDATA[Re: Multi-Camera Rendering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4583#p4583" />
			<content type="html"><![CDATA[<p>Thank you for the pointers!&nbsp; I have a solution already that kind of works via caching the drawn texture when the target display receives a change;&nbsp; but Ill explore your reccomendations and report on the results!</p><p>Appreciate it <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[KWCreative]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=902</uri>
			</author>
			<updated>2019-02-24T03:36:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4583#p4583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Multi-Camera Rendering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4582#p4582" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Yes, this is a rather unique case.<br />Theoretically, this is possible for Tileset Control.<br />Invoke OnlineMapsTileSetControl.UpdateControl after RedrawImmediately.</p><p>But in practice, this usage scenario has not been tested, and may have many pitfalls.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2019-02-23T16:55:10Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4582#p4582</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Multi-Camera Rendering]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=4581#p4581" />
			<content type="html"><![CDATA[<p>Hey,</p><p>I have a particular use case where I would like to render the map with two separate cameras, each camera focused in on a different location.&nbsp; &nbsp;Due to how I am using my markers, I would like to have one map in the scene.</p><p>I&#039;ve tried on PreRender to set the position of the map for that particular camera, redraw the map and then render the camera; but it seems like either the redraw isn&#039;t complete by the time the frame is rendered or the redraw is pushed to the end of the frame, either way, both cameras render the same variation of the map.</p><div class="codebox"><pre><code>    double lat, lon;
    float zoom;
    OnlineMaps map;

    public void OnPreRender()
    {
          map.SetPositionAndZoom(lon, lat, zoom);
          map.RedrawImmediately();
     }</code></pre></div><p>any suggestions or workarounds to get this to work?</p><p>Thanks for your help!</p>]]></content>
			<author>
				<name><![CDATA[KWCreative]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=902</uri>
			</author>
			<updated>2019-02-22T21:59:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=4581#p4581</id>
		</entry>
</feed>
