Unlock instant, AI-driven research and patent intelligence for your innovation.

Map rendering method for unity, electronic equipment and readable storage medium

A map and map tile technology, applied in the field of rendering maps, can solve the problems that unity cannot interact and cover more content, rendering efficiency cannot be optimized, and cannot be debugged

Pending Publication Date: 2021-10-29
的卢技术有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The SDK provided by Baidu Gaode implements the view interface under different platforms, and unity cannot interact and cover more content on it;
[0005] 2. Baidu Gaode only provides the mobile version of the SDK, and it cannot be debugged in the PC editor environment of Unity, which is inconvenient for development;
[0006] 3. Baidu Gaode's map rendering SDK is not open source, rendering efficiency cannot be optimized

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Map rendering method for unity, electronic equipment and readable storage medium
  • Map rendering method for unity, electronic equipment and readable storage medium
  • Map rendering method for unity, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0029] The present invention designs a rendering map method for unity, such as figure 1 As shown, the steps are as follows:

[0030] Step 1: Define the maximum length and width of the map grid according to the maximum zoom level of the map, use the unity API to create a mesh, and the grid in the mesh corresponds to the map grid. Such as figure 2 As shown, for example, to display 4*4 tiles in a certain area with a zoom of 4, the generated mesh needs 4*4=16 meshes, a total of 32 triangular faces.

[0031] Step 2: Obtain the address of the map tile image based on the current zoom level and latitude and longitude information. In this embodiment, mapnik2, apache2 and mod_tile are used to build a tile map service based on OSM map data.

[0032] Step 3: Get the map tile image and paste it on the mesh as a uv texture. In this embodiment, the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a map rendering method for unity, electronic equipment and a readable storage medium, and the method sequentially comprises the steps: defining the maximum length and width of a map grid according to the maximum zoom level of a map, creating a mesh by using a unity API, wherein the grid in the mesh corresponds to the map grid; acquiring a map tile picture address according to the current zoom level and the longitude and latitude information; acquiring a map tile picture, and pasting the map tile picture on the mesh as uv texture; and when the map is zoomed, dynamically adjusting the mesh according to the current zoom level to realize rapid rendering of the map. According to the method, details of map rendering can be controlled, unity contents are covered on a map layer, and development can be facilitated on an editor.

Description

technical field [0001] The invention belongs to the field of unity development, and in particular relates to a rendering map technology for unity. Background technique [0002] At present, maps are more and more widely used in interactive apps such as food delivery, navigation, and scene display. Unity's current method of integrating maps is mainly to call and package android and ios SDKs provided by Baidu Gaode and others. [0003] Existing methods have many limitations: [0004] 1. The SDK provided by Baidu Gaode implements the view interface under different platforms, and unity cannot interact and cover more content on it; [0005] 2. Baidu Gaode only provides the mobile version of the SDK, and it cannot be debugged in the PC editor environment of Unity, which is inconvenient for development; [0006] 3. Baidu Gaode's map rendering SDK is not open source, and the rendering efficiency cannot be optimized. Contents of the invention [0007] In order to solve the techni...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06T17/05G06T17/20G06T15/00G06T15/04
CPCG06T17/05G06T17/20G06T15/005G06T15/04
Inventor 白启扉
Owner 的卢技术有限公司