Map display method and apparatus, electronic device, and storage medium

By adjusting the opacity of models at different distances in the 3D map, the problems of tall buildings obstructing the view and poor visual quality of distant dense tall buildings were solved, thus improving the display effect and user experience of the 3D map.

WO2025214029A1PCT designated stage Publication Date: 2025-10-16TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/081590
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-04-09
Filing Date
2025-03-10
Publication Date
2025-10-16

AI Technical Summary

Technical Problem

Existing 3D map display methods suffer from problems such as tall buildings obscuring the user's virtual observation point and poor visual experience due to densely packed tall buildings in the distance, resulting in unsatisfactory display effects.

Method used

By modifying the opacity of the first and second models and operating according to the changes in the position of the virtual observation point, the 3D map is redrawn, so that the opacity of the first model image is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance, thus achieving a visual effect of gradual appearance and disappearance.

Benefits of technology

The image quality of the 3D map has been improved, the problem of nearby tall buildings obstructing the view has been reduced, the dense view of distant tall buildings has been optimized, and the user experience has been enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025081590_16102025_PF_FP_ABST
    Figure CN2025081590_16102025_PF_FP_ABST
Patent Text Reader

Abstract

A map display method, executed by an electronic device. The method comprises: displaying a three-dimensional map view of a three-dimensional map observed at a virtual viewpoint, the three-dimensional map comprising a three-dimensional landscape model, the landscape model comprising a first model at a first distance from the virtual viewpoint and a second model at a second distance from the virtual viewpoint, the first distance being in a first range, the second distance being in a second range, the maximum value of the first range being smaller than the minimum value of the second range, and the three-dimensional map view comprising a first model image of the first model and a second model image of the second model (310); and in response to a position change operation of the virtual viewpoint, redrawing a three-dimensional map view by modifying the opacity of the first model and the opacity of the second model, such that the opacity of the first model image in the redrawn three-dimensional map view is positively correlated with the first distance, and the opacity of the second model image therein is negatively correlated with the second distance (320).
Need to check novelty before this filing date? Find Prior Art

Description

Map display method and device, electronic device and storage medium

[0001] Related applications

[0002] The present application claims priority to the Chinese patent application No. 202410424332.6, filed on April 9, 2024, and entitled "Map display method and device, electronic device and storage medium", the contents of which are hereby incorporated by reference in its entirety. TECHNICAL FIELD

[0003] The present application relates to the field of computers, in particular to a map display method and device, electronic device and storage medium. BACKGROUND

[0004] Three-dimensional map technology is a technology that uses geographic information systems (GIS), computer graphics, and map-making techniques to present geographical features on the ground in a three-dimensional form. It usually uses satellite remote sensing data to load various landscape models such as buildings, trees, and vehicles into the terrain, and combines rendering, texture, and other techniques in computer graphics to generate realistic three-dimensional maps. Three-dimensional map technology can be used in traffic navigation, urban planning, resource management, and other application fields.

[0005] However, the current three-dimensional map display method is relatively single, and users observe the landscape in the map by dragging and zooming the three-dimensional map. As the virtual observation point moves, problems such as poor display effect caused by too many high-rise buildings, such as high-rise buildings blocking the user's virtual observation point, and poor observation of dense high-rise buildings in the distance, often occur. SUMMARY

[0006] The present application provides a map display method and device, electronic device and storage medium.

[0007] In a first aspect, the present application provides a map display method, executed by an electronic device, comprising:

[0008] displaying a three-dimensional map picture of a three-dimensional map observed at a virtual observation point, wherein the three-dimensional map contains a three-dimensional landscape model, the landscape model includes a first model at a first distance from the virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, and the three-dimensional map picture contains a first model image of the first model and a second model image of the second model; and

[0009] In response to a position change operation of the virtual observation point, the three-dimensional map picture is redrawn by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

[0010] In a second aspect, the present application further provides a map display device, comprising:

[0011] a display unit configured to display a three-dimensional map picture observed by a virtual observation point on a three-dimensional map, wherein the three-dimensional map comprises a three-dimensional landscape model, the landscape model comprises a first model at a first distance from the virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, and the three-dimensional map picture comprises a first model image of the first model and a second model image of the second model; and

[0012] a redrawing unit configured to redraw the three-dimensional map picture by modifying the opacity of the first model and the second model in response to a position change operation of the virtual observation point, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

[0013] In a third aspect, the present application further provides an electronic device, comprising a memory storing a plurality of instructions; and a processor configured to load the instructions from the memory to perform the steps of any one of the map display methods provided by the embodiments of the present application.

[0014] In a fourth aspect, the present application further provides a computer readable storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor to perform the steps of any one of the map display methods provided by the embodiments of the present application.

[0015] In a fifth aspect, the present application further provides a computer program product comprising computer instructions, the computer instructions being executed by a processor to implement the steps of any one of the map display methods provided by the embodiments of the present application.

[0016] The details of one or more embodiments of the present application are set forth in the accompanying drawings and the description below. Other features, objects, and advantages of the present application will be apparent from the description, drawings, and claims. BRIEF DESCRIPTION OF DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort based on the disclosed drawings.

[0018] FIG. 1 is an effect schematic diagram of a map display method provided by an embodiment of the present application;

[0019] FIG. 2 is an effect schematic diagram of a map display method provided by an embodiment of the present application;

[0020] FIG. 3 is a flow schematic diagram of a map display method provided by an embodiment of the present application;

[0021] FIG. 4 is an interval schematic diagram of a map display method provided by an embodiment of the present application;

[0022] FIG. 5 is a drawing flow schematic diagram of a map display method provided by an embodiment of the present application;

[0023] FIG. 6 is a thread interaction step schematic diagram of a rendering of a map display method provided by an embodiment of the present application;

[0024] FIG. 7 is a structure schematic diagram of a map display device provided by an embodiment of the present application;

[0025] FIG. 8 is a structure schematic diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0026] The technical solutions of the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present application.

[0027] The present application provides a map display method, device, electronic device and storage medium.

[0028] The map display device can be integrated in an electronic device, which can be a terminal, a server, etc. The terminal can be a mobile phone, a vehicle-mounted terminal, a smart home appliance, a smart voice interaction device, a tablet computer, a smart Bluetooth device, a notebook computer, or a personal computer (PC), etc. The server can be a single server or a server cluster composed of multiple servers.

