ben-miles / subnauticapda

An unofficial second-screen companion app for the game "Subnautica."
https://subnauticapda.dev
Other
0 stars 0 forks source link

Standardize Item Images #28

Closed ben-miles closed 1 month ago

ben-miles commented 1 month ago

In the Items view, most items are shown against a blue circle.

Except the ones with a blue rounded-square.

Or a green rounded-square.

Or a blue tall rounded-rectangle.

Or a blue vertical pill shape...

Or a purple circle!

It may be more true to the game, but I'd like to standardize these... Especially the shape, much moreso than the color. The colors may actually be helpful, but the different shapes are definitely throwing off the consistency of the grid layout.

So, how to deal with this... My first thought is to open all of the items as layers in a single Photoshop document. The blue circle background could be a bottom-most layer, and I can erase the odd shaped backgrounds from any layers that have them... But that sounds tedious. There may well be no way to automate this process. Though it might be a tiny bit faster to find images of the items themselves, without backgrounds -- That'd at least save the time of doing some manual erasing.

ben-miles commented 1 month ago

Well, I did a little research, and found this video -- "Extract Images and Textures from Unity Games | Modding Monday" -- which walked me through the process of extracting assets from the game files using an application called UABE (Unity Asset Bundle Extractor). I hit a snag early on as the video did not describe an additional step I had to perform in order to extract the images I needed, which was to open not only the GAME/GAME_data/resources.assets file, but also the corresponding GAME/GAME_data/resources.assets.resS file as well. Only after opening both files simultaneously in UABE was I able to get the PNG export to work.

So, now I have all the 2D textures extracted. Most of these are model textures, but there are some individual 2D assets (only maybe five for individual items) -- The rest of the items, as far as I can see, are all co-located in one or two humongous sprite sheets. They don't have any background shape whatsoever, just the isolated images against a transparent background, which is perfect. But it will take some time to identify and extract all of these...

ben-miles commented 1 month ago

Without the Unity spritesheet code, I had to manually cut out each sprite and paste it into a new layer, then organize and name those layers so I can eventually export back to individual PNGs. The two spritesheets contain images for every item I have in my app currently, and then some -- with the exception of some of the new base parts added in the Living Large update, but I will try to acquire those some other way.

ben-miles commented 1 month ago

Closed by 494d604450790c9b6704fc0b1c94c98e70fbff8a , c9951ef1162a1f50e07faf2d93e6420374ca4083 , 55ed8b0761a6da81e44871969738e76225fbf949 , 3f7f7487cbd5fdcee255da56285f6539db3cf643 , e6882d0858a04ad3ff75ed83d078898a4728ad65 , e95509324e26a66089a59468626b7c03ae305a89 , 79cdf46a4d6516165ad05b3c82434b3c4efd4b30 , 3f7452c3f0dbedff7fd7378b0bb736f3a18cf28d , d093175d36a969ab95f397b11f680018e81f3e02 , 1fbf66612975a5fa904237178c3ca481e4d57f89 , 4519b680e3d0df0a0357049a2bf00aa69f027335 , ea56c97d9a0bff55bdab1810b7f519e4c4e0b1f4 , 3fe8152276d0d4073bade3391b69e0a2a14f2301 , dcf3c0c621aeb5e0af5d260d3ea653524646e762 , 0a5d0e58d50784ac9fb0275c5eb7c4965c2debbc