Three-dimensional scene map display method and device and computer equipment
By monitoring the dragging operation of the eagle-eye frame in the 3D geographic information system, determining its center position and converting it into 3D coordinates, the eagle-eye frame and the main view are linked, which solves the problem that the eagle-eye image cannot locate the height coordinates in the 3D scene and ensures the accurate display of the 3D scene map.
Patent Information
- Application Number
- CN202510699132.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-09-05
AI Technical Summary
The eagle-eye map in the existing three-dimensional geographic information system cannot realize the height coordinate positioning of the three-dimensional scene map and the two-way linkage display of the eagle-eye frame and the main view.
By setting the preset three-dimensional earth model and geographic range in the main view and eagle-eye view, monitoring the drag operation of the eagle-eye frame, determining its center position and converting it into three-dimensional coordinates, the eagle-eye frame and the main view are linked to update the three-dimensional scene map.
The two-way linkage between the eagle-eye frame and the main view is realized to ensure the accurate display and consistency of the three-dimensional scene map, and solve the problem that the eagle-eye map cannot locate the height coordinates in the three-dimensional scene.
Smart Images

Figure CN120599164A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of three-dimensional scene display technology, and more specifically, to a three-dimensional scene map display method, device, and computer equipment. Background Art
[0002] With the development of information technology, three-dimensional visualization technology has become more mature, and more and more industries are using three-dimensional visualization technology to improve their own information expression capabilities and strengthen information construction.
[0003] Hawkeye map is a navigation and visualization method of geographic information system. It was often used in two-dimensional map scenes in the past. It can use a small window to help users determine the position of the current main view in the entire scene.
[0004] However, the eagle-eye map implemented in the current three-dimensional geographic information system cannot locate the height coordinates of the scene, and can only be located in the form of a bird's-eye view. It is also impossible to display the three-dimensional scene map by bidirectionally linking the eagle-eye frame with the main perspective. Summary of the Invention
[0005] The purpose of this application is to address the deficiencies in the above-mentioned prior art and provide a three-dimensional scene map display method, device and computer equipment to realize the display of the three-dimensional scene map through two-way linkage between the eagle-eye frame and the main view in the three-dimensional scene map.
[0006] To achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:
[0007] In a first aspect, an embodiment of the present application provides a method for displaying a three-dimensional scene map, the method comprising:
[0008] Displaying a three-dimensional scene map of a preset three-dimensional earth model at a preset field of view center in the main view, and displaying a two-dimensional scene map of a preset geographic range in the eagle-eye view, wherein the preset field of view center is consistent with the three-dimensional coordinates corresponding to the preset center position of the eagle-eye frame in the eagle-eye view;
[0009] According to the monitored drag operation on the eagle-eye frame, the eagle-eye frame is controlled to move within the eagle-eye view, and the center position of the eagle-eye frame after the movement is obtained as a first center position;
[0010] determining the three-dimensional coordinates of the center of the first field of view according to the first center position;
[0011] According to the three-dimensional coordinates of the first field of view center and the preset three-dimensional earth model, the three-dimensional scene map under the preset field of view range displayed in the main view is updated to the three-dimensional scene map under the first field of view center.
[0012] In a possible implementation, determining the three-dimensional coordinates of the center of the first field of view according to the first center position includes:
[0013] Inverting the first center position from the screen coordinate system to the world coordinate system to obtain first center three-dimensional coordinates corresponding to the first center position;
[0014] Assign the first center three-dimensional coordinates to the three-dimensional coordinates of the first field of view center.
[0015] In a possible implementation, the method further includes:
[0016] Determining the three-dimensional coordinates of the center of the second field of view corresponding to the movement operation according to the monitored field of view update operation for the main view;
[0017] determining a second center position of the eagle eye frame according to the three-dimensional coordinates of the center of the second field of view;
[0018] According to the second center position, the eagle-eye frame is controlled to move within the eagle-eye view, so that the center position of the eagle-eye frame after movement is at the second center position.
[0019] In a possible implementation, determining the second center position of the eagle-eye frame according to the three-dimensional coordinates of the second field of view center includes:
[0020] Assigning the three-dimensional coordinates of the center of the second field of view to the second center three-dimensional coordinates of the eagle eye frame;
[0021] Inverting the second center three-dimensional coordinates from the world coordinate system to the screen coordinate system to obtain screen coordinates;
[0022] The screen coordinates are assigned to the second center position.
[0023] In a possible implementation, according to the monitored drag operation on the eagle-eye frame, controlling the eagle-eye frame to move within the eagle-eye view, and obtaining that the center position of the eagle-eye frame after the movement is the first center position, the method further includes:
[0024] The monitoring event of the eagle-eye frame is configured as the drag operation.
[0025] In a possible implementation, before determining, based on the monitored movement operation on the primary view, the three-dimensional coordinates of the center of the second field of view corresponding to the movement operation, the method further includes:
[0026] The listening event of the main view is configured as the field of view update operation.
[0027] In a possible implementation, the method further includes:
[0028] determining whether the three-dimensional coordinates of the center of the first field of view are within the preset geographical range;
[0029] If the three-dimensional coordinates of the center of the first field of view are not within the preset geographical range, the eagle-eye frame is controlled to remain within the corresponding boundary in the eagle-eye view.
[0030] In a possible implementation, the method further includes:
[0031] determining whether the three-dimensional coordinates of the center of the second field of view are within the preset geographical range;
[0032] If the three-dimensional coordinates of the center of the second field of view are not within the preset geographical range, the eagle-eye frame is controlled to remain within the corresponding boundary of the eagle-eye view.
[0033] In a second aspect, another embodiment of the present application provides a three-dimensional scene map display device, the device comprising:
[0034] A display module is configured to display a three-dimensional scene map of a preset three-dimensional earth model at a preset field of view center in the main view, and to display a two-dimensional scene map of a preset geographic range in the eagle-eye view, wherein the preset field of view center is consistent with the three-dimensional coordinates corresponding to the preset center position of the eagle-eye frame in the eagle-eye view;
[0035] a monitoring module, configured to control the eagle-eye frame to move within the eagle-eye view according to a monitored drag operation on the eagle-eye frame, so that the center position of the eagle-eye frame after the movement is obtained as a first center position;
[0036] a determination module, configured to determine the three-dimensional coordinates of the center of the first field of view according to the first center position;
[0037] An updating module is used to update the three-dimensional scene map under the preset field of view displayed in the main view to the three-dimensional scene map under the first field of view center according to the three-dimensional coordinates of the first field of view center and the preset three-dimensional earth model.
[0038] In the third aspect, another embodiment of the present application provides a computer device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the computer device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the three-dimensional scene map display method as described in any of the first aspects above.
[0039] The beneficial effects of this application are:
[0040] The present application provides a three-dimensional scene map display method, device and equipment, relating to the field of three-dimensional scene display technology, wherein the method includes: displaying a three-dimensional scene map of a preset three-dimensional earth model at a preset field of view center in a main view, and displaying a two-dimensional scene map of a preset geographical range in an eagle-eye view; according to a detected drag operation on the eagle-eye frame, controlling the eagle-eye frame to move in the eagle-eye view, obtaining the center position of the eagle-eye frame after movement as a first center position; determining the three-dimensional coordinates of the first field of view center according to the first center position; and updating the three-dimensional scene map under the preset field of view range displayed in the main view to the three-dimensional scene map under the first field of view center according to the three-dimensional coordinates of the first field of view center and the preset three-dimensional earth model. In this application, the three-dimensional scene coordinates of the preset three-dimensional earth model at the center of the preset field of view are first obtained, and by setting up a monitor for the eagle-eye frame, the center position of the eagle-eye frame after movement is determined, and then the coordinates of the first field of view are determined by the center position after movement of the eagle-eye frame, thereby realizing the linkage between the eagle-eye frame and the main view, and realizing that the perspective of the main view moves with the eagle-eye frame during the movement of the eagle-eye frame, ensuring the consistency of the movement of the eagle-eye frame and the main view, thereby realizing the dual-line connection between the eagle-eye frame and the main perspective to realize the display of the three-dimensional scene map. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0042] Figure 1 A flowchart of a three-dimensional scene map display method provided in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of a flow chart of a method for determining the three-dimensional coordinates of the center of a first field of view provided in an embodiment of the present application;
[0044] Figure 3 A flowchart of another three-dimensional scene map display method provided in an embodiment of the application;
[0045] Figure 4 A flowchart of a method for determining a second center position of an eagle-eye frame provided in an embodiment of the present application;
[0046] Figure 5 A flowchart of a method for determining the coordinates of the center of a first field of view provided in an embodiment of the present application;
[0047] Figure 6A flowchart of a method for determining the coordinates of the center of the second field of view provided in an embodiment of the present application;
[0048] Figure 7 A schematic diagram of a three-dimensional scene map display device provided in an embodiment of the present application;
[0049] Figure 8 A schematic diagram of the computer device structure provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented out of sequence, and steps without logical context can be reversed or implemented simultaneously. In addition, those skilled in the art, under the guidance of the contents of this application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0051] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0052] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0053] In this application, the eagle-eye map effect is realized based on the three-dimensional geographic information system of the Cesium open source database, and the display of the three-dimensional earth model is realized through the Cesium open source database, and the configuration of multiple application programming interface (Application Programming Interface, API) classes built into the Cesium open source database is realized during the display of the three-dimensional scene map, wherein the built-in API classes include: entity (Entity), camera (Camera), scene (Scene), event (Event) or other commonly used Cesium open source database built-in API classes. It is worth noting that the embodiments of this application include but are not limited to methods based on the Cesium open source database and any other open source database that can display a three-dimensional earth model, as well as methods for configuring multiple application programming interfaces.
[0054] In order to clearly describe the method provided in the embodiment of the present application, the three-dimensional scene map display method provided in the embodiment of the present application is described in detail below through multiple embodiments in combination with the accompanying drawings. Figure 1 A flow chart of a three-dimensional scene map display method provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the three-dimensional scene map display method includes:
[0055] S101: Displaying a three-dimensional scene map of a preset three-dimensional earth model at a preset field of view center in a main view, and displaying a two-dimensional scene map of a preset geographical range in an eagle-eye view.
[0056] Optionally, the preset three-dimensional earth model is displayed based on the three-dimensional geographic information system of the Cesium open source database, and the position parameters of the preset three-dimensional earth model corresponding to the eagle-eye view are set to fixed values, including setting the longitude, latitude and altitude of the position parameters of the preset three-dimensional earth model to fixed values. Among them, the longitude and latitude of the position parameters of the preset three-dimensional earth model are the center position of the preset earth model, and the height of the position parameters of the preset three-dimensional earth model is the position where the entire preset three-dimensional earth model can be fully obtained. It can be set according to the needs of the three-dimensional scene map display. When a clearer three-dimensional scene map is required, the height can be set to a smaller value. If a larger range of three-dimensional scene map is required, the height can be set to a larger value. At the same time, according to the range of the preset unit earth model in the main view, the two-dimensional scene map of the preset geographic range is displayed in the eagle-eye view.
[0057] S102: According to the monitored drag operation on the eagle-eye frame, the eagle-eye frame is controlled to move in the eagle-eye view, and the center position of the eagle-eye frame after the movement is obtained as a first center position.
[0058] Optionally, the dragging operation of the eagle eye frame is monitored. When the eagle eye frame moves in the eagle eye view, the movement of the eagle eye frame is monitored to obtain the center position of the eagle eye frame during the movement as the first center position.
[0059] S103: Determine the three-dimensional coordinates of the center of the first field of view according to the first center position.
[0060] Among them, the first center position is the center coordinate of the eagle-eye frame when it moves in the eagle-eye view, the center coordinate of the first center position is a two-dimensional coordinate, the first field of view center is the center position of the three-dimensional scene map displaying the preset three-dimensional earth model under the preset field of view center, and the coordinates of the first field of view center are three-dimensional coordinates.
[0061] Optionally, the first center position obtained by monitoring the movement of the eagle-eye frame is the two-dimensional coordinate of the center position of the two-dimensional scene graph displaying the preset geographic range in the eagle-eye view. The two-dimensional coordinate is converted into a Cartesian coordinate through a variety of application programming interface classes built into the Cesium open source database, and then the Cartesian coordinate is converted into a three-dimensional coordinate through the coordinate conversion API class. The conversion statement for converting the two-dimensional coordinate into the Cartesian coordinate in the world coordinate system can be: Cesium.ScreenSpacePixelsToWorld(convas,pixel) or other coordinate conversion API classes, and the statement for converting the Cartesian coordinate in the world coordinate system into longitude, latitude and altitude can be: Cesium.Cartesian3.toDegrees(x,y,z), Cesium.Cartesian3.toRadians(x,y,z) or any other statement that can convert Cartesian coordinates into longitude, latitude and altitude, and the three-dimensional coordinate is determined as the three-dimensional coordinate of the center of the first field of view.
[0062] S104: updating the three-dimensional scene map within the preset field of view displayed in the main view to the three-dimensional scene map within the first field of view center according to the three-dimensional coordinates of the first field of view center and the preset three-dimensional earth model.
[0063] Optionally, the three-dimensional coordinates of the center of the first field of view are determined, and the preset three-dimensional earth model is projected onto the plane. The boundary of the main field of view is determined by the point on the earth surface adjacent to the position of the center of the field of view, and the points on the boundary of the main field of view are expanded to the entire surface of the earth to obtain the range of the main field of view, and the three-dimensional scene map under this range is updated to the three-dimensional scene map under the center of the first field of view.
[0064] In an embodiment of the present application, a three-dimensional scene map of a preset three-dimensional earth model at the center of a preset field of view is displayed in the main view, and a two-dimensional scene map of a preset geographical range is displayed in the eagle-eye view; according to the drag operation detected for the eagle-eye frame, the eagle-eye frame is controlled to move in the eagle-eye view, and the center position of the eagle-eye frame after the movement is obtained as the first center position; according to the first center position, the three-dimensional coordinates of the center of the first field of view are determined; according to the three-dimensional coordinates of the center of the first field of view and the preset three-dimensional earth model, the three-dimensional scene map under the preset field of view displayed in the main view is updated to the three-dimensional scene map under the center of the first field of view. In this application, the three-dimensional scene coordinates of the preset three-dimensional earth model at the center of the preset field of view are first obtained, and by setting a monitoring for the eagle-eye frame, the center position of the eagle-eye frame after the movement is determined, and then the coordinates of the first field of view are determined according to the center position of the eagle-eye frame after the movement, so as to realize the linkage between the eagle-eye frame and the main view, realize that the perspective of the main view moves with the eagle-eye frame during the movement of the eagle-eye frame, ensure the consistency of the movement of the eagle-eye frame and the main view, thereby realizing the dual-line connection between the eagle-eye frame and the main view to realize the display of the three-dimensional scene map.
[0065] Based on the embodiment of the present application, a method for determining the three-dimensional coordinates of the center of the first field of view is also provided. Figure 2 A flow chart of a method for determining the three-dimensional coordinates of the center of the first field of view provided in an embodiment of the present application is shown as follows: Figure 2 As shown, as in the above S103, determining the three-dimensional coordinates of the center of the first field of view according to the first center position includes:
[0066] S201 : Invert a first center position from a screen coordinate system to a world coordinate system to obtain first center three-dimensional coordinates corresponding to the first center position.
[0067] Among them, the world coordinate system is used to describe the coordinate system of points in three-dimensional space and is the absolute coordinate system of the system.
[0068] Optionally, the first center position is the first center position inverted to the world coordinates by a coordinate conversion API class in a variety of application programming interface classes built into the Cesium open source database of the screen to obtain the first center three-dimensional coordinates corresponding to the first center position.
[0069] S202: Assign the first center three-dimensional coordinates to the three-dimensional coordinates of the first field of view center.
[0070] Optionally, the three-dimensional coordinates of the first center in the world coordinate system are converted into the three-dimensional coordinates of the first field of view center through a variety of application programming interface classes built into the Cesium open source database.
[0071] In an embodiment of the present application, the center position of the eagle-eye frame is used to determine the three-dimensional coordinates of the center of the first field of view through a variety of application programming interface classes built into the Cesium open source database, so that the center coordinates of the eagle-eye frame correspond to the center position of the field of view of the three-dimensional scene map, and the two-dimensional scene map displaying the preset geographic range in the eagle-eye frame corresponds to the three-dimensional scene map of the preset three-dimensional earth model under the preset field of view center, thereby ensuring the accuracy of the linkage between the eagle-eye frame and the three-dimensional scene map.
[0072] Based on the embodiment of the present application, another three-dimensional scene map display method is provided. Figure 3 A flow chart of another method for displaying a three-dimensional scene map provided in the embodiment of the application is shown as follows: Figure 3 Based on the above embodiment, the method includes:
[0073] S301: Determine the three-dimensional coordinates of the center of the second field of view corresponding to the movement operation according to the monitored field of view update operation on the main view.
[0074] The updating operation of the main view field of view may be to drag the field of view center by the mouse to obtain a new field of view center or to directly reselect a new center as the field of view center coordinate by the mouse.
[0075] Optionally, when the field of view of the main view is updated, the center position of the field of view of the main view will also change accordingly. Therefore, it is necessary to monitor the update of the field of view of the main view to determine the three-dimensional coordinates of the updated field of view center as the three-dimensional coordinates of the second field of view center.
[0076] S302: Determine a second center position of the eagle-eye frame according to the three-dimensional coordinates of the center of the second field of view.
[0077] The second center position of the eagle-eye frame is the center position of the eagle-eye frame corresponding to the updated three-dimensional coordinates of the second field of view center, and the coordinates of the second center position of the eagle-eye frame are two-dimensional coordinates.
[0078] Optionally, the three-dimensional coordinates of the center of the second field of view are converted using various application programming interface classes built into the Cesium open source database to determine the second center position of the eagle eye frame. The various application programming interface classes built into the Cesium open source database may include Cesium.Cartesian3.fromDegrees(latitude, longitude, altitude) and Cesium.WorldToScreenSpacePixels(canvas, world), or any other statement that can convert three-dimensional coordinates into two-dimensional coordinates.
[0079] S303: Control the eagle-eye frame to move in the eagle-eye view according to the second center position, so that the center position of the moved eagle-eye frame is at the second center position.
[0080] Optionally, the second center position is used as the center position of the eagle-eye frame view, and the eagle-eye frame is controlled to move. The center position of the eagle-eye frame after the movement is the second center position.
[0081] In an embodiment of the present application, after the center position of the field of view of the main view is changed, the three-dimensional coordinates of the center of the field of view of the main view are converted through the coordinates in the various application programming interface classes built into the Cesium open source database to obtain the center position of the eagle-eye frame corresponding to the main view, thereby controlling the eagle-eye frame to move to the position corresponding to the main view, so that the center position of the main view corresponds to the center position of the eagle-eye frame one-to-one, ensuring the accuracy of the linkage between the main view and the eagle-eye frame.
[0082] Based on the embodiment of the present application, a method for determining the second center position of the eagle-eye frame is also provided. Figure 4 A flow chart of a method for determining the second center position of an eagle-eye frame provided in an embodiment of the present application is shown as follows: Figure 4 As shown, as in the above S303, determining the second center position of the eagle eye frame according to the three-dimensional coordinates of the center of the second field of view includes:
[0083] S401: Assign the three-dimensional coordinates of the center of the second field of view as the second center three-dimensional coordinates of the eagle eye frame.
[0084] The three-dimensional coordinates of the second field of view center are the three-dimensional coordinates of the center of the main view, and the second three-dimensional coordinates of the eagle-eye frame center are the three-dimensional coordinates corresponding to the two-dimensional coordinates of the eagle-eye frame center.
[0085] Optionally, the three-dimensional coordinates of the center of the second field of view are converted to Cartesian world coordinates using the coordinate conversion API class Cesium.Cartesian3.fromDegrees(latitude, longitude, altitude) in the various application programming interface classes built into the Cesium open source database, and the coordinates are assigned as the three-dimensional coordinates of the second center of the eagle eye frame. It is worth noting that the coordinate conversion API class in this application is not limited to the above statement, and can also be other statements that can convert three-dimensional coordinates into a world coordinate system.
[0086] S402 : Invert the second center three-dimensional coordinates from the world coordinate system to the screen coordinate system to obtain screen coordinates.
[0087] The screen coordinates are two-dimensional coordinates corresponding to the screen coordinate system.
[0088] Optionally, the unit coordinate system of the second center is inverted from the world coordinate system to the screen coordinate system through the coordinate conversion API class of Cesium.WorldToScreenSpacePixels(canvas,world) in the various application programming interface classes built into the Cesium open source database to obtain the two-dimensional coordinates corresponding to the corresponding screen coordinates.
[0089] S403: Assign the screen coordinates to the second center position.
[0090] Optionally, the screen coordinates obtained after conversion through various application programming interface classes built into the Cesium open source database are the second center position coordinates, and the obtained screen coordinates are assigned to the second center position coordinates, which are the coordinates of the center position of the eagle eye frame.
[0091] In an embodiment of the present application, the second center position of the eagle-eye frame is determined according to the three-dimensional coordinates of the center of the second field of view through a variety of application programming interface classes built into the Cesium open source database, ensuring that the three-dimensional coordinates of the center of the second field of view correspond to the second center position of the eagle-eye frame. When the center of the second field of view changes, the second center position of the eagle-eye frame can also change accordingly, ensuring the linkage effect between the main view and the eagle-eye frame.
[0092] Based on the embodiment of the present application, a monitoring event configuration for the eagle-eye frame is further provided. In the above S102, according to the monitored drag operation on the eagle-eye frame, the eagle-eye frame is controlled to move within the eagle-eye view, and the center position of the eagle-eye frame after the movement is obtained as the first center position, further comprising:
[0093] Configure the Eagle Eye frame's listening event to the drag operation.
[0094] Optionally, addEventListener is called through the preRender API class built into the Cesium open source database to add mouse press and release events to the eagle-eye frame in the two-dimensional scene. When the mouse is used for operation, the eagle-eye frame's monitoring is triggered to monitor whether the eagle-eye frame is dragged during the process of pressing and lifting the mouse, as well as the position of the eagle-eye frame during and after dragging.
[0095] Based on the embodiment of the present application, a monitoring event configuration for the main view is further provided. Before determining the three-dimensional coordinates of the center of the second field of view corresponding to the move operation based on the monitored field of view update operation for the main view in the above S302, the following steps are further included:
[0096] Configure the main view's listening event as a view update operation.
[0097] Optionally, addEventListener is called through the API class preRender built into the Cesium open source database to add a listening event for the field of view update operation in the 3D scene. The mouse is pressed and lifted. When the mouse is pressed, the update status of the field of view in the 3D scene is determined. When the mouse is lifted, the last field of view position in the 3D scene is determined, and the center position of the field of view is determined based on the field of view position.
[0098] Based on the embodiment of the present application, a method for determining the coordinates of the center of the first field of view is also provided. Figure 5 A flow chart of a method for determining the coordinates of the center of the first field of view provided in an embodiment of the present application is shown as follows: Figure 5 The above embodiment further includes:
[0099] S501: Determine whether the three-dimensional coordinates of the center of the first field of view are within a preset geographical range.
[0100] Optionally, when monitoring the movement of the center of the first field of view controlled by the mouse, the three-dimensional coordinates of the center of the first field of view are compared with the three-dimensional coordinates within a preset geographical range to determine whether the three-dimensional coordinates of the center of the first field of view are included in the three-dimensional coordinates within the preset geographical range.
[0101] S502: If the three-dimensional coordinates of the center of the first field of view are not within the preset geographical range, control the eagle-eye frame to remain within the corresponding boundary of the eagle-eye view.
[0102] Optionally, when the three-dimensional coordinates of the center of the first field of view are not included in the three-dimensional coordinates within the preset geographical range, the three-dimensional coordinates of the center of the first field of view exceed the preset geographical range and cannot be displayed according to the center of the first field of view. Then the center coordinates of the eagle-eye frame corresponding to the three-dimensional coordinates of the center of the first field of view also exceed the range of the eagle-eye view, and therefore the eagle-eye frame is controlled to remain within the boundary corresponding to the eagle-eye view.
[0103] In an embodiment of the present application, when the three-dimensional coordinates of the center of the first field of view exceed the preset geographical range, it is impossible to display the three-dimensional map outside the range. At this time, the eagle-eye frame is controlled to be within the corresponding boundary in the eagle-eye view to ensure the accuracy of the linkage between the main view and the eagle-eye frame.
[0104] Based on the embodiment of the present application, a method for determining the coordinates of the center of the second field of view is also provided. Figure 6 A flow chart of a method for determining the coordinates of the center of the second field of view provided in an embodiment of the present application is shown as follows: Figure 6 The above embodiment further includes:
[0105] S601: Determine whether the three-dimensional coordinates of the center of the second field of view are within a preset geographical range.
[0106] Optionally, when monitoring the movement of the center of the second field of view controlled by the mouse, the three-dimensional coordinates of the center of the second field of view are compared with the three-dimensional coordinates within a preset geographical range to determine whether the three-dimensional coordinates of the center of the second field of view are included in the three-dimensional coordinates within the preset geographical range.
[0107] S602: If the three-dimensional coordinates of the center of the second field of view are not within the preset geographical range, control the eagle-eye frame to remain within the corresponding boundary of the eagle-eye view.
[0108] Optionally, when the three-dimensional coordinates of the center of the second field of view are not included in the three-dimensional coordinates within the preset geographical range, the three-dimensional coordinates of the center of the second field of view exceed the preset geographical range and cannot be displayed according to the center of the second field of view. Then the center coordinates of the eagle-eye frame corresponding to the three-dimensional coordinates of the center of the second field of view also exceed the range of the eagle-eye view, and therefore the eagle-eye frame is controlled to remain within the boundary corresponding to the eagle-eye view.
[0109] In an embodiment of the present application, when the three-dimensional coordinates of the center of the second field of view exceed the preset geographical range, the three-dimensional map beyond the range cannot be displayed. At this time, the eagle-eye frame is controlled to be within the corresponding boundary in the eagle-eye view to ensure the accuracy of the linkage between the main view and the eagle-eye frame.
[0110] Based on the same inventive concept, the embodiment of the present application also provides a three-dimensional scene map display device corresponding to the three-dimensional scene map display method. Since the principle of solving the problem of the device in the embodiment of the present application is similar to the above-mentioned three-dimensional scene map display method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated. Figure 7 This is a schematic diagram of a three-dimensional scene map display device provided in an embodiment of the present application, wherein the device includes: a display module 71, a monitoring module 72, a determination module 73 and an update module 74.
[0111] A display module 71 is configured to display a three-dimensional scene map of a preset three-dimensional earth model at a preset field of view center in the main view, and to display a two-dimensional scene map of a preset geographic range in the eagle-eye view, wherein the preset field of view center is consistent with the three-dimensional coordinates corresponding to the preset center position of the eagle-eye frame in the eagle-eye view;
[0112] The first monitoring module 72 is configured to control the eagle-eye frame to move within the eagle-eye view according to the monitored drag operation on the eagle-eye frame, and obtain the center position of the eagle-eye frame after the movement as a first center position;
[0113] A first determining module 73 is configured to determine the three-dimensional coordinates of the center of the first field of view according to the first center position;
[0114] The first updating module 74 is used to update the three-dimensional scene map within the preset field of view displayed in the main view to the three-dimensional scene map within the first field of view center according to the three-dimensional coordinates of the first field of view center and the preset three-dimensional earth model.
[0115] In a possible implementation, the first determining module 73 is specifically configured to: invert the first center position from the screen coordinate system to the world coordinate system to obtain first center three-dimensional coordinates corresponding to the first center position;
[0116] Assign the first center three-dimensional coordinates to the three-dimensional coordinates of the first field of view center.
[0117] In a possible implementation, the apparatus further includes: a second monitoring module, a second determining module, and a second updating module.
[0118] A second monitoring module is configured to determine the three-dimensional coordinates of the center of the second field of view corresponding to the movement operation based on the monitored field of view update operation on the main view;
[0119] A second determining module is used to determine a second center position of the eagle eye frame according to the three-dimensional coordinates of the second field of view center;
[0120] The second updating module is used to control the eagle-eye frame to move in the eagle-eye view according to the second center position, so that the center position of the eagle-eye frame after the movement is at the second center position.
[0121] In a possible implementation, the second determining module is specifically configured to:
[0122] Assign the three-dimensional coordinates of the center of the second field of view to the three-dimensional coordinates of the second center of the eagle eye frame;
[0123] Invert the second center three-dimensional coordinates from the world coordinate system to the screen coordinate system to obtain the screen coordinates;
[0124] Assign the screen coordinates to the second center position.
[0125] In a possible implementation, the first monitoring module 72 is further configured to configure the monitoring event of the eagle-eye frame to be the drag operation.
[0126] In a possible implementation, the second monitoring module is further configured to configure the monitoring event of the main view as a field of view update operation.
[0127] In a possible implementation manner, the device further includes: a first judgment module.
[0128] The first judgment module is used to determine whether the three-dimensional coordinates of the center of the first field of view are within a preset geographical range; if the three-dimensional coordinates of the center of the first field of view are not within the preset geographical range, the eagle eye frame is controlled to remain within the corresponding boundary in the eagle eye view.
[0129] In a possible implementation manner, the device further includes: a second judgment module.
[0130] The second judgment module is used to determine whether the three-dimensional coordinates of the center of the second field of view are within a preset geographical range; if the three-dimensional coordinates of the center of the second field of view are not within the preset geographical range, the eagle eye frame is controlled to remain within the corresponding boundary in the eagle eye view.
[0131] The present application also provides a computer device, such as Figure 8 As shown, Figure 8 The computer device structure diagram provided in the embodiment of the present application includes: a processor 81, a memory 82, and optionally, a bus 83. The memory 82 stores machine-readable instructions executable by the processor 81. When the computer device is running, the processor 81 communicates with the memory 82 via the bus 83. When the machine-readable instructions are executed by the processor 61, the above-mentioned method of displaying a three-dimensional scene map is performed.
[0132] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0133] In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0134] The above is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with this technical field can easily think of changes or replacements within the technical scope disclosed in this application, which should be covered by the protection scope of the present application.
Claims
1. A three-dimensional scene map display method, characterized in that: include: Displaying a three-dimensional scene map of a preset three-dimensional earth model at a preset field of view center in the main view, and displaying a two-dimensional scene map of a preset geographic range in the eagle-eye view, wherein the preset field of view center is consistent with the three-dimensional coordinates corresponding to the preset center position of the eagle-eye frame in the eagle-eye view; According to the monitored drag operation on the eagle-eye frame, the eagle-eye frame is controlled to move within the eagle-eye view, and the center position of the eagle-eye frame after the movement is obtained as a first center position; determining the three-dimensional coordinates of the center of the first field of view according to the first center position; According to the three-dimensional coordinates of the first field of view center and the preset three-dimensional earth model, the three-dimensional scene map under the preset field of view range displayed in the main view is updated to the three-dimensional scene map under the first field of view center.
2. The method according to claim 1, characterized in that Determining the three-dimensional coordinates of the first field of view center according to the first center position includes: Inverting the first center position from the screen coordinate system to the world coordinate system to obtain first center three-dimensional coordinates corresponding to the first center position; Assign the first center three-dimensional coordinates to the three-dimensional coordinates of the first field of view center.
3. The method according to claim 1, characterized in that The method further comprises: Determining the three-dimensional coordinates of the center of the second field of view corresponding to the movement operation according to the monitored field of view update operation for the main view; determining a second center position of the eagle eye frame according to the three-dimensional coordinates of the center of the second field of view; According to the second center position, the eagle-eye frame is controlled to move within the eagle-eye view, so that the center position of the eagle-eye frame after movement is at the second center position.
4. The method according to claim 3, characterized in that Determining the second center position of the eagle-eye frame according to the three-dimensional coordinates of the second field of view center includes: Assigning the three-dimensional coordinates of the center of the second field of view to the second center three-dimensional coordinates of the eagle eye frame; Inverting the second center three-dimensional coordinates from the world coordinate system to the screen coordinate system to obtain screen coordinates; The screen coordinates are assigned to the second center position.
5. The method according to claim 1, wherein According to the monitored drag operation on the eagle-eye frame, controlling the eagle-eye frame to move within the eagle-eye view, and obtaining that the center position of the eagle-eye frame after the movement is the first center position, the method further includes: The monitoring event of the eagle-eye frame is configured as the drag operation.
6. The method according to claim 3, characterized in that Before determining the three-dimensional coordinates of the center of the second field of view corresponding to the movement operation monitored for the main view, the method further includes: The listening event of the main view is configured as the field of view update operation.
7. The method according to claim 1, characterized in that The method further comprises: determining whether the three-dimensional coordinates of the center of the first field of view are within the preset geographical range; If the three-dimensional coordinates of the center of the first field of view are not within the preset geographical range, the eagle-eye frame is controlled to remain within the corresponding boundary in the eagle-eye view.
8. The method according to claim 3, characterized in that The method further comprises: determining whether the three-dimensional coordinates of the center of the second field of view are within the preset geographical range; If the three-dimensional coordinates of the center of the second field of view are not within the preset geographical range, the eagle-eye frame is controlled to remain within the corresponding boundary of the eagle-eye view.
9. A three-dimensional scene map display device, characterized in that: include: A display module is configured to display a three-dimensional scene map of a preset three-dimensional earth model at a preset field of view center in the main view, and to display a two-dimensional scene map of a preset geographic range in the eagle-eye view, wherein the preset field of view center is consistent with the three-dimensional coordinates corresponding to the preset center position of the eagle-eye frame in the eagle-eye view; a monitoring module, configured to control the eagle-eye frame to move within the eagle-eye view according to a monitored drag operation on the eagle-eye frame, so that the center position of the eagle-eye frame after the movement is obtained as a first center position; a determination module, configured to determine the three-dimensional coordinates of the center of the first field of view according to the first center position; An updating module is used to update the three-dimensional scene map under the preset field of view displayed in the main view to the three-dimensional scene map under the first field of view center according to the three-dimensional coordinates of the first field of view center and the preset three-dimensional earth model.
10. A computer device, characterized in that: include: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor executes the machine-readable instructions to perform the steps of the three-dimensional scene map display method as described in any one of claims 1 to 7.