[0029] In some embodiments, the map display device can also be integrated in multiple electronic devices, for example, the map display device can be integrated in multiple servers, and the servers can implement the map display method of the present application.

[0030] In some embodiments, the server can also be implemented in the form of a terminal.

[0031] For example, the electronic device can be a terminal, and the terminal can display a three-dimensional map picture of a three-dimensional map observed from a virtual observation point, wherein the three-dimensional map contains a stereoscopic landscape model, the landscape model includes a first model at a first distance from the virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, the three-dimensional map picture contains a first model image of the first model and a second model image of the second model; in response to a position change operation of the virtual observation point, the three-dimensional map picture is redrawn by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

[0032] For example, the electronic device can be a mobile phone, and the mobile phone can be equipped with a map client, referring to FIG. 1, the map client can display a three-dimensional map picture, the three-dimensional map picture includes a picture of a three-dimensional map observed from a virtual observation point, and the three-dimensional map includes a building presented in a stereoscopic form; in response to a virtual observation point zoom-in operation of the virtual observation point, a first model in the building will change from solid to transparent until transparent; referring to FIG. 2, in response to a virtual observation point zoom-in operation of the virtual observation point, a second model in the building will gradually change from transparent to solid.

[0033] The following will be described in detail respectively. It should be noted that the serial numbers of the following embodiments do not limit the preferred order of the embodiments.

[0034] Intelligent Traffic System (ITS) is also known as Intelligent Transportation System, which is a comprehensive transportation system that ensures safety, improves efficiency, improves environment and saves energy by effectively integrating advanced science and technology (information technology, computer technology, data communication technology, sensor technology, electronic control technology, automatic control theory, operations research, artificial intelligence, etc.) in transportation, service control and vehicle manufacturing, and strengthening the connection between vehicles, roads and users.

[0035] The electronic map is an important part of the intelligent transportation system, is a map in digital form, which stores and processes geographic information in the form of electronic data, and can be displayed and used on computers, smart phones, tablets and other devices. The electronic map provides convenient and fast geographic information display and application services for users through digitalization, interactivity and real-time features, and is widely used in navigation, tourism, geographic information analysis and other fields.

[0036] In the embodiment, a map display method related to an electronic map is provided, as shown in FIG. 3, and the specific process of the map display method can be as follows:

[0037] 310, display a three-dimensional map picture of observing a three-dimensional map at a virtual observation point, wherein the three-dimensional map contains a three-dimensional landscape model, the landscape model includes a first model at a first distance from the virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, and the three-dimensional map picture contains a first model image of the first model and a second model image of the second model.

[0038] The virtual perspective refers to a virtual perspective simulated by computer technology, so that users can observe and interact in a virtual environment. In some embodiments, users can control the virtual perspective to freely observe the three-dimensional map through operations such as moving, zooming out, zooming in, rotating, etc. The virtual observation point is the position of the virtual perspective, which can be represented as a point in the three-dimensional map.

[0039] The first interval (First Interval) refers to a distance range interval, the distance value in the interval corresponds to the first model defined as the landscape model, and the maximum value of the interval is less than the minimum value of the second interval. The specific value of the interval can be determined by the actual application scenario, for example, in some embodiments, the first interval can be 0-A meters, or 0-15 meters, etc.

[0040] The second interval (Second Interval) refers to a distance range interval, the distance value in the interval corresponds to the second model defined as the landscape model, and the minimum value of the interval is greater than the maximum value of the first interval. The specific value of the interval can be determined by the actual application scenario, for example, in some embodiments, the second interval can be B-infinity, or 200-400 meters, etc.

[0041] The landscape model can include a model of a landscape on the ground, such as a building model, a vegetation model, a vehicle model, a traffic sign model, and the like. In some embodiments, in addition to the landscape model described above, the three-dimensional map can also include a ground model, which can include a road network model, a water body model, a terrain feature model, and the like, a model of an object on the ground surface, such as a park, a square, and the like, a region model.

[0042] In some embodiments, in order to reduce the consumption of computing resources and ensure the smoothness of the display, only the models near the virtual observation point can be loaded, reducing the computing and network transmission burden of the system, while ensuring that the user always sees the nearby scenery, so step 310 includes the following steps: obtaining candidate models and determining the positions of the candidate models in the three-dimensional map; determining the candidate models whose positions are within the loading range of the virtual observation point as the landscape models; loading the landscape models in the three-dimensional map; rendering the three-dimensional map to obtain and display the three-dimensional map picture.

[0043] The candidate models and their positions can be obtained from a database or memory.

[0044] The loading range can be set according to requirements. In some embodiments, the candidate models can be determined by Frustum Culling technology, dynamic loading technology, Level of Detail (LOD) technology, preloading technology, Occlusion Culling, and the like.

[0045] Frustum Culling is an optimization technique that calculates the frustum of the virtual observation point, removes the models outside the frustum, and only loads the models inside the frustum. In this way, only the models near the area being observed by the user are loaded, thereby improving rendering efficiency.

[0046] Dynamic Loading Technology is a technology that dynamically loads the models near the virtual observation point when the virtual observation point is moved or changed. By detecting the movement and changes in the virtual observation point, the system can load or unload the models near the virtual observation point in real time to keep the user always seeing the latest scenery and avoid loading unnecessary models.

[0047] Among them, the level of detail technique reduces rendering load by using different levels of models at different distances. For example, areas near the virtual observation point can load high-resolution models, while areas far from the virtual observation point can load low-resolution models to maintain a balance between performance and quality.

[0048] Pre-loading technology refers to a technology that pre-loads models near the virtual observation point before the user moves. By pre-loading, user waiting time can be reduced and user experience can be improved. Pre-loading can load models that may be needed in advance according to the user's current location and movement direction.

[0049] Among them, the occlusion culling technique determines which objects are not visible during rendering according to the occlusion relationship between objects, and directly culls the models that are not visible.

[0050] Through the above optimization strategies, the performance and user experience of the three-dimensional map can be effectively improved, so that the user can smoothly browse and interact in the virtual environment.

[0051] 320、In response to the position change operation of the virtual observation point, the three-dimensional map picture is redrawn by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

