CN111899351A - Screening method for objects of three-dimensional visual scene - Google Patents

Screening method for objects of three-dimensional visual scene Download PDF

Info

Publication number
CN111899351A
CN111899351A CN201910368815.8A CN201910368815A CN111899351A CN 111899351 A CN111899351 A CN 111899351A CN 201910368815 A CN201910368815 A CN 201910368815A CN 111899351 A CN111899351 A CN 111899351A
Authority
CN
China
Prior art keywords
screening
screened
objects
scene
dimensional
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
CN201910368815.8A
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.)
China Petroleum and Chemical Corp
Sinopec Geophysical Research Institute
Original Assignee
China Petroleum and Chemical Corp
Sinopec Geophysical Research Institute
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 China Petroleum and Chemical Corp, Sinopec Geophysical Research Institute filed Critical China Petroleum and Chemical Corp
Priority to CN201910368815.8A priority Critical patent/CN111899351A/en
Publication of CN111899351A publication Critical patent/CN111899351A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a method for screening objects in a three-dimensional visual scene, which comprises the steps of calculating screen coordinates of a central point of an object to be screened according to three-dimensional coordinates of the central point of the object to be screened in the three-dimensional visual scene, screening the object to be screened in the scene according to the relative position of the screen coordinates and a screening boundary, wherein the closed-loop screening boundary can determine a screening range so as to realize rapid screening of a large number of objects to be screened in the scene.

Description

