[go: up one dir, main page]

CN119399338A - A method for fast rendering of three-dimensional graphics - Google Patents

A method for fast rendering of three-dimensional graphics Download PDF

Info

Publication number
CN119399338A
CN119399338A CN202411531556.3A CN202411531556A CN119399338A CN 119399338 A CN119399338 A CN 119399338A CN 202411531556 A CN202411531556 A CN 202411531556A CN 119399338 A CN119399338 A CN 119399338A
Authority
CN
China
Prior art keywords
file
units
processing
rendering
coordinate
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
CN202411531556.3A
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.)
Zhongke Huizhi Beijing Technology Co ltd
Original Assignee
Zhongke Huizhi Beijing Technology 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 Zhongke Huizhi Beijing Technology Co ltd filed Critical Zhongke Huizhi Beijing Technology Co ltd
Priority to CN202411531556.3A priority Critical patent/CN119399338A/en
Publication of CN119399338A publication Critical patent/CN119399338A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Image Generation (AREA)

Abstract

The invention discloses a processing method for rapidly rendering three-dimensional graphics, which comprises the following steps of S1, scanning file data and carrying out format normalization processing, then converting vertex information expressed in double precision and single precision into integers by combining coordinate units, and inputting the integers into a file again for expression, S2, carrying out local centralization processing on coordinate values expressed in the file, correcting the coordinate values relative to a geographic center point to be the coordinate relative to the center point of a file plate, S3, judging whether a surface of a grid unit in a certain direction is the same as a node of a unit associated with the corresponding surface or not.

Description

