CN116664786A - Method, device and equipment for realizing three-dimensional digital earth based on Unity engine - Google Patents

Method, device and equipment for realizing three-dimensional digital earth based on Unity engine Download PDF

Info

Publication number
CN116664786A
CN116664786A CN202310492840.3A CN202310492840A CN116664786A CN 116664786 A CN116664786 A CN 116664786A CN 202310492840 A CN202310492840 A CN 202310492840A CN 116664786 A CN116664786 A CN 116664786A
Authority
CN
China
Prior art keywords
initial
map data
view angle
tile map
earth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310492840.3A
Other languages
Chinese (zh)
Inventor
郁杨
王涛
朱剑平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhongke Ruixin Technology Co ltd
Original Assignee
Beijing Zhongke Ruixin Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Zhongke Ruixin Technology Co ltd filed Critical Beijing Zhongke Ruixin Technology Co ltd
Priority to CN202310492840.3A priority Critical patent/CN116664786A/en
Publication of CN116664786A publication Critical patent/CN116664786A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • G06T3/06
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Graphics (AREA)
  • Remote Sensing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Architecture (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the application discloses a method, a device and equipment for realizing three-dimensional digital earth based on a Unity engine, which can be used for acquiring a center point, a radius and an initial position of an initial visual angle of the three-dimensional digital earth set by a user and drawing an initial earth sphere; acquiring a two-dimensional earth projection of the initial earth sphere according to a preset projection rule; primary tile map data corresponding to the two-dimensional earth projection are obtained, and the primary tile map data are attached to the corresponding positions of the initial earth sphere to obtain a digital earth sphere; acquiring the current distance between the current position and the digital earth sphere based on the distance pulling operation of the user under the initial view angle; and if the current distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the initial view angle range, and updating the initial view angle range into the advanced tile map data to obtain the three-dimensional digital earth. The problems of overlarge data and load required by the three-dimensional digital earth are solved.

Description

Method, device and equipment for realizing three-dimensional digital earth based on Unity engine
Technical Field
The present disclosure relates to the field of digitizing technologies, and in particular, to a method, an apparatus, and a device for implementing three-dimensional digital earth based on a Unity engine.
Background
Unity is a multi-platform integrated three-dimensional graphics engine developed by Unity Technologies corporation that gives developers the ability to create types of interactive content such as three-dimensional video games, building visualizations, real-time three-dimensional animations, etc. But current Unity engines do not provide developers with three-dimensional digital earth functionality based on Unity engines.
The three-dimensional digital earth technology based on the Unity engine is based on the traditional geographic information system technology, realizes the virtual reality of a three-dimensional scene, and has visual reality and visibility.
However, implementing three-dimensional digital earth requires high performance, especially if loading global data must exceed the load of a common terminal device, so a method for implementing three-dimensional digital earth under the condition of lower performance is needed.
Disclosure of Invention
One or more embodiments of the present disclosure provide a method, an apparatus, a device, and a storage medium for implementing a three-dimensional digital earth based on a Unity engine, so as to solve the problems of excessive data and load required for implementing the three-dimensional digital earth in the prior art.
The method for realizing the three-dimensional digital earth based on the Unity engine provided by the embodiment of the application comprises the following steps:
acquiring a center point, a radius and an initial position of an initial view angle of a three-dimensional digital earth set by a user, and drawing an initial earth sphere according to the center point, the radius and the initial view angle;
acquiring a two-dimensional earth projection of the initial earth sphere according to a preset projection rule;
primary tile map data corresponding to the two-dimensional earth projection are obtained, and the primary tile map data are attached to the corresponding positions of the initial sphere to obtain digital spheres observed at the initial positions under the initial view angles;
acquiring the current distance between the current position of the digital earth sphere at the initial view angle based on the distance pulling operation of the user on the digital earth sphere at the initial view angle;
and if the current distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the initial view angle range, and updating the primary tile map data corresponding to the initial view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the current position under the initial view angle.
Further, the method further comprises the following steps:
acquiring a current viewing angle after movement and a first updating distance between a first updating position under the current viewing angle and the digital globe based on a viewing angle movement operation of a user on the digital globe;
and if the first updating distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the current view angle range, and updating primary tile map data corresponding to the current view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the updating position under the current view angle.
Further, before updating the primary tile map data corresponding to the current view angle range to the advanced tile map data, the method further comprises:
and updating the advanced tile map data corresponding to the initial view angle range into the primary tile map data corresponding to the current view angle range.
Further, after updating the primary tile map data corresponding to the current view angle range to the advanced tile map data, the method further comprises:
acquiring a second updated distance between a second updated position and the digital earth sphere under the current view angle based on a distance pulling operation of a user on the digital earth sphere under the current view angle;
and if the second updating distance is larger than a preset threshold value, updating the advanced tile map data corresponding to the current view angle range into the primary tile map data.
Further, the acquiring the advanced tile map data corresponding to the initial view angle range includes:
determining a distance level corresponding to the current distance;
and acquiring the advanced tile map data of the corresponding grade according to the distance grade.
Further, the acquiring the advanced tile map data corresponding to the initial view angle range includes:
determining a digital earth area corresponding to the initial view angle range;
acquiring the position corresponding distance between the current position and each position in the digital region;
determining a distance grade to which the distance corresponding to the position belongs;
dividing the digital earth region into a plurality of tile levels according to the distance level;
acquiring advanced tile map data corresponding to the tile level
Further, the updating the primary tile map data corresponding to the initial view angle range to the advanced tile map data includes:
and updating the primary tile map data into the advanced tile map data corresponding to the tile grade according to the tile grade in the initial view angle range.
The application also provides a device for realizing the three-dimensional digital earth based on the Unity engine, which comprises:
the acquisition module is used for acquiring the center point, the radius and the initial position of the initial visual angle of the three-dimensional digital earth set by a user, and drawing an initial globe according to the center point, the radius and the initial visual angle;
the projection module is used for acquiring the two-dimensional earth projection of the initial earth sphere according to a preset projection rule;
the drawing module is used for acquiring primary tile map data corresponding to the two-dimensional earth projection, and pasting the primary tile map data at the corresponding position of the initial earth sphere to obtain a digital earth sphere observed at the initial position under the initial view angle;
the operation module is used for acquiring the current distance between the current position of the user under the initial view angle and the digital earth sphere based on the distance pulling operation of the user on the digital earth sphere under the initial view angle;
and the updating module is used for acquiring the advanced tile map data corresponding to the initial view angle range if the current distance is smaller than a preset threshold value, updating the primary tile map data corresponding to the initial view angle range into the advanced tile map data, and obtaining the three-dimensional digital earth observed at the current position under the initial view angle.
The application also provides a device for realizing the three-dimensional digital earth based on the Unity engine, which comprises at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a center point, a radius and an initial position of an initial view angle of a three-dimensional digital earth set by a user, and drawing an initial earth sphere according to the center point, the radius and the initial view angle;
acquiring a two-dimensional earth projection of the initial earth sphere according to a preset projection rule;
primary tile map data corresponding to the two-dimensional earth projection are obtained, and the primary tile map data are attached to the corresponding positions of the initial sphere to obtain digital spheres observed at the initial positions under the initial view angles;
acquiring the current distance between the current position of the digital earth sphere at the initial view angle based on the distance pulling operation of the user on the digital earth sphere at the initial view angle;
and if the current distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the initial view angle range, and updating the primary tile map data corresponding to the initial view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the current position under the initial view angle.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an application scenario of a method for implementing a three-dimensional digital earth based on a Unity engine according to one or more embodiments of the present disclosure;
FIG. 2 is a flow diagram of a method for implementing a three-dimensional digital earth based on a Unity engine provided by one or more embodiments of the present disclosure;
FIG. 3 is a schematic diagram of a business scenario recognition device based on intelligence provided in one or more embodiments of the present disclosure;
FIG. 4 is a schematic architecture diagram of a terminal based on intelligent business scenario identification provided by one or more embodiments of the present disclosure;
FIG. 5a is a schematic diagram of an initial ten thousand map effects for implementing a three-dimensional digital earth based on a Unity engine provided in one or more embodiments of the present disclosure;
FIG. 5b is a schematic diagram of a high-level tile map implementing three-dimensional digital earth based on a Unity engine provided in one or more embodiments of the present disclosure;
FIG. 5c is a schematic diagram of another high-level tile map for implementing a three-dimensional digital earth based on a Unity engine provided in one or more embodiments of the present disclosure.
Detailed Description
The embodiment of the specification provides a method, a device and equipment for realizing three-dimensional digital earth based on a Unity engine.
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
For example, referring to fig. 1, a system for implementing a three-dimensional digital earth may include a server and terminals, wherein the system may include a plurality of other terminals in addition to the terminals shown in the drawings, and the specific number of terminals is not limited herein. The server and the terminal may be connected by a communication network, which may include a wireless network including one or more of a wireless wide area network, a wireless local area network, a wireless metropolitan area network, and a wireless personal area network, as well as a wired network. The network includes network entities such as routers and gateways, which are not shown in the figure. The terminal can interact information with the server through the communication network to perform application. For example, the terminal may send a tile map acquisition request to the server via the communication network, and the server may return tile map data to the terminal.
The server is integrated with the Unity engine and the search engine, can be an independent physical server, can be a server cluster or a distributed system formed by a plurality of physical servers, and can also be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligent platforms.
The system for realizing the three-dimensional digital earth can comprise a three-dimensional digital earth generation device, the three-dimensional digital earth generation device can be integrated in a terminal, the terminal can be a terminal device such as a mobile phone, a tablet computer and a notebook computer, and can also be an intelligent terminal such as a wearable device, an intelligent sound box and an intelligent household appliance, but is not limited to the above. The terminal and the server may be directly or indirectly connected through wired or wireless communication, and the present application is not limited herein. The terminal can be provided with various applications required by users, and interaction with the users is realized. For example, the terminal may send parameters such as the radius of the earth, the center point, etc. set by the user to the server, the server draws the sphere of the earth through the Mesh component, the terminal may also send a tile data request to the server, and the server obtains tile map data through http service or web service. The terminal displays the three-dimensional digital earth image, performs user operation, and can also input custom parameters in certain steps in the flow.
As shown in fig. 1, the terminal may obtain a center point, a radius, and an initial position of an initial viewing angle of the three-dimensional digital earth set by a user, and draw an initial sphere of the earth according to the center point, the radius, and the initial viewing angle; acquiring a two-dimensional earth projection of the initial earth sphere according to a preset projection rule; primary tile map data corresponding to the two-dimensional earth projection are obtained, and the primary tile map data are attached to the corresponding positions of the initial sphere to obtain digital spheres observed at the initial positions under the initial view angles; acquiring the current distance between the current position of the digital earth sphere at the initial view angle based on the distance pulling operation of the user on the digital earth sphere at the initial view angle; and if the current distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the initial view angle range, and updating the primary tile map data corresponding to the initial view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the current position under the initial view angle.
According to the technical scheme, the three-dimensional digital earth method is realized based on the Unity engine, so that the three-dimensional digital earth can be created, the distance can be dynamically moved in real time, the terrain and mapping precision can be updated, and the smoothness of the terrain and mapping update can be ensured when the distance is moved. Since advanced tile map data is loaded and presented only when the current distance is less than a preset threshold, and updating of tile map data is performed only in an area within the initial view angle range, only primary tile map data is presented when the current distance is greater than the preset threshold. The loading amount of data is greatly reduced, and the load of equipment is reduced.
The example of fig. 1 is merely an example of a system architecture for implementing an embodiment of the present application, and the embodiment of the present application is not limited to the system architecture shown in fig. 1, and various embodiments of the present application are proposed based on the system architecture.
The following will describe in detail. The numbers of the following examples are not intended to limit the preferred order of the examples.
The present embodiment will be described in terms of a three-dimensional digital earth generation device, which may be integrated in a server having a storage unit and a microprocessor mounted thereon and having arithmetic capability.
Fig. 2 is a flow chart of a method for implementing three-dimensional digital earth based on a Unity engine according to one or more embodiments of the present disclosure.
The flow in fig. 2 may specifically include the following steps:
101. and acquiring the center point, the radius and the initial position of the initial visual angle of the three-dimensional digital earth set by the user, and drawing an initial sphere of the earth according to the center point, the radius and the initial visual angle.
According to the application, the spherical shape can be drawn through the Mesh component of the Unity engine, and the south pole and the north pole are self-aligned.
102. And acquiring the two-dimensional earth projection of the initial earth sphere according to a preset projection rule.
And acquiring the two-dimensional earth projection of the initial earth sphere according to the Mokato projection rule and the tile map rule.
The mercator projection is an earth projection method proposed by mercator in 1569 in the netherlands, and the method is a cylindrical projection. While the use of a geodetic coordinate system with longitude and latitude to represent position may describe the position of points on the earth, for a scene where map geographic data is presented in a two-dimensional plane, it is necessary to map points in three-dimensional space into two-dimensional space by means of projection. Map projection requires establishing a one-to-one correspondence between earth surface points and projection surface points, and ink card bracket projection is often used in internet maps.
For the world map projected as a plane through the ink card holder, the world map is divided into map units with the pixels of $256/timese256$ in a cutting way under different map resolutions (the pixel size of the whole world map), and each divided map unit is called a tile map.
103. And acquiring primary tile map data corresponding to the two-dimensional earth projection, and attaching the primary tile map data to the corresponding position of the initial sphere to obtain a digital sphere observed at the initial position under the initial view angle.
Referring to fig. 5a, tile picture data is acquired through an http service or a web service according to tile map rules; the tile picture is attached to the Mesh object that has been generated in step 102, so that the primitive model of the three-dimensional digital earth is completed.
104. And acquiring the current distance between the current position and the digital earth sphere under the initial view angle based on the distance pulling operation of the user on the digital earth sphere under the initial view angle.
The method specifically comprises the following steps:
determining a digital earth area corresponding to the initial view angle range;
and acquiring the position corresponding distance between the current position and each position in the digital region.
105. And if the current distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the initial view angle range, and updating the primary tile map data corresponding to the initial view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the current position under the initial view angle.
Referring to fig. 5b and 5c, the present application can dynamically move the distance in real time, update the terrain and mapping accuracy, and ensure the smoothness of the terrain and mapping update when the distance is moved.
The technical scheme of the application also comprises the following steps:
acquiring a current viewing angle after movement and a first updating distance between a first updating position under the current viewing angle and the digital globe based on a viewing angle movement operation of a user on the digital globe;
and if the first updating distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the current view angle range, and updating primary tile map data corresponding to the current view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the updating position under the current view angle.
When the user moves the view angle, the terrain and map accuracy can be updated, and smoothness of the terrain and map update can be ensured when the view angle is moved.
In one embodiment, before updating the primary tile map data corresponding to the current view angle range to the advanced tile map data, the method further comprises the steps of:
and updating the advanced tile map data corresponding to the initial view angle range into the primary tile map data corresponding to the current view angle range.
Timely cleaning unused data, and timely deleting the previous data after the visual angle moves out of the corresponding distance, thereby reducing
In one embodiment, after updating the primary tile map data corresponding to the current view angle range to the advanced tile map data, further comprising:
acquiring a second updated distance between a second updated position and the digital earth sphere under the current view angle based on a distance pulling operation of a user on the digital earth sphere under the current view angle;
and if the second updating distance is larger than a preset threshold value, updating the advanced tile map data corresponding to the current view angle range into the primary tile map data.
After the visual angle is rotated, the distance is pulled, the terrain and mapping precision can be updated, and the updated smoothness of the terrain and mapping is guaranteed to be good.
In one embodiment, the advanced tile map data corresponding to the initial view angle range may specifically include the following steps:
determining a distance grade to which the distance corresponding to the position belongs;
dividing the digital earth region into a plurality of tile levels according to the distance level;
and acquiring the advanced tile map data corresponding to the tile grade.
The map tile has the following characteristics:
having a unique tile Level (Level) and tile coordinate number (tile X, tile Y);
the minimum map level is 0, where the world map consists of only one tile;
the higher the tile level, the more tiles make up the world map, the more detailed the map can be presented;
the tiles of a certain tile grade map are formed by cutting 4 tiles from each tile of a lower grade, so that a tile pyramid is formed;
higher level tile maps may present updated detailed information.
In one embodiment, the updating the primary tile map data corresponding to the initial view range to the advanced tile map data includes:
and updating the primary tile map data into the advanced tile map data corresponding to the tile grade according to the tile grade in the initial view angle range.
Based on the same thought, one or more embodiments of the present disclosure further provide apparatuses and devices corresponding to the above method, as shown in fig. 3 and fig. 4.
Fig. 3 is a schematic structural diagram of a risk data mining apparatus according to one or more embodiments of the present disclosure, where a dashed box represents an optional module, and the apparatus includes:
the obtaining module 301 is configured to obtain a center point, a radius, and an initial position of an initial viewing angle of the three-dimensional digital earth set by a user, and draw an initial globe according to the center point, the radius, and the initial viewing angle;
the projection module 302 is configured to obtain a two-dimensional earth projection of the initial earth sphere according to a preset projection rule;
the drawing module 303 is configured to obtain primary tile map data corresponding to the two-dimensional earth projection, and paste the primary tile map data at a corresponding position of the initial sphere to obtain a digital sphere observed at the initial position under the initial viewing angle;
an operation module 304, configured to obtain a current distance between a current position at the initial viewing angle and the digital earth sphere based on a distance pulling operation of the user on the digital earth sphere at the initial viewing angle;
and the updating module 305 is configured to obtain advanced tile map data corresponding to the initial view angle range if the current distance is smaller than a preset threshold, and update the primary tile map data corresponding to the initial view angle range to the advanced tile map data, so as to obtain three-dimensional digital earth observed at the current position under the initial view angle.
Fig. 4 is a schematic structural diagram of a risk data mining apparatus according to one or more embodiments of the present disclosure, where the apparatus includes:
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a center point, a radius and an initial position of an initial view angle of a three-dimensional digital earth set by a user, and drawing an initial earth sphere according to the center point, the radius and the initial view angle;
acquiring a two-dimensional earth projection of the initial earth sphere according to a preset projection rule;
primary tile map data corresponding to the two-dimensional earth projection are obtained, and the primary tile map data are attached to the corresponding positions of the initial sphere to obtain digital spheres observed at the initial positions under the initial view angles;
acquiring the current distance between the current position of the digital earth sphere at the initial view angle based on the distance pulling operation of the user on the digital earth sphere at the initial view angle;
and if the current distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the initial view angle range, and updating the primary tile map data corresponding to the initial view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the current position under the initial view angle.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), lava, lola, myHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present specification.
It will be appreciated by those skilled in the art that the present description may be provided as a method, system, or computer program product. Accordingly, the present specification embodiments may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present description embodiments may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, devices, non-volatile computer storage medium embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the section of the method embodiments being relevant.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing is merely one or more embodiments of the present description and is not intended to limit the present description. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present description, is intended to be included within the scope of the claims of the present description.

