CN115193034A - Rendering method and device for water flow area in virtual scene and computer equipment - Google Patents

Rendering method and device for water flow area in virtual scene and computer equipment Download PDF

Info

Publication number
CN115193034A
CN115193034A CN202210759205.2A CN202210759205A CN115193034A CN 115193034 A CN115193034 A CN 115193034A CN 202210759205 A CN202210759205 A CN 202210759205A CN 115193034 A CN115193034 A CN 115193034A
Authority
CN
China
Prior art keywords
model
water flow
water surface
grid
skeleton
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210759205.2A
Other languages
Chinese (zh)
Inventor
沈忠勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210759205.2A priority Critical patent/CN115193034A/en
Publication of CN115193034A publication Critical patent/CN115193034A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/66Methods for processing data by generating or executing the game program for rendering three dimensional images
    • A63F2300/663Methods for processing data by generating or executing the game program for rendering three dimensional images for simulating liquid objects, e.g. water, gas, fog, snow, clouds

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Computer Graphics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a rendering method, a rendering device, computer equipment and a storage medium for a water flow area in a virtual scene, wherein the method comprises the following steps: acquiring a water flow area model corresponding to a water flow area in the plot model; generating a water surface grid corresponding to the land parcel model according to the model edge points of the water flow region model; acquiring direction information of skeleton lines of the water surface grid, and constructing water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines; and rendering the water surface of the water flow area based on the water surface mesh and the water flow direction information of the vertex of the mesh. According to the method, a water surface grid conforming to a land model is constructed through a water flow region model in the land model, water flow direction information of each grid vertex on the water surface grid is constructed according to the direction information of the skeleton line of the water surface grid, and the water surface grid is rendered based on the water surface grid and the flow direction information of the grid vertices, so that a water surface flow effect is simulated, and the rendering efficiency of a virtual scene is improved.

Description