[0052] Position change operation refers to an operation for changing the position of the virtual observation point in the three-dimensional map, mainly including zooming in and zooming out. When the position change operation occurs, the three-dimensional map picture needs to be redrawn by modifying the opacity of the first model and the second model.

[0053] In some embodiments, in order to further reduce the consumption of computing resources and improve smoothness, all first models and second models in the picture can be controlled to play a preset transparency change animation at the same time. For example, all first models in the picture can load and play a preset first transparency change animation at the same time, and all second models in the picture can load and play a second transparency change animation at the same time. The specific animation parameters can be set according to requirements.

[0054] Transparency change animation refers to an animation for controlling the change of the opacity of the landscape model. By loading and playing the animation, the opacity of the landscape model can be changed according to a preset rule.

[0055] The first transparency change animation refers to a preset animation for controlling the change of the first model's opacity, for example, the opacity can be linearly changed from 1 to 0 within a preset time. The second transparency change animation refers to a preset animation for controlling the change of the second model's opacity, for example, the opacity can be linearly changed from 0 to 1 within a preset time.

[0056] Wherein, the opacity of 1 means complete opacity, and the opacity of 0 means complete transparency.

[0057] In some embodiments, in order to make the visual effect more accurate and detailed, the opacity of each first model and each second model can also be fine-tuned according to the distance between the virtual observation point and each first model and each second model in the control picture.

[0058] For example, referring to FIG. 4, step 320 can make the opacity of the first model positively related to the first distance d1, and the opacity of the second model negatively related to the second distance d2. That is, for the first model, the smaller the first distance d1 is, the more transparent the first model is; for the second model, the greater the second distance d2 is, the more transparent the second model is.

[0059] In some embodiments, the distance can refer to the straight-line distance, which means the shortest distance between two points; in some embodiments, the distance can refer to the horizontal distance, which means the component of the straight-line distance along the horizontal plane.

[0060] For example, the distance can refer to the horizontal distance, the landscape model includes a first model at a first distance from the virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, and the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, the first distance d1 is the distance between the first model and the virtual observation point, and the second distance d2 is the distance between the second model and the virtual observation point.

[0061] Wherein, the complement between the first interval and the second interval can be denoted as the intermediate interval, and the landscape model located in the intermediate interval can be denoted as the intermediate model. In some embodiments, the opacity of the intermediate model can be 1.

[0062] In some embodiments, the numerical values of the first interval and the second interval can be determined by the actual application scenario. For example, in some embodiments, the minimum value of the first interval can be 0, and the maximum value of the second interval can be infinity; for example, in some embodiments, the first interval is 0- A meters, the intermediate interval is A-B meters, and the second interval is B-infinity.

[0063] In some embodiments, there can also be a third interval, the Third Interval refers to a distance range interval in which the minimum value is greater than the maximum value of the second interval. For example, in some embodiments, the first interval is 0-A meters, the middle interval is A-B meters, the second interval is B-C meters, and the third interval is C-infinity.

[0064] In some embodiments, the landscape model located in the third interval can be denoted as a third model, and in some embodiments, the opacity of the third model can be 0; in some embodiments, in order to further reduce the consumption of computing resources, no landscape model can be loaded in the third interval of the three-dimensional map.

[0065] In some embodiments, the transparency of the landscape model can be controlled by adding a transparency channel in the texture of the landscape model, so as to control the transparency of the landscape model by adjusting the texture parameters of the model.

[0066] For example, the landscape model can use a texture in RGBA format, where the A channel represents the transparency, and the value of the transparency channel is controlled according to the horizontal distance between the landscape model and the virtual observation point. After adjustment, the three-dimensional map picture is redrawn based on the adjusted texture of the landscape model. The texture in RGBA format is a color coding method for representing image or model texture, where R represents red (Red), G represents green (Green), and B represents blue (Blue). These three channels together determine the basic color tone of the color; A represents the transparency (Alpha) channel, which is used to control the transparency of the texture part. In this application, the landscape model can use the texture in RGBA format, and the transparency of the landscape model is controlled by adjusting the value of the A channel.

[0067] Therefore, in some embodiments, before redrawing the three-dimensional map picture by modifying the opacity of the first model and the second model, the method can further include: determining the distance between the landscape model and the virtual observation point; determining the landscape model whose distance is in the first interval as the first model; and determining the landscape model whose distance is in the second interval as the second model.

[0068] In some embodiments, the position change operation can include a zoom-in operation, and in response to the position change operation of the virtual observation point, the three-dimensional map picture is redrawn by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance. It can include the following steps: in response to the zoom-in operation of the virtual observation point, increasing the opacity of the second model and decreasing the opacity of the first model; and redrawing the three-dimensional map picture based on the opacity of the first model and the second model.

[0069] For example, in response to the zoom-in operation of the virtual observation point, the opacity of the second model is increased by playing a preset opacity animation, and the opacity of the first model is decreased.

[0070] For example, in response to the zoom-in operation of the virtual observation point, the opacity of the first model is decreased by calculating the decrease amount by the first distance, and the opacity of the second model is increased by calculating the increase amount by the second distance.

[0071] Similarly, in some embodiments, the position change operation can include a zoom-out operation, and in response to the position change operation of the virtual observation point, the three-dimensional map picture is redrawn by modifying the opacities of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance. It can include the following steps: in response to the zoom-out operation of the virtual observation point, the opacity of the second model is decreased, and the opacity of the first model is increased; based on the opacities of the first model and the second model, the three-dimensional map picture is redrawn.

[0072] For example, in response to the zoom-out operation of the virtual observation point, the opacity of the second model is decreased by playing a preset opacity animation, and the opacity of the first model is increased.

[0073] For example, in response to the zoom-out operation of the virtual observation point, the opacity of the first model is increased by calculating the increase amount by the first distance, and the opacity of the second model is decreased by calculating the decrease amount by the second distance.

[0074] When the opacities of the models are fine-tuned by the first distance and the second distance, in some embodiments, when the first distance is equal to the minimum value of the first interval, the opacity of the first model is set to 0; when the first distance is equal to the maximum value of the first interval, the opacity of the first model is set to 1; in some embodiments, when the second distance is equal to the minimum value of the second interval, the opacity of the second model is set to 1; when the second distance is equal to the maximum value of the second interval, the opacity of the second model is set to 0. When the opacity has been 0, the opacity will not be decreased any more, and when the opacity has been 1, the opacity will not be increased any more.

