<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Multitexture/layers support?]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=635</link>
		<description><![CDATA[The most recent posts in Multitexture/layers support?.]]></description>
		<lastBuildDate>Mon, 08 Apr 2013 18:58:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Multitexture/layers support?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3927#p3927</link>
			<description><![CDATA[<p>Just a note, I responded to your General &gt; Terrain post, which applies here. Should really keep one thread going ,not several as it just serves to confuse things <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /> Anael is quick to respond to inquries which is always wonderful, but short of that, I am frequently ( because Im self employed and have the time)&nbsp; on irc.freenode.net: #maratis . Please come join in <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><p>cheers<br />Gm</p>]]></description>
			<author><![CDATA[dummy@example.com (VeganDev)]]></author>
			<pubDate>Mon, 08 Apr 2013 18:58:40 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3927#p3927</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multitexture/layers support?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3924#p3924</link>
			<description><![CDATA[<p>Ah, so it *is* possible then? Well that&#039;s good news!</p><p>I will have to look into that <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" />.</p><p>I&#039;d moved on to use Torque3D since it&#039;s pretty</p>]]></description>
			<author><![CDATA[dummy@example.com (Ayulin)]]></author>
			<pubDate>Mon, 08 Apr 2013 11:47:38 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3924#p3924</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multitexture/layers support?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3921#p3921</link>
			<description><![CDATA[<p>Hi,</p><p>yes Maratis supports multi-texturing,<br />but there are limitations in the Blender exporter and Materials are simplified in 3 modes :<br />- Fixed (for old computer)<br />- Standard (for simple diffuse/spec/normalMap/emit)<br />- CustomShader (to do anything using shaders)</p><p>full doc here : <a href="http://www.maratis3d.org/?p=277">http://www.maratis3d.org/?p=277</a></p><p>In your case, you can do this using the CustomShader mode and by writing a glsl shader.</p><p>The base of your fragment shader will be something like that :</p><div class="codebox"><pre><code>uniform sampler2D Texture[8];
varying vec2 texCoord[3];
void main(void)
{
    vec4 texture0 = texture2D(Texture[0], texCoord[0]); // first textures (DirtGrass)           
    vec4 texture1 = texture2D(Texture[1], texCoord[1]); // second texture (&quot;blend texture&quot; or Stencil)
    vec4 texture2 = texture2D(Texture[2], texCoord[2]); // third texture (MossGrass)
   
    float interp = texture1.x; // use the red component of the &quot;blend texture&quot;
    float invInterp = 1.0 - interp;

    // interpolate the grass and moss textures
    gl_FragColor = texture0*invInterp + texture2*interp;
}</code></pre></div><p>You can follow this topic about writing a shader for a terrain : <a href="http://forum.maratis3d.com/viewtopic.php?id=15">http://forum.maratis3d.com/viewtopic.php?id=15</a></p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Mon, 08 Apr 2013 02:29:47 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3921#p3921</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multitexture/layers support?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3920#p3920</link>
			<description><![CDATA[<p>Hmm.. Looking through the documentation, it looks like Maratis doesn&#039;t actually support that. Well that&#039;s a bummer :-/.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ayulin)]]></author>
			<pubDate>Sun, 07 Apr 2013 20:20:52 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3920#p3920</guid>
		</item>
		<item>
			<title><![CDATA[Multitexture/layers support?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=3919#p3919</link>
			<description><![CDATA[<p>Hello, </p><p>I&#039;m posting this in hopes that maybe Maratis can be the solution I&#039;m looking for in creating a prototype for a game project. I&#039;ve spent so much time trying out different engines and all of them come up short. I&#039;m hoping Maratis is the exception <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" /></p><p>So, as I noted, I&#039;m looking to create a prototype for a game project I&#039;ve been working on. As it&#039;s a &quot;microbudget&quot; project, I&#039;m relying on either very inexpensive or (ideally) free/source applications to make it work. I&#039;m entirely &quot;right-brained&quot; and thus, work entirely in the creative side of things, although I do understand more technical stuff at a 10,000 foot level. I&#039;m just lost if I try to actually do anything with them hands-on <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" />.</p><p>So.. here&#039;s what I&#039;m looking to do, and have been unable to in other engines so far.</p><p>I&#039;m looking to create assets that support a system of multi-texturing, using multiple texture layers in a given material. It&#039;s difficult to explain, so I&#039;ll just show you a screenshot of my Blender layout that should illustrate what I&#039;m after.</p><p>You&#039;ll notice that, in Blender anyway, the Maratis setup seems to handle it just fine. However, I don&#039;t know if that&#039;s Blender handling it, or if it means that Maratis can handle this. This is why I&#039;m asking here <img src="http://forum.maratis3d.com/img/smilies/tongue.png" width="15" height="15" alt="tongue" />.</p><p><a href="https://dl.dropbox.com/u/53548203/Screenshots/gs/MultitextureSample.jpg">Here&#039;s the screenshot</a></p><p>Here&#039;s the specifics of this setup, so people know exactly what I&#039;m trying to achieve...<br />1. I setup 2 basic, tilable textures, each assigned to a texture layer within the material (layers 1 and 3)<br />2. I create, or import, a 3rd image which acts as a &quot;stencil map&quot; to blend between the two color texture layers. (layer 2)<br />3. I create a UV channel to which the two color textures are assigned. This allows me to scale up the UVs of the object I&#039;m texturing to adjust the tiling of the textures.<br />4. I create a second UV channel specifically for the stencil map, which is kept at a 1:1: scale. This becomes the basis for me to paint the stencil map and control the blending of the two texture layers.</p><p>The result is what you see in my linked screenshot.</p><p>My question is... Is this directly supported in Maratis? Will Maratis &quot;know&quot; how to handle those layers, the UV channels and the textures applied, to yield the same results as what&#039;s shown in that screenshot?</p><p>If it does, then Maratis will likely become my tool of choice for my prototype project.</p><p>I hope I explained that well, and thanks for any help/feedback!</p>]]></description>
			<author><![CDATA[dummy@example.com (Ayulin)]]></author>
			<pubDate>Sun, 07 Apr 2013 19:20:10 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=3919#p3919</guid>
		</item>
	</channel>
</rss>
