Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

[Tool] B.I.D. formerly the slopes tool revisited. [Updated]


Damizean

Recommended Posts

bid.png

_________________________

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:

bid2.gif

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):

  • Like 3
Link to comment
Share on other sites

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:

thump_280708grass.png

Crazy shape:

1694681crazy.png

Output:

thump_280714grasscrazy.png

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

  • Like 1
Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...