HL2/CSS: Photoshop Normal Map Generator

View

Community Home > Half-Life 2 / Source Engine > Source Art & Sound > HL2/CSS: Photoshop Normal Map Generator

Page 1 of 5. Covering 88 Post(s). Viewed 37678 times.
Previous 12345 Next
HL2/CSS: Photoshop Normal Map Generator
Nov 25th 2004, 23:00
Bearcub

Post: #1
Reply to: #None

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

Ok, this is the first release of the Normal-Map Generator script (specifically for HL2/CSS) that I wrote for Adobe Photoshop CS.

Basically, this script will allow Adobe Photoshop CS to automatically create a beautiful Normal Map for you from any .tga texture(s) you give it. The generated Normal Map can be used in Half-Life 2 or Counter-Strike: Source to give a nice "bump" effect to object or brush textures.

This is a beta release so I will need some feedback from anyone who tests this script out. The script should run fine, but if you run into any errors while using it please post them in this thread.

To extract the script you need .rar archiver like WinRAR. WinRAR can be downloaded from here:

http://www.rarlab.com/rar/wrar341.exe

The script can be downloaded from here:

http://www.sub-standards.com/NormalMapGen/HL2Textures.rar

WARNING: The HL2Textures.rar MUST be extracted directly to your C:\ or else the script will not work! You need to end up with a directory structure of C:\HL2Textures.

Lastly, you will need the Adobe PhotoShop Normal Map and DDS Authoring Plug-ins which can be downloaded from:
http://download.nvidia.com/developer/NVTextureSuite/NVIDIA_Photoshop_Plugins_7.33.0325.1320.exe

I have included a detailed readme file with the script that explains the requirements, how to install, how to use, and a brief tutorial. PLEASE read the readme, it explains a lot.

Here are some screen shots of a sphere with and without Normal Mapping in CSS:

With Normal Mapping:
http://www.sub-standards.com/NormalPictures/WithNormal.JPG

Without Normal Mapping:
http://www.sub-standards.com/NormalPictures/WoutNormal.JPG

Message last edited by XGibbousX on Apr 27th 2005 at 07:01.

Re: HL2/CSS: Photoshop Normal Map Generator
Nov 26th 2004, 04:20
Mentor

Avatar

Post: #2
Reply to: #1

Joined: 1st Apr 2001
From: United States
Posts: 2353

Very nice program, I'll probably find a use for it once the singleplayer SDK has been released. Also, that sphere doesnt look like concrete anymore with the normal map, looks like some kind of goo :P


--------------------------
If hypothetical questions made you nervous, what would you say?

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 26th 2004, 06:03
Padawan

Post: #3
Reply to: #1

Joined: 14th Apr 2002
From: United States
Posts: 88

What is Photoshop CS?? I have Photoshop 7 and it doesn't have a script function, but I already had the Nvidia Normal plugin, can you just tell me what settings you used. And what you set your .txt files up as. Because I don't know how to find the bump map scale.

"The only thing that is constant is not change, rather choice, in which inflicts change."
[IMG]"http://www.mapwars.com/darkdruid/images/Sig.jpg"[/IMG]

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 26th 2004, 10:36
Bearcub

Post: #4
Reply to: #3

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

Photoshop CS is the newest version of Photoshop. You have to download the scripting plugin for Photoshop 7 to use scripts with it. You can get the Photoshop 7 Plugin from here:

http://sub-standards.com/Scripting/PhotoshopScripting102a.exe

Now, as for the Nvidia Normal plugin, I only used one setting and that was the "Normalize" setting (which does almost nothing). You see, with the script, Photoshop itself is actually making the Normal Maps from scratch by applying about 80 of its own processes to the textures you feed it. In other words, there aren't any "settings" that I can give you. You need to download and install the plugin and then run the script.

The script, as off now, only has one bump scale. If in the future people want more options besides a "high" bump scale, like medium and low, I will make some more scripts.

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 26th 2004, 10:40
Bearcub

Post: #5
Reply to: #4

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