Screening method for objects of three-dimensional visual scene
Technical Field
The invention relates to the technical field of three-dimensional visualization, in particular to a method for screening objects of a three-dimensional visualization scene.
Background
The three-dimensional visualization technology is the most common technology in computer simulation, various display objects are often displayed in a three-dimensional visualization scene of simulation software, and a user often needs to selectively display the objects in the scene, so that an object screening method suitable for the three-dimensional scene needs to be designed.
Most simulation software utilizes a data tree to realize screening of objects, check boxes are arranged in the data tree for three-dimensional display objects, and checking and canceling of the check boxes in the data tree are used for realizing display and hiding of the three-dimensional objects. The method is simple and practical, is suitable for scenes with few objects, and is difficult to quickly establish the mapping between the objects of the three-dimensional scene and the data tree when the objects in the scenes are too many, so the method is not intuitive enough and is difficult to realize quick screening. There are also some simulation software, which provides the user with the function of picking up objects in the three-dimensional scene, and the object picking up is used to realize the object screening.
At present, a quick and practical object screening method is not provided for the situation that too many objects are displayed in a three-dimensional scene.
Disclosure of Invention
In order to solve the technical problems in the prior art, the invention provides a method for screening objects in a three-dimensional visual scene, which comprises the following specific steps:
a method for screening objects of a three-dimensional visual scene comprises the following steps:
s1: calculating screen coordinates of the central point of the object to be screened according to the three-dimensional coordinates of the central point of the object to be screened in the three-dimensional visual scene;
s2: drawing a closed-loop screening boundary in the three-dimensional visual scene;
for each object to be screened, executing the following steps:
s3: and screening the object to be screened according to the relative position of the screen coordinate of the central point of the object to be screened and the screening boundary.
Further, in step S1, the three-dimensional coordinate of the center point of the object to be filtered is multiplied by the projection matrix of the current scene, and the obtained result is multiplied by the view matrix of the current scene, so as to obtain the screen coordinate of the center point of the object to be filtered.
Further, in step S3, the object to be filtered is filtered by determining whether the screen coordinate of the center point of the object to be filtered is within the range surrounded by the filtering boundary;
if not, screening the objects to be screened into a non-selected set;
and if so, screening the objects to be screened into the selected set.
Further, the object to be screened is a visible object in a three-dimensional visual scene.
Further, before step S1, the filtering method further includes a step of filtering invisible objects in the three-dimensional visual scene.
Further, the screening boundary is drawn by utilizing Qt.
Further, the screening boundary is a rectangular frame.
Further, the rectangular frame is drawn by Qt according to the screen coordinates of the four vertices of the rectangular frame.
Compared with the prior art, the method for screening the objects in the three-dimensional visual scene comprises the steps of calculating the screen coordinate of the central point of the object to be screened according to the three-dimensional coordinate of the central point of the object to be screened in the three-dimensional visual scene, screening the object to be screened in the scene according to the relative position of the screen coordinate and the screening boundary, and enabling the closed-loop screening boundary to determine a screening range so as to realize rapid screening of a large number of objects to be screened in the scene.
The invention obtains the corresponding screen coordinate by utilizing the product of the three-dimensional coordinate and the projection matrix and the view matrix.
Drawings
The invention will be described in more detail hereinafter on the basis of embodiments and with reference to the accompanying drawings. Wherein:
FIG. 1 is a rectangular box model of object screening of a three-dimensional visualization scene in an embodiment of the present invention;
FIG. 2 is a diagram illustrating screening of objects to be screened by a rectangular frame in a three-dimensional visual scene according to an embodiment of the present invention;
FIG. 3 is a flow chart of a screening method according to an embodiment of the present invention.
In the drawings, like reference numerals are used for like reference numerals, and the drawings are not drawn to scale.
Detailed Description
The invention will be further described with reference to the accompanying drawings.
In a three-dimensional visualization scene, there are usually a plurality of different coordinate systems, such as a world coordinate system, a screen coordinate system, a view coordinate system, a local coordinate system, and the like.
The current scene in the invention refers to a three-dimensional visual scene corresponding to the screening, and the scene is not changed when the object to be screened is screened.
Qt in the invention refers to a cross-platform C + + graphical user interface application development framework.
The embodiment provides a method for screening objects in a three-dimensional visual scene, which comprises the following steps:
s1: calculating screen coordinates of the central point of the object to be screened according to the three-dimensional coordinates of the central point of the object to be screened in the three-dimensional visual scene;
s2: drawing a closed-loop screening boundary in the three-dimensional visual scene;
for each object to be screened, executing the following steps:
s3: and screening the object according to the screen coordinate of the central point of the object to be screened and the relative position of the screening boundary.
Compared with the prior art, the method for screening the objects in the three-dimensional visual scene comprises the steps of calculating the screen coordinate of the central point of the object to be screened according to the three-dimensional coordinate of the central point of the object to be screened in the three-dimensional visual scene, screening the object to be screened in the scene according to the relative position of the screen coordinate and the screening boundary, and enabling the closed-loop screening boundary to determine a screening range so as to realize rapid screening of a large number of objects to be screened in the scene.
Fig. 3 is a flowchart of a method for screening objects in a three-dimensional visualization scene according to the embodiment. As shown in figure 3 of the drawings,
firstly:
(1) reading in three-dimensional coordinates of center points of all objects in a three-dimensional visual scene;
(2) filtering out invisible objects in the three-dimensional visual scene;
(3) and acquiring a projection matrix and a view matrix of the current scene.
Wherein, the step (1), the step (2) and the step (3) have no absolute sequence, and any step can be executed first in the three steps.
The screening of the objects in the three-dimensional visual scene is usually performed on visible objects, that is, the objects to be screened are visible objects, and the filtering of invisible objects can reduce the workload of the whole screening process and improve the screening speed.
How to obtain the projection matrix and the view matrix of the current scene is common knowledge in the art, and details thereof are not repeated.
After the first three steps are finished:
(4) and multiplying the three-dimensional coordinate of the central point of the object to be screened in the three-dimensional visual scene by the projection matrix of the current scene, and multiplying the result by the view matrix of the current scene, so as to calculate and obtain the screen coordinate in the three-dimensional visual scene corresponding to the three-dimensional coordinate of the central point of the object to be screened.
(5) Drawing a closed loop screening boundary;
in a three-dimensional visual scene, a closed-loop screening boundary is drawn by using Qt, the closed-loop screening boundary in the embodiment is a rectangular frame, and the rectangular frame is drawn by determining two-dimensional screen coordinates of four vertices of the rectangular frame. The screening boundaries are connected end to form a closed loop which can enclose a range for screening. Fig. 1 illustrates selection of a rectangular frame mode, and fig. 2 illustrates drawing a rectangular frame and screening an object to be screened in a scene using the rectangular frame.
(6) For any object to be screened in the three-dimensional visual scene, judging whether the screen coordinate of the central point of the object to be screened is in the range enclosed by the screening boundary, specifically whether the screen coordinate is located in the rectangular frame in the embodiment; if not, screening the object to be screened into the unselected set; and if so, screening the object to be screened into the selected set.
(7) Further judging whether the object to be screened is the last object to be screened in the three-dimensional visual scene; if not, skipping to the step (6) to screen other objects to be screened which are not screened yet; if yes, the process is ended. Therefore, each object to be screened can be judged and screened, and omission is avoided.
At this point, the entire screening process is completed.
In other embodiments, after determining the screen coordinate of the central point of the object to be filtered, the object to be filtered may also be selected reversely, for example, the objects to be filtered are all in the selected state at first, and a rectangular frame is drawn, so that the object to be filtered whose screen coordinate of the central point is outside the rectangular frame remains in the selected state, and the object to be filtered whose screen coordinate of the central point is inside the rectangular frame is changed from the selected state to the unselected state.
In other embodiments, the objects to be filtered in the three-dimensional visualization scene may also be all objects including visible objects and invisible objects.
In other embodiments, before the step (4), invisible objects in the three-dimensional visualization scene are filtered, and then only the three-dimensional coordinates of the center point of the visible objects in the three-dimensional visualization scene are read in to screen the visible objects, so that the efficiency of data reading can be improved.
While the invention has been described with reference to a preferred embodiment, various modifications may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In particular, the various features mentioned in the various embodiments may be combined in any combination as long as there is no logical or structural conflict. It is intended that the invention not be limited to the particular embodiments disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.

