The BDcraft forum has migrated.
You are currently browsing the Archived BDcraft Forum.
To post a new topic, comment or patch, let's go to the new forum: BDcraft Community Forums

Useful resources to Sphaxify

32 replies [Last post]

Comments

crumbl3d's picture
crumbl3d
Offline
I am a Top ContributorI searched for an answer myselfThe Cake is a lieI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 14/07/2012

Han, I think that you should add the following to the op somehow! Happy

Intro

I've been working on a patch for Tekkit Lite and I was annoyed how slow the process was! First I had to gather the default textures (so I can have a baseline - to see what's missing, file names etc.), gather all the patches, extract all the patches (only 128x), fix all the file names and folder names, change the layout of the textures inside the png's ... , resize everything (64x, 32x, 16x), test everything, fix the bugs and finally release.

I want to make everything perfect and make all the textures work. I even made the missing textures myself too! But the only parts that were terribly slow were gathering the default textures and resizing the Sphaxified ones. But after many hours of painstaking search, I finally found some "tools" to help doing this.

These will help you so much believe me! Winking

Gathering all the default textures - keeping only the png's

First I had to find a way to gather the default textures easier. Namely I found all the mod zips and jars that are in the modpack and extracted them into one folder. Then I removed every file, and kept only the png's by searching for the file types that I don't need (Win 7 or 8). And finally I used a cool program to remove all the empty directories. This was faster than before but not as fast as I want it to be. But I found a batch that will remove every single file that has a different file type than the one you specified. Therefore way I can keep all the png's and remove everything rest in only 5 seconds. Sweet!

Resizing the Sphaxified textures

So I got that sorted but still there is no way to make the resizing bit faster. Or is it? Here, on the forums there was a conversation on how to resize the files more efficiently. And then I read Sphax's comment:

[quote Sphax]It's a Photoshop script I made which get the transparent part of the picture transformed 2bit and then apply it to the 32bit one...[/quote]

But I had a better idea. Instead of turning the image to 2bit and whatever Sphax had said, I wanted to mask the image and then turn mask to selection and then remove the pixels. This was so faster and better. But, I said to myself: "What if I needed to make the pixels opaque, maybe the object is too thin and if we remove the pixels there would be no pixels left!". So I just copied the layer like 30 times and merged it all and then I got full opaque. I turned these steps into photoshop actions that both resize and fix the transparent pixels, and I uploaded those actions in a zip so you can download them.

Links:

HanFox's picture
HanFox
Offline
I am Forum Lead ModeratorI released a major BDcraft patchI love galleriesI searched for an answer myselfThe Cake is a lieI explored bdcraft websiteI like to comment everythingI love to post here
Joined: 16/04/2012

[quote=crumbl3d]Han, I think that you should add the following to the op somehow! :)[/quote]

Added your actions.