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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