Thanks Prometheus. I really just want to help out the community by making things like creating Normal Maps as easy as possible.

And yeah, the sphere definately looks different with such a high amount of Normal Mapping on it. I kind of did this on purpose so that no one would say "I can't see any difference.";)

I really hope you find some good uses for this program. Good luck and have fun.

Message last edited by XGibbousX on Nov 26th 2004 at 10:44.

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 26th 2004, 11:32
Bearcub

Post: #6
Reply to: #5

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

Ok, I just made a VERY critical update to the Photoshop CS Script. If you have already downloaded the script please re-download the new HL2Textures.rar file from either the link in the first post or from here:

http://www.sub-standards.com/NormalMapGen/HL2Textures.rar

This updated script gets rid of a nasty reflection effect in the previous version. For example, the sphere in the screenshots in the first post doesn't look nearly as much like goo now with the new Normal Maps applied.

Thanks.

Here is a screenshot of what the new Normal Maps look like in game:

http://www.sub-standards.com/NormalPictures/New_Normal.JPG

Message last edited by XGibbousX on Nov 26th 2004 at 11:51.

anon@62.252
Re: HL2/CSS: Photoshop Normal Map Genera
Nov 26th 2004, 17:00

Post: #7
Reply to: #6

Joined:
From:
Posts:

Hi

Great script works real well but i seem to be haveing one problem with the end result which is the normal map keeps turning out yellow/orange insted of the blueish/purple colour they should be. Could this be something todo with my setings or does the script not like me.

thanks

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 26th 2004, 17:32
Padawan

Post: #8
Reply to: #4

Joined: 14th Apr 2002
From: United States
Posts: 88

Awesome job, and thanks. But when I run it, it gets a ways through with the texture then says:

"Error 911: The command "<unknown>" is not currently available Line 1271 -> executeAction( id17, desc6, DialogModes.NO);"

If that means anything. At that point in the transfer it creates a blue image, a brown image, and a orange image.

"The only thing that is constant is not change, rather choice, in which inflicts change."
[IMG]"http://www.mapwars.com/darkdruid/images/Sig.jpg"[/IMG]

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 26th 2004, 18:15
Apprentice

Post: #9
Reply to: #8

Joined: 26th Nov 2004
From: Sweden
Posts: 245

Theres also a Photoshop plugin from nVidia which does pretty much the same thing converting bump/height maps to normal maps.

http://developer.nvidia.com/object/nv_texture_tools.html

