Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

MewnBase

Space-cat crafting/survival game with base building. · By Cairn4

Properly masked images

A topic by KDivadLeahcim created Jun 14, 2023 Views: 893 Replies: 3
Viewing posts 1 to 2

I've taken over and I am updating and expanding the Mewnbase wiki on fandom:

https://mewnbase.fandom.com/wiki/Mewnbase_Wiki

I'm hoping to attract more players by providing answers.

While I seem to have found most of the information I need to build the wiki, I'd like to know if it would be possible to obtain a set of properly masked images. While I figured out how to extract the images, I have no idea how to mask them; the best I can do is a floodfill-black-to-transparent and a lot of them end up looking like crap.

There already are sets of all the images in the game files. Inside the .jar file, with proper alpha and all. A few would require some extra work, maybe a screen from the game, but most could probably be used as is.

What effect are you looking for mate? What images are causing issues?

(1 edit)

tl;dr: I have no idea how to properly process those images. If you want to see the result, convert to bitmap (to kill the alpha channel) and floodfill the black with white.

Yes and I've used the .atlas files to separate them. However, I know nothing about graphics processing (heck, unstitching the images took me two days of googling for ancient code) so it's very possible I damaged something that might have helped. Even if I did, I wouldn't know what to do with that information.

Using Irfanview, I can apparently see the alpha channel. However, I know nothing about how to use it.

The best my seriously-out-of-date self can do is convert to bitmap, use a 26-year-old programming language to separate them and use Image Magick to floodfill the background to transparent and convert back to png. This works for some (if the image uses no black) but not many.

I guess I need someone that actually knows what they're doing.

Amusingly enough, I could use Irfanview to make a mask from the original and then I could use code to merge mask and image for display but not to save it. I could relatively easily create any combination of the images I wanted, including automating the generation of the thumbnails that I painstakingly cropped from screenshots, I just wouldn't be able to save them to anything but .bmp.

Oh, now I get it. Haven't used .bmp in ages.. Nevermind, give me a few and I'll have some of those images in separate files. I'll contact you through the wiki to not spam this forum. The cat admin, right?