<?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 — How to work with the Custom Intercept?]]></title>
		<link>https://forum.infinity-code.com/viewtopic.php?id=1644</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1644&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to work with the Custom Intercept?.]]></description>
		<lastBuildDate>Wed, 25 Nov 2020 14:16:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to work with the Custom Intercept?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6953#p6953</link>
			<description><![CDATA[<p>Thanks, yes I did spot the data error after I posted. But thanks again for the testing it, I really appreciate it.<br />The problem was the LIDAR provider I&#039;m using sent me the 5km x 5km data for the specific coords, however what I failed to notice was that when they don&#039;t have any LIDAR data for a 1km x 1km tile rather than send a file without any values they just omit the file completely. I.e. I&#039;m expected 25 files (5x5) but they only sent 21 files. Hence my code was off and it caused the strange effects. I&#039;ve now written some code to create the missing files and the result looks great <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (paulio)]]></author>
			<pubDate>Wed, 25 Nov 2020 14:16:25 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6953#p6953</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to work with the Custom Intercept?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6939#p6939</link>
			<description><![CDATA[<p>I tested your code and data and what I see is:<br />Your code is working correctly.<br />But your data is pretty weird.<br />Lines 2-2001 are empty. This is why you have 1/3 of an empty area on Z axis.<br />Also, the boundaries of your area do not match the boundaries of the data.<br />See screenshots.</p><p>To fix this, you need to do three things:<br />1. Find data boundaries for which you have values (cut out blank lines).<br />2. Select the area of generation within the area for which you have values.<br />3. Find the correct shifts and coefficients to transform the areas.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Tue, 24 Nov 2020 21:29:02 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6939#p6939</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to work with the Custom Intercept?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6930#p6930</link>
			<description><![CDATA[<p>Thanks, see attached zip and readme<br /><a href="https://clearbreezeconsulting-my.sharepoint.com/:u:/p/paulm/Edv4i3TGRmVPok_lIO4vIi8BFeLjFX1PwFPcCvfqNgPqBA?e=vgmZgd">https://clearbreezeconsulting-my.sharep … A?e=vgmZgd</a></p>]]></description>
			<author><![CDATA[null@example.com (paulio)]]></author>
			<pubDate>Tue, 24 Nov 2020 11:10:09 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6930#p6930</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to work with the Custom Intercept?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6906#p6906</link>
			<description><![CDATA[<p>Hello.</p><p>It&#039;s hard to tell what is wrong in your case.<br />Here it is necessary to test what is happening in your script.</p><p>I made a simple test script and when Heightmap Resolution is 513, OnGetElevation is called 263169 (513 * 513) times.</p><p>If you want, you can send me the complete script + your data, I will try to debug it.</p>]]></description>
			<author><![CDATA[null@example.com (Alex Vertax)]]></author>
			<pubDate>Sun, 22 Nov 2020 12:16:51 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6906#p6906</guid>
		</item>
		<item>
			<title><![CDATA[How to work with the Custom Intercept?]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?pid=6903#p6903</link>
			<description><![CDATA[<p>I&#039;ve setup a custom intercept and my my delegate is being called. For example, I have a a height resolution of 4047 so I&#039;m getting called 4097x4097 times. My code has height data for 5000m x 5000m so that roughly makes each height position represent a 1.2m square. So I essentially ignore the mx, my and just return the array item based on the ordinal position of the delta of mx or my<br />To summarize my code it&#039;s almost just;<br />private double? OnGetElevation(double mx, double my)<br />{<br />&nbsp; &nbsp;if (mx.HasChanged) x++<br />&nbsp; &nbsp;if (my.HasChanged) y++<br />&nbsp; &nbsp;return data[x,y]<br />}</p><p>However, after the &#039;Start&#039; has completed the terrain heights are only applied to something like 1 quarter of the terrain tile. The heights look correct, i.e. the ground features look correct, but I don&#039;t understand why the heights are not being evenly spread over the terrain tile.</p>]]></description>
			<author><![CDATA[null@example.com (paulio)]]></author>
			<pubDate>Sun, 22 Nov 2020 10:06:41 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?pid=6903#p6903</guid>
		</item>
	</channel>
</rss>