Claims (8)

1. A method for screening objects in a three-dimensional visual scene is characterized by comprising the following steps:
s1: calculating screen coordinates of the central point of the object to be screened according to the three-dimensional coordinates of the central point of the object to be screened in the three-dimensional visual scene;
s2: drawing a closed-loop screening boundary in the three-dimensional visual scene;
for each object to be screened, executing the following steps:
s3: and screening the object to be screened according to the relative position of the screen coordinate of the central point of the object to be screened and the screening boundary.
2. The screening method of claim 1, wherein in step S1, the three-dimensional coordinates of the center point of the object to be screened are multiplied by the projection matrix of the current scene, and the obtained result is further multiplied by the view matrix of the current scene, thereby obtaining the screen coordinates of the center point of the object to be screened.
3. The screening method according to claim 1 or 2, wherein in step S3, the object to be screened is screened by judging whether the screen coordinates of the center point of the object to be screened are within the range enclosed by the screening boundary;
if not, screening the objects to be screened into a non-selected set;
and if so, screening the objects to be screened into the selected set.
4. The screening method according to claim 1 or 2, wherein the object to be screened is a visible object in a three-dimensional visualization scene.
5. The screening method according to claim 1 or 2, wherein before step S1, the screening method further comprises the step of filtering invisible objects in the three-dimensional visualized scene.
6. Screening method according to claim 1 or 2, characterized in that the screening boundary is drawn using Qt.
7. The screening method according to claim 1 or 2, wherein the screening boundary is a rectangular box.
8. The screening method according to claim 6, wherein the rectangular frame is drawn using Qt based on screen coordinates of four vertices of the rectangular frame.
CN201910368815.8A 2019-05-05 2019-05-05 Screening method for objects of three-dimensional visual scene Pending CN111899351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910368815.8A CN111899351A (en) 2019-05-05 2019-05-05 Screening method for objects of three-dimensional visual scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910368815.8A CN111899351A (en) 2019-05-05 2019-05-05 Screening method for objects of three-dimensional visual scene

