Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Tileset request [for map export]  (Read 542 times)

sinoth

  • Bay Watcher
    • View Profile
    • http://sinoth.net
Tileset request [for map export]
« on: September 29, 2007, 09:14:00 am »

This is a question for all you tileset masters out there... would it be possible to make a tileset that colors all dug-out tiles uniformly, or at least a general hue?  For example, converting this:

into something like this:

Basically I'm looking for a good way to export a fortress BMP, then load it into a 3D program so you can walk around in it.  The easiest way to do this is simple pixel checks, to see if a current X,Y is within a hue range.  If this tileset isn't possible, any suggests as to how I can do this are appreciated.  I'd rather not make people edit their init.txt to tweak the colors, but if there is no other way that's fine.

Logged
[i do not regret]

Aribar Hunter

  • Bay Watcher
    • View Profile
Re: Tileset request [for map export]
« Reply #1 on: September 29, 2007, 09:24:00 am »

.
« Last Edit: June 04, 2011, 08:32:34 pm by Aribar Hunter »
Logged

Eagleon

  • Bay Watcher
    • View Profile
    • Soundcloud
Re: Tileset request [for map export]
« Reply #2 on: September 29, 2007, 10:05:00 am »

The way I'd do it is make all the rock types in the raws have the same symbol/color, check the RGB sum for a single tile of rock, and find every tile that has that sum on the map and discard the rest. Then do a simple flood fill on the left side of the map with a mask color like you have there. There's the immediate problem of cave features blocking stone walls from sight, but that can be fixed by having another mask for water/lava/chasm that blocks the player from moving to see holes in the wall.

Pretty convoluted, but a lot less mind-numbing than finding every single non-stone tile and changing it to purple or something.

Logged
Agora: open-source, next-gen online discussions with formal outcomes!
Music, Ballpoint
Support 100% Emigration, Everyone Walking Around Confused Forever 2044

Zaratustra

  • Bay Watcher
    • View Profile
    • http://zarat.us/
Re: Tileset request [for map export]
« Reply #3 on: September 29, 2007, 03:00:00 pm »

use Reveal.exe  to remove unrevealed areas of the map. then proceed as above