<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — Unable to scale Textures]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=432&amp;type=atom" />
	<updated>2011-04-02T09:37:11Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=432</id>
		<entry>
			<title type="html"><![CDATA[Re: Unable to scale Textures]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1656#p1656" />
			<content type="html"><![CDATA[<p>Thank you for your answer, but also this code seems not to work. The scale factor doesn&#039;t affect the Texture in any way...<br /></p><div class="codebox"><pre><code>...
Local mat:Matrix4 = ter.terrainMeshSceneNode.getMaterial(0).getTextureMatrix(0)
mat.setTextureScale(0.1, 10)
ter.terrainMeshSceneNode.getMaterial(0).setTextureMatrix(0, mat)
...</code></pre></div><p>If needed I&#039;ll upload you an example code to test it yourself <img src="https://gprogs.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></content>
			<author>
				<name><![CDATA[Lobby]]></name>
				<uri>https://gprogs.com/profile.php?id=298</uri>
			</author>
			<updated>2011-04-02T09:37:11Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1656#p1656</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Unable to scale Textures]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1653#p1653" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>sm.setTextureMatrix(0,sm.getTextureMatrix(0).setTextureScale(4,4));</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2011-03-20T16:31:09Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1653#p1653</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Unable to scale Textures]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1647#p1647" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Local snowTex:ITexture = engine.video.GetTexture(&quot;tex.png&quot;)
ter.terrainMeshSceneNode.setMaterialTexture(0, snowTex)
ter.terrainMeshSceneNode.getMaterial(0).getTextureMatrix(0).setTextureScale(1, 10)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Lobby]]></name>
				<uri>https://gprogs.com/profile.php?id=298</uri>
			</author>
			<updated>2010-12-19T10:44:22Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1647#p1647</id>
		</entry>
</feed>