[0075] In some embodiments, the three-dimensional map can further include a ground model. In order to improve the drawing efficiency while ensuring that the occlusion relationship between the landscape models is correct, the three-dimensional map picture is redrawn by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance. This can include the following steps: drawing the ground model; after the ground model is drawn, determining the drawing order of the landscape models based on the depth information of the landscape models; and drawing the landscape models according to the drawing order.

[0076] The depth information determines which elements in the image are in the foreground and which are in the background, thereby generating an image with depth. In some embodiments, a depth buffer (Depth Buffer) or Z buffer (Z-buffer) can be used to store the depth information of each pixel of the landscape model. Before pixel shading, depth testing can be performed based on the depth information to determine which pixels should be drawn in the foreground and which should be occluded. Depth testing (Depth Testing) is a test operation that determines which pixels should be drawn in the foreground and which should be occluded based on the depth information of each pixel of the landscape model stored in the depth buffer (Depth Buffer) or Z buffer (Z-buffer) before pixel shading.

[0077] In some embodiments, in order to further improve the drawing efficiency and reduce the consumption of computing resources, the first model, the second model and other landscape models can be drawn in batches. Therefore, drawing the landscape models according to the drawing order can include the following steps: drawing the second model according to the drawing order of the second model; after the second model is drawn, drawing other models according to the drawing order of the other models, the other models being other landscape models except the first model and the second model; and after the other models are drawn, drawing the first model according to the drawing order of the first model.

[0078] In some embodiments, in order to further optimize the rendering process and reduce the consumption of computing resources, the to-be-drawn models can be determined in the landscape models by using the view frustum culling technique, the dynamic loading technique, the level of detail technique and the preloading technique, and the landscape models that do not affect the display effect can be removed. Therefore, determining the drawing order of the landscape models based on the depth information of the landscape models can include the following steps: determining the to-be-drawn models in the landscape models based on a preset screening rule; and determining the drawing order of the to-be-drawn models based on the depth information of the to-be-drawn models. Drawing the landscape models according to the drawing order can include the following steps: drawing the to-be-drawn models according to the drawing order.

[0079] The screening rule is a rule for determining the models to be drawn in the landscape model, which can be determined by using a view frustum culling technique, an occlusion culling technique, etc. The models to be drawn refer to the models determined from the landscape model according to the preset screening rule and needed to be drawn, such as the landscape models within the field of view of the virtual observation point or the landscape models not occluded according to the occlusion relationship.

[0080] For example, in some embodiments, the determination of the models to be drawn in the landscape model based on the preset screening rule by using the view frustum culling technique can include the following steps: determining the models to be drawn in the landscape model, the models to be drawn being the landscape models within the field of view of the virtual observation point; and determining the drawing order of the models to be drawn based on the depth information of the models to be drawn.

[0081] For example, in some embodiments, the determination of the models to be drawn in the landscape model based on the preset screening rule by using the occlusion culling technique can include the following steps: determining the occlusion relationship between the models to be drawn based on the depth information of the landscape model; and screening the models to be drawn from the landscape model based on the occlusion relationship.

[0082] As can be seen from the above, the embodiments of the present application can display a three-dimensional map picture of a three-dimensional map observed from a virtual observation point, wherein the three-dimensional map contains a three-dimensional landscape model, the landscape model includes a first model at a first distance from the virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, the three-dimensional map picture contains a first model image of the first model and a second model image of the second model; in response to a position change operation of the virtual observation point, the three-dimensional map picture is redrawn by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance, so that the opacity of the first model is positively correlated with the first distance, and the opacity of the second model is negatively correlated with the second distance. In the map picture proposed in the embodiments of the present application, for the landscape located in the near place, i.e. the first model, the closer it is to the virtual observation point, the more transparent it is, and the farther it is from the virtual observation point, the more obvious it is; for the landscape located in the far place, i.e. the second model, the closer it is to the virtual observation point, the more obvious it is, and the farther it is from the virtual observation point, the more transparent it is. Therefore, the closer high-rise buildings have lower opacity, so they do not occlude the user's observation of other buildings; the high-rise buildings in the far place have higher opacity, which can weaken the observation of the over-dense high-rise buildings in the far place. Thus, the present solution can improve the image effect of the displayed three-dimensional map picture.

[0083] The method described in the above embodiments will be further described in detail below.

[0084] First, a disappearance animation is preset, which can gradually reduce the opacity from 1 to 0 in 1 second; an appearance animation is preset, which can gradually increase the opacity from 0 to 1 in 1 second.

[0085] The appearance animation is a preset animation that can gradually increase the opacity from 0 to 1 in a certain time, and is used to realize the visual effect of the landscape model from virtual to real until completely appearing. The disappearance animation is a preset animation that can gradually reduce the opacity from 1 to 0 in a certain time, and is used to realize the visual effect of the landscape model from real to virtual until disappearing.

[0086] Referring to FIG. 1, when the observation point is zoomed in, the buildings near the observation point are loaded and play the disappearance animation, thereby realizing the visual effect of from real to virtual until disappearing, and the buildings far from the observation point are loaded and play the appearance animation, thereby realizing the visual effect of from virtual to real until completely appearing; when the observation point is zoomed out, the buildings near the observation point are loaded and play the appearance animation, thereby realizing the visual effect of from virtual to real until completely appearing, and the buildings far from the observation point are loaded and play the disappearance animation, thereby realizing the visual effect of from real to virtual until disappearing.

[0087] It should be noted that the value of the opacity of the animation can be set arbitrarily according to actual needs.

[0088] In this embodiment, the method of the present application will be described in detail by taking the scheme of playing a transparent animation by a model of a building as an example.

[0089] As shown in FIG. 5, a specific process of a map display method is as follows:

[0090] 201, configure an animation.

[0091] 1. Analyze an animation area. The animation area can include a first area and a second area, the first area is an area within a first interval from a virtual observation point, and the second area is an area within a second interval from the virtual observation point. The animation area refers to an area within a certain interval from the virtual observation point, and the landscape model in the area will be configured and played with an animation.

