<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Animating Textures in Maratis]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=98</link>
		<description><![CDATA[The most recent posts in Animating Textures in Maratis.]]></description>
		<lastBuildDate>Wed, 08 Jun 2011 19:01:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Animating Textures in Maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=367#p367</link>
			<description><![CDATA[<p>A nice one, as well! Although my first thought was: whatfor does he need this animation as a gif in a game?<br />But, now I can imagine some use for this, f.i. animated parts in the user interface of the game.<br />Thanks! <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Achim Luebbeke)]]></author>
			<pubDate>Wed, 08 Jun 2011 19:01:28 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=367#p367</guid>
		</item>
		<item>
			<title><![CDATA[Animating Textures in Maratis]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=365#p365</link>
			<description><![CDATA[<p><span style="color: red"><em>- This is an early rewrite of the tutorial as the previous one was quite ... well. not good <img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /><br />This is still unfinished, will update it over time</em></span></p><p>Method overview :</p><p>1) Pack a serie of image in a spritesheet<br />2) Import and set-up animation in blender<br />3) Use it in maratis</p><p>You will need :</p><p><a href="http://www.imagemagick.org/script/index.php">Imagemagick</a> to :<br />- Make the spritesheet<br />- Split spritesheet you could find on the web and adapt it <br />- Whatever. this app is a must have anyway <img src="http://forum.maratis3d.com/img/smilies/wink.png" width="15" height="15" alt="wink" /><br /><em><br />Optional :<br />I also recommand using Imagemagick along with <a href="http://www.softpedia.com/get/PORTABLE-SOFTWARE/System/File-management/Portable-Batchrun.shtml">Batchrun</a>, so you can set up your working directory and edit your scripts very easily</em></p><br /><p>Ok let&#039;s get started, first, get this :</p><p>- An <a href="https://dl.dropboxusercontent.com/u/19970067/MaratisShots/AnimGif/firespell2_32f.rar">Image Sequence</a>, this is a CC0 fireball animation from <a href="http://opengameart.org/content/animated-sprites-and-textures">OGA</a><br />- <a href="https://dl.dropboxusercontent.com/u/19970067/MaratisShots/AnimGif/Blender_AT_128x128_1024x1024.rar">Blender Template</a> - With keyframes already set, so you just have to load the texture in it</p><br /><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<span class="bbu"><em><strong>Next step</strong></em></span></p><br /><p>Now let&#039;s pack the individual images into a spritesheet.</p><p>To do this, we&#039;ll use a simple imagemagick script <span style="color: red"><strong>/!\</strong></span> (to use with <span style="color: green">Montage.exe</span>) <span style="color: red"><strong>/!\</strong></span> :</p><div class="codebox"><pre><code>*.png -tile 8x8 -geometry 128x128+0+0 -background black PNG32:Spritesheet.png</code></pre></div><p>This will generate a 1024x1024 picture, with all the images aligned as 128x128 size in it.</p><p>When done, we have the spritesheet. Now let&#039;s set up the animations in blender.</p><br /><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<span class="bbu"><em><strong>Next step</strong></em></span></p><br /><p>Open Blender, set the spritesheet in the material texture slot.</p><p>As keyframe are already set, you can export the mesh right away.</p><p>In case you don&#039;t noticed, i have scaled up the keyframes 10 times.</p><p>That way, in maratis we can control the playing speed with <em>setAnimationSpeed()</em>, without having to re-open / tweak / re-export the mesh everytime in blender. </p><p><em>Note : With this method, the texture will play very, very slowly once imported. &quot;Good&quot; animation speed should be about 6 or 7</em></p><p><span style="color: red"><strong>/!\</strong></span> Make sure to uncheck Material animation and Armature Animation before exporting <span style="color: red"><strong>/!\</strong></span></p><br /><p>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<span class="bbu"><em><strong>Next step</strong></em></span></p><br /><p>From here you can test the texture animation in a new project, <br />but it will play very slowly if you dont make use of setAnimationSpeed()</p><p>I will provide a test project later on</p><p>--------------To come<br />- Precise animation control<br />- A project to test your textures<br />- Spritesheets of different sizes<br />- Pack and use multiple animations in a single texture</p>]]></description>
			<author><![CDATA[dummy@example.com (Vegas)]]></author>
			<pubDate>Tue, 07 Jun 2011 11:36:21 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=365#p365</guid>
		</item>
	</channel>
</rss>
