<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - How to use MTextureRef?]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=944&amp;type=atom"/>
	<updated>2014-02-18T10:07:59Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=944</id>
		<entry>
			<title type="html"><![CDATA[Re: How to use MTextureRef?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6465#p6465"/>
			<content type="html"><![CDATA[<p>Thank you for helping <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>I am indeed trying to render the scene to a texture but it seems that something goes wrong with the texture creation or the shader binding.</p><p>The texture should work now so I will look into the shader now.</p><p>Sponk</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-02-18T10:07:59Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6465#p6465</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to use MTextureRef?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6462#p6462"/>
			<content type="html"><![CDATA[<p>It depends what you want to do,<br />but if you want to use render to texture look at &quot;enableRenderToTexture&quot; here :</p><p><a href="https://maratis.googlecode.com/svn/trunk/dev/Maratis/Common/MScript/MScript.cpp">https://maratis.googlecode.com/svn/trun &#133; Script.cpp</a></p><p>ps : never call &quot;new&quot; manually to manipulate engine objects<br />call &quot;level-&gt;loadTexture(&quot;myName&quot;, 0, 0);&quot; and use a reference string as a &quot;filename&quot;</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-02-17T23:15:06Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6462#p6462</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to use MTextureRef?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=6460#p6460"/>
			<content type="html"><![CDATA[<p>Hey!</p><p>I want to create a MTextureRef from a texture ID. I see that MTextureRef requires a file name to load from a file.</p><p>How can I do that?<br />Should I just go with the ID and use it directly?</p><p><a href="http://pastebin.com/sxiDnjPZ">http://pastebin.com/sxiDnjPZ</a> ==&gt; Code, yay <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Sponk</p>]]></content>
			<author>
				<name><![CDATA[Sponk]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=1316</uri>
			</author>
			<updated>2014-02-17T20:18:12Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=6460#p6460</id>
		</entry>
</feed>