[0092] The first area (First Area) is a part of the animation area, and is an area within a first interval from the virtual observation point. The landscape model in the area is determined as a first model, and the appearance and disappearance animations corresponding to the first model are loaded. The second area (Second Area) is a part of the animation area, and is an area within a second interval from the virtual observation point. The landscape model in the area is determined as a second model, and the appearance and disappearance animations corresponding to the second model are loaded.

[0093] In some embodiments, the first interval can be 0-15 meters, and the second interval can be 200-400 meters.

[0094] 2. Verify the first area and the second area.

[0095] 202. Render the image.

[0096] 1. The rendering thread clips the building tiles that need to be displayed.

[0097] Tile refers to a small element used to build a model.

[0098] In some embodiments, the rendering thread can determine the field of view of the virtual observation point according to the position, direction and parameters of the virtual observation point; determine the building tiles located in the field of view of the virtual observation point; in some embodiments, the building tiles that are not visible can also be clipped to reduce unnecessary rendering operations.

[0099] When loading a building, Building Tile (building tile), Building Object (building object) can be loaded, and in addition, Map Model (map model) of a three-dimensional map can also be loaded.

[0100] Building Tile (Building Tile) is a kind of tile, which is a small element used to build a building model and is loaded when loading a building. Building Object (Building Object) refers to a model object representing a building, which is loaded when loading a building, and the resource thread determines the building model that can be drawn in it according to the LOD technology. Map Model (Map Model) refers to the model of a three-dimensional map.

[0101] 2. Determine whether the building is animated. If so, the building loads the animation.

[0102] In which the landscape model within the first interval is determined as a first model, and the landscape model within the second interval is determined as a second model; for the first model, the appearance and disappearance animations corresponding to the first model can be loaded, and for the second model, the appearance and disappearance animations corresponding to the second model can be loaded.

[0103] 3. In response to the position change operation of the virtual observation point, playing the animation.

[0104] For example, in response to the zoom-in operation, the first model plays a disappearing animation and the second model plays an appearing animation.

[0105] For example, in response to the zoom-out operation, the second model plays a disappearing animation and the first model plays an appearing animation.

[0106] Referring to FIG. 6, FIG. 6 is a thread interaction step of rendering, in which a Building Manager can manage and configure model parameters of a building, and a Building Object is a building model. The Building Manager can manage and configure model parameters of a building and play a role in the thread interaction process of rendering.

[0107] The resource thread is used to determine, according to the LOD technology, a building model that can be drawn in the Building Object, load the building model into a three-dimensional map, determine an animation area based on the LOD technology, and configure animation for the building in the animation area; in response to a position change operation of the virtual observation point, update the screen to play the animation.

[0108] The rendering thread is used to render the building, including rendering textures of the building, such as transparency.

[0109] The embodiment can solve the problem of high building visual obstruction and the problem of large performance consumption of a large number of distant buildings. In addition, the animation effect of gradual appearance and disappearance standardizes the way of appearance and disappearance of the buildings, reasonably reduces the coverage area of the distant buildings, thereby reducing performance consumption and weakening the problem of visual obstruction of the nearby high buildings.

[0110] As can be seen from the above, the embodiment of the application can improve the image effect of the displayed three-dimensional map screen.

[0111] It can be understood that in the specific embodiments of the application, related data such as terrain data and navigation data are involved, and when the following embodiments of the application are applied to specific products or technologies, permission or consent is required, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0112] In order to better implement the above method, the embodiment of the application further provides a map display device, which can be integrated in an electronic device. The electronic device can be a terminal, a server, etc. The terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, a personal computer, etc. The server can be a single server or a server cluster composed of multiple servers.

[0113] For example, in the embodiment, the map display device is integrated in the terminal, and the method of the embodiment is described in detail.

[0114] For example, as shown in FIG. 7, the map display device can include a display unit 701 and a redrawing unit 702, as follows:

[0115] The display unit 701 is configured to display a three-dimensional map picture.

[0116] The three-dimensional map includes a stereoscopic landscape model, the landscape model includes a first model at a first distance from a virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, a maximum value of the first interval is less than a minimum value of the second interval, and the three-dimensional map picture includes a first model image of the first model and a second model image of the second model.

[0117] In some embodiments, the display unit 701 is specifically configured to: acquire candidate models and determine positions of the candidate models in the three-dimensional map; determine the candidate models whose positions are within a loading range of the virtual observation point as the landscape model; load the landscape model in the three-dimensional map; draw the three-dimensional map to obtain and display the three-dimensional map picture.

[0118] The redrawing unit 702 is configured to redraw the three-dimensional map picture by modifying the opacity of the first model and the second model in response to a position change operation of the virtual observation point, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

[0119] In some embodiments, before redrawing the three-dimensional map picture by modifying the opacity of the first model and the second model, the redrawing unit 702 is further configured to: determine distances between the landscape model and the virtual observation point; determine the landscape model whose distance is within the first interval as the first model; and determine the landscape model whose distance is within the second interval as the second model.

[0120] In some embodiments, the position change operation includes a zoom-in operation, and the redrawing unit 702 is specifically configured to: in response to the zoom-in operation of the virtual observation point, increase the opacity of the second model and decrease the opacity of the first model; and redraw the three-dimensional map picture based on the opacity of the first model and the second model.

[0121] In some embodiments, the position change operation comprises a zoom-out operation, and the redrawing unit 702 is specifically configured to: in response to the zoom-out operation of the virtual observation point, lower the opacity of the second model and raise the opacity of the first model; and redraw the three-dimensional map picture based on the opacities of the first model and the second model.

[0122] In some embodiments, when the first distance is equal to the minimum value of the first interval, the opacity of the first model is set to 0; and when the first distance is equal to the maximum value of the first interval, the opacity of the first model is set to 1.

[0123] In some embodiments, when the second distance is equal to the minimum value of the second interval, the opacity of the second model is set to 1; and when the second distance is equal to the maximum value of the second interval, the opacity of the second model is set to 0.

[0124] In some embodiments, the three-dimensional map further comprises a ground model, and the redrawing unit 702 is specifically configured to: draw the ground model; after the drawing of the ground model is completed, determine a drawing order of the landscape models based on the depth information of the landscape models; and draw the landscape models according to the drawing order.