Processing method for rapidly rendering three-dimensional graph
Technical Field
The invention relates to the technical field of file rendering, in particular to a processing method for rapidly rendering three-dimensional graphics.
Background
At present, various domestic research institutions and scientific research institutions use data expressing oil reservoirs in ECLIPSE format in a large quantity. In the process of three-dimensional rendering of data, as the files are relatively large and the file types are relatively many, the rendering speed is low, and the user experience is affected. How quickly the content of a file is presented on a machine becomes a pain point for users using the file format. The current oil reservoir data file is stored in a space format by using a corner grid mode, and is characterized in that each grid unit is expressed by using eight vertexes, and a computer sequentially renders according to the positions of the grid units to perform geological presentation.
In the process of using three-dimensional visual simulation or digital twin, the loading process is slow due to the large data volume of the oil reservoir file (usually several G or tens of G bytes), the waiting time of a user is long, and the experience effect is poor.
Disclosure of Invention
Therefore, the present invention provides a processing method for fast rendering three-dimensional graphics, so as to solve the above-mentioned problems in the prior art.
In order to achieve the above object, the present invention provides the following technical solutions:
A processing method for three-dimensional graphic quick rendering comprises the following steps:
S1, scanning file data and carrying out format normalization treatment, then converting vertex information expressed in double precision and single precision into integers by combining coordinate units, and inputting the integers into a file again for expression;
s2, carrying out local centralization treatment on the coordinate values expressed in the file, and correcting the coordinate relative to the geographical central point from the previous coordinate relative to the central point of the file plate;
S3, judging whether the surface of one grid unit in a certain direction is the same as the node of the unit associated with the corresponding surface;
and S4, if the two units are the same, indicating that the surface is blocked by the corresponding surface, marking the surface as invisible, ignoring rendering processing of the units when rendering is performed, otherwise marking the surface as visible, and performing rendering processing.
Further, in S2, the method includes the following steps:
p1, scanning coordinate information of all units described by an oil reservoir file, and calculating a central coordinate point of each unit cell according to a cuboid space containing the units;
P2, calculating the positions of the maximum and minimum center points for the calculated center coordinate points to be relatively large and small;
p3, carrying out average calculation according to the coordinates of the maximum and minimum center line points, and taking the obtained result as the center coordinate of the space expressed by the file;
and P4, recalibrating the coordinate information of the oil reservoir file, calculating the position of the reference center node and carrying out integer processing.
Further, in S3, the method includes the following steps:
Q1, circularly judging whether adjacent cells are contacted in six directions of each grid cell;
Q2, if adjacent units exist in a certain direction, indicating that the direction is blocked by the adjacent units;
And Q3, scanning and marking all units as visible units, and not performing display processing on invisible units.
And Q4, re-recording the visible unit coordinate information to the file after the marking is finished.
Further, in Q2, when there are adjacent cells in all six directions of one cell, it is indicated that the cell is not visible and is not displayed.
Further, the method also comprises the following steps:
S5, carrying out layered expression of the unit content, and rendering according to a layer structure;
s6, each expression unit is divided in layers, and the rendering priority of each layer is set;
and S7, the attribute content of each unit also marks the level of the attribute content.
Further, in S6, the method includes the following steps:
n1, carrying out triangularization expression processing on data expressed by using a corner grid;
n2, numbering and analyzing the triangulated plane nodes to judge whether repeated drawing nodes exist or not;
N3, eliminating repeated nodes, and recording the nodes to be rendered into a memory;
and N4, traversing all nodes to be rendered, and displaying the nodes to a screen by combining the displayed priority after traversing.
The invention has the following advantages:
The file can be compressed greatly, and the processing speed is improved rapidly due to the data volume and format processing;
The converted file can be rapidly loaded by a third party engine, the content of the oil reservoir attribute is smoothly displayed, and the user data loading is remarkably improved;
by adopting the technology used by the invention, the file loading speed of the computer can be increased, the occupation of memory resources can be reduced, and the file content can be displayed more quickly.
Drawings
Fig. 1 is an overall flowchart of a processing method for fast rendering of three-dimensional graphics provided by the invention.
Fig. 2 is a coordinate processing flow chart of a processing method for fast rendering of three-dimensional graphics.
Fig. 3 is a node rendering traversal flowchart of a processing method for fast rendering of three-dimensional graphics provided by the invention.
Detailed Description
Other advantages and advantages of the present invention will become apparent to those skilled in the art from the following detailed description, which, by way of illustration, is to be read in connection with certain specific embodiments, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Example 1
As shown in fig. 1 to 3, a processing method for fast rendering of three-dimensional graphics in an embodiment of a first aspect of the present invention includes the following steps:
S1, scanning file data and carrying out format normalization treatment, then converting vertex information expressed in double precision and single precision into integers by combining coordinate units, and inputting the integers into a file again for expression;
s2, carrying out local centralization treatment on the coordinate values expressed in the file, and correcting the coordinate relative to the geographical central point from the previous coordinate relative to the central point of the file plate;
S3, judging whether the surface of one grid unit in a certain direction is the same as the node of the unit associated with the corresponding surface;
S4, if the two units are the same, indicating that the surface is blocked by the corresponding surface, marking the surface as invisible, ignoring rendering processing of the units when rendering is performed, otherwise marking the surface as visible, and performing rendering processing;
In the above embodiment, the data range of each grid cell is reduced, and the amount of computation is reduced. In addition, the content recorded by the reservoir simulation software is usually expressed by combining a coordinate system. In practical application, the unit is usually calculated by taking meters as position, and the measurement data of the oil reservoir file is usually expressed in the form of floating point decimal. The position behind the decimal point in the three-dimensional geological display has not much practical significance with respect to the data as a whole. By the integer (mainly, the number of coordinates in the longitude and latitude direction) processing, the efficiency can be improved no matter the storage and the operation are carried out later.
Example 2
As shown in fig. 1 to 3, a processing method for fast rendering of three-dimensional graphics includes the whole content of embodiment 1, and in addition, in S2, the method includes the following steps:
p1, scanning coordinate information of all units described by an oil reservoir file, and calculating a central coordinate point of each unit cell according to a cuboid space containing the units;
P2, calculating the positions of the maximum and minimum center points for the calculated center coordinate points to be relatively large and small;
p3, carrying out average calculation according to the coordinates of the maximum and minimum center line points, and taking the obtained result as the center coordinate of the space expressed by the file;
P4, recalibrating the coordinate information of the oil reservoir file, calculating and carrying out integer processing by referring to the position of the central node;
The technical effect achieved by the embodiment is that the data expressed by the oil reservoir file is usually underground simulation data, and when the data are presented to a picture of a computer, the topmost layer and the layer facing the direction of a user are seen first. Therefore, in the rendering process, the invention adopts a rendering strategy to firstly render the most concerned part of the user, and other detail parts are sequenced and rendered in parallel according to the weight value of the analysis structure layer.
Files are compressed substantially, and the amount of data and format processing results in a rapid increase in processing speed.
Example 3
As shown in fig. 1 to 3, a processing method for fast rendering of three-dimensional graphics includes the whole content of embodiment 1, and in addition, in S3, the method includes the following steps:
Q1, circularly judging whether adjacent cells are contacted in six directions of each grid cell;
Q2, if adjacent units exist in a certain direction, indicating that the direction is blocked by the adjacent units;
q3, scanning all units and marking whether the units are visible units, and not performing display processing on invisible units;
q4, re-recording the visible unit coordinate information to the file after the marking is finished;
In the above embodiment, the overall information of the entire file includes the total number of units, the total number of layers, the layer list information, the unit list structure of each layer, and the total number of units of each layer and the unit information of the layer.
Example 4
As shown in fig. 1 to 3, a processing method for fast rendering of three-dimensional graphics includes the whole content of embodiment 3, and in addition, in Q2, when there are adjacent cells in all six directions of a cell, it is indicated that the cell is not visible and is not displayed.
Example 5
As shown in fig. 1 to 3, a processing method for fast rendering of three-dimensional graphics includes the whole content of embodiment 1, and in addition, S5, hierarchical expression of unit content, rendering according to a layer structure;
s6, each expression unit is divided in layers, and the rendering priority of each layer is set;
S7, the attribute content of each unit also marks the level of the attribute content;
In the above embodiment, it should be noted that, by adopting the technology used in the present invention, the file loading speed of the computer can be increased, the occupation of memory resources can be reduced, and the file content can be displayed more quickly.
Example 6
As shown in fig. 1 to 3, a processing method for fast rendering of three-dimensional graphics includes the whole content of embodiment 5, and in addition, in S6, the method includes the following steps:
n1, carrying out triangularization expression processing on data expressed by using a corner grid;
n2, numbering and analyzing the triangulated plane nodes to judge whether repeated drawing nodes exist or not;
N3, eliminating repeated nodes, and recording the nodes to be rendered into a memory;
n4, traversing all nodes to be rendered, and displaying the nodes to a screen by combining the displayed priority after traversing;
In the above embodiment, it should be noted that, after the technology adopted by the invention is used, the machine rendering speed is greatly accelerated, the change of the data content of the oil reservoir can be fed back in time, and the method has positive popularization significance in the aspect of digital twin application;
the technical effect achieved by the embodiment is that after the exported custom format file is loaded, the SDK interface is rendered and called to the screen display by using the technology, and the method is mainly applied to the digital twin project related to the oil field.

