Height map generation method and device, equipment and storage medium
A technology of height map and height information, applied in the field of image rendering, can solve problems such as poor display effect of game screen, and achieve the effect of improving display effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] Figure 1a It is a flow chart of a method for generating a height map provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of generating a height map, especially applicable to the situation of generating a height map of grass in a game scene. The method may be executed by a height map generation device, and the height map generation device may be implemented in software and / or hardware, for example, the height map generation device may be configured in a computer device. Such as Figure 1a As shown, the method includes:
[0027] S110. Acquire a scene model of the target scene.
[0028] In this embodiment, the target scene may be a scene where grass needs to be rendered. It is understandable that the terrain in the game scene is built based on the model. Multiple models are fused to form the terrain effect in the game scene. In this embodiment, in order to improve the display effect of grass, so that grass can grow on the ...
Embodiment 2
[0040] figure 2 It is a flowchart of a method for generating a height map provided by Embodiment 2 of the present invention. This embodiment is further optimized on the basis of the foregoing embodiments. like figure 2 As shown, the method includes:
[0041] S210. Acquire a scene model of the target scene.
[0042] S220. Perform ray detection on the scene model to obtain height information of the collision point.
[0043] S230. Classify the collision points based on the attribute information of the collision points, and generate a height map corresponding to each category based on the height information.
[0044] S240. Acquire element rendering parameters corresponding to each height map, and construct a correspondence between the element rendering parameters and the height map.
[0045] In this embodiment, after the multi-layer height map is generated, element rendering parameters corresponding to each layer height map can be obtained, such as color information. Densi...
Embodiment 3
[0050] image 3 It is a schematic structural diagram of a height map generation device provided by Embodiment 4 of the present invention. The height map generation device can be realized by software and / or hardware, for example, the height map generation device can be configured in a computer device. like image 3 As shown, the device includes a target scene acquisition module 310, a height information acquisition module 320 and a height map generation module 330, wherein:
[0051] A target scene acquiring module 310, configured to acquire a scene model of the target scene;
[0052] A height information acquisition module 320, configured to perform ray detection on the scene model to obtain height information of the collision point;
[0053] The height map generating module 330 is configured to classify the collision points based on the attribute information of the collision points, and generate a height map corresponding to each category based on the height information.
...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


