Sort of realistic looking carbon fiber normal map resource. Up to date with 1.53.8.53, except for the description.
Sort of realistic looking carbon fiber normal map resource. Up to date with 1.53.8.53, except for the description.
Hi everyone!
This is the result of an attempt to make a realistic looking carbon fiber material for custom skins. I tried several different things, several different parameters configurations and this is the optimal combination of all that, at least in my opinion.
Does not work on tanks, since you can't edit their normal maps (reflectivity only).
If the images are broken:
http://1drv.ms/1NerrMv
Development
First, I'd like to talk a bit about carbon fiber. It is a weave of filaments made of specially treated carbon, and made rigid by a polymer. The important thing is that this arrangement makes it have a distinct appearance, which changes according to light. Which means that a simple texture won't accurately represent carbon fiber. The normal map is needed for that. It have it's limitations, because we can't work on the game's engine, just the skins, but a good approximation is possible, as I (think) I managed to do.
First, to represent how the light gets reflected by the fibers, I used the shape of a cylinder. Firstly, because the light seems to behave alike, and secondly, because the fibers are curved from being woven above and below others. After learning a bit more about normal maps, I made the cylinders in it with a simple gradient. And I placed the gradients in a 2⁄2 twill fashion (initially plain weave, but twill looks better).
Then, I tested for different cylinder sizes, gradient ranges, reflectivity levels and background color. I think I found an optimal combination. Although that, according to real life carbon fiber, the cylinder sizes should have been way smaller. But, for rule of cool and so the effects could be noticed, I made them bigger.
Implementation
I've added in the download the skin for the Ryusei, which is the plane I used to test this, but, if you want to test this one on other planes, just copy the files and rename them. I did not do the damage files because this is only a demonstrator. Now, I'll show how to do this.
The background color, which goes in the "normal" texture file, should be #101010 (RBG hex triplet).
In the normal map, the red channel must be a plain #100000. As for the alpha and green channels, I've seen carbon fiber woven in plain weave and in 2⁄2 twill, so I made patterns for both. In the twill pattern, I made the cylinders as small as possible. A bit smaller and the game's engine interprets the bumpiness a lot less sharply. In theory, the size of the cylinders in the plain weave should be the same as the smaller side of the cylinders in the twill, but it looks too small, so I've made it the size of the bigger side. Of course, once you understand how it's made, you can adapt it to your will. The gradient must have a range of about 64 (#40) centered on 127/128 (#7F/#80). These are the patterns:
For 2⁄2 twill:
For plain weave:
The gray one goes in the alpha channel and the green one in the green channel (duh). Just repeat these patters all over, they're made to wrap around. Combine all channels together and it's done!
Use this however you want, but please be kind and mention me if you do.
Good skinning!
Update 1.53: this update did a number on my skin. I've tried to make it as best as I could, but it's far from what it used to look and far from what I wanted it to look. Mandatory read:
http://wiki.warthunder.com/index.php?title=PBR_texture_compliance
For the base color, I'm not supposed to use colors darker than 60, but I ended up having to use 32 anyway because the reflection from the sun was way too bright. As for the "_n" file, I couldn't use a blue too dark or the gray would be too bright, and I couldn't use it too bright or the underside would be pitch black, so I settled for midway. As for the red, it was tied to the range of the green and alpha gradients. I couldn't use a range too high or undesired shadows would appear, so that forced me to use a red brighter than what I wanted. After more than 40 different combinations, this is my best effort. You're welcome to try and improve it.
I've left the original description as it was in 1.51, but updated the images to 1.53. I tried to take the screenshots in the same conditions and angle. I've updated the pattern images, which were changed a bit. The link to OneDrive have all the files from all the versions.
tags: #GuiRitter #carbon #fiber #carbonFiber #carbon_fiber #normal #normalMap #normal_map #bump #bumpMap #bump_map #pbr