Real-time water wave texture processing method based on 2D (Two-dimensional) grid
A processing method, water wave technology, applied in the field of image processing, can solve problems such as high hardware requirements, complex calculations for processing water surfaces, etc., and achieve the effect of reducing demand
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0018] figure 1 The implementation flow of the real-time water wave texture processing method provided by the embodiment of the present invention is shown, and the details are as follows:
[0019] In step S101, a grid for simulating water wave texture is set according to the aspect ratio of the displayed image, and texture coordinates are set for each node in the grid.
[0020] In the embodiment of the present invention, the display image is virtually divided into a grid according to the aspect ratio, each node of the grid corresponds to a texture coordinate, and each node of the grid is used to calculate the height of the water wave at that point, The aspect ratio includes: 16:9, 4:3, etc., and the display image includes: display images of smart TV, computer monitor, smart handheld device, projector, etc., the specific implementation method is detailed in figure 2 and to figure 2 description of.
[0021] In step S102, the transmission of the water wave is simulated as a ...
Embodiment 2
[0031] figure 2 shows that the embodiment of the present invention provides figure 1 The specific implementation process of step S101 shown is described in detail as follows:
[0032] In step S201, a water wave three-dimensional grid model is set, and the grid model adapts to the X value and Y value of the grid node according to the length and width of the displayed image, and the Z value of the grid node is initially 0.
[0033] In the embodiment of the present invention, a water wave three-dimensional grid model is set, and the grid model adapts the X value and Y value of the grid node according to the aspect ratio of the displayed image, and the Z value of the grid node is 0 initially. The aspect ratio includes: 16:9, 4:3 and so on.
[0034] for example:
[0035] Assuming that the aspect ratio of a displayed image is 16:9, and the width is divided into 90 parts, the length should be divided into 160 parts according to the aspect ratio, so the water wave grid model of th...
Embodiment 3
[0041] image 3 shows that the embodiment of the present invention provides figure 1 The specific implementation process of step S103 shown is described in detail as follows:
[0042] In step S301, the normal vector of each node is calculated according to the coordinate value of the water wave at each node.
[0043] In the embodiment of the present invention, the three-dimensional Cartesian coordinates of each node are obtained according to the height value of the water wave calculated at each node, and the normal vector of the node is calculated according to the coordinates.
[0044] In step S302, the fluctuation average normal vector of each node in the grid is calculated by the averaging method.
[0045] In the embodiment of the present invention, the average fluctuation normal vector of each node is calculated by the averaging method between every three adjacent nodes, and the direction of the fluctuation average normal vector is used to represent the direction of the no...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com