---
Jed (a.k.a Wunderboy - http://www.wunderboy.org)

Message last edited by Wunderboy on Nov 26th 2004 at 18:17.

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 26th 2004, 23:05
Bearcub

Post: #10
Reply to: #9

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

Hey guys, sorry for the problems; this is my first software release ever. I will be looking into both posted problems today and get a solution out as soon as possible. Thanks for giving it a try. I really needed some feedback so that I could get it to work properly on everyones' system.

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 26th 2004, 23:27
Bearcub

Post: #11
Reply to: #10

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

Ok, I just found the solution to the first problem by anon. Now I will be working on the second problem. After I find the solution to the second problem, I will fix the script and re-upload it. Thanks.

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 27th 2004, 00:36
Bearcub

Post: #12
Reply to: #11

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

I just uploaded the new HL2Textures.rar file. It can be downloaded from either of the two links above. This new script should fix anon's problems and hopefully all problems with Photoshop CS.

As for Druid's problem I found out what I think is the problem. Druid, I think that this problem is occuring because you are using Photoshop 7.0 and not CS. After some debugging I found that your problem is caused by Photoshop's "Match Color" function. I don't think Photoshop 7.0 has the match color function so that is why it's crashing. What you can do is check to see if you have the function in Photoshop 7.0 by going to Image > Adjustments > Match Color. If you can't find Match Color in Photoshop 7.0, then it doesn't have that function.

Worst case scenario is that I will need to release a Photoshop 7.0 version which won't take too long. Please tell me if you find the Match Color function in Photoshop 7.0.

As for the new version of HL2Textures.rar, please give me some feedback on how it works. Thanks.

Message last edited by XGibbousX on Nov 27th 2004 at 00:38.

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 27th 2004, 01:21
Bearcub

Post: #13
Reply to: #12

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

Hey, Druid, I noticed another post where you couldn't get Normal Mapping to work on objects and I posted this:

To get normal mapping to work on objects you MUST use the line "VertexLitGeneric" instead of "LightmappedGeneric."

For example:

A .vmt file for an object would look like this:

"VertexLitGeneric"
{
"$baseTexture" "models\bump2/b1metalfloor"
"$bumpmap" "models\bump2/b1metalfloor_normal"
}

whereas a .vmt file for a wall (or brush) would look like this:

"LightmappedGeneric"
{
"$baseTexture" "models\bump1/b1bark"
"$bumpmap" "models\bump1/b1bark_normal"
}

Hope this helps.

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 27th 2004, 04:44
Bearcub

Post: #14
Reply to: #13

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

I just made another update to the script that fixes warping in the Normal Map detail. Please re-download HL2Textures.rar if you have downloaded the older version. You can download the new version of HL2Textures.rar from here:

http://www.sub-standards.com/NormalMapGen/HL2Textures.rar

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 27th 2004, 21:39
Padawan

Post: #15
Reply to: #12

Joined: 14th Apr 2002
From: United States
Posts: 88

Nope, no Match Color function.

Well I have been trying to create normal maps of my own. But I was curious what scale to put them as because whenever I run the texture ingame it has a black grid ontop of the texture.

"The only thing that is constant is not change, rather choice, in which inflicts change."
[IMG]"http://www.mapwars.com/darkdruid/images/Sig.jpg"[/IMG]

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 27th 2004, 22:16
Bearcub

Post: #16
Reply to: #15

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

Don't worry, I am making a Photoshop 7.0 script. It could literally be out today. Just check back at night and I should have something.

I am confused by your question about scale. What scale option are you talking about and where is it located. By the way, I answered your thread on "How to get normal maps to work on objects and not walls." I posted the answer in this thread and in the one you created.

Message last edited by XGibbousX on Nov 27th 2004 at 22:17.

anon@62.252
Re: HL2/CSS: Photoshop Normal Map Genera
Nov 27th 2004, 23:46

Post: #17
Reply to: #16

Joined:
From:
Posts:

works great now:)

tested a few of my custom textures out today thought you might want to have a look see how they turned out.

[/url]
[
/url]
[
/url]
[
/url]
[
/url]

o yeh any chance that you will make a script for createing hight maps?

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 27th 2004, 23:54
Bearcub

Post: #18
Reply to: #17

Joined: 27th Nov 2004
From: United Kingdom
Posts: 1

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 28th 2004, 03:31
Bearcub

Post: #19
Reply to: #18

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

New Release of HL2Textures.rar.

You can download from here:

http://www.sub-standards.com/NormalMapGen/HL2Textures.rar

Fixes:

1. New texture input folder (you put your unprocessed .tga's in here).

2. New normal map output folder (processed normal-map .tga's get sent here).

3. Scrap files are now automatically deleted.

4. Now you can generate up to one-thousand normal maps at a time.

This will probably be the final release for Photoshop CS for a while unless other people have any more suggestions or I find some new and improved technique to create normal maps with. I will release the Photoshop 7.0 version shortly.

Message last edited by XGibbousX on Nov 28th 2004 at 03:33.

Re: HL2/CSS: Photoshop Normal Map Genera
Nov 28th 2004, 03:38
Bearcub

Post: #20
Reply to: #19

Joined: 24th Nov 2004
From: Trinidad and Tobago
Posts: 47

Day, those bump maps seriously look great. Thank you for taking the time to put those up. If you have any suggestions please feel free to offer them.

Also, download the new release because it will save you even more time and folders are layed out a little more logically.

Page 1 of 5. Covering 88 Post(s). Viewed 37678 times.
Previous 12345 Next
Jump to Board