<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Terraintree - Was ist das hier?]]></title><description><![CDATA[<p>Hallo, ich bins wieder.</p>
<pre><code>terraintree=
{
	{name=&quot;ground_gradient&quot;,          type=&quot;gradient&quot;,           x1=0, x2=0, y1=0, y2=1},
	{name=&quot;ground_shape_fractal&quot;,     type=&quot;fractal&quot;,            fractaltype=anl.FBM, basistype=anl.GRADIENT, interptype=anl.QUINTIC, octaves=6, frequency=2},
	{name=&quot;ground_scale&quot;,             type=&quot;scaleoffset&quot;,        scale=0.5, offset=0, source=&quot;ground_shape_fractal&quot;},
	{name=&quot;ground_perturb&quot;,           type=&quot;translatedomain&quot;,    source=&quot;ground_gradient&quot;, ty=&quot;ground_scale&quot;},

	{name=&quot;ground_select&quot;,            type=&quot;select&quot;,             low=0, high=1, threshold=0.5, control=&quot;ground_perturb&quot;}
}
</code></pre>
<p>Ich bin auf diese Ausdrucksweise hier gestoßen: <a href="http://accidentalnoise.sourceforge.net/minecraftworlds.html" rel="nofollow">http://accidentalnoise.sourceforge.net/minecraftworlds.html</a><br />
Allerdings sagt mir das nicht viel. Was genau ist &quot;das&quot;? Und in wie fern nützt es mir?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/324402/terraintree-was-ist-das-hier</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 14:54:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/324402.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 15 Mar 2014 22:22:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Terraintree - Was ist das hier? on Sat, 15 Mar 2014 22:22:34 GMT]]></title><description><![CDATA[<p>Hallo, ich bins wieder.</p>
<pre><code>terraintree=
{
	{name=&quot;ground_gradient&quot;,          type=&quot;gradient&quot;,           x1=0, x2=0, y1=0, y2=1},
	{name=&quot;ground_shape_fractal&quot;,     type=&quot;fractal&quot;,            fractaltype=anl.FBM, basistype=anl.GRADIENT, interptype=anl.QUINTIC, octaves=6, frequency=2},
	{name=&quot;ground_scale&quot;,             type=&quot;scaleoffset&quot;,        scale=0.5, offset=0, source=&quot;ground_shape_fractal&quot;},
	{name=&quot;ground_perturb&quot;,           type=&quot;translatedomain&quot;,    source=&quot;ground_gradient&quot;, ty=&quot;ground_scale&quot;},

	{name=&quot;ground_select&quot;,            type=&quot;select&quot;,             low=0, high=1, threshold=0.5, control=&quot;ground_perturb&quot;}
}
</code></pre>
<p>Ich bin auf diese Ausdrucksweise hier gestoßen: <a href="http://accidentalnoise.sourceforge.net/minecraftworlds.html" rel="nofollow">http://accidentalnoise.sourceforge.net/minecraftworlds.html</a><br />
Allerdings sagt mir das nicht viel. Was genau ist &quot;das&quot;? Und in wie fern nützt es mir?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2389147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2389147</guid><dc:creator><![CDATA[Rayo3]]></dc:creator><pubDate>Sat, 15 Mar 2014 22:22:34 GMT</pubDate></item><item><title><![CDATA[Reply to Terraintree - Was ist das hier? on Sat, 15 Mar 2014 23:25:53 GMT]]></title><description><![CDATA[<p>Steht doch dabei ?</p>
<p>&lt;a href= schrieb:</p>
<blockquote>
<p><a href="http://accidentalnoise.sourceforge.net/minecraftworlds.html" rel="nofollow">http://accidentalnoise.sourceforge.net/minecraftworlds.html</a>&quot;&gt;(A quick note on notation. The example code is written in the form of a Lua table of declarations. See the section on Lua integration for more information on the format. Basically, the format is intended to be parsed by a special class, which reads declarations and turns them into actual trees of noise module instances. I prefer this format rather than a more wordy step-by-step C++ format because it is less verbose and far cleaner.</p>
</blockquote>
<p>Und hier: <a href="http://accidentalnoise.sourceforge.net/lua.html" rel="nofollow">http://accidentalnoise.sourceforge.net/lua.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2389149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2389149</guid><dc:creator><![CDATA[DarkShadow44]]></dc:creator><pubDate>Sat, 15 Mar 2014 23:25:53 GMT</pubDate></item><item><title><![CDATA[Reply to Terraintree - Was ist das hier? on Sat, 15 Mar 2014 23:33:19 GMT]]></title><description><![CDATA[<p>Das sind &quot;designated initializers&quot;. Das ist eine Art Ersatz für Konstruktoren in C und gibt es in C++ so nicht. Es macht das, was man erwartet: Es initialisiert das benannte Feld mit dem besagten Wert.</p>
<p>Weiterhin ist diese spezielle Schreibweise eine GCC-Erweiterung (mag sein, dass sie auch im C++ des GCC funktioniert, bin gerade zu faul, zu gucken. Tu es selbst, wenn du es wissen möchtest), in standardgemäßem C99 würde man eigentlich einen Punkt vor dem Feldnamen benötigen: <code>struct Foo foo = { .x =123 };</code></p>
<p>edit: Die Erklärung hat sich wohl erledigt, siehe Antwort über mir. Man kann ja nicht ahnen, dass hier jemand mit LUA-Code im C++-Forum fragt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2389150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2389150</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sat, 15 Mar 2014 23:33:19 GMT</pubDate></item><item><title><![CDATA[Reply to Terraintree - Was ist das hier? on Sat, 15 Mar 2014 23:43:53 GMT]]></title><description><![CDATA[<p>Achso, danke. Hab den Verweiß irgendwie übersehen, ich kenne C++ noch nicht ganz so gut, deshalb habe ich nachgefragt - aber das hat sich jetzt wohl erledigt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2389152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2389152</guid><dc:creator><![CDATA[Rayo3]]></dc:creator><pubDate>Sat, 15 Mar 2014 23:43:53 GMT</pubDate></item></channel></rss>