A processing method and device for terrain texture map
A technology of texture mapping and processing methods, applied in image data processing, 3D image processing, instruments, etc., can solve problems such as inability to express roughness, achieve the effect of improving three-dimensionality and realism, and enhancing fidelity
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] refer to figure 1 , shows a flowchart of a method for processing terrain texture maps of the present invention. This embodiment mainly processes the original image to obtain a grayscale image, and uses it as a disturbance factor to calculate the normal vector of the new surface, thereby Change the brightness of the image to make the image concave and convex. Described method specifically comprises:
[0047] S101. Determine an illumination model according to the direction angle of the original image irradiated by the light source and the height of the light source;
[0048] Usually the lighting model is formed by providing a series of library functions. It is very convenient to establish the required lighting model according to the scene in use. The lighting model involved in actual use can include ambient light, diffuse light, specular reflection light, etc. Composition, you can also simulate the real lighting effect by setting the light attenuation factor. The illum...
Embodiment 2
[0074] refer to Figure 4 , which shows a structural diagram of a device for processing terrain texture maps according to the present invention, and the device specifically includes:
[0075] The illumination model determination module 401 is used to determine the illumination model according to the direction angle of the original image irradiated by the light source and the height of the light source;
[0076] A grayscale image acquisition module 402, configured to calculate the grayscale value of each pixel in the original image to obtain a grayscale image of the original image; the grayscale image is used as a disturbance factor for processing the original image;
[0077] The normal vector acquisition module 403 is used to calculate the normal vector of the image with concave-convex texture under the action of the current disturbance factor through the surface texture coordinates of the grayscale image and the terrain height value;
[0078] The image generation module 404 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 