Alpha Channel [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Alpha Channel [Solved]

Post by MidnightSpirit »

Hello Gametoast! Today I come to you seeking answers to a problem.

The fproblem deals with skinning.
So I just downloaded ANDEWEDGET's The Clone Wars Trooper model from here forums/viewtopic.php?f=64&t=18603

When I tried to view the model and its skin in Star wars Battlefront Viewer only the blank model came up.
Hidden/Spoiler:
ImageUploaded with ImageShack.com
So I checked the TGA file, which was named correctly, and it has an alpha channel (as stated in the readme of the file) So it looks like this.
Hidden/Spoiler:
ImageUploaded with ImageShack.com
When I remove the Alpha layer or channel the checkered area turns to white leaving the visor.
I am asking how I can get the skin to work so that I can eventually edit it myself.

By the way the program I use for TGA files is Gimp 2.6
Last edited by MidnightSpirit on Sat Aug 31, 2013 5:06 pm, edited 2 times in total.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Alpha Channel

Post by AceMastermind »

The texture doesn't display in SWBF Viewer because the msh file references ande_inf_tcw_clone.psd instead of ande_inf_tcw_clone.tga, you can easily fix this with a hex editor.

As for the alpha channel question, have a look at this tutorial:
http://www.gametoast.com/forums/viewtop ... 27&t=21268
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Re: Alpha Channel

Post by MidnightSpirit »

Thank you very much for the Walkthrough but I am still having troubles with the hex editor. I've never used one before and it sounds like you know what you're doing so I was wondering how I can use the editor to get the msh file to reference the tga instead of the psd.
I appreciate you time thank you.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Alpha Channel

Post by AQT »

Using a hex editor is like using a text editor, except you don't need to use the backspace key. You click on the box containing the character you want to change (in this case, the "p" in "psd"), and it will be highlighted. Then you type the character you want to replace it with ("t"). The box immediately to its right will automatically be highlighted ("s"). Repeat this process until you've completely replaced "psd" with "tga".
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Re: Alpha Channel

Post by MidnightSpirit »

I am sorry to be a bother, but I am afraid that my hex editor showed nothing like what you are describing.
So I downloaded a hex editor like I said but when I run it there are no boxes or anything, there are different numbers and such depending on which file I open.
Whether it be the tga, msh, or anoy other file in the folder the hex editor I have comes up with something similar to this.
Hidden/Spoiler:
ImageUploaded with ImageShack.com
I am a very visual person haha so if you wouldn't mind posting some pictures of what's what I appreciate it. Thank you for your time.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Alpha Channel

Post by Maveritchell »

Image
And in cases where it's not immediately obvious, use ctrl-F to search for the extension. Place your cursor and type to overwrite (hex-editors will usually set you in overwrite mode by default).
MidnightSpirit
Second Lance Corporal
Second Lance Corporal
Posts: 100
Joined: Mon Aug 15, 2011 1:29 pm
Games I'm Playing :: BF2
xbox live or psn: ApocryphicDeath

Re: Alpha Channel

Post by MidnightSpirit »

Well that made me feel dumb, it was right in front of me the entire time. Thank you I now understand what I am doing.
Post Reply