<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Error:Could not allocate memory: System out of memory!]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2088&amp;type=atom" />
	<updated>2023-03-15T11:43:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2088</id>
		<entry>
			<title type="html"><![CDATA[Re: Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8903#p8903" />
			<content type="html"><![CDATA[<p>1. This is just an example of how to use the RWT API to automate texture regeneration.<br />The example is not meant to have full functionality as some tool.<br />But at the same time, I don&#039;t want to waste my and your time discussing what the example is and what it should do, so I (as I wrote above) just added that functionality. <br />You just need to update the script in your project.</p><p>2. Settings Generator is not for your case, because you have a huge area (almost 1 million km2), and you&#039;re walking on a knife edge trying to bypass Unity&#039;s memory limit.<br />Settings Generator is made for common areas to help users choose the right settings and solve the problem when users set maximum settings for small areas, which is much more than the source data resolution, and gives no benefit, only disadvantages.</p><p>3. Unity stores position values in float (32 bits), and the accuracy drops dramatically when you move too far away from the zero point.<br />There is no solution here, only workarounds.<br />The classic workaround is:<br />When the observer (camera) on one of the axes exceeds some limit (e.g. 1000), move the whole scene by this limit to the zero point.<br />You can find more details by googling Floating Origin.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-03-15T11:43:21Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8903#p8903</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8901#p8901" />
			<content type="html"><![CDATA[<p>Hello,</p><p>1. Didn&#039;t you say that elevation and texture should be downloaded separately last time? <br />So, I downloaded the elevation with RWT first, and then I used what you call Automator. I thought it was to help me automatically download the textures and link it to the downloaded elevation. But there is no change after its implementation. So can&#039;t it download textures automatically? What is it for? <br />As you said, the method you provide is only to improve the resolution of texture? If that is the case, I will completely misunderstand.<br />So the real problem is how to download elevation and texture separately. How texture is automatically attached to the corresponding elevation.</p><p>2. Yes, this situation is difficult to describe. How to say it? It was when I planned to download the elevation separately that I found this problem. Please take a look at the pictures in my attachment and carefully look at the places I marked. If you do not check the above texture, the downloaded elevation will be rough and the number will be small, which is not suitable and useful.<br />I believe you can understand it. If not, you can try to download the elevation separately.</p><p>3.In addition, I would like to ask another question. I downloaded a large piece of terrain, but after coordinate conversion, the coordinates will be very large.&nbsp; Drived in the scene by using this large coordinate. The model will shake and blur. I believe you should understand what I said. Do you know how to avoid this problem?</p><p>I sincerely hope you can give me some directions. Thanks!</p>]]></content>
			<author>
				<name><![CDATA[XiaWuchu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1032</uri>
			</author>
			<updated>2023-03-15T01:20:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8901#p8901</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8900#p8900" />
			<content type="html"><![CDATA[<p>1. I updated Automator by the link above. <br />This implied that the texture existed and just needed to increase its resolution.<br />I added the handling of the case that the texture may not exist.</p><p>2. Unfortunately, I didn&#039;t understand this problem.<br />If I open Settings Generator and click Apply, Generate Texture is applied in the main window.<br />Or do you mean that the Settings Generator does not take the Generate Texture from the main window when you open it?</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-03-14T20:33:50Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8900#p8900</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8898#p8898" />
			<content type="html"><![CDATA[<p>OK! I am so sorry that I haven&#039;t noted this point.</p><p>However, I still have two questions now. </p><p>The first is about the automatic loading of maps you said last time. I downloaded the terrain file separately, and then I added the script file AutomatorExample according to what you said. When he completes the execution, the terrain file does not generate the corresponding textures.&nbsp; </p><p>The second problem is that when I set the precision, if I do not check the Generate texture option, the downloaded terrain file is very rough and simple. Even if I have adjusted the height quality value to the highest, the downloaded terrain count is very few.<br />After I tried, I found that Generate texture can&#039;t be unchecked in this step. It should be unchecked in the following options after setting. So it is an error or something else?&nbsp; To be honest, this makes me very confused. This doesn&#039;t seem to fit the characteristics of your excellent products. Am I wrong?</p><p>Attached are some pictures I have set. Please check them. I look forward to your reply.</p>]]></content>
			<author>
				<name><![CDATA[XiaWuchu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1032</uri>
			</author>
			<updated>2023-03-14T08:56:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8898#p8898</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8890#p8890" />
			<content type="html"><![CDATA[<p>Please make sure you put the script in the Editor folder.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-03-06T21:12:18Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8890#p8890</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8887#p8887" />
			<content type="html"><![CDATA[<p>Hello, Alex!<br />I have saw the tip to add a script named AutomatorExample and updated RWT to the newest version. But there is no RealWorldTerrainWindow.</p>]]></content>
			<author>
				<name><![CDATA[XiaWuchu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1032</uri>
			</author>
			<updated>2023-03-06T03:48:20Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8887#p8887</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8884#p8884" />
			<content type="html"><![CDATA[<p>You have too high a setting, and Settings Generator tells you this directly.<br />To generate such high settings, you need to split the generation process into steps:<br />1. Generate Terrains without textures.<br />2. Regenerate textures for each area one at a time.<br />This can be automated in this way:<br /><a href="https://forum.infinity-code.com/viewtopic.php?id=1447">https://forum.infinity-code.com/viewtopic.php?id=1447</a></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-03-01T10:34:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8884#p8884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8883#p8883" />
			<content type="html"><![CDATA[<p>OK! Please help me check it! Thanks！</p>]]></content>
			<author>
				<name><![CDATA[XiaWuchu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1032</uri>
			</author>
			<updated>2023-03-01T02:45:41Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8883#p8883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8882#p8882" />
			<content type="html"><![CDATA[<p>Hello.</p><p>You are probably using too high a setting.<br />Please attach a screenshot of your generation settings so I can check this.<br />You can also find a pre-calculation of memory usage by pressing the Memory Usage button.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2023-02-28T12:18:08Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8882#p8882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Error:Could not allocate memory: System out of memory!]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8881#p8881" />
			<content type="html"><![CDATA[<p>Hello, Alex!</p><p>I tried to download terrains by RWT.</p><p>However, when RWT generating textures, an error would pop up when the progress reached 85%.</p><p>I had tried three times and adjusted the download level, but the result was the same.</p><p>Please see the attachment for errors. And I wish you can give some advice. Thanks!</p>]]></content>
			<author>
				<name><![CDATA[XiaWuchu]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1032</uri>
			</author>
			<updated>2023-02-28T08:28:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8881#p8881</id>
		</entry>
</feed>
