Jump to content
Atom_Monky

Mask tiel ColorCalculator

Recommended Posts

Hi,
I have written a tool which calculates the number of colors in each tile of your mask image.
It replicates how terrain builder would split the mask into tiles and checks each tile for issues.
After calculating the mask colors it shows you a map overview with the error tiles ( if there are errers).
When the mask contains error the tool will provide you with a fix mask function for example:
An example mask has 8 colour surface types within a certain tile, the tool then calculates the percentage of each surface colour and replaces the 3 lowest percentage colours with the most used percentage surface colour within the surrounding 10*10 pixels (result picture below).

| Changelog |
v0.1
   - pre releas stuff
v2.0
   - calculates the number of colors in each tile of the mask 
   - gui
v4.0
   - fixes your mask
   - layer.cfg support
   - fix preview

Documentation:

Spoiler

6d4a27028bb6637596730a085d1798e0.png




 Example:
-Setup:
 

Spoiler

b1c9679c05bf991adde98d7ec39b64f2.png

 

- Calculation output view:
 

Spoiler

912f35327f3f09d6de17b368a490b242.png

 

- Zomm & Tile info

Spoiler

6263640627022f497f116768af07e4c1.png
ab032382213f2539ff635236afc47b2d.png


- Fix your mask:

Spoiler

Bevor_after2.png
 

Bevor_after.png
unknown.png



> Download Link HERE <


Requirements:
- java  version 1.8.0_221* and higer (*tested with)
- it may not run on pcs with weak cpu due to multithreading calculation.

- it may need a lot RAM to calculate. (depence on mask size)


Special thanks to:
Pennyworth for helping me out with a lot of calculation stuff

Mondkalb for his documentation picture 😉


Known issus:

Installation loading issues => be patient it take up to 10 min
I cant select my mask.png image => mask image need to be an .bmp file.
Windows defender blocks exe => more information -> allow it anyways
Antivirus blocks => Make an exception
View is laggy => zoom in for less lagg
max Mask size => if your mask ist over 30k pixels you can split it into 4 segmenst and runn each individually. ( tiles in row and mask size need to be divied by  #segents in row)

Please give me feedback if the tool works for you and if there is anything to improve.
Feel free to contact me anytime for support 🙂

  • Like 4
  • Thanks 2

Share this post


Link to post
Share on other sites

Are there any limitations on how large images it can handle?


I got a 65k pixel textures set up for my terrain in 4 pieces, can it load up multiple images and compare also the shared exdges? Or should a full 65k image be used?

Share this post


Link to post
Share on other sites
32 minutes ago, HorribleGoat said:

Are there any limitations on how large images it can handle?


I got a 65k pixel textures set up for my terrain in 4 pieces, can it load up multiple images and compare also the shared exdges? Or should a full 65k image be used?

I only tryed max 16k, but give it a try. it may exceed your ram

there is no multi images option yet but i will give it a try

Share this post


Link to post
Share on other sites

Thanks! If you can get multi image us to work then I'll give a test run. I dont think i can spend time on compiling the images into full 65k right now.

  • Like 1

Share this post


Link to post
Share on other sites

Always been an issue with image size limitations. I have a 32k mask so being able to process that without having to down scale it first would be good otherwise looks like a real neat little tool mate 

Share this post


Link to post
Share on other sites

new Versin 4.0 released !
The tool can fix you mask now, you dont have to spend time to edit your mask to fit the 5 colors per tile anymore 🙂

  • Like 1
  • Thanks 2

Share this post


Link to post
Share on other sites
On 10/25/2019 at 10:20 AM, Atom_Monky said:

new Versin 4.0 released !
The tool can fix you mask now, you dont have to spend time to edit your mask to fit the 5 colors per tile anymore 🙂

After the fix is done, how can we save the fixed tiles, or mask bmp?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×