Publications (1)

Publication Number Publication Date
CN111899351A true CN111899351A (en) 2020-11-06

Family

ID=73169215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910368815.8A Pending CN111899351A (en) 2019-05-05 2019-05-05 Screening method for objects of three-dimensional visual scene

Country Status (1)

Country Link
CN (1) CN111899351A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104616356A (en) * 2014-12-31 2015-05-13 中国林业科学研究院资源信息研究所 Sub-compartment boundary three-dimensional visual editing method
CN104794758A (en) * 2015-04-17 2015-07-22 青岛海信医疗设备股份有限公司 Three-dimensional image cutting method
CN105631927A (en) * 2014-10-27 2016-06-01 富泰华工业(深圳)有限公司 System and method for selecting point cloud lasso
EP3048791A2 (en) * 2015-01-26 2016-07-27 Thales-Raytheon Systems Company SAS Method for displaying at least one window of a three dimensional scene, related computer program product and display system
CN108109105A (en) * 2017-12-10 2018-06-01 西北工业大学 It may be programmed the data visualisation system of pipeline based on Qt frames and OpenGL

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105631927A (en) * 2014-10-27 2016-06-01 富泰华工业(深圳)有限公司 System and method for selecting point cloud lasso
CN104616356A (en) * 2014-12-31 2015-05-13 中国林业科学研究院资源信息研究所 Sub-compartment boundary three-dimensional visual editing method
EP3048791A2 (en) * 2015-01-26 2016-07-27 Thales-Raytheon Systems Company SAS Method for displaying at least one window of a three dimensional scene, related computer program product and display system
CN104794758A (en) * 2015-04-17 2015-07-22 青岛海信医疗设备股份有限公司 Three-dimensional image cutting method
CN108109105A (en) * 2017-12-10 2018-06-01 西北工业大学 It may be programmed the data visualisation system of pipeline based on Qt frames and OpenGL

Similar Documents

Publication Publication Date Title
CN106355153B (en) A kind of virtual objects display methods, device and system based on augmented reality
US11574438B2 (en) Generating three-dimensional virtual scene
US10606721B2 (en) Method and terminal device for testing performance of GPU, and computer readable storage medium
US8970586B2 (en) Building controllable clairvoyance device in virtual world
KR20160048901A (en) System and method for determining the extent of a plane in an augmented reality environment
CN105005970A (en) Augmented reality implementation method and apparatus
JP7264989B2 (en) Visualization method, device and recording medium for multi-source earth observation image processing
KR20210049498A (en) Method of extracting and converting BIM data for Web Browser and VR/AR Application
CN101968895A (en) Two-dimensional image conversion system and method
TWI716874B (en) Image processing apparatus, image processing method, and image processing program
CN113868494A (en) Big data visualization display system
CN116362957B (en) PCB card image alignment method, device, medium and electronic equipment
CN114663324A (en) Fusion display method of BIM (building information modeling) model and GIS (geographic information system) information and related components
CN111773710A (en) Texture image processing method and device, electronic equipment and storage medium
CN111899351A (en) Screening method for objects of three-dimensional visual scene
JP5983550B2 (en) 3D image generation apparatus and 3D image generation method
CN113126944B (en) Depth map display method, display device, electronic device, and storage medium
KR101919085B1 (en) Apparatus and method for simplification of 3D mesh data
CN115129191B (en) Three-dimensional object pickup method, device, equipment and storage medium
CN114332356A (en) Virtual and real picture combining method and device
US9734579B1 (en) Three-dimensional models visual differential
CN114549428A (en) Assembly induction information generation and display method based on target detection
CN114494577A (en) Display method and device, electronic equipment and storage medium
CN116012542B (en) Dynamic visualization method and device for earthquake disasters
CN109064563A (en) The method of real-time control model vertices in a kind of Fusion Edges program of 3D exploitation

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