Call of Duty 4: Porting Images: Difference between revisions

From COD Modding & Mapping Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{note|In this tutorial I wound try explain how to get correct colour maps from MW2 and Black Ops + specular maps porting}}
 
{{note|In this tutorial I wound try explain how to get correct colour maps from MW2 and Black Ops + specular/normal maps porting}}


==Foreword==
==Foreword==


{{info|''I'm a beginner in photoshop, I'm glad if someone update my tutorial if I made smth wrong and notice me via e-mail about it.''}}
Before reading this tutorial read old one -  


A long time I'm interest how to get right colour maps in Modern Warfare 2 and Black Ops later.<br>
On this week I got a strange idea, when I saw specular maps again. It is pretty strange, because I had never seen smth in any part of Call of Duty.<br>
It has a parts of colour map, and then I think about combined images. I go to MW2 and found again 2 spc files for some weapons and again it include colour map parts, another specular - black&white (standart spc).<br><br>
I google some info about combining and test some things and success in it, and now I post this tutorial there.


==Black Ops==
A long time I'm interest how to get right colour maps in Modern Warfare 2 and Black Ops later.
Fully understanding take 2 month (finish my ideas in may, but for some reason finish it only now) and now, I hope, it's ok :)


Ok, now step by step.
Let's tutorial begin?


*For 1st get specular map and colour. Convert it to DDS and go to photoshop. Now open both images. Do not delete alpha channel, it's important.


[[File:mw2_colormaps_1.jpg|400px]]
==Getting right colour map==


*Here we go. I'd show you example on SPAS images.  
As I wrote sometime ago, there is ways with combining colour+spec, colour+detail. But I had re-mind all, and now it should be right, no more shit.


*When you open 2 files, go to Image -> Apply image. This tool afford you combine pictures. Let's see what is that.
BO:


[[File:mw2_colormaps_2.jpg|400px]]
Almost of images have combining by spc+col. Only some of them - col+detail (AUG, for example).


*Setup settings as on screenshot and you can see, how image transformed. Then press ok and save it :)
MW2:


==Modern Warfare 2==
As I wrote there is 2 spec file. I don't mind why it's here about month. After idea just comes in my head and I check it. Different SPC for different materials. Example:


*Simply work like in BO. We should take colour map and combine it with specular (on some models there is 2 specular maps, which are pretty simple, but one more darken (for what is that?)). It works with originally black weapons in game (SPAS-12, MP5k, FN2000).
MP5k has 2 specular maps. 1 of them used for iron sight, second for another parts. This way used not only for weapons, but for a players as well too (and almostly for players).


''Exacly some of them using black detail_ .iwi, but if you combine it with spec. map you get simply result. Looks strange.''
Ok, now by algorithm:


*For converting smth like AK, Vector, Cheytac read Advance section.
1) Check Aplha 1 layer. If there is nothing (layer is white), then image dont use combining method, result given by specular map and some extra options in asset manager.  


==Specular and Normal maps==
2) If there is Alpha 1 layer and it's ok - notice which colour you have in game. Depends by that you choose detail map, which you'll combine with colour (probably, you can use different ones for different effects, for example Vector used brown detail, but on one SP mission - black, so you can get a real colour, but also some advanced). In MW2 you needn't combine col+spec, it doesnt use there.


{{info|''This part for Call of Duty 4 modellers.''}}
3) Next step. Combine by Image -> Apply image. Use different sett-s and watch preview result. Do not forget enable "Mask" option.  


*I wish notice that normal maps no need to change, just for getting it right convert it manually (there are some old converters). It works not right just because colour map and specular were used not right.
Follow by that you'll get right colour for colour map.
And now about specular. Modern Warfare 2 specular maps can be used without changing, it's pretty good. I would talk about Black Ops ones.


*Open it in Photoshop and past alpha chanell on RGB (use rectangular marquee tool and ctrl+c, ctrl+v, lol), because RGB is not right, used for getting right colours by game. Alpha chanell is what we need. It's specular map, but it is so lighting (then in BO weapons looks like laminated, I think).
How to seach detail:


[[File:mw2_colormaps_3.jpg|400px]]
probably, I have explained in old tutorial about seaching name in extracted .ff's. You can use it, of course.
But most easy way is to get it by reading names of detail and watching on SS of gun which you need. Detail names are readable, so it's no hard to find right image too.


Now go to Image -> Adjustments -> Hue/Saturation and make it less lighting.
Btw, you can choose any from these ways :)


[[File:mw2_colormaps_4.jpg|400px]]


