<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — How to work with the Custom Intercept?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1644&amp;type=atom" />
	<updated>2020-11-25T14:16:25Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1644</id>
		<entry>
			<title type="html"><![CDATA[Re: How to work with the Custom Intercept?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6953#p6953" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[paulio]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1167</uri>
			</author>
			<updated>2020-11-25T14:16:25Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6953#p6953</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to work with the Custom Intercept?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6939#p6939" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-11-24T21:29:02Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6939#p6939</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to work with the Custom Intercept?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6930#p6930" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[paulio]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1167</uri>
			</author>
			<updated>2020-11-24T11:10:09Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6930#p6930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to work with the Custom Intercept?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6906#p6906" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-11-22T12:16:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6906#p6906</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to work with the Custom Intercept?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6903#p6903" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[paulio]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1167</uri>
			</author>
			<updated>2020-11-22T10:06:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6903#p6903</id>
		</entry>
</feed>