Claims (6)

1. A processing method for rapidly rendering three-dimensional graphics is characterized by comprising the following steps:
S1, scanning file data and carrying out format normalization treatment, then converting vertex information expressed in double precision and single precision into integers by combining coordinate units, and inputting the integers into a file again for expression;
s2, carrying out local centralization treatment on the coordinate values expressed in the file, and correcting the coordinate relative to the geographical central point from the previous coordinate relative to the central point of the file plate;
S3, judging whether the surface of one grid unit in a certain direction is the same as the node of the unit associated with the corresponding surface;
and S4, if the two units are the same, indicating that the surface is blocked by the corresponding surface, marking the surface as invisible, ignoring rendering processing of the units when rendering is performed, otherwise marking the surface as visible, and performing rendering processing.
2. The method for processing three-dimensional graphics according to claim 1, wherein the step S2 comprises the following steps:
p1, scanning coordinate information of all units described by an oil reservoir file, and calculating a central coordinate point of each unit cell according to a cuboid space containing the units;
P2, calculating the positions of the maximum and minimum center points for the calculated center coordinate points to be relatively large and small;
p3, carrying out average calculation according to the coordinates of the maximum and minimum center line points, and taking the obtained result as the center coordinate of the space expressed by the file;
and P4, recalibrating the coordinate information of the oil reservoir file, calculating the position of the reference center node and carrying out integer processing.
3. The method for processing three-dimensional graphics according to claim 1, wherein the step S3 comprises the following steps:
Q1, circularly judging whether adjacent cells are contacted in six directions of each grid cell;
Q2, if adjacent units exist in a certain direction, indicating that the direction is blocked by the adjacent units;
q3, scanning all units and marking whether the units are visible units, and not performing display processing on invisible units;
and Q4, re-recording the visible unit coordinate information to the file after the marking is finished.
4. A method for fast rendering of three-dimensional graphics according to claim 3, wherein in Q2, when there are adjacent cells in all six directions of a cell, the cell is not visible and is not displayed.
5. The method for processing the three-dimensional graphic rapid rendering according to claim 1, further comprising the steps of:
S5, carrying out layered expression of the unit content, and rendering according to a layer structure;
s6, each expression unit is divided in layers, and the rendering priority of each layer is set;
and S7, the attribute content of each unit also marks the level of the attribute content.
6. The method for processing three-dimensional graphics according to claim 5, wherein the step S6 comprises the steps of:
n1, carrying out triangularization expression processing on data expressed by using a corner grid;
n2, numbering and analyzing the triangulated plane nodes to judge whether repeated drawing nodes exist or not;
N3, eliminating repeated nodes, and recording the nodes to be rendered into a memory;
and N4, traversing all nodes to be rendered, and displaying the nodes to a screen by combining the displayed priority after traversing.
CN202411531556.3A 2024-10-30 2024-10-30 A method for fast rendering of three-dimensional graphics Pending CN119399338A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411531556.3A CN119399338A (en) 2024-10-30 2024-10-30 A method for fast rendering of three-dimensional graphics

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411531556.3A CN119399338A (en) 2024-10-30 2024-10-30 A method for fast rendering of three-dimensional graphics