Rendering method and device for water flow area in virtual scene and computer equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a rendering method and apparatus for a water flow region in a virtual scene, a computer device, and a computer-readable storage medium (storage medium for short).
Background
With the continuous development of electronic games, three-dimensional games are more and more popular, and fluids in virtual scenes in the three-dimensional games, such as water flow, magma and the like, are often indispensable parts. However, the fluid in the virtual scene often needs to be created by manually creating a mesh model of the fluid, and the height information of the mesh model corresponding to the fluid changes with the change of the terrain, and further operations such as manually adjusting the positions of the mesh vertices on the mesh model and the like need to be performed to make the mesh model corresponding to the fluid adapt to the terrain model, so that the creation efficiency of the mesh model of the fluid is low, and the time consumption is long.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, an apparatus, a computer device, and a storage medium for rendering a water flow region in a virtual scene, so as to improve the production efficiency of a mesh model of a fluid.
In a first aspect, the present application provides a rendering method for a water flow area in a virtual scene, the method including:
acquiring a water flow area model corresponding to a water flow area in the plot model;
generating a water surface grid corresponding to the land parcel model according to the model edge points of the water flow region model;
acquiring direction information of skeleton lines of the water surface grid, and constructing water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines;
and rendering the water surface of the water flow area based on the water surface mesh and the water flow direction information of the vertex of the mesh.
In some embodiments of the present application, the step of obtaining a water flow region model corresponding to a water flow region in the plot model includes:
acquiring a plot model and a map image corresponding to the plot model;
extracting an initial water flow layer of a water flow area in a map image;
and extracting a water flow area model in the land parcel model based on the initial water flow image layer.
In some embodiments of the present application, the step of extracting a water flow region model in the land model based on the initial water flow map layer includes:
expanding the initial water flow image layer by taking the image layer edge line of the initial water flow image layer as a reference to obtain a target water flow image layer;
and extracting a water flow area model in the land model based on the target water flow image layer.
In some embodiments of the present application, the step of generating a water surface mesh corresponding to the parcel model according to the model edge points of the water flow region model includes:
smoothing the height information of the model edge points of the water flow region model to obtain target edge points;
and constructing a water surface grid corresponding to the land parcel model based on the target edge points.
In some embodiments of the present application, the terrain model comprises at least two terrain sub-models;
generating a water surface grid corresponding to the land parcel model according to the model edge points of the water flow region model, wherein the step comprises the following steps:
for any terrain sub-model, smoothing model edge points of the water flow area model in the terrain sub-model to obtain target edge points of the water flow area model in the terrain sub-model;
constructing a water surface sub-grid corresponding to the plot model based on the target edge points of the water flow area model in the plot sub-model;
and splicing the water surface sub-grids corresponding to the sub-models of the blocks to obtain the water surface grid.
In some embodiments of the present application, the step of obtaining the water surface mesh by splicing the water surface sub-meshes corresponding to the respective terrain sub-models includes:
extracting grid edge points of each water surface sub-grid and projection coordinates of the grid edge points on a two-dimensional plane;
calculating a distance value between any two grid edge points based on the projection coordinates of the grid edge points;
and merging the two grid edge points with the distance value smaller than the preset distance threshold value to obtain the water surface grid.
In some embodiments of the present application, the step of obtaining the direction information of the skeleton line of the water surface grid includes:
acquiring the number of end points of the skeleton line;
if the number of the end points of the skeleton lines is equal to 2 or the number of the end points of the skeleton lines is not equal to 2 and no preselected finishing skeleton point exists on the skeleton lines, sorting the skeleton points based on the height information of each skeleton point in the skeleton lines to obtain a sorting result;
and obtaining the direction information of each skeleton point according to the sequencing result to obtain the direction information of the skeleton line.
In some embodiments of the present application, after the step of obtaining the number of the endpoints of the skeleton line, the method further includes:
if the number of the end points of the skeleton line is not equal to 2 and the skeleton line comprises an ending skeleton point, randomly selecting a plurality of starting skeleton points on the skeleton line;
acquiring path information between a starting skeleton point and an ending skeleton point based on skeleton lines;
direction information of the skeleton line is acquired based on the path information.
In some embodiments of the present application, the step of constructing the water flow direction information of each mesh vertex on the water surface mesh according to the direction information of the skeleton line includes:
generating initial flow direction information of each grid vertex on the water surface grid based on the direction information of the skeleton line;
obtaining an obstacle model in the land parcel model, and determining a first grid vertex in the water surface grid according to the surface position information of the obstacle model; the first mesh vertex is a mesh vertex of which the flow direction information in the water surface mesh is influenced by the barrier model;
calculating target flow direction information of a first grid vertex based on a normal vector of the obstacle model and initial flow direction information of the first grid vertex;
generating water flow direction information of the water surface mesh based on target flow direction information of a first mesh vertex and initial flow direction information of a second mesh vertex in the water surface mesh; the second mesh vertex is a mesh vertex in the water surface mesh except the first mesh vertex.
In a second aspect, the present application provides an apparatus for rendering a water flow region in a virtual scene, the apparatus comprising:
the region model acquisition module is used for acquiring a water flow region model corresponding to a water flow region in the plot model;
the water surface grid generating module is used for generating a water surface grid corresponding to the land parcel model according to the model edge points of the water flow region model;
the water flow direction acquisition module is used for acquiring the direction information of the skeleton lines of the water surface grid and constructing the water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines;
and the water surface model rendering module is used for rendering the water surface of the water flow area based on the water surface mesh and the water flow direction information of the mesh vertex.
In a third aspect, the present application further provides a computer device, comprising:
one or more processors;
a memory; and
one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement a rendering method for a water flow region in a virtual scene.
In a fourth aspect, the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program is loaded by a processor to execute the steps in the method for rendering the water flow region in the virtual scene.
In a fifth aspect, embodiments of the present application provide a computer program product or a computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided by the first aspect.
The rendering method, the rendering device, the computer equipment and the storage medium of the water flow area in the virtual scene are used for obtaining a water flow area model corresponding to the water flow area in the plot model; generating a water surface grid corresponding to the land parcel model according to the model edge points of the water flow region model; acquiring direction information of skeleton lines of the water surface grid, and constructing water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines; and rendering the water flow area based on the water surface mesh and the water flow direction information of the mesh vertex. According to the method, a water flow area model is obtained, a corresponding water surface grid is generated based on model edge points of the water flow area model, the flowing direction information of each grid vertex on the water surface grid is generated by obtaining the direction information of the skeleton line of the water surface grid, the water surface of the water flow area is rendered finally by combining the water surface grid and the flowing direction information of the grid vertices, the water surface grid corresponding to the water flow area is generated in a full-automatic mode, the water surface flowing effect is simulated through rendering of the water surface grid, particularly when a virtual scene corresponding to a large-scale world map is rendered, the generating efficiency of the water surface grid is effectively improved, and the time consumption of building of the map model is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a rendering method of a water flow area in a virtual scene in an embodiment of the present application;
FIG. 2 is a schematic diagram of a plot model in an embodiment of the present application;
FIG. 3A is a schematic flow chart diagram illustrating a water flow region model obtaining step in an embodiment of the present application;
FIG. 3B is a schematic diagram of a map image in an embodiment of the present application;
FIG. 3C is a schematic diagram of an initial water flow layer and a target water flow layer in an embodiment of the present application;
fig. 3D is a schematic diagram illustrating an effect of extracting a water flow region model in a land model in a target water flow layer according to an embodiment of the present application;
FIG. 4A is a schematic diagram of model edge points in an embodiment of the present application;
FIG. 4B is a schematic diagram of a water surface grid in an embodiment of the present application;
fig. 4C is a schematic diagram of a model edge point obtained after zeroing height information in coordinate information of the model edge point in the embodiment of the present application;
FIG. 4D is a schematic diagram illustrating an effect of simplifying the processed edge points of the model in the embodiment of the present application;
FIG. 4E is a schematic diagram illustrating an effect of model edge points after the height information is smoothed in the embodiment of the present application;
FIG. 5A is a schematic flow chart of the water surface mesh generation step in the embodiment of the present application;
fig. 5B is a schematic diagram of a water surface mesh obtained by splicing based on water surface sub-meshes in the embodiment of the present application;
fig. 5C is a schematic view of an effect of the water surface mesh obtained by merging two mesh edge points whose distance values are smaller than a preset distance threshold value in the embodiment of the present application;
FIG. 6 is a schematic flowchart of a skeleton line direction information obtaining step in an embodiment of the present application;
FIG. 7 is a schematic flowchart of another step of obtaining direction information of skeleton lines in the embodiment of the present application;
fig. 8A is a schematic flow chart illustrating a step of acquiring water flow direction information of each mesh vertex on the water surface mesh in the embodiment of the present application;
FIG. 8B is a diagram illustrating normal vectors when the obstacle model is a sphere in the embodiment of the present application;
FIG. 9A is a schematic diagram illustrating an effect of performing a smooth blurring process on a water surface sub-grid in the embodiment of the present application;
fig. 9B is a schematic diagram of grid edge points obtained after zeroing height information in coordinate information in the embodiment of the present application;
FIG. 9C is a schematic diagram of skeleton lines of a water surface grid in an embodiment of the present application;
FIG. 9D is a schematic diagram of color attributes corresponding to each skeleton point on the skeleton line in the embodiment of the present application;
FIG. 9E is a schematic view of an obstacle model in an embodiment of the present application;
FIG. 10 is a schematic structural diagram of a rendering device for a water flow area in a virtual scene in an embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or as implying a number of the indicated technical features. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, the word "for example" is used to mean "serving as an example, instance, or illustration". Any embodiment described herein as "for example" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and processes are not shown in detail to avoid obscuring the description of the invention with unnecessary detail. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The rendering method for the water flow area in the virtual scene, provided by the embodiment of the application, can be operated in terminal equipment or a server. The terminal device may be a local terminal device. The server can be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing basic cloud computing services such as cloud service, a cloud database, cloud computing, cloud functions, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN (content delivery network), big data and artificial intelligence platforms and the like. Taking the rendering method of the water flow area in the virtual scene applied to the electronic game scene as an example, the electronic game server can generate the flow areas of rivers, lakes, seas and the like in the game virtual scene based on the rendering method of the water flow area in the virtual scene, so as to realize the rendering of the world in the game.
Referring to fig. 1, an embodiment of the present application provides a rendering method for a water flow area in a virtual scene, which is mainly illustrated by applying the method to a server 100, and the method includes steps S110 to 140, which are specifically as follows:
and S110, acquiring a water flow area model corresponding to the water flow area in the plot model.
The land model is a three-dimensional model for representing terrains such as flat ground, mountain land and river channels in a virtual scene. The water flow region refers to regions such as rivers, lakes and seas, and the water flow region model refers to a three-dimensional model of the terrain of water system regions such as rivers, lakes and seas in the land parcel model. As shown in fig. 2, fig. 2 is a schematic diagram of a plot model in an embodiment of the present application, in which a terrain such as a mountain, a river, a lake, etc. in a virtual scene may be represented in the plot model shown in fig. 2, for example, a portion 210 is used to represent a mountain in the virtual scene, and a black area in a portion 220 is used to represent a river in the virtual scene.
The water flow area model in the land model can be identified and determined manually in advance; it is also possible to determine a water flow area model in the land model by a water flow area in the map image.
Specifically, in an embodiment, as shown in fig. 3A, the step of obtaining a water flow area model corresponding to a water flow area in the plot model may include:
s310, a land model and a map image corresponding to the land model are obtained.
And S320, extracting an initial water flow layer of the water flow area in the map image.
And S330, extracting a water flow region model in the land parcel model based on the initial water flow image layer.
The map image refers to an image in which terrain types corresponding to different positions have been planned, as shown in fig. 3B, and fig. 3B is a schematic diagram of the map image in the embodiment of the present application.
The initial water flow layer refers to layer information corresponding to a water flow region acquired from a map image, and it can be understood that the initial water flow layer is two-dimensional layer information. The server can read the initial water flow layer in the map image, and then the initial water flow layer is used as a mask layer (mask) to intercept the water flow region model from the block model.
Specifically, after the initial water flow layer is obtained, the land parcel model is identified based on the initial water flow layer as a mask layer, the mark of the covered area of the mask layer is 1, the mark of the uncovered area of the mask layer is 0, and the server extracts the area with the mark of 1 in the land parcel model as a subsequent processing object, so that the water flow area model is obtained.
Further, the step of extracting a water flow region model in the land parcel model based on the initial water flow map layer may specifically include: expanding the initial water flow image layer by taking the image layer edge line of the initial water flow image layer as a reference to obtain a target water flow image layer; and extracting a water flow area model in the land model based on the target water flow image layer.
After the initial water flow image layer is obtained, the image layer edge line of the initial water flow image layer is used as a reference, so that the initial water flow image layer is expanded outwards to obtain a target water flow image layer, and then the target water flow image layer is used as a mask image layer to intercept a water flow area model from the land model.
Referring to fig. 3C and fig. 3D, a left diagram in fig. 3C shows an initial water flow layer identified on the land model, and a right diagram shows a target water flow layer obtained by expanding the initial water flow layer with an edge line of the layer as a reference; the left diagram in fig. 3D shows the target water flow layer and the right diagram shows the water flow region model obtained from the land model based on the target water flow layer as in the left diagram.
The water flow region model is extracted based on the target water flow layer, so that the range of the water flow region model is expanded outwards, the coverage range of a water surface grid generated based on the water flow region model is larger, and the phenomenon that the reality of the animation effect of the water surface is reduced due to the fact that gaps are generated between the water surface obtained by rendering and a river bank region in the land model is avoided.
Further, before the step of obtaining the water flow area model corresponding to the water flow area in the land model, the land model can be subjected to smoothing treatment, so that the uneven area in the land model becomes smooth, similarly, the model edge of the water flow area model extracted from the land model after the smoothing treatment is smooth, the water surface grid generated according to the model edge point of the water flow area model subsequently is integrally smooth, the effect of the water surface is closer to the effect of the water surface, and the authenticity of the animation effect of the water surface is improved.
And S120, generating a water surface grid corresponding to the land parcel model according to the model edge points of the water flow region model.
Wherein, the model edge point refers to a point on an edge line in the water flow region model; specifically, after the water flow area model is obtained, the shared edge in the water flow area model is deleted to obtain the edge line of the water flow area model, meanwhile, the bounding box of the parcel model is obtained, the border line on the water flow area model is obtained based on the bounding box, and then the edge line and the point on the border line are determined as the model edge point. After the model edge points of the water flow area model are obtained, the server can take the model edge points as edge points of the water surface grid to reconstruct the target water surface grid. As shown in fig. 4A and 4B, fig. 4A is a schematic diagram of model edge points in the embodiment of the present application (height information of each edge point is not represented in the model edge points shown in fig. 4A), and fig. 4B is a schematic diagram of a water surface mesh reconstructed based on the model edge points shown in fig. 4A.
In an embodiment, generating a water surface mesh corresponding to the parcel model according to the model edge points of the water flow region model may specifically include: smoothing the height information of the model edge points of the water flow region model to obtain target edge points; and constructing a water surface mesh corresponding to the land parcel model based on the target edge points.
The smoothing processing is carried out on the height information of the model edge points to adjust the height difference of the model edge points, so that the model edge points become smooth in height, a water surface grid generated based on the model edge points is smooth in whole, the effect of the water surface is closer to the effect of the water surface, and the reality of the animation effect of the water surface is improved.
The height information of the model edge points of the water flow area model is smoothed, specifically, the projection coordinates of the model edge points on the two-dimensional plane are obtained first, wherein the projection coordinates of the model edge points on the two-dimensional plane can be understood as coordinate information obtained after the height information in the coordinate information of the model edge points is set to zero; as shown in fig. 4C, after the height information in the coordinate information of the model edge point is set to zero, the model edge point having the undulation is converted into a model edge point on one two-dimensional plane. Then, acquiring model edge points on the same straight line of the two-dimensional plane based on the projection coordinates to obtain an edge point group; and for any edge point group, screening the edge points of the target model from the edge point group, and deleting the edge points of the model except the edge points of the target model to obtain the simplified processed edge points of the model. And then, constructing a water surface mesh corresponding to the land parcel model by taking the simplified model edge points as target edge points. As shown in fig. 4D, taking the model edge points in the circle 400 of the ellipse in fig. 4D as an example, the line formed by the model edge points in the ellipse 400 is shown as a curve 401, the model edge points are fluctuated, and the three-dimensional plane formed by the model edge points and other model edge points (such as the model edge points outside the ellipse 400) is also fluctuated in some cases; the height information of the model edge points on the line 401 is deleted, so that the model edge points on the line 401 are projected onto the same two-dimensional plane, and it can be understood that the model edge points of the line 401 are on the same straight line 402 on the two-dimensional plane, so that the model edge points except the target model edge point 403 can be deleted, only the target model edge point 403 is reserved, the target model edge point 403 and other model edge points form the model edge point after the simplified processing, a three-dimensional surface formed based on the model edge point after the simplified processing is smoother, and a water surface mesh generated based on the model edge point afterwards is smoother and closer to the water surface.
Further, the model edge point after the simplification processing may be subjected to smoothing processing of the height information again, specifically, the model edge point after the simplification processing is used as a target model, after the target model is subjected to smoothing and blurring processing, the height information of the model edge point in the target model is assigned to the model edge point after the simplification processing, the model edge point after the height information smoothing processing is obtained, and then the model edge point may be used as a target edge point to construct a water surface mesh corresponding to the land model. As shown in fig. 4E, after the smoothing process of the height information is performed again, the height information of the point 404 is adjusted to the height information shown by the point 405, so that the three-dimensional surface formed by the model edge points is more gentle and closer to the water surface.
Because the data size of the land model is huge, in order to reduce the time consumption for constructing the water surface grid, the land model can be firstly divided into a plurality of land model submodels, and then each land model submodel is processed independently to obtain the water surface grid. In one embodiment, the terrain model comprises at least two terrain sub-models; as shown in fig. 5A, the step of generating the water surface mesh according to the model edge points of the water flow region model specifically includes:
s510, smoothing model edge points of the water flow area model in the terrain sub-model aiming at any terrain sub-model to obtain target edge points of the water flow area model in the terrain sub-model;
s520, constructing a water surface sub-grid corresponding to the plot model based on the target edge point of the water flow region model in the plot sub-model;
and S530, splicing the water surface sub-grids corresponding to the sub-models of the blocks to obtain the water surface grid.
For a specific description of the step of smoothing the model edge points of the water flow region model in any terrain model to obtain the target edge points of the water flow region model in the terrain sub-model, reference may be made to the above description of smoothing the height information of the model edge points of the water flow region model, which is not described herein again.
Specifically, the land model is divided into a plurality of land sub-models, and then water surface sub-grids corresponding to each land sub-model are independently constructed based on target edge points of a water flow area model in each land sub-model, and then the water surface sub-grids corresponding to all the land sub-models are correspondingly spliced based on the position information of each land sub-model, so that the water surface grids are obtained.
Furthermore, before the step of splicing the water surface sub-grids corresponding to the sub-models of the blocks to obtain the water surface grid, the height information of each grid vertex in the water surface sub-grids can be smoothed for any water surface sub-grid; specifically, the water surface sub-grid is subjected to smooth fuzzy processing, and the height information of each grid vertex in the water surface sub-grid after the smooth fuzzy processing is assigned to the corresponding grid vertex on the original water surface sub-grid, so that the water surface sub-grid after the height information is subjected to smooth processing is obtained.
Wherein, because the average heights of different terrain submodels are not consistent, the height information between the water surface sub-grids constructed based on the smooth processed target edge points corresponding to the terrain submodels is not continuous, and the water surface grids obtained by splicing based on the water surface sub-grids often have obvious seams, as shown in fig. 5B; therefore, in an embodiment, the step of obtaining the water surface mesh by splicing the water surface submeshes corresponding to the respective terrain submodels may specifically include: extracting grid edge points of each water surface sub-grid and projection coordinates of the grid edge points on a two-dimensional plane; calculating a distance value between any two grid edge points based on the projection coordinates of the grid edge points; and merging the two grid edge points with the distance value smaller than the preset distance threshold value to obtain the water surface grid.
The mesh edge points are mesh vertexes on edge lines of the water surface sub-meshes.
Specifically, after the grid edge points of each water surface sub-grid are extracted, the height information in the coordinate information of the grid edge points can be set to zero, so that each network edge point is projected onto a two-dimensional plane, the projection coordinates of the grid edge points on the two-dimensional plane are obtained, the distance value between any two grid edge points on the same two-dimensional plane is calculated based on the projection coordinates of each grid edge point, when the distance value is smaller than a preset distance threshold value, the two grid edge points are combined, so that each water surface sub-grid is stitched and spliced, and a complete water surface grid corresponding to the terrain model is obtained. As shown in fig. 5C, fig. 5C is a schematic diagram illustrating an effect of the water surface mesh obtained by merging two mesh edge points whose distance values are smaller than the preset distance threshold.
And S130, acquiring the direction information of the skeleton line of the water surface grid, and constructing the water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton line.
Wherein, the skeleton line refers to a thin line consistent with the connectivity and the topological structure of the water surface grid; because the extracted skeleton line has a bifurcation condition due to the complex structure of the water surface mesh, a distance threshold value can be set in the extraction process of the skeleton line, and points on different bifurcation lines with the distance within the distance threshold value are combined to obtain the final skeleton line.
The direction information may be used to reflect water flow direction information of the water flow region, and specifically, the direction information includes direction information of each skeleton point on the skeleton line. After the skeleton line of the water surface grid is obtained, the direction information of the skeleton line can be determined according to the attribute information of each skeleton point on the skeleton line, such as height information, water flow type and the like.
For example, the water flow flows from a high position to a low position, and after the skeleton line is obtained, the direction information of the skeleton line can be determined according to the height information of each skeleton point on the skeleton line; for another example, the water flow flows from a river source to a lake and then to the sea, and after the skeleton line is obtained, the water flow type, such as a river type, a lake type or an ocean type, of each skeleton point on the skeleton line may be obtained first, and then the direction information of the skeleton line may be determined based on the water flow type of each skeleton point on the skeleton line.
In one embodiment, as shown in fig. 6, the step of obtaining the direction information of the skeleton line of the water surface grid includes:
s610, acquiring the number of end points of the skeleton line;
s620, if the number of the end points of the skeleton lines is equal to 2 or the number of the end points of the skeleton lines is not equal to 2 and no preselected ending skeleton point exists on the skeleton lines, sorting the skeleton points based on the height information of all the skeleton points in the skeleton lines to obtain a sorting result;
and S630, acquiring the direction information of each skeleton point according to the sequencing result to obtain the direction information of the skeleton line.
The end points refer to points located at the top ends (or boundaries) of the skeleton lines, and it can be understood that the end points on the skeleton lines can be used to reflect the water flow sources or end points in the water flow regions. Specifically, any skeleton point in the skeleton line may be used as a target skeleton point, and the number of neighbor points of the target skeleton point on the skeleton line is calculated, where the neighbor points are skeleton points on the skeleton line whose distance from the target skeleton line is smaller than a preset distance threshold, and if the number of the neighbor points is equal to 1, the target skeleton point is determined as an end point of the skeleton line.
The preselected end skeleton point can be a skeleton point of which the water flow type on the skeleton line is a lake type or a sea type; specifically, the mesh edge lines of the water surface mesh can be obtained, the mesh edge lines are further determined as initial positions, distance information from each mesh vertex in the water surface mesh to the mesh edge lines is calculated, and vertex attribute information of the mesh vertex is further determined based on the distance information of each mesh vertex, and the vertex attribute information can be represented by colors and can be used for reflecting whether the water flow type to which the mesh vertex belongs is a lake type or a sea type; after the skeleton line of the water surface mesh is obtained, the skeleton point attribute information of each skeleton point on the skeleton line can be determined according to the vertex attribute information of each mesh vertex in the water surface mesh, and the skeleton point attribute information is used for identifying whether the water flow type to which the skeleton point belongs is a lake type or an ocean type, namely identifying whether the skeleton point is a preselected ending skeleton point.
For example, taking the vertex attribute information and the skeleton point attribute information as examples, which are expressed by colors, the vertex attribute information of the mesh edge line may be determined to be 0, that is, the mesh edge line is determined to be black, and the vertex attribute information of each mesh vertex is determined based on the shortest distance information between each mesh vertex and the mesh edge line in the water surface mesh, specifically: when the shortest distance information from the grid vertex to the grid edge line is greater than or equal to 0.5, determining the vertex attribute information of the grid vertex as white, and when the shortest distance information from the grid vertex to the grid edge line is less than 0.5, determining the vertex attribute information of the grid vertex as black; it can be understood that, when the water surface mesh is a lake water surface or a sea water surface, the water surface mesh has enough width and area, so that the distance from the mesh vertex in the central part of the water surface mesh to the edge line of the mesh is greater than 0.5, and the mesh vertex with white vertex attribute information is obtained. After the skeleton lines of the water surface mesh are obtained, vertex attribute information (namely, colors) of vertexes of each mesh in the water surface mesh can be transmitted to the skeleton lines to determine vertex attribute information of each skeleton point on the skeleton lines, and further, whether each skeleton point is a preselected ending skeleton point or not is determined according to the color attribute information of each skeleton point, namely, the skeleton point with white color attribute information is determined as the preselected ending skeleton point.
After the number of the endpoints on the skeleton line is obtained, the river type of the water surface grid corresponding to the skeleton line can be determined according to the number of the endpoints, for example, when the number of the endpoints is 2, the river type of the water surface grid corresponding to the skeleton line is a two-head river, and when the number of the endpoints is greater than 2, the river type of the water surface grid corresponding to the skeleton line is a multi-head river. For the skeleton line with the number of the end points being 2 or the skeleton line with the number of the end points being more than 2 and no end skeleton point, the direction information of the skeleton line can be determined based on the principle that the water flow always flows from the high position to the low position. Specifically, based on the height information of each skeleton point on the skeleton line, each skeleton point is sorted to obtain a sorting result, and then the sorting result determines the direction information of each skeleton point on the skeleton line.
Further, in an embodiment, as shown in fig. 7, after the step of obtaining the number of the end points of the skeleton line, the method further includes:
s710, if the number of the end points of the skeleton line is not equal to 2 and the skeleton line comprises an end skeleton point, randomly selecting a plurality of initial skeleton points on the skeleton line;
s720, acquiring path information between the initial skeleton point and the end skeleton point based on the skeleton line;
and S730, acquiring the direction information of the skeleton line based on the path information.
For the skeleton line with the end skeleton point and the number of the end points larger than 2, the direction information of the skeleton line can be determined based on the principle that the water flow flows from the river source to the lake and then to the sea. Specifically, points are randomly taken based on a skeleton line, the points are determined as initial skeleton points, and further, based on the initial skeleton points, path information between the initial skeleton points and the final skeleton points is obtained along the skeleton line, wherein the path information comprises a path track and a path direction; after determining the path information from each starting skeleton point to each ending skeleton point, combining the path information to obtain the direction information of the skeleton line.
After the direction information of the skeleton line corresponding to the water surface grid is obtained, the water flow direction information of each grid vertex on the water surface grid can be constructed based on the direction information of the skeleton line. Specifically, a skeleton line is used as a model, each skeleton point on the skeleton line is used as a model node, a water surface grid is used as another model, each grid vertex on the water surface grid is used as a model node, and the direction information on each skeleton point is transmitted to each grid vertex on the water surface grid as node attribute information to determine the water flow direction information of each grid vertex.
Further, in consideration of the influence of obstacles in the water flow area, such as reefs and river banks in the water flow, on the water flow direction, in an embodiment, as shown in fig. 8A, the step of constructing the water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton line specifically includes:
and S810, generating initial flow direction information of each grid vertex on the water surface grid based on the direction information of the skeleton line.
The skeleton line can be used as a model, each skeleton point on the skeleton line is used as a model node, the water surface mesh is used as another model, each mesh vertex on the water surface mesh is used as a model node, and the direction information on each skeleton point is transmitted to each mesh vertex on the water surface mesh as node attribute information to determine the initial flow direction information of each mesh vertex.
S820, obtaining an obstacle model in the land parcel model, and determining a first grid vertex in the water surface grid according to the surface position information of the obstacle model; the first mesh vertex is a mesh vertex in which the flow direction information in the water surface mesh is influenced by the obstacle model.
The obstacle comprises but is not limited to a reef and a river bank in the water flow area, and the obstacle model refers to a three-dimensional model corresponding to the obstacle; it will be appreciated that the collision between the water flow and the obstacle around the obstacle will result in the water flow being in the opposite direction. The surface position information of the obstacle model may be coordinate information of each mesh or mesh vertex constituting the obstacle model.
And the first mesh vertex is a mesh vertex of which the flow direction information in the water surface mesh is influenced by the obstacle model.
After the obstacle model in the land parcel model is obtained, the vertex of the first mesh, of which the flow direction information is influenced by the obstacle model, can be determined from the water surface mesh according to the surface position information of the obstacle model. Specifically, an influence distance threshold of the obstacle model may be preset, and then a relative distance value between each mesh vertex and the obstacle model surface may be calculated according to the surface position information of the obstacle model and the position information of each mesh vertex in the water surface mesh, and a mesh vertex whose relative distance from the obstacle model surface is smaller than the influence distance threshold may be determined as the first mesh vertex. It is understood that the impact distance threshold may be set according to the surface area size or volume of the obstacle model.
And S830, calculating target flow direction information of a first grid vertex based on the normal vector of the obstacle model and the initial flow direction information of the first grid vertex.
Wherein, the normal vector refers to the normal vector of the surface of the obstacle model; as shown in fig. 8B, fig. 8B shows a schematic diagram of a normal vector when the obstacle model is a sphere.
Specifically, after a first grid vertex where the obstacle affects the water surface grid is acquired, a dot product value of initial flow direction information of the first grid vertex and a normal vector of the obstacle model may be calculated, and the dot product value may be determined as target flow direction information of the first grid vertex.
S840, generating water flow direction information of the water surface mesh based on target flow direction information of a first mesh vertex and initial flow direction information of a second mesh vertex in the water surface mesh; the second mesh vertex is a mesh vertex in the water surface mesh except the first mesh vertex.
After determining the target flow direction information to the first mesh vertex, the water flow direction information of the water surface mesh may be generated according to the target flow direction information of the first mesh vertex and the initial flow direction information of the second mesh vertex.
And S140, rendering the water surface of the water flow area based on the water surface mesh and the water flow direction information of the mesh vertex.
After the water surface grids and the water flow direction information of each grid vertex on the water surface grids are obtained, the Flowmap can be generated based on the water flow direction information of each grid vertex, the Flowmap is used as the vertex color of the water surface grids to carry out UV mapping of the water surface effect, the rendering of the water surface of the water flow area is realized, and the water surface flowing effect is simulated.
In the rendering method of the water flow area in the virtual scene, a water flow area model corresponding to the water flow area in the plot model is obtained; generating a water surface grid corresponding to the land parcel model according to the model edge points of the water flow region model; acquiring direction information of skeleton lines of the water surface grid, and constructing water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines; and rendering the water surface of the water flow area based on the water surface mesh and the water flow direction information of the vertex of the mesh. According to the method, a water flow area model is obtained, a corresponding water surface grid is generated based on model edge points of the water flow area model, the flowing direction information of each grid vertex on the water surface grid is generated by obtaining the direction information of the skeleton line of the water surface grid, the water surface of the water flow area is rendered by finally combining the water surface grid and the flowing direction information of the grid vertices, the water surface grid corresponding to the water flow area is generated in a full-automatic mode, the water surface flowing effect is simulated through rendering of the water surface grid, particularly when a virtual scene corresponding to a large-scale world map is rendered, the generating efficiency of the water surface grid is effectively improved, and the time consumed for building the map model is reduced.
The rendering method of the virtual environment is further described below by being incorporated into an application scene. Specifically, the rendering method of the virtual environment can be implemented through Houdini software, wherein Houdini is multifunctional software capable of modeling, binding, animation production and special effect production, a user can call a plurality of different process nodes in Houdini, program codes corresponding to the process nodes are spliced together as required, and the spliced program codes are packaged to form a general process; in the process of constructing and rendering the water surface grids, the water surface grids corresponding to the water flow areas can be generated based on a general flow, and the water surface flowing effect is simulated based on rendering of the water surface grids. The following describes and analyzes the implementation process of the rendering method of the virtual environment in steps.
1, a land parcel model and a map image corresponding to the land parcel model are obtained.
The map image is as shown in fig. 3B, wherein the map image is an image in which terrain types corresponding to different positions have been planned. The land parcel model is a three-dimensional model corresponding to the map image and is used for representing terrains such as flat ground, mountain land, river channels and the like at different positions in the map image; wherein the plot model is shown in fig. 2.
It can be understood that the land parcel model can be divided into a plurality of land parcel submodels, and then the land parcel submodels can be used as processing units to respectively generate the water surface submeshes corresponding to the land parcel submodels.
And 2, extracting an initial water flow map layer of the water flow area in the map image.
Specifically, an initial water flow image layer can be extracted from the map image through a trace _ psd _ file node in the houdmimi, and then the initial water flow image is stored as a mask through a height field _ copylayer node, so that subsequent operations are facilitated.
And 3, expanding the initial water flow image layer by taking the image layer edge line of the initial water flow image layer as a reference to obtain a target water flow image layer.
In the three-dimensional model, in order to avoid gaps between the rendered water surface grids and the river bank region in the land model, the water surface grids must be inserted into the land model; therefore, after the initial stream layer is obtained, the initial stream layer may be overflowed outwards through the height _ masked extended node, as shown in fig. 3C.
And 4, smoothing the land model.
The terrain model can be smoothed by using a height field _ blu node and a ConvertetHeightField node, so that an uneven area in the terrain model becomes flat, and similarly, the model edge of the water flow area model extracted from the smoothed terrain model is flat, so that a water surface grid generated according to the model edge point of the water flow area model subsequently is integrally smooth and is closer to the effect of the water surface, and the authenticity of the animation effect of the water surface is improved.
And 5, aiming at any terrain block sub-model, extracting a water flow region model from the terrain block sub-model based on the target water flow image layer.
Specifically, the land parcel model is identified by taking a target water flow layer as a mask layer, the mark of the covered area of the mask layer is 1, and the mark of the uncovered area of the mask layer is 0; furthermore, the non-water flow region marked as 0 in the terrain sub-model can be deleted through the Blast node and the expression that @ mask <0.1, so as to obtain a water flow region model in the terrain sub-model, which is specifically shown in fig. 3D.
And 6, aiming at any terrain sub-model, extracting model edge points of the water flow region model in the terrain sub-model.
Specifically, the Shared edge (i.e. the edge Shared by 2 faces) in the water flow region model can be deleted through the Divide node (where the Remove Shared Edges are hooked up), so as to obtain the edge line: then, an outer frame of the parcel sub-model is obtained through a box node, the outer frame is reduced through a peak node, a point in the inner side of the outer frame is obtained and serves as a Group, and then the Group is selected reversely through a Group consibine node, and a point closest to the outer frame is obtained. Based on the points on the edge line and the point closest to the outer frame as the model edge point, referring to fig. 4A, fig. 4A shows a schematic diagram of the model edge point.
And 7, smoothing model edge points of the water flow area model in the terrain sub-model aiming at any terrain sub-model to obtain target edge points of the water flow area model in the terrain sub-model.
Specifically, the model edge points are stored in the group "rest1", and then the height information (i.e., the value of the Y axis) in the model edge points in the group "rest1" is set to 0, so that the model edge points are projected onto the same two-dimensional plane, and the model edge points form a graph without height fluctuation on the two-dimensional plane, as shown in fig. 4C.
And then, point simplification is carried out on the model edge points in the rest1 through the facet node, and the simplified model edge points are obtained. Specifically, if N (N is greater than 2) model edge points in the group "rest1" are located in the same straight line, the model edge points on the straight line may be determined as an edge point group; and for the edge point group, screening the edge points of the target model from the edge point group, and deleting the edge points of the model except the edge points of the target model to finally obtain the simplified model edge points.
As shown in fig. 4D, taking the model edge points in the circle 400 of the ellipse in fig. 4D as an example, the line formed by the model edge points in the ellipse 400 is shown as a curve 401, the model edge points are fluctuated, and the three-dimensional plane formed by the model edge points and other model edge points (such as the model edge points outside the ellipse 400) is also fluctuated in some cases; the height information of the model edge points on the line 401 is deleted, so that the model edge points on the line 401 are projected onto the same two-dimensional plane, and it can be understood that the model edge points of the line 401 are on the same straight line 402 on the two-dimensional plane, so that the model edge points other than the target model edge point 403 can be deleted, only the target model edge point 403 is reserved, the target model edge point 403 and other model edge points form a simplified model edge point, a three-dimensional surface formed based on the simplified model edge point is more gentle, and a subsequent water surface mesh generated based on the model edge point is smoother and more close to the water surface.
Then, the height information may be smoothed again for the simplified model edge points. Specifically, the simplified model edge point is used as an object model, the object model is subjected to smooth blurring processing, and then the height information of the model edge point in the object model subjected to the smooth blurring processing is assigned to the model edge point, that is, the height information of the simplified model edge point is replaced by the height information of the model edge point in the object model subjected to the smooth blurring processing, and the model edge point is finally obtained. As shown in fig. 4E, after the smoothing process of the height information is performed again, the height information of the point 404 is adjusted to the height information shown by the point 405, so that the three-dimensional surface formed by the model edge points is more gentle and closer to the water surface.
And 8, aiming at any parcel submodel, constructing a water surface submesh corresponding to the parcel model based on the target edge points of the water flow area model in the parcel submodel.
Specifically, the water surface sub-grid can be reconstructed based on the target edge points through the remesh nodes. As shown in fig. 4B, fig. 4B shows a schematic diagram of a water surface sub-grid in the embodiment of the present application.
Furthermore, the height information of each grid vertex in the water surface sub-grid can be smoothed by the obtained water surface sub-grid; specifically, the water surface sub-grid is subjected to smooth fuzzy processing, and the height information of each grid vertex in the water surface sub-grid after the smooth fuzzy processing is assigned to the corresponding grid vertex on the original water surface sub-grid, so that the water surface sub-grid after the height information is subjected to smooth processing is obtained. As shown in fig. 9A, fig. 9A is a schematic diagram of the water surface mesh after smoothing the height information of each mesh vertex.
It is understood that, the foregoing steps 2 to 8 may be packaged as a river node, and then the river node is linked to a circulation node (e.g., a foreach node), so as to implement a circulation operation on all the terrain submodels, so that the terrain submodels correspondingly generate a water surface submesh.
9, extracting grid edge points of each water surface sub-grid and projection coordinates of the grid edge points on a two-dimensional plane; and combining the two grid edge points with the distance value smaller than the preset distance threshold value to obtain the water surface grid.
Specifically, the grid edge points of the water surface sub-grid can be acquired through the divide node, and then the grid edge points are stored in the group "rest2", and further the height information (i.e., the value of the Y axis) of the grid edge points in the group "rest2" is set to 0, so that the grid edge points are projected onto the same two-dimensional plane, and the grid edge points form a graph without fluctuation on the two-dimensional plane, as shown in fig. 9B; it can be understood that, in the case of zero height information of the mesh edge points, the mesh edge points between adjacent surface sub-meshes approach infinitely. And then, stitching points with the distance value less than 0.001 through fuse nodes to stitch the water surface submesh into the water surface mesh. After the water surface sub-grids are stitched and spliced, the height information in the coordinate information of the edge points of each grid is assigned to each water surface sub-grid stitched and spliced again to obtain a complete water surface grid corresponding to the terrain model, as shown in fig. 5C.
10, extracting skeleton lines of the water surface grids.
Specifically, the skeleton line of the water surface grid can be extracted through the straight _ skeeleton _3d node.
Due to the fact that the water surface grid structure is complex, the extracted skeleton lines have bifurcation conditions, therefore, in the process of extracting the skeleton lines, points which are on different bifurcation lines and have the distance within a preset distance threshold value can be combined through fuse nodes to obtain the final skeleton line; as shown in fig. 9C, fig. 9C shows a schematic diagram of skeleton lines of the water surface mesh.
And 11, acquiring the direction information of the skeleton line of the water surface grid.
Specifically, the number of the end points of the skeleton line is obtained first. Taking any skeleton point in the skeleton line as a target skeleton point, and calculating the number of neighbor points of the target skeleton point on the skeleton line, wherein the neighbor points are skeleton points on the skeleton line, the distance between the neighbor points and the target skeleton line is less than a preset distance threshold, if the number of the neighbor points is equal to 1, the target skeleton point is an end point of the skeleton line, and the end point of the skeleton line is stored in a group npc _ one.
Then, a class attribute is added to the skeleton line by the connectivity node, i.e., different skeleton lines are distinguished by the class attribute.
Calculating the number of end points on any skeleton line; specifically, for skeleton lines belonging to the same class attribute, the number of points whose skeleton points belong in the group "npc _ one" is calculated.
If the number of the end points on the framework line is equal to 2, saving the framework line to a group 'Towendpoint'; if the number of the end points is more than 2, the skeleton line is saved to a group 'Nendpoint'.
For the skeleton lines in the group 'Towendpoint', performing height information sequencing on the skeleton points on the skeleton lines, namely sequencing according to values of the skeleton points on a Y axis, and further acquiring direction information of each skeleton point based on a sequencing result to obtain direction information of the skeleton lines; taking two adjacent skeleton points on the skeleton line as an example, the two skeleton points can be subjected to height information sequencing through a sort3 node, the skeleton point with higher height information is placed into a group 'endpoint', and the skeleton point with lower height information is placed into a group 'endpoint'; then, inputting the skeleton point of the group "stp" and the skeleton point of the group "endpoint" into a findshortest path node, and calculating path information from the skeleton point with higher height information to the skeleton point with lower height information in two adjacent skeleton points through the findshortest path node.
For the skeleton lines in the Group 'rendpoint', the Edge lines of the water surface mesh can be obtained through the Unshared Edge function in the Group node, and each Edge point on the Edge lines is stored to the Group 'Unshared Edge'.
Then, calculating the shortest distance from each grid vertex in the water surface grid to a group 'Unshared Edge' (namely the Edge line of the water surface grid) through a DistanceAlongGeometry node, and mapping the shortest distance into the range of [0,1] based on a preset radius value and a preset gradient parameter; after the output result of the distanceAlongGeometry node is obtained, when the shortest distance information from the vertex of the mesh to the edge line of the mesh is greater than or equal to 0.5, determining the vertex attribute information of the vertex of the mesh to be white, and when the shortest distance information from the vertex of the mesh to the edge line of the mesh is less than 0.5, determining the vertex attribute information of the vertex of the mesh to be black.
It can be understood that when the water surface mesh is a lake water surface or a sea water surface, the water surface mesh has enough width and area, so that the distance from the mesh vertex in the central part of the water surface mesh to the edge line of the mesh is greater than 0.5, and the mesh vertex with white vertex attribute information is obtained.
Further, the attribute information (i.e., color) of the vertex is transmitted to the skeleton points on the skeleton line through the Attribtransfer node, so that the skeleton points belonging to the lake or sea on the skeleton line are white, and the skeleton points not belonging to the lake or sea are black, as shown in fig. 9D. The skeleton point whose color attribute information is white is taken as a previous ending skeleton point and saved to the group "endpoint".
And judging whether skeleton points on the skeleton line have ending skeleton points belonging to the group 'endpoint'.
If the skeleton line does not pass through the lake or sea, the skeleton line is considered not to pass through the lake or sea, then the height information sequencing is carried out on the skeleton points on the skeleton line, namely the sequencing is carried out according to the values of the skeleton points on the Y axis, and then the direction information of each skeleton point is obtained based on the sequencing result, so that the direction information of the skeleton line is obtained.
If the skeleton line exists, the skeleton line can be considered to pass through a lake or sea, and further, points can be randomly taken on the skeleton line through a Scatter node, and the randomly taken points are used as initial skeleton points and are stored in a group npc _ one. Further, for the skeleton line, a path search is performed through the findsortestpath node to obtain path information from a skeleton point (i.e., a starting skeleton point) belonging to the group "npc _ one" to a skeleton point (i.e., an ending skeleton point) belonging to the group "endpoint", and then a tangential direction of the path information is calculated through the polyframe node, where the tangential direction is direction information of the skeleton line.
And 12, constructing water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton line.
After the direction information of the skeleton line is obtained, the direction information of the skeleton line can be transmitted to the water surface grid through the Attribtransfer node, and the initial flowing direction information of each grid vertex on the water surface grid is obtained.
Further, as shown in fig. 9E, considering that there may be obstacles such as reef, river bank, etc. in the water flow area, the water flow direction information of the water surface grid is changed by the influence of the obstacles; therefore, an obstacle model in the land model can be obtained, and a first grid vertex in the water surface grid is determined according to the surface position information of the obstacle model; calculating target flow direction information of a first grid vertex based on a normal vector of the obstacle model and initial flow direction information of the first grid vertex, wherein the first grid vertex is a grid vertex in the water surface grid, the flow direction information of which is influenced by the obstacle model, calculating the target flow direction information of the first grid vertex based on the normal vector of the obstacle model and the initial flow direction information of the first grid vertex, and generating water flow direction information of the water surface grid based on the target flow direction information of the first grid vertex and the initial flow direction information of a second grid vertex in the water surface grid; the second mesh vertex is a mesh vertex except the first mesh vertex in the water surface mesh.
And 13, rendering the water flow area based on the water surface mesh and the water flow direction information of the mesh vertex.
Specifically, a Flowmap is generated according to the water surface mesh and the water flow direction information of the mesh vertex, and the Flowmap is introduced into a game Engine, such as a UE4 (Unreal Engine), for rendering, so as to achieve a water surface effect in the rendered virtual scene.
In order to better implement the method for rendering the water flow region in the virtual scene provided in the embodiment of the present application, on the basis of the method for rendering the water flow region in the virtual scene provided in the embodiment of the present application, an apparatus for rendering the water flow region in the virtual scene is also provided in the embodiment of the present application, and as shown in fig. 10, an apparatus 1000 for rendering the water flow region in the virtual scene includes:
the region model obtaining module 1010 is used for obtaining a water flow region model corresponding to a water flow region in the land model;
a water surface mesh generation module 1020 for generating a water surface mesh corresponding to the parcel model according to the model edge points of the water flow region model;
a water flow direction obtaining module 1030, configured to obtain direction information of skeleton lines of the water surface grid, and construct water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines;
and a water surface model rendering module 1040, configured to render the water surface of the water flow region based on the water surface mesh and the water flow direction information at the vertex of the mesh.
In some embodiments of the present application, the area model obtaining module 1010 is configured to obtain a parcel model and a map image corresponding to the parcel model; extracting an initial water flow layer of a water flow area in a map image; and extracting a water flow area model in the land parcel model based on the initial water flow image layer.
In some embodiments of the present application, the region model obtaining module 1010 expands the initial water flow layer with a layer edge line of the initial water flow layer as a reference to obtain a target water flow layer; and extracting a water flow area model in the land parcel model based on the target water flow layer.
In some embodiments of the present application, the water surface mesh generation module 1020 is configured to smooth the height information of the model edge points of the water flow region model to obtain target edge points; and constructing a water surface mesh corresponding to the land parcel model based on the target edge points.
In some embodiments of the present application, the terrain model comprises at least two terrain sub-models; a water surface mesh generation module 1020, configured to extract a water flow region model in the land model based on the initial water flow map layer, including: for any terrain sub-model, smoothing model edge points of the water flow area model in the terrain sub-model to obtain target edge points of the water flow area model in the terrain sub-model; constructing a water surface sub-grid corresponding to the plot model based on the target edge points of the water flow area model in the plot sub-model; and splicing the water surface sub-grids corresponding to the sub-models of the blocks to obtain the water surface grid.
In some embodiments of the present application, the water surface mesh generation module 1020 is configured to extract mesh edge points of each water surface sub-mesh and projection coordinates of the mesh edge points on the two-dimensional plane; calculating a distance value between any two grid edge points based on the projection coordinates of the grid edge points; and combining the two grid edge points with the distance value smaller than the preset distance threshold value to obtain the water surface grid.
In some embodiments of the present application, the water flow direction obtaining module 1030 is configured to obtain the number of endpoints of the skeleton line; if the number of the end points of the skeleton lines is equal to 2 or the number of the end points of the skeleton lines is not equal to 2 and no preselected finishing skeleton point exists on the skeleton lines, sorting the skeleton points based on the height information of each skeleton point in the skeleton lines to obtain a sorting result; and obtaining the direction information of each skeleton point according to the sequencing result to obtain the direction information of the skeleton line.
In some embodiments of the present application, the water flow direction obtaining module 1030 is configured to randomly select a plurality of starting skeleton points on the skeleton line if the number of the end points of the skeleton line is not equal to 2 and the skeleton line includes an ending skeleton point; acquiring path information between a starting skeleton point and an ending skeleton point based on skeleton lines; and acquiring direction information of the skeleton line based on the path information.
In some embodiments of the present application, the water flow direction obtaining module 1030 is configured to generate initial flow direction information of each grid vertex on the water surface grid based on the direction information of the skeleton line; obtaining an obstacle model in the land parcel model, and determining a first grid vertex in the water surface grid according to the surface position information of the obstacle model; the first mesh vertex is a mesh vertex of which the flow direction information in the water surface mesh is influenced by the barrier model; calculating target flow direction information of a first grid vertex based on a normal vector of the obstacle model and initial flow direction information of the first grid vertex; generating water flow direction information of the water surface mesh based on target flow direction information of a first mesh vertex and initial flow direction information of a second mesh vertex in the water surface mesh; the second mesh vertex is a mesh vertex in the water surface mesh except the first mesh vertex.
For specific definition of the rendering device of the water flow region in the virtual scene, reference may be made to the definition of the rendering method of the water flow region in the virtual scene, and details are not repeated here. The modules in the rendering device for the water flow area in the virtual scene can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In some embodiments of the present application, the rendering apparatus 1000 of the water flow region in the virtual scene may be implemented in a form of a computer program, and the computer program may be run on a computer device as shown in fig. 11. The memory of the computer device may store various program modules constituting the rendering apparatus 1000 of the water flow region in the virtual scene, such as a region model obtaining module 1010, a water surface mesh generating module 1020, a water flow direction obtaining module 1030, and a water surface model rendering module 1040 shown in fig. 10. The program modules constitute computer programs that cause the processor to execute the steps of the rendering method for the water flow region in the virtual scene according to the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 11 may execute step S110 through the region model obtaining module 1010 in the rendering apparatus 1000 of the water flow region in the virtual scene shown in fig. 10. The computer device may perform step S120 through the water surface mesh generation module 1020. The computer device may perform step S130 through the water flow direction obtaining module 1030. The computer device may perform step S140 by the water surface model rendering module 1040. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external computer device through a network connection. The computer program is executed by a processor to implement a method of rendering a water flow region in a virtual scene.
It will be appreciated by those skilled in the art that the configuration shown in fig. 11 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In some embodiments of the present application, there is provided a computer device comprising one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to implement the steps of:
acquiring a water flow area model corresponding to a water flow area in the plot model;
generating a water surface grid corresponding to the land parcel model according to the model edge points of the water flow region model;
acquiring direction information of skeleton lines of the water surface grid, and constructing water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines;
rendering the water surface of the water flow area based on the water surface mesh and the water flow direction information of the mesh vertex.
In some embodiments of the application, the processor when executing the computer program further performs the steps of: acquiring a plot model and a map image corresponding to the plot model; extracting an initial water flow layer of a water flow area in a map image; and extracting a water flow area model in the land parcel model based on the initial water flow layer.
In some embodiments of the application, the processor when executing the computer program further performs the steps of: expanding the initial water flow image layer by taking the image layer edge line of the initial water flow image layer as a reference to obtain a target water flow image layer; and extracting a water flow area model in the land model based on the target water flow image layer.
In some embodiments of the application, the processor when executing the computer program further performs the steps of: smoothing the height information of the model edge points of the water flow area model to obtain target edge points; and constructing a water surface grid corresponding to the land parcel model based on the target edge points.
In some embodiments of the present application, the terrain model comprises at least two terrain sub-models; the processor when executing the computer program further realizes the following steps: for any terrain sub-model, smoothing model edge points of the water flow area model in the terrain sub-model to obtain target edge points of the water flow area model in the terrain sub-model; constructing a water surface sub-grid corresponding to the parcel model based on target edge points of the water flow area model in the parcel sub-model; and splicing the water surface sub-grids corresponding to the sub-models of the blocks to obtain the water surface grid.
In some embodiments of the application, the processor when executing the computer program further performs the steps of: extracting grid edge points of each water surface sub-grid and projection coordinates of the grid edge points on a two-dimensional plane; calculating a distance value between any two grid edge points based on the projection coordinates of the grid edge points; and combining the two grid edge points with the distance value smaller than the preset distance threshold value to obtain the water surface grid.
In some embodiments of the application, the processor when executing the computer program further performs the steps of: acquiring the number of end points of the skeleton line; if the number of the end points of the skeleton lines is equal to 2 or the number of the end points of the skeleton lines is not equal to 2 and no preselected finishing skeleton point exists on the skeleton lines, sorting the skeleton points based on the height information of each skeleton point in the skeleton lines to obtain a sorting result; and obtaining the direction information of each skeleton point according to the sequencing result to obtain the direction information of the skeleton line.
In some embodiments of the application, the processor when executing the computer program further performs the steps of: if the number of the end points of the skeleton line is not equal to 2 and the skeleton line comprises an end skeleton point, randomly selecting a plurality of starting skeleton points on the skeleton line; acquiring path information between a starting skeleton point and an ending skeleton point based on skeleton lines; direction information of the skeleton line is acquired based on the path information.
In some embodiments of the application, the processor when executing the computer program further performs the steps of: generating initial flow direction information of each grid vertex on the water surface grid based on the direction information of the skeleton line; obtaining an obstacle model in the land parcel model, and determining a first grid vertex in the water surface grid according to the surface position information of the obstacle model; the first mesh vertex is a mesh vertex in which the flow direction information in the water surface mesh is influenced by the barrier model; calculating target flow direction information of a first grid vertex based on a normal vector of the obstacle model and initial flow direction information of the first grid vertex; generating water flow direction information of the water surface mesh based on target flow direction information of a first mesh vertex and initial flow direction information of a second mesh vertex in the water surface mesh; the second mesh vertex is a mesh vertex in the water surface mesh except the first mesh vertex.
In some embodiments of the application, a computer-readable storage medium is provided, storing a computer program, which is loaded by a processor, causing the processor to perform the steps of:
acquiring a water flow area model corresponding to a water flow area in the plot model;
generating a water surface grid corresponding to the land parcel model according to the model edge points of the water flow region model;
acquiring direction information of skeleton lines of the water surface grid, and constructing water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines;
rendering the water surface of the water flow area based on the water surface mesh and the water flow direction information of the mesh vertex.
In some embodiments of the application, the computer program when executed by the processor further performs the steps of: acquiring a plot model and a map image corresponding to the plot model; extracting an initial water flow layer of a water flow area in a map image; and extracting a water flow area model in the land parcel model based on the initial water flow image layer.
In some embodiments of the application, the computer program when executed by the processor further performs the steps of: expanding the initial water flow image layer by taking the image layer edge line of the initial water flow image layer as a reference to obtain a target water flow image layer; and extracting a water flow area model in the land parcel model based on the target water flow layer.
In some embodiments of the application, the computer program when executed by the processor further performs the steps of: smoothing the height information of the model edge points of the water flow region model to obtain target edge points; and constructing a water surface mesh corresponding to the land parcel model based on the target edge points.
In some embodiments of the present application, the terrain model comprises at least two terrain sub-models; the computer program when executed by the processor further realizes the steps of: for any terrain sub-model, smoothing model edge points of the water flow area model in the terrain sub-model to obtain target edge points of the water flow area model in the terrain sub-model; constructing a water surface sub-grid corresponding to the plot model based on the target edge points of the water flow area model in the plot sub-model; and splicing the water surface sub-grids corresponding to the sub-models of the blocks to obtain the water surface grid.
In some embodiments of the application, the computer program when executed by the processor further performs the steps of: extracting grid edge points of each water surface sub-grid and projection coordinates of the grid edge points on a two-dimensional plane; calculating a distance value between any two grid edge points based on the projection coordinates of the grid edge points; and combining the two grid edge points with the distance value smaller than the preset distance threshold value to obtain the water surface grid.
In some embodiments of the application, the computer program when executed by the processor further performs the steps of: acquiring the number of end points of the skeleton line; if the number of the end points of the skeleton lines is equal to 2 or the number of the end points of the skeleton lines is not equal to 2 and no preselected finishing skeleton point exists on the skeleton lines, sorting the skeleton points based on the height information of each skeleton point in the skeleton lines to obtain a sorting result; and obtaining the direction information of each skeleton point according to the sequencing result to obtain the direction information of the skeleton line.
In some embodiments of the application, the computer program when executed by the processor further performs the steps of: if the number of the end points of the skeleton line is not equal to 2 and the skeleton line comprises an ending skeleton point, randomly selecting a plurality of starting skeleton points on the skeleton line; acquiring path information between a starting skeleton point and an ending skeleton point based on the skeleton line; direction information of the skeleton line is acquired based on the path information.
In some embodiments of the application, the computer program when executed by the processor further performs the steps of: generating initial flow direction information of each grid vertex on the water surface grid based on the direction information of the skeleton line; obtaining an obstacle model in the land parcel model, and determining a first grid vertex in the water surface grid according to the surface position information of the obstacle model; the first mesh vertex is a mesh vertex in which the flow direction information in the water surface mesh is influenced by the barrier model; calculating target flow direction information of a first grid vertex based on a normal vector of the obstacle model and initial flow direction information of the first grid vertex; generating water flow direction information of the water surface grid based on target flow direction information of a first grid vertex and initial flow direction information of a second grid vertex in the water surface grid; the second mesh vertex is a mesh vertex except the first mesh vertex in the water surface mesh.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The rendering method, the rendering device, the computer device, and the storage medium for the water flow region in the virtual scene provided in the embodiments of the present application are described in detail above, and a specific example is applied in the description to explain the principle and the implementation of the present invention, and the description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (12)

