<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — How to get a texture from a large tile map]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=343&amp;type=atom" />
	<updated>2008-10-07T15:58:24Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=343</id>
		<entry>
			<title type="html"><![CDATA[Re: How to get a texture from a large tile map]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1314#p1314" />
			<content type="html"><![CDATA[<p>that is creating an ITexture from an IImage that you can then use wherever you need the texture.&nbsp; &quot;small_image_name&quot; is just a text name for the texture and should be replaced by whatever you would like to call it.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2008-10-07T15:58:24Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1314#p1314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get a texture from a large tile map]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1312#p1312" />
			<content type="html"><![CDATA[<p>latest : Irrlicht Mod for Irrlicht v1.4.2 + BMAX v1.30</p><br /><br /><p>this work now (?) probaly i used an old version...</p><p>ok</p><br /><p>but the new answer is&nbsp; :</p><p>driver.addTextureFromImage(&quot;small_image_name&quot;, small_image)</p><p>i don&#039;t understand why&nbsp; &quot;small_image_name&quot; is redéfined, it was initialized before too.</p><p>?</p>]]></content>
			<author>
				<name><![CDATA[Kali]]></name>
				<uri>https://gprogs.com/profile.php?id=52</uri>
			</author>
			<updated>2008-10-07T14:23:09Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1312#p1312</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get a texture from a large tile map]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1311#p1311" />
			<content type="html"><![CDATA[<p>which version of the mod are you using?</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2008-10-07T13:53:19Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1311#p1311</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get a texture from a large tile map]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1310#p1310" />
			<content type="html"><![CDATA[<p>Compile Error<br />Identifier &#039;createImageFromImagePart&#039; not found</p>]]></content>
			<author>
				<name><![CDATA[Kali]]></name>
				<uri>https://gprogs.com/profile.php?id=52</uri>
			</author>
			<updated>2008-10-07T06:19:28Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1310#p1310</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get a texture from a large tile map]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1309#p1309" />
			<content type="html"><![CDATA[<p>this is untested but should get you where you want to go:<br /></p><div class="codebox"><pre><code>&#039; example of pulling first 120x120 from a larger image
Local big_image:IImage = driver.createImageFromFile(&quot;big pix.bmp&quot;)
Local small_image:IImage = driver.createImageFromImagePart(big_image, _POSITION2DI(0,0), _DIMENSION2DI(120,120))

Local texture:ITexture = driver.addTextureFromImage(&quot;small_image_name&quot;, small_image)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2008-10-07T01:59:53Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1309#p1309</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get a texture from a large tile map]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1308#p1308" />
			<content type="html"><![CDATA[<p>Yes, good idea</p><p>have you an exeple for copiing IIMAGE to another ?</p><p>I don&#039;t know the IImage&nbsp; &nbsp;can you explain this fucnction?</p><p>big thanks...</p><br /><p>and big thanks for the BMAX wrapper, is very useful and powerful !</p>]]></content>
			<author>
				<name><![CDATA[Kali]]></name>
				<uri>https://gprogs.com/profile.php?id=52</uri>
			</author>
			<updated>2008-10-05T15:13:54Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1308#p1308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to get a texture from a large tile map]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1307#p1307" />
			<content type="html"><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; i will try to work out the sequence for you tonight, but if you want to try it on your own you will need to:</p><p>- load the image into an IImage<br />- then create a new IImage from a part of that image<br />- then addTexture using the part image.</p><p>all the functionality you need is on the IVideoDriver object.</p>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2008-10-04T16:43:23Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1307#p1307</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to get a texture from a large tile map]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1305#p1305" />
			<content type="html"><![CDATA[<p>i use mesh and want to use only a small part of a big image</p><p>how to do this</p><p>i can make this with&nbsp; texture = driver.getTexture(&quot;big pix.bmp&quot;)</p>]]></content>
			<author>
				<name><![CDATA[Kali]]></name>
				<uri>https://gprogs.com/profile.php?id=52</uri>
			</author>
			<updated>2008-10-04T15:48:17Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1305#p1305</id>
		</entry>
</feed>