Publications (1)

Publication Number Publication Date
CN119399338A true CN119399338A (en) 2025-02-07

Family

ID=94416501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411531556.3A Pending CN119399338A (en) 2024-10-30 2024-10-30 A method for fast rendering of three-dimensional graphics

Country Status (1)

Country Link
CN (1) CN119399338A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101278292A (en) * 2004-12-14 2008-10-01 施卢默格控股有限公司 A Finite Volume Method for Coupled Stress/Liquid Flow in Reservoir Simulators
CN102930345A (en) * 2012-10-12 2013-02-13 中国石油大学(华东) Self-adaptive well pattern optimization method based on gradient algorithm
CN106846470A (en) * 2015-12-04 2017-06-13 中国石油化工股份有限公司 A kind of high accuracy oil-gas migration analogy method based on Corner-point Grids
CN110263434A (en) * 2019-06-20 2019-09-20 中国石油大学(华东) A kind of flow unit method for numerical simulation based on multiple dimensioned mixed finite element
CN115908733A (en) * 2022-11-24 2023-04-04 常州大学 Real-time segmentation and three-dimensional visualization method for angular point grid geological model

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101278292A (en) * 2004-12-14 2008-10-01 施卢默格控股有限公司 A Finite Volume Method for Coupled Stress/Liquid Flow in Reservoir Simulators
CN102930345A (en) * 2012-10-12 2013-02-13 中国石油大学(华东) Self-adaptive well pattern optimization method based on gradient algorithm
CN106846470A (en) * 2015-12-04 2017-06-13 中国石油化工股份有限公司 A kind of high accuracy oil-gas migration analogy method based on Corner-point Grids
CN110263434A (en) * 2019-06-20 2019-09-20 中国石油大学(华东) A kind of flow unit method for numerical simulation based on multiple dimensioned mixed finite element
CN115908733A (en) * 2022-11-24 2023-04-04 常州大学 Real-time segmentation and three-dimensional visualization method for angular point grid geological model

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
白永良等: "油藏分块数据组织与快速展示技术", 《中国石油大学学报(自然科学版)》, vol. 36, no. 4, 31 August 2012 (2012-08-31), pages 55 - 59 *

Similar Documents

Publication Publication Date Title
US12347016B2 (en) Image rendering method and apparatus, device, medium, and computer program product
CN107193911B (en) BIM model-based three-dimensional visualization engine and WEB application program calling method
CN112559667B (en) Map editor, map engine, map editing system, map editing method, and storage medium
CN110706341A (en) High-performance rendering method and device of city information model and storage medium
CN112785696A (en) Three-dimensional live-action model generation method based on game engine and oblique photography data
CN114742931A (en) Method, apparatus, electronic device and storage medium for rendering images
CN116883575A (en) Building group rendering method, device, computer equipment and storage medium
CN109388843B (en) Visualization system and method of truss antenna based on VTK (virtual terminal K), and terminal
CN103268221A (en) Method and device for three-dimensional display of meteorological data volume based on WEB technology
CN118691487B (en) High-low precision Digital Elevation Model (DEM) fusion method and system for three-dimensional digital power grid
CN112860839A (en) Water environment quality real-time monitoring method and device based on Unity3D
CN118069767A (en) A method and system for dynamic visualization of vector data
CN101169871A (en) HLOD preprocessing method for real-time rendering of large-scale static scenes
CN115035265A (en) SketchUp scene-to-three-dimensional geographic space conversion method, terminal and storage medium
CN108830929A (en) Multi-resolution Terrain pyramid model generation method and system based on database
CN117523129A (en) Method and device for displaying three-dimensional model of product characteristics based on WebGL
CN114882188B (en) Digital twinning-based small map implementation method
CN112131626A (en) CAD model geometric feature interaction method and system for non-regional Engine
She et al. An efficient method for rendering linear symbols on 3D terrain using a shader language
CN119399338A (en) A method for fast rendering of three-dimensional graphics
CN114494631A (en) Three-dimensional terrain service generation method and generation device
CN117557711B (en) Method, device, computer equipment and storage medium for determining visual field
CN111506680B (en) Terrain data generation and rendering method and device, medium, server and terminal
Hu et al. A parallel method for accelerating visualization and interactivity for vector tiles
Ellul Can Topological Pre-Culling of Faces Improve Rendering Performance of City Models in Google Earth?

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