Unlock instant, AI-driven research and patent intelligence for your innovation.

Water surface rendering method and device

A technology of texture coordinates and fragments, applied in indoor games, instruments, computing and other directions, can solve the problem of low rendering efficiency of mobile terminals

Active Publication Date: 2022-03-15
城市生活(北京)信息有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the above rendering process, the method of superimposing sine or cosine functions is adopted. This method requires that the distance between adjacent water surface mesh vertices is smaller than the wavelength of the sine or cosine function. In order to meet this requirement, a large number of dense water surface mesh vertices must be used. In this way, the mobile terminal has to process a very large amount of vertex data of the water surface mesh, resulting in low rendering efficiency of the mobile terminal

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Water surface rendering method and device
  • Water surface rendering method and device
  • Water surface rendering method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of this application.

[0032] An embodiment of the present invention provides a water surface rendering method, such as figure 1 As shown, the method includes:

[0033] S100. Obtain the world coordinates corresponding to the vertices of the water surface grid and the current timing value, and use the plane coordinates in the world coordinates as the texture coordinates corresponding to the vertices of the water surface grid;

[0034] Specifically, the water surface model data is first obtained, and the water sur...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application discloses a water surface rendering method and device. The method includes: obtaining the world coordinates corresponding to the vertices of the water surface grid and the current timing value, using the plane coordinates in the world coordinates as the texture coordinates corresponding to the vertices of the water surface grid; After grid rasterization, the obtained fragments are determined to determine the texture coordinates and screen coordinates corresponding to each fragment; for each fragment, the offset is determined according to the current timing value and the preset rules; the texture coordinates are calculated according to the offset Offset, to obtain the offset texture coordinates, and respectively obtain the sampling color value and normal direction vector corresponding to the offset texture coordinates; obtain the shadow factor according to the screen coordinates, the preset shadow algorithm and the pre-stored depth texture map; based on the method The line direction vector and the pre-stored light source direction vector obtain the brightness value of the water surface reflection; the color of the fragment is determined according to the sampled color value, the water surface reflection brightness value and the shadow factor, and the above solution can improve the rendering efficiency of the mobile terminal.

Description

technical field [0001] The present application relates to the technical field of computer graphics processing, and more specifically, to a water surface rendering method and device. Background technique [0002] Water surface rendering is an important part of natural scene rendering. It can more realistically simulate water surface conditions such as water surface fluctuations and shadows on the water surface. It is widely used in game scenes, virtual reality, 3D scene visualization and other fields. With people's dependence on mobile terminals, games, virtual reality, etc. can all be realized on mobile terminals, which requires mobile terminals to also perform water surface rendering. [0003] At present, considering that the processing performance of the mobile terminal is worse than that of the PC, the way to render the water surface is as follows: the water surface fluctuation is regarded as a series of sine or cosine wave superposition, after obtaining the initial coord...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06T15/04G06T15/50G06T15/60A63F13/52
CPCA63F13/52G06T15/04G06T15/506G06T15/60G06T2210/24A63F2300/663
Inventor 郑梁荣
Owner 城市生活(北京)信息有限公司