[0125] In some embodiments, the drawing of the landscape models according to the drawing order comprises: drawing the second model according to the drawing order of the second model; after the drawing of the second model is completed, drawing other models according to the drawing order of the other models, the other models being landscape models other than the first model and the second model; and after the drawing of the other models is completed, drawing the first model according to the drawing order of the first model.

[0126] In some embodiments, the determination of the drawing order of the landscape models based on the depth information of the landscape models comprises: determining a to-be-drawn model in the landscape models based on a preset screening rule; and determining a drawing order of the to-be-drawn model based on the depth information of the to-be-drawn model; and the drawing of the landscape models according to the drawing order comprises: drawing the to-be-drawn model according to the drawing order.

[0127] In some embodiments, the determination of the to-be-drawn model in the landscape models based on the preset screening rule comprises: determining the to-be-drawn model in the landscape models, the to-be-drawn model being a landscape model within a field of view of the virtual observation point; and the determination of the drawing order of the to-be-drawn model based on the depth information of the to-be-drawn model.

[0128] In some embodiments, the determination of the to-be-drawn model in the landscape models based on the preset screening rule comprises: determining an occlusion relationship between the to-be-drawn models based on the depth information of the landscape models; and screening the to-be-drawn models from the landscape models based on the occlusion relationship.

[0129] In practice, the above various units can be implemented as independent entities, or combined as the same or several entities, and the specific implementation of the above various units can refer to the method embodiments above, which will not be described here.

[0130] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined target, and can be implemented entirely or partially by using software, hardware (such as a processing circuit or a memory) or a combination thereof. Similarly, one processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be a part of an overall module or unit that includes the functions of the module or unit.

[0131] As can be seen from the above, the map display device in the embodiment displays a three-dimensional map picture of a three-dimensional map observed at a virtual observation point by a display unit, wherein the three-dimensional map contains a three-dimensional landscape model, the landscape model includes a first model at a first distance from the virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, and the three-dimensional map picture contains a first model image of the first model and a second model image of the second model; the three-dimensional map picture is redrawn by modifying the opacity of the first model and the second model in response to a position change operation of the virtual observation point by a redrawing unit, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

[0132] Therefore, the embodiments of the present application can improve the map display effect.

[0133] The embodiments of the present application also provide an electronic device, which can be a terminal, a server, etc. Wherein, the terminal can be a mobile phone, a tablet computer, a smart Bluetooth device, a notebook computer, a personal computer, etc.; the server can be a single server, or a server cluster composed of multiple servers, etc.

[0134] In some embodiments, the map display device can also be integrated in multiple electronic devices, for example, the map display device can be integrated in multiple servers, and the multiple servers can implement the map display method of the present application.

[0135] In the present embodiment, the electronic device of the present embodiment will be taken as an example to be described in detail, for example, as shown in FIG. 8, which shows a structural schematic diagram of an electronic device related to the embodiments of the present application, specifically:

[0136] The electronic device can include a processor 801 having one or more processing cores, a memory 802 having one or more computer-readable storage media, a power supply 803, an input module 804, and a communication module 805, etc. Those skilled in the art can understand that the electronic device structure shown in FIG. 8 does not constitute a limitation on the electronic device, and can include more or fewer components than shown, or combine certain components, or different component arrangements. Among them:

[0137] The processor 801 is the control center of the electronic device, connects various parts of the entire electronic device through various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 802, and calling data stored in the memory 802. In some embodiments, the processor 801 can include one or more processing cores; in some embodiments, the processor 801 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application program, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 801.

[0138] The memory 802 can be used to store software programs and modules, and the processor 801 executes various function applications and data processing by running the software programs and modules stored in the memory 802. The memory 802 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), etc.; the data storage area can store data created according to the use of the electronic device, etc. In addition, the memory 802 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 802 can also include a memory controller to provide access for the processor 801 to the memory 802.

[0139] The electronic device also includes a power supply 803 for powering various components, and in some embodiments, the power supply 803 can be logically connected to the processor 801 through a power management system, so as to realize functions such as charging, discharging, and power consumption management through the power management system. The power supply 803 can also include one or more direct or alternating current power supplies, recharging systems, power supply fault detection circuits, power supply converters or inverters, power supply status indicators, etc. any components.

[0140] The electronic device can also include an input module 804 that can be used to receive input digital or character information, and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0141] The electronic device can also include a communication module 805, which in some embodiments can include a wireless module, through which the electronic device can perform short-range wireless transmission, thereby providing the user with wireless broadband Internet access. For example, the communication module 805 can be used to help the user send and receive emails, browse web pages, and access streaming media, etc.

[0142] Although not shown, the electronic device can also include a display unit, etc., which will not be described here. In particular, in the present embodiment, the processor 801 in the electronic device will load the executable file corresponding to the process of one or more application programs into the memory 802 according to the following instructions, and run the application program stored in the memory 802 by the processor 801, thereby realizing various functions, such as: displaying a three-dimensional map picture of a three-dimensional map observed at a virtual observation point, wherein the three-dimensional map contains a stereoscopic landscape model, the landscape model includes a first model at a first distance from the virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, and the three-dimensional map picture contains a first model image of the first model and a second model image of the second model; in response to a position change operation of the virtual observation point, the three-dimensional map picture is redrawn by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

[0143] The specific implementation of each of the above operations can refer to the previous embodiments, which will not be described here.

[0144] As can be seen from the above, the embodiments of the present application can improve the map display effect.

[0145] Those of ordinary skill in the art can understand that all or part of the steps of various methods in the above embodiments can be completed by using instructions, or by using instructions to control relevant hardware, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0146] To this end, an embodiment of the present application provides a computer readable storage medium, which stores a plurality of instructions. The instructions can be loaded by a processor to perform steps of any of the map display methods provided by the embodiments of the present application. For example, the instructions can perform the following steps: displaying a three-dimensional map picture of a three-dimensional map observed from a virtual observation point, wherein the three-dimensional map contains a three-dimensional landscape model, the landscape model includes a first model at a first distance from the virtual observation point and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, the three-dimensional map picture contains a first model image of the first model and a second model image of the second model; in response to a position change operation of the virtual observation point, redrawing the three-dimensional map picture by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

