Jump to content

How to Create Player Portraits using Photoshop


Kccitystar

Recommended Posts

If you need to find portraits, here's a faster way, and I'm surprised this method still works.

What you will need:

Adobe Photoshop CS5 or higher
NVIDIA Texture Tools (download the plugin for Adobe Photoshop)

 

So, Yahoo! Sports has HD official portraits, but you just need to modify the URL to access them.
 


Click Enter.

 

You should have the portrait picture with bigger dimensions, something around 3500x2300. Save the picture. It should be a PNG with the transparency preserved (which is a major, major plus for players with long hair, like Bo, or even Bryce Harper), so we will open this in Photoshop.

Link to comment
Share on other sites

  • What we want to do now is also open up a blank 512x512 image. At least for this tutorial, so that everything looks smooth and quality when you import this into the game, let's make the background color black.
    u1XiOsH.png
  •  
  • Once we have our black 512x512 image, let's copy and paste Bo's portrait into that image. Bo should be in a new layer (Layer 1) in your 512x512 image.
    OU2gq70.png
  • Obviously Bo's portrait is way too big to fit, so we'll need to resize. Go to Edit-> Transform-> Scale. Holding the Shift key will retain/lock the picture's proportions so it doesn't warp as you resize (Another method that locks the proportions evenly is to click on the lock icon in between the W and H values to do this as well). For a portrait like this, usually something in the range of 20%-25% should be fine. In my case, what I try to do is get the shoulders to touch the corners of the photo as much as I can. There will be some players where this is going to be slightly difficult because of the camera angle or how the player is standing, but that's okay. The goal you want to achieve when you resize is to make sure the neck and head are in the photo with the least amount of jersey. This is perfect, so we'll click on the check mark to confirm our resize.

    TExBU48.png
  • Now, what we need to do is set an alpha channel, so Bo's portrait can be visible when we import it. This is pretty easy, since Bo's photo is already transparent. Switch over to the rectangular marque tool ('M' key on the keyboard) and let's right click on Bo's face and select Load Selection:
     zZ1yMDq.png
  • We can click OK here. It will make a selection outlining Bo's photo.
    NmZzdOK.png
  • Bingo! Now we can switch over to Channels so we can create an alpha channel.
    g4na6NK.png
  • From this new Alpha channel, we can just use Ctrl+I to Invert the colors of the selection (it's only black and white, so this outline will turn white). Once it turns white, we can then use Ctrl+D to Deselect the selection.
  • c9uBEAe.pngepc1FHz.png
  • We now have our alpha channel, and now we can merge everything together using Ctrl+Shift+E, or going to Layer and then selecting Merge Visible.
  • enr9r8v.png
  • If you did this correctly, this should be your finished product:
    hdLfUyw.png

 

  • Let's go ahead and save this portrait with Bo Bichette's ID from the portrait ID list for all 2020 rosters (his ID is 9410). We need to save this as a DXT5 so that it retains the alpha channel (if you can see the DXT5 description, it's got ARGB, meaning we're telling the game that this portrait has an alpha channel to define what MLB 2K12 can see and what it can't):
    g6Gs6Ax.png

 

  • Click on Save. Congratulations, you've made your first portrait!

 

Bo is happy. Bo is excited. Bo is proud.
giphy.gif?cid=ecf05e47fba336956d7c59ac3a

 

Link to comment
Share on other sites

4 hours ago, Kacnep87 said:

Why background is not transparent? I made it transparent and all work correctly. Here is that red ...

The red is Adobe Photoshop's way of telling you that the alpha channel is enabled and visible in the file.

 

Whatever is black in the alpha channel is transparent and the game can't see it, whatever is white is visible in the alpha channel and the game will see it.

Link to comment
Share on other sites

2 hours ago, Kccitystar said:

The red is Adobe Photoshop's way of telling you that the alpha channel is enabled and visible in the file.

 

Whatever is black in the alpha channel is transparent and the game can't see it, whatever is white is visible in the alpha channel and the game will see it.

When i make portraits (i watched Wolf of 2K video), i delete background in my image, then i save it as .dds. That's all.  After installing my potraits pack i see all portraits in game correctly.  

Link to comment
Share on other sites

10 minutes ago, Kacnep87 said:

When i make portraits (i watched Wolf of 2K video), i delete background in my image, then i save it as .dds. That's all.  After installing my potraits pack i see all portraits in game correctly.  


And that's fine. It's just a different way to get a similar result with a different program. Photoshop and GIMP are image editing programs with different workflows.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...