The normal map is used in the rendering of CG animation and the production of the game screen, the model with high detail is baked by mapping the normal map, affixed to the low-end model of the normal map channel, so that it has a normal map rendering effect, but can greatly reduce the number of polygons and calculations required for rendering, This results in optimized animation rendering and game rendering.
Now many 3d online games have no normal map Ah, hehe, "giant" there is no.
CG: Computer Graphics (computer graphics, or CG) is a science that uses mathematical algorithms to transform two-or three-dimensional graphics into a grid of computer displays. In short, the main research content of computer graphics is to study how to represent graphics in computers, and the related principles and algorithms of computing, processing and displaying graphics by computer.
Wikipedia:
Normal map
Normal map
What is normal mapping technology? This is a technology to achieve the 3D effect, to understand this technology please listen to me slowly.
We know that in the game often there is a situation, is a plane-this plane in reality is not a "flat" surface, such as the surface of the brick wall with stone relief and so on. It's unrealistic to ask game developers to make complex 3D details, because even if you don't care about the complexity of modeling, too much 3D detail will also consume the performance of the display chip, making the game simply not playable.
How do you use stickers to achieve bump effects?
The way to do this is to cover the plane with a decal, and use the texture of the map to achieve a certain bump effect. But the effect of this approach is not very good, because if the angle of view changes, it will look like a simple picture with a pattern of the plane.
Later, smart game developers came up with a way to do some processing of the stickers during the mapping process, which ensured that there was still a noticeable bump effect after the perspective shift.
The physics basis of light and shadow, normal mapping technology
We know that the reason why people can see the three-dimensional sense of the scene is mainly because people have two eyes. The two eyes look different, so people can distinguish the three-dimensional sense. However, because the computer screen is a plane, the resolution of the 3D effect can only be achieved by the effect of light and shadow.
To give a simple example, it's like when we're sketching, in order to keep a sphere from looking like a circle, you have to make some areas of the sphere bright and some areas dark. And from the light to the dark part of the time is a uniform according to the characteristics of the physical model of the transition, so that the drawing of the sphere is like a sphere, the computer for us to draw the same process.
Because there is light and shade, we can understand the plane into three-dimensional
For this reason, it is not difficult to understand that a fake 3D effect can be achieved by mapping local light and dark changes. In other words, we can do a fake 3D effect by making some light and dark changes on the map.
Illumination varies depending on angle
So how do you convert a map in real time? If we want to realize the virtual light and shadow transformation, we need to know at least a real bump on a plane, so that the display chip can be operated, creating a false bump effect.
Obviously, recording the real bump model is not worth the candle-if that means nothing, we need a very simple way to record a texture of the bump situation, so we have a new method, normal mapping technology.
Next, let's go back to the topic of the normal map we just talked about.
A normal map is a map that records the bump of each point on a map that needs to be transformed by a light and shadow, and the display chip, based on the content of the map, generates a new map in real time that has a change of light and shadow to achieve a stereoscopic effect.
So, how to use normal map to record a plane or a map of the bump situation? We know that the direct cause of light and shade on the surface of an object is the difference in the angle of illumination, where light is perpendicular to the plane, where the light is oblique to the plane, and the light is darker (it should be black, but the shadow is not real black due to ambient light).
The color of the value of the normal direction, smart storage
Friends who have studied physics in junior high school must also remember that the light is usually used to represent the angle of the point normal when the light is fired at the plane. This means that if we record the normals of all the points on a map, it is not difficult to use this information to achieve a false bump effect later on.
The vectors that record these normals are referred to as normal maps. Why is it called a decal? We know that a normal is a three-dimensional vector, a three-dimensional vector consists of x, Y, Z and other 3 components, so people came up with a clever way, is to use these 3 components as red, green and blue 3 color values stored, so that a new map is generated, this is the origin of the normal map.
The normal map is not really a map, so it is not directly attached to the surface of the object, it plays the role of recording the direction of the normals on each point. So this map, if it looks more bizarre, often presents a bluish-violet look. (Polygons: Polygon)
"Tip 05: In fact, the true normal map is not the absolute angle of the normals of each point on the map, but rather a difference from the plane. In this case, the 3D transformation of the plane can achieve the immediate normal operation. 』
Traditional texture compression, normal map no longer applicable
The advantage of using normal mapping technology is that very few resources are used to achieve a very good bump effect, and we can use the texture compression technology mentioned at the beginning to compress the normal map to further save resources.
How does 3D Max make a discovery map? See below, figure out the words dot link.
Making normal maps
Next we make normal map (normal map) in 3ds Max, the low modulus and high modulus are named: Low-model and High-model, and then the exported low-mode UV sub-good, high modulus without sub-UV.
The original is unknown, I see from here: http://www.cnblogs.com/lancidie/archive/2010/11/02/1866914.html
"Reprint" normal map Nomal mapping principle