Scarlet: http://www.richwhitehouse.com/index.php ... hp#prjmp87
Silent Hill:Homecoming pak files?
-
onionhead
- beginner
- Posts: 37
- Joined: Tue Oct 27, 2009 3:02 am
- Has thanked: 8 times
- Been thanked: 1 time
Re: Silent Hill:Homecoming pak files?
does anyone no how to apply those single colored normal maps extracted from SH5 in 3dsmax or a way to convert them to normal tangent spaced normal map?
help plz?
help plz?
-
MrAdults
- Moderator
- Posts: 1007
- Joined: Mon Mar 23, 2009 2:57 am
- Has thanked: 44 times
- Been thanked: 504 times
Re: Silent Hill:Homecoming pak files?
Hey. Those normal maps are already in tangent space. They use a common technique that involves swapping the alpha and red channels, and deriving the z in a pixel shader. Here's an example of how to decode it from the fragment program I wrote for Scarlet:
PARAM mulf = {2.0, 2.0, 2.0};
PARAM subf = {-1.0, -1.0, -1.0};
#(for standard scale+bias normal expansion)
MAD nrml, nrml.wyzx, mulf, subf; #<--notice r-a swizzle
DP4_SAT nrml.z, nrml, nrml; #<--and of course, it's simple to derive z from here
PARAM mulf = {2.0, 2.0, 2.0};
PARAM subf = {-1.0, -1.0, -1.0};
#(for standard scale+bias normal expansion)
MAD nrml, nrml.wyzx, mulf, subf; #<--notice r-a swizzle
DP4_SAT nrml.z, nrml, nrml; #<--and of course, it's simple to derive z from here
-
onionhead
- beginner
- Posts: 37
- Joined: Tue Oct 27, 2009 3:02 am
- Has thanked: 8 times
- Been thanked: 1 time
Re: Silent Hill:Homecoming pak files?
thanks for the info but i no nothing about scripting. so am i suppose to plug this script in somewhere in max.MrAdults wrote:Hey. Those normal maps are already in tangent space. They use a common technique that involves swapping the alpha and red channels, and deriving the z in a pixel shader. Here's an example of how to decode it from the fragment program I wrote for Scarlet:
PARAM mulf = {2.0, 2.0, 2.0};
PARAM subf = {-1.0, -1.0, -1.0};
#(for standard scale+bias normal expansion)
MAD nrml, nrml.wyzx, mulf, subf; #<--notice r-a swizzle
DP4_SAT nrml.z, nrml, nrml; #<--and of course, it's simple to derive z from here
-
MrAdults
- Moderator
- Posts: 1007
- Joined: Mon Mar 23, 2009 2:57 am
- Has thanked: 44 times
- Been thanked: 504 times
Re: Silent Hill:Homecoming pak files?
This is a Photoshop plugin that will perform the swizzling, z derivation, and re-normalization operations.
http://www.richwhitehouse.com/index.php ... izzler.zip
I don't know if it will work in anything earlier than CS3. I don't have anything for Max either.
http://www.richwhitehouse.com/index.php ... izzler.zip
I don't know if it will work in anything earlier than CS3. I don't have anything for Max either.
Re: Silent Hill:Homecoming pak files?
Scarlet (RichWhitehouse) is good, but problem is a thousands files, that hell extract by one file...
i dont find option in Scarlet "Extract All Files To..."
how Batch extract PAK? that possible?
i dont find option in Scarlet "Extract All Files To..."
how Batch extract PAK? that possible?