Copy RGB and past on alpha chanell (because we cant change lightness of alpha chanell manually (or I'm just idiot)).
==Specular / Cosine maps==
Now to go Layers palette and combine background and new layer (which we pasted). For that choose both and press ctrl+E. Save it as DDS and again manual convert to iwi.


Step by step.


==Advance==
For 1st get specular map. Now you going to open it. Choose RGB and save as blablabla_spc.<anyformat> . Use 24 bit. Choose Aplha 1 and change Mod to Grayscale (for saving your HDD place :D). You're free past it on RGB, combine layers as well too.


{{note|''For made it you should know "a bit" more, like what fast file is and how to dump it.''}}


*I tested a lot and all works fine, before I tried MW2 AK-47 and Kriss Vector.
Now you have to do 2 different ways - for black ops and for MW/MW2.  
*I seaching second spc, but there isn't! thought that there is engine transform and ect, but I also thought about materials, and go to check it.
*I dump common.ff and common_mp.ff and start seach it and got it! AK used detailed map - detail_kaki_paint.iwi, which I take and try combine images again. Let's see what to do now.


''I wont explain how to dump ff, there is a lot of tutorial about it. All what you need - open unpacked .ff and seach smth like weapon_ak_tactical (name of colour maps) in hex and find material offsets. Usually there is few materials, read carefuly.''


''Code example:''
MW 1/2:


<pre>...яяяяweapon_ak_tactical_col.........DXT5....юяяя........ё*..ё*..Ђ.Ђ.....яяяя'''detail_kaki_paint'''</pre>
Save result as blablabla_cos.<anyformat>  


Black Ops:


We need colour + our new detail_kaki_paint. Convert it to .DDS and go to Photoshop. Now remember: Apply image work only with images with simple size, then we open kaki paint and go to Image - Image size. Setup it as colour map size (usually 1024x1024). Now choose colour map and go to Image -> Apply image again.  
Before saving reduce brightness, about -70 - -100. By that you'll get useful cosine, because in BO it's too white. After that save it as blablabla_cos.<anyformat>.




You'll see how grey colour changed on new, choclate (?). But it's not right, MW2 has less strong colour. Now we should change '''Blending type''' .
==Normal Maps==


Simple work with BO (there is some weapons with detailed map too, like AUG).
Nothing need to change.
 
You can use fake .tga and dds2iwi.exe, or use action file for PS which'll convert NML to standart view.
 
Action file can be found there. (Probably, I found it myself, but sometiles ago 1 man send me a link on already done tutorial about it. Only 1 problem was that action file was a bit wrong, as I think, so I still prefer my. Remember that you cant get 100% simply NML from this action file, blue channel have some differents).
 
[http://rghost.ru/15456031]


*UPD: After several tests I notice, that sometimes there is nothing about detail map in fast file, but it used on weapon. I dont see another way like only get all detail_ .iwi and step by step try combine it with image.


==Examples==
==Examples==
Line 85: Line 82:


--[[User:Sanya|Sanya]] 12:05, 31 March 2011 (IST)
--[[User:Sanya|Sanya]] 12:05, 31 March 2011 (IST)




Thanks and I hope it was useful for you.


[[Category:Call of Duty 4]]
[[Category:Call of Duty 4]]
[[Category:Texturing]]
[[Category:Texturing]]
[[Category:Call of Duty 7]]
[[Category:Call of Duty 7]]

Revision as of 08:52, 23 July 2011

In this tutorial I wound try explain how to get correct colour maps from MW2 and Black Ops + specular/normal maps porting

Foreword

Before reading this tutorial read old one -


A long time I'm interest how to get right colour maps in Modern Warfare 2 and Black Ops later. Fully understanding take 2 month (finish my ideas in may, but for some reason finish it only now) and now, I hope, it's ok :)

Let's tutorial begin?


Getting right colour map

As I wrote sometime ago, there is ways with combining colour+spec, colour+detail. But I had re-mind all, and now it should be right, no more shit.

BO:

Almost of images have combining by spc+col. Only some of them - col+detail (AUG, for example).

MW2:

As I wrote there is 2 spec file. I don't mind why it's here about month. After idea just comes in my head and I check it. Different SPC for different materials. Example:

MP5k has 2 specular maps. 1 of them used for iron sight, second for another parts. This way used not only for weapons, but for a players as well too (and almostly for players).

Ok, now by algorithm:

1) Check Aplha 1 layer. If there is nothing (layer is white), then image dont use combining method, result given by specular map and some extra options in asset manager.

2) If there is Alpha 1 layer and it's ok - notice which colour you have in game. Depends by that you choose detail map, which you'll combine with colour (probably, you can use different ones for different effects, for example Vector used brown detail, but on one SP mission - black, so you can get a real colour, but also some advanced). In MW2 you needn't combine col+spec, it doesnt use there.

3) Next step. Combine by Image -> Apply image. Use different sett-s and watch preview result. Do not forget enable "Mask" option.

Follow by that you'll get right colour for colour map.

How to seach detail:

probably, I have explained in old tutorial about seaching name in extracted .ff's. You can use it, of course. But most easy way is to get it by reading names of detail and watching on SS of gun which you need. Detail names are readable, so it's no hard to find right image too.

Btw, you can choose any from these ways :)


Specular / Cosine maps

Step by step.

For 1st get specular map. Now you going to open it. Choose RGB and save as blablabla_spc.<anyformat> . Use 24 bit. Choose Aplha 1 and change Mod to Grayscale (for saving your HDD place :D). You're free past it on RGB, combine layers as well too.


Now you have to do 2 different ways - for black ops and for MW/MW2.


MW 1/2:

Save result as blablabla_cos.<anyformat>

Black Ops:

Before saving reduce brightness, about -70 - -100. By that you'll get useful cosine, because in BO it's too white. After that save it as blablabla_cos.<anyformat>.


Normal Maps

Nothing need to change.

You can use fake .tga and dds2iwi.exe, or use action file for PS which'll convert NML to standart view.

Action file can be found there. (Probably, I found it myself, but sometiles ago 1 man send me a link on already done tutorial about it. Only 1 problem was that action file was a bit wrong, as I think, so I still prefer my. Remember that you cant get 100% simply NML from this action file, blue channel have some differents).

[1]


Examples

Author

--Sanya 12:05, 31 March 2011 (IST)


e-mail: [email protected]