Claims (10)

1. A method for realizing three-dimensional digital earth based on a Unity engine comprises the following steps:
acquiring a center point, a radius and an initial position of an initial view angle of a three-dimensional digital earth set by a user, and drawing an initial earth sphere according to the center point, the radius and the initial view angle;
acquiring a two-dimensional earth projection of the initial earth sphere according to a preset projection rule;
primary tile map data corresponding to the two-dimensional earth projection are obtained, and the primary tile map data are attached to the corresponding positions of the initial sphere to obtain digital spheres observed at the initial positions under the initial view angles;
acquiring the current distance between the current position of the digital earth sphere at the initial view angle based on the distance pulling operation of the user on the digital earth sphere at the initial view angle;
and if the current distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the initial view angle range, and updating the primary tile map data corresponding to the initial view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the current position under the initial view angle.
2. The method for implementing the three-dimensional digital earth based on the Unity engine according to claim 1, further comprising:
acquiring a current viewing angle after movement and a first updating distance between a first updating position under the current viewing angle and the digital globe based on a viewing angle movement operation of a user on the digital globe;
and if the first updating distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the current view angle range, and updating primary tile map data corresponding to the current view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the updating position under the current view angle.
3. The method of implementing three-dimensional digital earth based on Unity engine according to claim 2, further comprising, before updating the primary tile map data corresponding to the current view angle range to the advanced tile map data:
and updating the advanced tile map data corresponding to the initial view angle range into the primary tile map data corresponding to the current view angle range.
4. The method for implementing three-dimensional digital earth based on Unity engine according to claim 2, further comprising, after updating the primary tile map data corresponding to the current view angle range to the advanced tile map data:
acquiring a second updated distance between a second updated position and the digital earth sphere under the current view angle based on a distance pulling operation of a user on the digital earth sphere under the current view angle;
and if the second updating distance is larger than a preset threshold value, updating the advanced tile map data corresponding to the current view angle range into the primary tile map data.
5. The method for implementing three-dimensional digital earth based on Unity engine according to claim 1, wherein the obtaining advanced tile map data corresponding to the initial view angle range comprises:
determining a distance level corresponding to the current distance;
and acquiring the advanced tile map data of the corresponding grade according to the distance grade.
6. The method for implementing three-dimensional digital earth based on Unity engine according to claim 5, wherein said obtaining the current distance between the current position under the initial view and the digital earth sphere comprises
Determining a digital earth area corresponding to the initial view angle range;
and acquiring the position corresponding distance between the current position and each position in the digital region.
7. The method for implementing three-dimensional digital earth based on Unity engine according to claim 6, wherein the obtaining advanced tile map data corresponding to the initial view angle range comprises:
determining a distance grade to which the distance corresponding to the position belongs;
dividing the digital earth region into a plurality of tile levels according to the distance level;
and acquiring the advanced tile map data corresponding to the tile grade.
8. The method for implementing three-dimensional digital earth based on Unity engine according to claim 7, said updating primary tile map data corresponding to said initial view angle range to said advanced tile map data, comprising:
and updating the primary tile map data into the advanced tile map data corresponding to the tile grade according to the tile grade in the initial view angle range.
9. A device for implementing three-dimensional digital earth based on Unity engine, comprising:
the acquisition module is used for acquiring the center point, the radius and the initial position of the initial visual angle of the three-dimensional digital earth set by a user, and drawing an initial globe according to the center point, the radius and the initial visual angle;
the projection module is used for acquiring the two-dimensional earth projection of the initial earth sphere according to a preset projection rule;
the drawing module is used for acquiring primary tile map data corresponding to the two-dimensional earth projection, and pasting the primary tile map data at the corresponding position of the initial earth sphere to obtain a digital earth sphere observed at the initial position under the initial view angle;
the operation module is used for acquiring the current distance between the current position of the user under the initial view angle and the digital earth sphere based on the distance pulling operation of the user on the digital earth sphere under the initial view angle;
and the updating module is used for acquiring the advanced tile map data corresponding to the initial view angle range if the current distance is smaller than a preset threshold value, updating the primary tile map data corresponding to the initial view angle range into the advanced tile map data, and obtaining the three-dimensional digital earth observed at the current position under the initial view angle.
10. An apparatus for implementing three-dimensional digital earth based on Unity engine, comprising at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a center point, a radius and an initial position of an initial view angle of a three-dimensional digital earth set by a user, and drawing an initial earth sphere according to the center point, the radius and the initial view angle;
acquiring a two-dimensional earth projection of the initial earth sphere according to a preset projection rule;
primary tile map data corresponding to the two-dimensional earth projection are obtained, and the primary tile map data are attached to the corresponding positions of the initial sphere to obtain digital spheres observed at the initial positions under the initial view angles;
acquiring the current distance between the current position of the digital earth sphere at the initial view angle based on the distance pulling operation of the user on the digital earth sphere at the initial view angle;
and if the current distance is smaller than a preset threshold value, acquiring advanced tile map data corresponding to the initial view angle range, and updating the primary tile map data corresponding to the initial view angle range into the advanced tile map data to obtain the three-dimensional digital earth observed at the current position under the initial view angle.
CN202310492840.3A 2023-05-05 2023-05-05 Method, device and equipment for realizing three-dimensional digital earth based on Unity engine Pending CN116664786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310492840.3A CN116664786A (en) 2023-05-05 2023-05-05 Method, device and equipment for realizing three-dimensional digital earth based on Unity engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310492840.3A CN116664786A (en) 2023-05-05 2023-05-05 Method, device and equipment for realizing three-dimensional digital earth based on Unity engine