[0147] The storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0148] According to an aspect of the present application, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of an electronic device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the electronic device to perform the methods provided in the various optional implementations of the map display aspects provided in the above embodiments.

[0149] Since the instructions stored in the storage medium can perform the steps of any of the map display methods provided by the embodiments of the present application, the beneficial effects of any of the map display methods provided by the embodiments of the present application can be achieved. Details are described in the above embodiments, and will not be described here.

[0150] The map display method, device, electronic device, storage medium and computer program product provided by the application first display a picture of a three-dimensional map observed from a virtual observation point, the three-dimensional map has a three-dimensional landscape model, which includes a first model and a second model at different interval distances from the virtual observation point, and the maximum value of the first interval is less than the minimum value of the second interval, and the picture has images corresponding to the two models. Then, when a position change operation occurs to the virtual observation point, the electronic device redraws the picture of the three-dimensional map by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn picture is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance. In this way, the problem of poor display effect of the three-dimensional map caused by too many high-rise buildings can be improved. The transparency of the nearby high-rise buildings increases with the approach to the virtual observation point, so that the user can observe other buildings without being blocked by the high-rise buildings. The opacity of the distant high-rise buildings decreases with the distance from the virtual observation point, which weakens the perception of the over-dense distant high-rise buildings and improves the display effect of the three-dimensional map picture.

[0151] Further, before displaying the picture of the three-dimensional map, the distance between the landscape model and the virtual observation point is determined, and then the landscape model within the first interval distance is determined as the first model, and the landscape model within the second interval distance is determined as the second model. This step clearly defines the determination method of the first and second models, which helps to accurately adjust the opacity based on the distance between the model and the virtual observation point, and further improves the accuracy of the display effect of the three-dimensional map picture.

[0152] When the position change operation is a zoom-in operation, the electronic device responds to the operation by increasing the opacity of the second model and decreasing the opacity of the first model, and then redraws the picture of the three-dimensional map based on the adjusted opacity. This processing for the zoom-in operation conforms to the logic that the first model is more transparent as it approaches the virtual observation point, and the second model is more obvious as it approaches the virtual observation point, which optimizes the visual effect when the user zooms in for observation, avoids blocking by nearby high-rise buildings, and enhances the display effect of distant high-rise buildings.

[0153] When the position change operation is a zoom-out operation, the electronic device responds to the operation by decreasing the opacity of the second model and increasing the opacity of the first model, and then redraws the picture of the three-dimensional map based on the adjusted opacity. This conforms to the logic that the first model is more obvious as it moves away from the virtual observation point, and the second model is more transparent as it moves away from the virtual observation point, which optimizes the visual effect when the user zooms out for observation, and makes the picture display more in line with the user's observation needs.

[0154] When the first distance is equal to the first interval minimum value, the first model opacity is set to 0; when the first distance is equal to the first interval maximum value, the first model opacity is set to 1. This clearly sets the opacity of the first model at a specific distance, making the positive correlation between the first model opacity and the distance more specific, further optimizing the display effect of the first model at different distances, and improving the accuracy of the picture display.

[0155] When the second distance is equal to the second interval minimum value, the second model opacity is set to 1; when the second distance is equal to the second interval maximum value, the second model opacity is set to 0. This setting clearly sets the opacity of the second model at a specific distance, making the negative correlation between the second model opacity and the distance more clear, further optimizing the display effect of the second model at different distances, and improving the accuracy of the picture display.

[0156] If the three-dimensional map also contains a ground model, when the three-dimensional map picture is redrawn by modifying the first and second model opacities, the ground model is drawn first, then the landscape model drawing order is determined based on the landscape model depth information, and finally the landscape models are drawn in this order. This ensures the rationality of the drawing order of the ground model and the landscape models and the drawing order between the landscape models, correctly presents the occlusion relationship between the landscape models, improves the drawing efficiency and the realism of the picture display.

[0157] When drawing the landscape models in the drawing order, the second model is drawn first according to the second model drawing order, then the other landscape models except the first and second models are drawn according to the other model drawing order, and finally the first model is drawn according to the first model drawing order. This batch drawing method further improves the drawing efficiency, optimizes the landscape model drawing process, and helps to improve the overall picture display effect.

[0158] When determining the landscape model drawing order based on the landscape model depth information, the to-be-drawn models are first determined in the landscape models according to the preset screening rule, then the drawing order of the to-be-drawn models is determined based on the depth information of the to-be-drawn models, and finally the to-be-drawn models are drawn in this order. This process screens the to-be-drawn models, eliminates landscape models that do not affect the display effect, further optimizes the rendering process, reduces the consumption of computing resources, and improves the drawing efficiency and the picture display effect.

[0159] When determining the to-be-drawn models based on the preset screening rule, the landscape models within the field of view of the virtual observation point are determined as the to-be-drawn models, and then the drawing order is determined based on the depth information of these to-be-drawn models. In this way, only the models within the user's field of view are drawn, the rendering efficiency is improved, unnecessary waste of computing resources is avoided, and the picture display effect is improved.

[0160] When the preset screening rule is used to determine the to-be-drawn model, the occlusion relationship between the to-be-drawn models is determined according to the depth information of the landscape model, and the to-be-drawn models are screened from the landscape models according to the occlusion relationship. This way of screening the to-be-drawn models based on the occlusion relationship can further optimize rendering, avoid drawing occluded models, reduce the consumption of computing resources, and improve the display effect of the picture.

[0161] When the three-dimensional map picture is displayed, the candidate models are obtained and their positions in the three-dimensional map are determined, the candidate models within the loading range of the virtual observation point are determined as the landscape models, the three-dimensional map is drawn after the landscape models are loaded in the three-dimensional map, and thus the three-dimensional map picture is obtained and displayed. This process reduces the system calculation and network transmission burden by loading only the models near the virtual observation point, guarantees the display fluency, and improves the user experience.

[0162] In addition, the preset transparent change animation can be played simultaneously for all the first and second models in the picture, further reducing the consumption of computing resources and improving the fluency; the transparency is controlled by adding a transparency channel in the texture of the landscape model. There are intermediate and third intervals, and different opacity or loading strategies are set for the models in different intervals, and the map display method is optimized from different aspects, which improves the three-dimensional map display effect, and solves the problems of high building occlusion and large performance consumption of distant buildings.