1. A rendering method of a water flow area in a virtual scene is characterized by comprising the following steps:
acquiring a water flow area model corresponding to a water flow area in the plot model;
generating a water surface grid corresponding to the land model according to the model edge points of the water flow region model;
acquiring direction information of skeleton lines of the water surface grid, and constructing water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines;
rendering the water surface of the water flow area based on the water surface mesh and the water flow direction information of the mesh vertex.
2. The method of claim 1, wherein the step of obtaining a water flow region model corresponding to a water flow region in the plot model comprises:
acquiring a land parcel model and a map image corresponding to the land parcel model;
extracting an initial water flow layer of a water flow area in the map image;
and extracting a water flow area model in the land parcel model based on the initial water flow map layer.
3. The method of claim 2, wherein the step of extracting a water flow region model in the land model based on the initial water flow layer comprises:
expanding the initial water flow image layer by taking the image layer edge line of the initial water flow image layer as a reference to obtain a target water flow image layer;
and extracting a water flow area model in the land model based on the target water flow layer.
4. The method according to claim 1, wherein the step of generating the water surface mesh corresponding to the parcel model according to the model edge points of the water flow region model comprises:
smoothing the height information of the model edge points of the water flow region model to obtain target edge points;
and constructing a water surface mesh corresponding to the land parcel model based on the target edge points.
5. The method of claim 1, wherein the parcel model comprises at least two parcel sub-models;
the step of generating the water surface mesh corresponding to the parcel model according to the model edge points of the water flow region model comprises the following steps:
for any terrain sub-model, smoothing model edge points of a water flow area model in the terrain sub-model to obtain target edge points of the water flow area model in the terrain sub-model;
constructing a water surface sub-grid corresponding to the parcel model based on target edge points of the water flow area model in the parcel sub-model;
and splicing the water surface sub-grids corresponding to the land model submodels to obtain the water surface grid.
6. The method of claim 5, wherein the step of obtaining the water surface grid by splicing the water surface sub-grids corresponding to the land mass sub-models comprises:
extracting grid edge points of each water surface sub-grid and projection coordinates of the grid edge points on a two-dimensional plane;
calculating a distance value between any two grid edge points based on the projection coordinates of the grid edge points;
and merging the two grid edge points with the distance value smaller than the preset distance threshold value to obtain the water surface grid.
7. The method of claim 1, wherein the step of obtaining the direction information of the skeleton line of the water surface grid comprises:
acquiring the number of end points of the skeleton line;
if the number of the end points of the skeleton lines is equal to 2 or the number of the end points of the skeleton lines is not equal to 2 and no preselected end skeleton point exists on the skeleton lines, sorting the skeleton points based on the height information of each skeleton point in the skeleton lines to obtain a sorting result;
and obtaining the direction information of each skeleton point according to the sequencing result to obtain the direction information of the skeleton line.
8. The method according to claim 7, wherein the step of obtaining the number of the end points of the skeleton line is followed by further comprising:
if the number of the end points of the skeleton line is not equal to 2 and the skeleton line comprises the ending skeleton point, randomly selecting a plurality of starting skeleton points on the skeleton line;
acquiring path information between the starting skeleton point and the ending skeleton point based on the skeleton line;
and acquiring direction information of the skeleton line based on the path information.
9. The method according to claim 1, wherein the step of constructing the water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton line comprises:
generating initial flow direction information of each grid vertex on the water surface grid based on the direction information of the skeleton line;
obtaining an obstacle model in the land model, and determining a first grid vertex in the water surface grid according to surface position information of the obstacle model; the first grid vertex is a grid vertex in which the flow direction information in the water surface grid is influenced by the obstacle model;
calculating target flow direction information of the first mesh vertex based on a normal vector of the obstacle model and the initial flow direction information of the first mesh vertex;
generating water flow direction information of the water surface mesh based on target flow direction information of the first mesh vertex and initial flow direction information of a second mesh vertex in the water surface mesh; and the second mesh vertex is a mesh vertex except the first mesh vertex in the water surface mesh.
10. An apparatus for rendering a water flow region in a virtual scene, the apparatus comprising:
the region model acquisition module is used for acquiring a water flow region model corresponding to a water flow region in the plot model;
the water surface grid generating module is used for generating a water surface grid corresponding to the land model according to the model edge points of the water flow region model;
the water flow direction obtaining module is used for obtaining direction information of the skeleton lines of the water surface grid and constructing water flow direction information of each grid vertex on the water surface grid according to the direction information of the skeleton lines;
and the water surface model rendering module is used for rendering the water surface of the water flow area based on the water surface mesh and the water flow direction information of the mesh vertex.
11. A computing device, wherein the computing device comprises:
one or more processors;
a memory; and
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the method of rendering a stream area in a virtual scene of any of claims 1 to 9.
12. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor to perform the steps in the method for rendering a water flow region in a virtual scene of any one of claims 1 to 9.
CN202210759205.2A 2022-06-29 2022-06-29 Rendering method and device for water flow area in virtual scene and computer equipment Pending CN115193034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210759205.2A CN115193034A (en) 2022-06-29 2022-06-29 Rendering method and device for water flow area in virtual scene and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210759205.2A CN115193034A (en) 2022-06-29 2022-06-29 Rendering method and device for water flow area in virtual scene and computer equipment