Publications (1)

Publication Number Publication Date
CN116664786A true CN116664786A (en) 2023-08-29

Family

ID=87714397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310492840.3A Pending CN116664786A (en) 2023-05-05 2023-05-05 Method, device and equipment for realizing three-dimensional digital earth based on Unity engine

Country Status (1)

Country Link
CN (1) CN116664786A (en)

Similar Documents

Publication Publication Date Title
CN107016924B (en) Tile map generation method, updating method and updating device in virtual map
KR102360660B1 (en) Map data processing method, computer device and storage medium
JP5775578B2 (en) 3D layering of map metadata
AU2009238631B2 (en) Panning using virtual surfaces
EP2790176B1 (en) Computing systems, devices and methods for rendering maps remotely from an host application
CN107924582B (en) System and method for transitioning between viewpoints in a three-dimensional environment
CN110717005A (en) Thermodynamic diagram texture generation method, device and equipment
CN116977525B (en) Image rendering method and device, storage medium and electronic equipment
CN107656961A (en) A kind of method for information display and device
CN110806847A (en) Distributed multi-screen display method, device, equipment and system
CN111813952A (en) Three-dimensional display method and device of knowledge graph
US9786073B2 (en) Geometric shape hierarchy determination to provide visualization context
WO2017006223A1 (en) Graphic engine for creating and executing applications with multisensory interfaces
KR20180134391A (en) Interactive Geo-Context Navigation Tool
CN116664786A (en) Method, device and equipment for realizing three-dimensional digital earth based on Unity engine
CN110222056A (en) A kind of localization method, system and equipment
CN116245051A (en) Simulation software rendering method and device, storage medium and electronic equipment
US20150154784A1 (en) Use of Photo Animation Transitions to Mask Latency
CN111966853B (en) Management method of remote sensing image
CN114625990A (en) Method, device, equipment and medium for rendering webpage end grid data
US20180276881A1 (en) Non-uniform resolution map tiling in a geospatial mapping system
CN116112742A (en) Image rendering method, device, medium and equipment under virtual interaction scene
CN117409130A (en) Method, device, equipment, medium and product for displaying map data
CN116668800A (en) Bullet screen display method and device
CN116188736A (en) Degradation display method, device and equipment for 3D virtual scene

Legal Events

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