[0163] The technical features of the above embodiments can be combined in any manner. To make the description concise, not all possible combinations of the technical features in the above embodiments are described, but as long as the combinations of the technical features do not contradict, they should be considered as the scope of the present application.

[0164] The above embodiments only express several implementation manners of the present application, and the description is specific and detailed, but it should not be understood as a limitation on the scope of the patent. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, some modifications and improvements can be made, which are all within the scope of the present application. Therefore, the scope of the patent of the present application should be subject to the appended claims.

Claims

1. A map display method, performed by an electronic device, comprising: Displaying a three-dimensional map screen for viewing a three-dimensional map from a virtual observation point, wherein the three-dimensional map includes a three-dimensional landscape model, the landscape model includes a first model at a first distance from the virtual observation point, and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, and the three-dimensional map screen includes a first model image of the first model and a second model image of the second model; and In response to the position change operation of the virtual observation point, the three-dimensional map screen is redrawn by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map screen is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

2. The map display method according to claim 1, further comprising: determining a distance between the landscape model and the virtual observation point; Determine the landscape model whose distance is within the first interval as the first model; The landscape model whose distance is within the second interval is determined as the second model.

3. The map display method according to claim 1 or 2, wherein the position change operation includes a zoom-in operation, and wherein, in response to the position change operation of the virtual viewpoint, the three-dimensional map image is redrawn by modifying the opacities of the first model and the second model, such that the opacity of the first model image in the redrawn three-dimensional map image is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance, comprising: In response to a zoom-in operation of the virtual viewpoint, increasing the opacity of the second model and decreasing the opacity of the first model; The three-dimensional map image is redrawn based on the opacity of the first model and the second model.

4. The map display method according to claim 1 or 2, wherein the position change operation includes a distance operation, and wherein the redrawing of the three-dimensional map image by modifying the opacities of the first model and the second model in response to the position change operation of the virtual viewpoint such that the opacity of the first model image in the redrawn three-dimensional map image is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance, comprises: In response to the virtual viewpoint moving away from the virtual viewpoint, reducing the opacity of the second model and increasing the opacity of the first model; The three-dimensional map image is redrawn based on the opacity of the first model and the second model.

5. The map display method according to claim 3 , wherein when the first distance is equal to the minimum value of the first interval, the opacity of the first model is set to 0; and when the first distance is equal to the maximum value of the first interval, the opacity of the first model is set to 1.

6. The map display method according to claim 3 , wherein when the second distance is equal to the minimum value of the second interval, the opacity of the second model is set to 1; and when the second distance is equal to the maximum value of the second interval, the opacity of the second model is set to 0.

7. The map display method according to any one of claims 1 to 6, wherein the three-dimensional map further includes a ground model, and wherein redrawing the three-dimensional map image by modifying the opacities of the first model and the second model such that the opacity of the first model image in the redrawn three-dimensional map image is positively correlated with the first distance and the opacity of the second model image is negatively correlated with the second distance comprises: drawing the ground model; After the ground model is drawn, determining a drawing order of the landscape model based on the depth information of the landscape model; The landscape model is drawn according to the drawing order.

8. The map display method according to claim 7, wherein drawing the landscape model according to the drawing order comprises: Drawing the second model according to the drawing order of the second model; After the second model is drawn, the other models are drawn in the order of drawing the other models, where the other models are landscape models other than the first model and the second model; After the other models are drawn, the first model is drawn according to the drawing order of the first model.

9. The map display method according to claim 7 or 8, wherein determining the drawing order of the landscape model based on the depth information of the landscape model comprises: Based on preset screening rules, determining a model to be drawn in the landscape model; Determining a drawing order of the models to be drawn based on the depth information of the models to be drawn; Drawing the landscape model according to the drawing order includes: The model to be drawn is drawn according to the drawing order.

10. The map display method according to claim 9, wherein determining the model to be drawn in the landscape model based on a preset screening rule comprises: Determining a model to be drawn in the landscape model, wherein the model to be drawn is a landscape model within the field of view of the virtual observation point; A drawing order of the to-be-drawn model is determined based on the depth information of the to-be-drawn model.

11. The map display method according to claim 9, wherein determining the model to be drawn in the landscape model based on a preset screening rule comprises: Determining the occlusion relationship between the models to be drawn based on the depth information of the landscape model; Based on the occlusion relationship, a model to be drawn is screened from the landscape model.

12. The map display method according to any one of claims 1 to 11, wherein displaying a three-dimensional map image comprises: Acquire a candidate model, and determine a position of the candidate model in the three-dimensional map; determining the candidate model whose position is within the loading range of the virtual observation point as a landscape model; Loading the landscape model into the three-dimensional map; Draw the three-dimensional map, obtain and display the three-dimensional map picture.

13. A map display device, comprising: a display unit, configured to display a three-dimensional map screen of a three-dimensional map viewed from a virtual observation point, wherein the three-dimensional map includes a three-dimensional landscape model, the landscape model includes a first model at a first distance from the virtual observation point, and a second model at a second distance from the virtual observation point, the first distance is within a first interval, the second distance is within a second interval, the maximum value of the first interval is less than the minimum value of the second interval, and the three-dimensional map screen includes a first model image of the first model and a second model image of the second model; and A redrawing unit is used to redraw the three-dimensional map screen in response to the position change operation of the virtual observation point by modifying the opacity of the first model and the second model, so that the opacity of the first model image in the redrawn three-dimensional map screen is positively correlated with the first distance, and the opacity of the second model image is negatively correlated with the second distance.

14. An electronic device comprising a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the map display method according to any one of claims 1 to 12.

15. A computer-readable storage medium storing a plurality of instructions, wherein the instructions are suitable for being loaded by a processor to execute the map display method according to any one of claims 1 to 12.

16. A computer program product, comprising computer instructions, which, when executed by a processor, implement the map display method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Virtual object display method and device, computer equipment and storage medium

    CN111659117A

  • Display method and device for scene font in virtual environment, equipment and medium

    CN113058266A

  • Processing method, device and equipment for viaduct in three-dimensional map

    CN115965730A

  • Three-dimensional map display system

    US20170309056A1