Damizean Posted December 26, 2008 Report Share Posted December 26, 2008 _________________________ Information ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ The Batch Image Deformer is a small tool for Microsoft Windows, MacOS and x86 Linux (under GTK+2.x), useful for manipulating images and displace them accordingly a "displacement map" or shape. This tool, as you should've guessed, is useful for generating slopes in similar fashion to those used in the Sonic the Hedgehog series (well, specifically, the Megadrive instances). You simply select a source image (or folder with multiple sources), a folder containing the displacement shapes you want to use, and it'll distort the grass to adapt the shape. You can use any size for both the input and shape. If the shape width exceeds the input's, it'll be tiled until the size matches. Creating shapes is easy, you only need a black and white image to generate them. Basically, the white colors are identified as the desired surface positions, so if you want to distort a certain X column to a position, place the white color at that height. Example: You can use the following formats: BMP, PNG, JPG and GIF. The output format is a 24bpp BMP. _________________________ Changelog ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ Version 1.1 - 27 / 12 / 2008 - Fixed problem with colors getting distorted on certain input files. - Modified the algorithm to tile the input image across the width of the shape, so now size isn't a limitation. - Added support for multiple source files. Version 1.0 - Initial release - Added support for batch operations within an input file. _________________________ License ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ The tool has been released under zlib license: This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1) The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product itself as a splash screen is required. 2) Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3) This notice may not be removed or altered from any source distribution _________________________ Downloads ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ All downloads contain the binaries for all the platforms (Microsoft Windows, MacOS and Linux): Download 3 Link to comment Share on other sites More sharing options...
ZFG Posted December 26, 2008 Report Share Posted December 26, 2008 This is Great, though the Colors change when I run my Grass File through the Program. Link to comment Share on other sites More sharing options...
Damizean Posted December 26, 2008 Author Report Share Posted December 26, 2008 Mind sending me the file so I could check what's going on? Anyway, remember it's better to save the input files with Truecolor (24 bits) components, so the colors won't get distorted. Link to comment Share on other sites More sharing options...
ZFG Posted December 26, 2008 Report Share Posted December 26, 2008 PM-ed you the File with everything. Link to comment Share on other sites More sharing options...
kirbyhi5 Posted December 26, 2008 Report Share Posted December 26, 2008 Ah cool utility you got going. Worked fine with my grass. I just hope I won't have to change the width to anything different than 128 often. Link to comment Share on other sites More sharing options...
DimensionWarped Posted December 26, 2008 Report Share Posted December 26, 2008 Holy shit Dami, why is it that everything you do is so damn useful? Link to comment Share on other sites More sharing options...
Streak Thunderstorm Posted December 26, 2008 Report Share Posted December 26, 2008 Like I said on AIM bro, thanks for making this. Edit: To help make this tool better AND to contribute to SFGHQ, I've decided to release all of the shapes I use to make tiles. Enjoy, kiddies. Shapes.rar Link to comment Share on other sites More sharing options...
kirbyhi5 Posted December 26, 2008 Report Share Posted December 26, 2008 Ah excellent. Hope you don't mind if I post this at another forum so others can see. Link to comment Share on other sites More sharing options...
cyborg_ar Posted December 27, 2008 Report Share Posted December 27, 2008 hey, today i ported the code to python and added some features. - Now it runs in Linux, Windows and Mac OS X - Supports BMP, PNG, JPG and TGA images - Doesn't have problems with palleted images (converts them to 24 bits automatically) - Multiple input files at a time - No size limits (if the input image is smaller than the shape, its tiled until the size matches) - Allows to save in any of the formats listed above - Its a command line tool (you call it from a terminal, read README.txt, for more details) Example: Input image: Crazy shape: Output: Since I'm just distributing the sources, to run this you have to install two dependencies (if you don't have them yet), Python 2.5 and PyGame 1.8.x i hope its useful =3 shape-0.1.zip 1 Link to comment Share on other sites More sharing options...
Asuma Posted December 27, 2008 Report Share Posted December 27, 2008 Just what I needed. Rep up Dami and Cybrog. Link to comment Share on other sites More sharing options...
cyborg_ar Posted December 27, 2008 Report Share Posted December 27, 2008 does my version work for anyone? Link to comment Share on other sites More sharing options...
Asuma Posted December 27, 2008 Report Share Posted December 27, 2008 Haven't tried it yet. I really don't like command line tools, no offense. Link to comment Share on other sites More sharing options...
Damizean Posted December 27, 2008 Author Report Share Posted December 27, 2008 _________________________ UPDATE! ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ Please, refer to first post. ZFG, try again with this version, it should work perfectly fine. Link to comment Share on other sites More sharing options...
ZFG Posted December 29, 2008 Report Share Posted December 29, 2008 _________________________UPDATE! ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ Please, refer to first post. ZFG, try again with this version, it should work perfectly fine. Thanks, this one runs perfectly. Link to comment Share on other sites More sharing options...
Streak Thunderstorm Posted December 31, 2008 Report Share Posted December 31, 2008 Is there any way to choose between horizontal and vertical tiling? That would be cool. Link to comment Share on other sites More sharing options...
Asuma Posted January 5, 2009 Report Share Posted January 5, 2009 Is it possible for you write a program that doesn't pixelate images when rotated? Link to comment Share on other sites More sharing options...
Zenor Posted January 6, 2009 Report Share Posted January 6, 2009 Is it possible for you write a program that doesn't pixelate images when rotated? ..Just use rotsprite. Also, I don't think a perfect image rotation is possible. So that's probably the best tool you're going to get to do only that specifically. Link to comment Share on other sites More sharing options...
cyborg_ar Posted January 6, 2009 Report Share Posted January 6, 2009 Is it possible for you write a program that doesn't pixelate images when rotated? a) oversize the sprite, rotate, retouch, reduce, retouch use vectors.... Link to comment Share on other sites More sharing options...
Recommended Posts