Publications (1)

Publication Number Publication Date
CN115193034A true CN115193034A (en) 2022-10-18

Family

ID=83577855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210759205.2A Pending CN115193034A (en) 2022-06-29 2022-06-29 Rendering method and device for water flow area in virtual scene and computer equipment

Country Status (1)

Country Link
CN (1) CN115193034A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116468838A (en) * 2023-06-13 2023-07-21 江西省水投江河信息技术有限公司 Regional resource rendering method, system, computer and readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116468838A (en) * 2023-06-13 2023-07-21 江西省水投江河信息技术有限公司 Regional resource rendering method, system, computer and readable storage medium
CN116468838B (en) * 2023-06-13 2023-08-18 江西省水投江河信息技术有限公司 Regional resource rendering method, system, computer and readable storage medium

Similar Documents

Publication Publication Date Title
CN105336003B (en) The method for drawing out three-dimensional terrain model with reference to the real-time smoothness of GPU technologies
Lempitsky et al. Seamless mosaicing of image-based texture maps
US20110148877A1 (en) Efficient geometric tessellation and displacement
CN112561788B (en) Two-dimensional unfolding method of BIM model and texture mapping method and device
Chung et al. Luciddreamer: Domain-free generation of 3d gaussian splatting scenes
CN112717414B (en) Game scene editing method and device, electronic equipment and storage medium
CN112102480B (en) Image data processing method, apparatus, device and medium
CN109636889B (en) Large-scale three-dimensional terrain model rendering method based on dynamic sewing belt
JP3650355B2 (en) Computer system, method and computer program for accelerating rendering of geometric models
CN113593033A (en) Three-dimensional model feature extraction method based on grid subdivision structure
CN115311434B (en) Tree three-dimensional reconstruction method and device based on oblique photography and laser data fusion
CN115193034A (en) Rendering method and device for water flow area in virtual scene and computer equipment
CN110084894A (en) Partial enlargement methods of exhibiting, device and the electronic equipment of threedimensional model
Krs et al. Skippy: Single view 3D curve interactive modeling
Sasada Drawing natural scenery by computer graphics
Lin et al. Patch-Grid: an efficient and feature-preserving neural implicit surface representation
Zhang et al. SurRF: Unsupervised multi-view stereopsis by learning surface radiance field
Madaras et al. Skeleton texture mapping
Bhardwaj et al. SingleSketch2Mesh: generating 3D mesh model from sketch
CN115546455A (en) Three-dimensional building model monomer method, device and storage medium
Alderson et al. Optimizing line-of-sight using simplified regular terrains
González et al. Simplification method for textured polygonal meshes based on structural appearance
Benthin et al. Packet-based ray tracing of Catmull-Clark subdivision surfaces
CN115115800A (en) BIM model simplification method and device
Yu et al. Example-based Road Network Synthesis.

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination