<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Generate terrains entirely via scripting?]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=2018&amp;type=atom" />
	<updated>2022-08-18T09:10:34Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=2018</id>
		<entry>
			<title type="html"><![CDATA[Re: Generate terrains entirely via scripting?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8515#p8515" />
			<content type="html"><![CDATA[<p>If you have programming experience, you can modify the asset&#039;s source code for your own needs.<br />There are no problems here.</p><p>1. OK.<br />2. There is no way to specify the result folder here. You will need to modify RealWorldTerrainGenerateTerrainsPhase.Start method.<br />3. You can adjust settings before invoking StartCapture. <br />All settings are stored in RealWorldTerrainWindow.prefs (public static field) which exists after calling RealWorldTerrainWindow.OpenWindow.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-08-18T09:10:34Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8515#p8515</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Generate terrains entirely via scripting?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8513#p8513" />
			<content type="html"><![CDATA[<p>Thanks for that^ Alex.</p><p>What I&#039;m considering is the shortest path to the goal is illustrative of what we&#039;re trying to achieve. Generally speaking, it&#039;ll be way easier to start with your capture implementation -- you&#039;ve done a great job! -- than roll a new one from ground up using the API.&nbsp; I just hope this approach doesn&#039;t violate your intended use of the product <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>1 Fire EditorUtility.OpenFilePanel from a new button on RealTerrainWindowUI to retrieve a file containing a list of area boundary requests (Top-Lefts + Bottom-Rights in latlong) and a name for the desired output subdirectory.<br />2. Provide another OpenFilePanel to provide a location other than RTW_Result for the generated output. If an alternate location is specified, the terrain will not be added to the current project.<br />3 For each area requested, invoke a modified StartCapture() that accepts the request params and directs processing accordingly.</p><p>I&#039;m open to alternate approaches. If you consider the general idea valuable to other users I&#039;d be happy to collaborate on and/or follow up with the changes.</p>]]></content>
			<author>
				<name><![CDATA[shonji]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2183</uri>
			</author>
			<updated>2022-08-17T20:31:07Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8513#p8513</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Generate terrains entirely via scripting?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8512#p8512" />
			<content type="html"><![CDATA[<p>Hello.</p><p>There are a couple of examples on the forum on how to use API:<br /><a href="https://forum.infinity-code.com/viewtopic.php?id=1447">https://forum.infinity-code.com/viewtopic.php?id=1447</a><br /><a href="https://forum.infinity-code.com/viewtopic.php?id=1538">https://forum.infinity-code.com/viewtopic.php?id=1538</a></p><p>If you have any specific questions, you can ask and I will try to explain how to do it.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2022-08-17T09:20:42Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8512#p8512</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Generate terrains entirely via scripting?]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=8509#p8509" />
			<content type="html"><![CDATA[<p>Hello,</p><p>We purchased RWT primarily for its scripting capability. Our use cases demand that we eliminate the possibility of human error. We ultimately seek to build a unified (stichable) collection of Unity terrains composed of SRTM 1-arcsec cells. RWT’s API documentation is class/type-oriented but does not offer scripting “How-Tos” as far as I can tell. Can you point us at scripting tutorial content relevant to our goals or provide a walkthrough of how one might use RWT’s APIs to accomplish the equivalent of the required GUI-based workflow? </p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[shonji]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2183</uri>
			</author>
			<updated>2022-08-16T21:19:37Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=8509#p8509</id>
		</entry>
</feed>
