arma:texturing:normal_maps
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
arma:texturing:normal_maps [2007/07/09 06:27] – snakeman | arma:texturing:normal_maps [2024/08/01 14:38] (current) – links added. snakeman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Normal Maps ====== | + | ====== |
+ | |||
+ | [[https:// | ||
+ | |||
+ | **ArmA 1** aka Armed Assault (ArmA) | ||
====== Overview ====== | ====== Overview ====== | ||
Line 7: | Line 12: | ||
Say goodbye to dull surfaces with 3D World' | Say goodbye to dull surfaces with 3D World' | ||
- | If you aim to work in games, it’s worth playing around with normal mapping. Now one of the industry’s hottest topics, normal maps make the surface of a game model look much more detailed and impressive. This detail is displayed in real time: the images in the article are screengrabs, not renders. To create a normal map, a 3D software package samples the directions in which the surfaces of a detailed model (a higher-resolution version of the in-game object) face, storing the information as coloured | + | If you aim to work in games, it’s worth playing around with normal mapping. Now one of the industry’s hottest topics, normal maps make the surface of a game model look much more detailed and impressive. This detail is displayed in real time: the images in the article are screenshots, not renders. To create a normal map, a 3D software package samples the directions in which the surfaces of a detailed model (a higher-resolution version of the in-game object) face, storing the information as colored |
At present, a common approach is to build the hi-res source model immediately, | At present, a common approach is to build the hi-res source model immediately, | ||
+ | |||
====== ArmA guys ====== | ====== ArmA guys ====== | ||
+ | |||
+ | Panda[PL]: IIRC one of devs once said how specular texture should look like:\\ | ||
+ | Red = diffuse\\ | ||
+ | Green = specular\\ | ||
+ | Blue = specular power.\\ | ||
+ | So if you don't intend to change specular power and diffuse then both R and B should be both set to full. If diffuse is not all white (full) then the material gets darkened, if Blue is not all white then the value you input as specular power in rvmat gets multiplied by this value (which is treated as a number between 0 and 1, not 0-255). Texture for specular should be " | ||
Panda[PL]: The problem with specular map is: it needs two channels to work! The texture is 2D, so one channel supplies only information on how the light is applied along one axis. | Panda[PL]: The problem with specular map is: it needs two channels to work! The texture is 2D, so one channel supplies only information on how the light is applied along one axis. | ||
My advise on normal maps:\\ | My advise on normal maps:\\ | ||
- | 1) draw a height map (lighter | + | 1) draw a height map (lighter |
2) use programs like Xnormal to convert it to normal map.\\ | 2) use programs like Xnormal to convert it to normal map.\\ | ||
The correct channel settings seem to be:\\ | The correct channel settings seem to be:\\ | ||
Line 52: | Line 64: | ||
====== Normal Maps Tutorials ====== | ====== Normal Maps Tutorials ====== | ||
+ | |||
+ | |||
+ | |||
+ | ===== Normal Maps Tutorial by freddern ===== | ||
+ | |||
+ | **Normal Maps Tutorial for ArmA by freddern** | ||
+ | |||
+ | Tools used in this tutorial: | ||
+ | * Photoshop | ||
+ | * xNormal plugins for Photoshop (install the program and it installs the plugins too) http:// | ||
+ | * TexView2 | ||
+ | |||
+ | First of all I would like to say that this may not be the best way to make normal maps for ArmA, but I't works for me and I'm satistfied with the results. (My native language is not English so bare with me) | ||
+ | |||
+ | In this turitorial I'm going to show you how to make a new normal map for a us soldier. I'm using my own diffuse texture as an example to show you what I want the new normal map to be based on. | ||
+ | |||
+ | {{ https:// | ||
+ | |||
+ | As you can see in the diffuse texture , most of the changes are on the vest and the new armpads. The rest of the texture will look great with the original normal map. So this means that I'm going to add my own vest and armpads to the original normal map. | ||
+ | |||
+ | {{ https:// | ||
+ | |||
+ | But how do you do this? | ||
+ | |||
+ | If you have created your own texture you probably have the whole thing separated in different layers, right? | ||
+ | Just delete everything except the parts you want in the new normal map, and all you have left are the layers that makes the details you want (In this case the vest and armpads). | ||
+ | |||
+ | Then desaturate everything (I think just turning the image to grayscale will give you trouble later on). | ||
+ | Now, give the whole image a gray background and then kind'a play with the image so that you get something similar to a height map. (White is high and black is low). | ||
+ | |||
+ | It dont have to be a perfect height map. The trick is just to give all the little details some depth. | ||
+ | |||
+ | Now you have somthing like this: | ||
+ | |||
+ | {{ https:// | ||
+ | |||
+ | Use the xNormal plugin and choose Height2Normals. | ||
+ | |||
+ | As source you may choose Gray scale (seems to be the most logical choise), and set Swizzle to X+ Y- Z+ (I read somewhere that this would give the most similar result to the ArmA original Normal map). | ||
+ | |||
+ | Now, copy the image you've created and paste it as a new layer over the original normal map, but wait! The Normal map you created with xNormal got a more red' | ||
+ | |||
+ | Don't worry. Just press Image -> Adjustments -> Channel Mixer and drag the " | ||
+ | |||
+ | **Note**: //I think you need to leave the red channel as it is, your original normal map above seems to be missing the red channel. Did you use TexView2 or Kegety' | ||
+ | |||
+ | Now you can cut this layer so that you get the new vest and arm pads with the old pants and shoes etc... | ||
+ | |||
+ | Looks finished now don't it? | ||
+ | |||
+ | {{ https:// | ||
+ | |||
+ | Not quite. | ||
+ | |||
+ | You also have to modify the alpha layer. Make sure you have the channles window open and press "alpha 1". | ||
+ | |||
+ | Now you see this: | ||
+ | |||
+ | {{ https:// | ||
+ | |||
+ | Select the whole image\alpha picture and copy it, select RGB channel, then paste so that you get a copy of the alpha channel in a regular RGB layer and can modify it as you wish. | ||
+ | |||
+ | Now you can make your details (vest and armpads) in to something similar as the alpha map (Maybe use xNormal plugin -> Normals2Cavity and a little Brightness\Contrast untill the colours fits the rest of the image.) | ||
+ | |||
+ | Merge these "alpha looking" | ||
+ | |||
+ | Now press the RGB channel and make sure your normal map is showing (not the "alpha looking" | ||
+ | |||
+ | Flatten the image and save as 32 bit TGA. Load it in TexView2 and here you can look at the alpha channel or RGB channel seperatly or blended together. | ||
+ | |||
+ | Save it as a Paa file and there you go! Your own normal map. | ||
+ | |||
+ | I'm not going to write about how you get the normal map ingame, partly because that's a different subject and partly because I have not figured it out myself yet. | ||
+ | |||
+ | Have fun! | ||
+ | |||
===== Normal Maps Tutorial by Skaven ===== | ===== Normal Maps Tutorial by Skaven ===== | ||
Line 293: | Line 381: | ||
(as a side note, I didn't just write it for myself. Somebody on Ars Technica' | (as a side note, I didn't just write it for myself. Somebody on Ars Technica' | ||
+ | |||
===== Nvidia Tools ===== | ===== Nvidia Tools ===== | ||
- | Nvidia tools are supposedly doing normal maps (automatically?), some filters or something. Check out [[http:// | + | Nvidia tools will create |
Includes: | Includes: | ||
Line 369: | Line 458: | ||
ORB is another normal map generator, converts 3D models into normal maps. Also generates displacement maps, diffuse maps, vertex-color maps. Imports ASE/OBJ/LWO formats. Previewer included. [[http:// | ORB is another normal map generator, converts 3D models into normal maps. Also generates displacement maps, diffuse maps, vertex-color maps. Imports ASE/OBJ/LWO formats. Previewer included. [[http:// | ||
+ |
arma/texturing/normal_maps.1183962433.txt.gz · Last modified: 2007/07/10 09:52 (external edit)