Virtual object rendering method, device, and apparatus, and storage medium

CN117372634BActive Publication Date: 2026-09-04TENCENT CLOUD COMPUTING (BEIJING) CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210766767.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2026-09-04
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

[0003]相关技术中,技术人员在制作三维地图时,由于小尺度的参考虚拟场景和大尺度的三维地图分别具有独立的空间坐标系统和渲染效果实现方式,需要先在一个参考虚拟场景中制作虚拟对象(比如虚拟建筑物),再通过复杂的操作将虚拟对象添加到三维地图中,导致人机交互的效率较低

Benefits of technology

[0029]通过本申请实施例提供的技术方案,通过参考虚拟场景中的控制点在三维地图中的地图坐标来确定参考投影坐标,通过参考投影坐标来将目标虚拟对象在参考虚拟场景中的场景坐标变换到三维地图中的地图坐标,也即是将参考虚拟场景中的目标虚拟对象转换到三维地图中。在三维地图中直接调用在参考虚拟场景中确定的目标纹理像素值就能够对目标虚拟对象进行渲染,无需在三维地图中再次确定纹理像素值,从而在提高人机交互的效率的前提下提高渲染效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117372634B_ABST
    Figure CN117372634B_ABST
Patent Text Reader

Abstract

The application discloses a rendering method and device of a virtual object, equipment and a storage medium, which can be applied to the fields of map technology and navigation technology in cloud technology. Through the technical scheme provided by the embodiment of the application, the map coordinates of the control points in the reference virtual scene in the three-dimensional map are referred to to determine the reference projection coordinates, the scene coordinates of the target virtual object in the reference virtual scene are transformed into the map coordinates in the three-dimensional map through the reference projection coordinates, that is, the target virtual object in the reference virtual scene is converted into the three-dimensional map. Directly calling the target texture pixel value determined in the reference virtual scene in the three-dimensional map can render the target virtual object, and it is not necessary to determine the texture pixel value in the three-dimensional map again, so that the rendering efficiency is improved under the premise of improving the efficiency of human-computer interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of map technology, and in particular to a method, apparatus, device, and storage medium for rendering virtual objects. Background Technology

[0002] With the development of computer technology, more and more users are using maps for location and navigation. Due to the increased computing power of computer devices, 3D maps that provide rich information are becoming increasingly popular with users.

[0003] In related technologies, when technicians create 3D maps, because small-scale reference virtual scenes and large-scale 3D maps have independent spatial coordinate systems and rendering methods, they need to first create virtual objects (such as virtual buildings) in a reference virtual scene, and then add the virtual objects to the 3D map through complex operations, resulting in low efficiency of human-computer interaction. Summary of the Invention

[0004] This application provides a method, apparatus, device, and storage medium for rendering virtual objects, which can improve the efficiency of human-computer interaction. The technical solution is as follows:

[0005] On the one hand, a method for rendering virtual objects is provided, the method comprising:

[0006] Determine the geographic coordinates and map coordinates of control points in a reference virtual scene on a 3D map, wherein the reference virtual scene includes the target virtual object to be rendered;

[0007] Based on the geographic coordinates and map coordinates of the control point, the reference projection coordinates of the control point are determined. The reference projection coordinates are used to represent the offset between the local coordinates and scene coordinates of the target virtual object in the reference virtual scene and the projection coordinates in the 3D map.

[0008] Based on the reference projection coordinates and the local scene coordinates of the target virtual object in the reference virtual scene, determine the geographic map coordinates of the target virtual object in the 3D map.

[0009] Based on the geographic map coordinates and target texture pixel values ​​of the target virtual object, the target virtual object is rendered in the 3D map, whereby the target texture pixel values ​​are determined in the reference virtual scene.

[0010] On the one hand, a rendering apparatus for virtual objects is provided, the apparatus comprising:

[0011] The map coordinate determination module is used to determine the map coordinates of control points in a reference virtual scene in a 3D map, wherein the reference virtual scene includes the target virtual object to be rendered.

[0012] The projection coordinate determination module is used to determine the reference projection coordinates of the control point based on the map coordinates of the control point. The reference projection coordinates are used to represent the offset between the scene coordinates of the target virtual object in the reference virtual scene and the projection coordinates in the three-dimensional map.

[0013] The map coordinate determination module is further configured to determine the map coordinates of the target virtual object in the three-dimensional map based on the reference projection coordinates and the scene coordinates of the target virtual object in the reference virtual scene;

[0014] A rendering module is used to render the target virtual object in the 3D map based on the map coordinates of the target virtual object and the target texture pixel value, wherein the target texture pixel value is determined in the reference virtual scene.

[0015] In one possible implementation, the map coordinates of the control point include longitude and latitude. The projection coordinate determination module is used to determine the abscissa of the reference projection coordinates of the control point based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the radius of curvature of the prime meridian in the Earth's ellipsoid parameters, the central longitude of the Gaussian projection zone where the control point is located, a first coordinate transformation parameter, a second coordinate transformation parameter, and a third coordinate transformation parameter. The first coordinate transformation parameter is determined based on the semi-major axis, the first eccentricity, and the latitude of the map coordinates in the ellipsoid parameters. The second coordinate transformation parameter is determined based on the second eccentricity and the latitude of the map coordinates in the ellipsoid parameters. The third coordinate transformation parameter is determined based on the latitude of the map coordinates. The ordinate of the reference projection coordinates of the control point is determined based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the zone number and central longitude of the Gaussian projection zone where the control point is located, the radius of curvature of the prime meridian in the ellipsoid parameters, the second coordinate transformation parameter, and the third coordinate transformation parameter.

[0016] In one possible implementation, the projection coordinate determination module is used to determine a first fusion parameter based on the ramidal radius of curvature of the ellipsoid parameters, the longitude and latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter; determine a second fusion parameter based on the longitude and latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter; and add the first coordinate transformation parameter, the first fusion parameter, and the second fusion parameter to obtain the abscissa of the reference projection coordinates of the control point.

[0017] In one possible implementation, the projection coordinate determination module is used to multiply the zone number of the Gaussian projection zone where the control point is located by a first value to obtain a third fusion parameter; determine a fourth fusion parameter based on the ramidal radius of curvature of the ellipsoid parameters, the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter; and add the second value, the third fusion parameter, and the fourth fusion parameter to obtain the ordinate of the reference projection coordinates of the control point.

[0018] In one possible implementation, the map coordinate determination module is used to add the scene coordinates of the target virtual object in the reference virtual scene to the reference projection coordinates to obtain the projection coordinates of the target virtual object; and to convert the projection coordinates of the target virtual object into map coordinates in the three-dimensional map.

[0019] In one possible implementation, the map coordinate determination module is used to determine the latitude of the target virtual object's map coordinates in the 3D map based on a fourth coordinate transformation parameter, a fifth coordinate transformation parameter, a sixth coordinate transformation parameter, a seventh coordinate transformation parameter, an eighth coordinate transformation parameter, and a ninth coordinate transformation parameter. The fourth coordinate transformation parameter is determined based on a first angle and a first parameter. The first angle is determined based on the abscissa of the target virtual object's projected coordinates, the semi-major axis of the Earth's ellipsoid, and a first eccentricity. The first parameter is determined based on the semi-major axis and semi-minor axis of the ellipsoid. The fifth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter, the semi-major axis of the ellipsoid, and the first eccentricity. The sixth coordinate transformation parameter... The transformation parameters are determined based on the fourth coordinate transformation parameter, the major and minor axes of the ellipsoid parameters, and the second eccentricity. The seventh coordinate transformation parameter is determined based on the ordinate of the projected coordinates of the target virtual object, the sixth coordinate transformation parameter, and the zone number of the Gaussian projection zone where the target virtual object is located. The eighth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter. The ninth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter and the second eccentricity. Based on the central longitude of the Gaussian projection zone where the target virtual object is located, the fourth coordinate transformation parameter, the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter, the longitude of the map coordinates of the target virtual object in the 3D map is determined.

[0020] In one possible implementation, the map coordinate determination module is used to determine a fifth fusion parameter based on the fourth coordinate transformation parameter, the fifth coordinate transformation parameter, and the sixth coordinate transformation parameter; determine a sixth fusion parameter based on the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter; and subtract the product of the fourth coordinate transformation parameter and the fifth and sixth fusion parameters to obtain the latitude of the map coordinates of the target virtual object in the three-dimensional map.

[0021] In one possible implementation, the map coordinate determination module is used to determine a seventh fusion parameter based on the fourth coordinate transformation parameter; determine an eighth fusion parameter based on the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter; and add the central longitude of the Gaussian projection zone where the target virtual object is located to the product of the seventh fusion parameter and the eighth fusion parameter to obtain the longitude of the map coordinates of the target virtual object in the three-dimensional map.

[0022] In one possible implementation, the rendering module is configured to create a model of the target virtual object in the 3D map based on the map coordinates of the target virtual object; and render the model of the target virtual object in the 3D map based on the target texture pixel values.

[0023] In one possible implementation, the device further includes:

[0024] The target texture pixel value acquisition module is used to load the model of the target virtual object in the reference virtual scene; acquire multiple candidate texture pixel values ​​of the target virtual object; and perform a weighted summation of the multiple candidate texture pixel values ​​to obtain the target texture pixel value of the target virtual object.

[0025] In one possible implementation, the map coordinate determination module is used to determine a reference point corresponding to the origin in the three-dimensional map; and to determine the map coordinates of the reference point in the three-dimensional map.

[0026] On one hand, a computer device is provided, the computer device including one or more processors and one or more memories, the one or more memories storing at least one computer program, the computer program being loaded and executed by the one or more processors to implement the rendering method of the virtual object.

[0027] On one hand, a computer-readable storage medium is provided, wherein at least one computer program is stored in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement the rendering method of the virtual object.

[0028] On one hand, a computer program product or computer program is provided, which includes program code stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to execute the rendering method of the virtual object described above.

[0029] The technical solution provided in this application determines reference projection coordinates by referencing the map coordinates of control points in the virtual scene on a 3D map. These reference projection coordinates are then used to transform the scene coordinates of the target virtual object in the reference virtual scene to map coordinates on the 3D map, effectively converting the target virtual object from the reference virtual scene to the 3D map. The target virtual object can then be rendered directly in the 3D map by calling the target texture pixel values ​​determined in the reference virtual scene, eliminating the need to determine the texture pixel values ​​again in the 3D map. This improves rendering efficiency while enhancing human-computer interaction. Attached Figure Description

[0030] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0031] Figure 1 This is a schematic diagram of the implementation environment of a virtual object rendering method provided in an embodiment of this application;

[0032] Figure 2 This is a flowchart of a virtual object rendering method provided in an embodiment of this application;

[0033] Figure 3 This is a flowchart of a virtual object rendering method provided in an embodiment of this application;

[0034] Figure 4 This is a schematic diagram of a reference virtual scene provided in an embodiment of this application;

[0035] Figure 5 This is a schematic diagram of a three-dimensional map provided in an embodiment of this application;

[0036] Figure 6 This is a schematic diagram of the structure of a virtual object rendering device provided in an embodiment of this application;

[0037] Figure 7 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application;

[0038] Figure 8 This is a schematic diagram of the structure of a server provided in an embodiment of this application. Detailed Implementation

[0039] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0040] In this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function. It should be understood that there is no logical or temporal dependency between "first," "second," and "nth," nor are there any restrictions on quantity or execution order.

[0041] Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to achieve data computing, storage, processing, and sharing.

[0042] Cloud technology is a collective term for network technologies, information technologies, integration technologies, management platform technologies, and application technologies applied to the cloud computing business model. It can form resource pools, providing flexible and convenient on-demand access. Cloud computing technology will become a crucial support. Backend services of technical network systems require substantial computing and storage resources, such as video websites, image websites, and many portal websites. With the rapid development and application of the internet industry, every item may have its own identification mark in the future, requiring transmission to backend systems for logical processing. Data at different levels will be processed separately, and various industry data will all require robust system support, which can only be achieved through cloud computing.

[0043] Cloud computing is a computing model that distributes computing tasks across a resource pool consisting of a large number of computers, enabling various application systems to access computing power, storage space, and information services as needed. The network providing these resources is called the "cloud." From the user's perspective, the resources in the "cloud" are infinitely scalable, readily available, on-demand, expandable, and pay-as-you-go.

[0044] As a provider of fundamental cloud computing capabilities, a cloud resource pool (referred to as a cloud platform, generally called an IaaS (Infrastructure as a Service) platform) is established. Various types of virtual resources are deployed in the resource pool for external customers to choose from. The cloud resource pool mainly includes: computing devices (virtualized machines containing operating systems), storage devices, and network devices.

[0045] Based on logical function, a PaaS (Platform as a Service) layer can be deployed on top of the IaaS (Infrastructure as a Service) layer, and a SaaS (Software as a Service) layer can be deployed on top of the PaaS layer. Alternatively, SaaS can be deployed directly on top of IaaS. PaaS is a platform for running software, such as databases and web containers. SaaS refers to various types of business software, such as web portals and bulk SMS senders. Generally speaking, SaaS and PaaS are upper layers compared to IaaS.

[0046] Map coordinate system: A spherical coordinate system based on the Earth ellipsoid, usually expressed in the form of latitude and longitude. Currently, there are various definitions for the parameters of the Earth ellipsoid. The WGS84 standard ellipsoid is the most commonly used Earth ellipsoid. In some embodiments, the map coordinate system is also referred to as the geographic coordinate system.

[0047] Projected coordinate systems are planar coordinate systems formed by projecting map coordinates onto a horizontal plane using mathematical methods. Since all projection methods cause some distortion, they are divided into three main categories: conformal projections, equidistant projections, and equal-area projections. The Gaussian projection is the most commonly used projection and belongs to the conformal projection category. To avoid excessive projection distortion, the Gaussian projection typically starts from the 0-degree meridian and divides the map into zones of 6 degrees each, numbered accordingly, effectively controlling projection distortion within each zone.

[0048] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, data stored, data displayed, etc.) and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0049] Figure 1 This is a schematic diagram illustrating the implementation environment of a virtual object rendering method provided in this application embodiment. See also... Figure 1 The implementation environment may include terminal 110 and server 140.

[0050] Terminal 110 is connected to server 140 via a wireless or wired network. Optionally, terminal 110 can be a vehicle-mounted terminal, smartphone, tablet, laptop, desktop computer, etc., but is not limited to these. Terminal 110 has an application installed and running that supports 3D map display.

[0051] Server 140 is a standalone physical server, or a server cluster or distributed system consisting of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms.

[0052] Those skilled in the art will understand that the number of terminals described above can be more or less. For example, there may be only one terminal, or there may be dozens or hundreds of terminals, or even more, in which case other terminals may also be included in the above implementation environment. This application does not limit the number of terminals or the type of device in its embodiments.

[0053] After introducing the implementation environment of the embodiments of this application, the application scenarios of the embodiments of this application will be introduced below.

[0054] The virtual object rendering method provided in this application can be applied to the creation of 3D maps. Technicians create and render target virtual objects in a reference virtual scene using a terminal, obtaining the target texture pixel values ​​of the target virtual object. The terminal uses the virtual object rendering method provided in this application to add the target virtual object to the 3D map through coordinate transformation, and then renders the target virtual object in the 3D map using the target texture pixel values. This completes the purpose of adding the target virtual object created in the reference virtual scene to the 3D map without requiring further settings and adjustments in the 3D map, resulting in high efficiency in human-computer interaction.

[0055] In some embodiments, the technical solutions provided in this application can be executed by a server, and the technical solutions can be provided to users as a cloud service. Users can execute the technical solutions provided in this application by calling the relevant cloud service.

[0056] After introducing the implementation environment and application scenarios of the embodiments of this application, the technical solutions provided by the embodiments of this application are described below. (See also...) Figure 2 Taking the terminal as the executing entity as an example, the method includes the following steps.

[0057] 201. The terminal determines the map coordinates of the control points in the reference virtual scene on the 3D map. The reference virtual scene includes the target virtual object to be rendered.

[0058] The reference virtual scene is a virtual scene used to create virtual objects. Compared to the 3D map, the scale of the reference virtual scene is smaller; therefore, it is also called a small-scale scene, while the 3D map is called a large-scale scene. Control points in the virtual scene are also called reference points, serving as the benchmark for coordinate transformation. Map coordinates are the coordinates of the control points within the 3D map.

[0059] 202. Based on the map coordinates of the control point, the terminal determines the reference projection coordinates of the control point. The reference projection coordinates are used to represent the offset between the scene coordinates of the target virtual object in the reference virtual scene and the projection coordinates in the three-dimensional map.

[0060] The reference projection coordinates are the projected coordinates of the control point in the 3D map.

[0061] 203. Based on the reference projection coordinates and the scene coordinates of the target virtual object in the reference virtual scene, the terminal determines the map coordinates of the target virtual object in the 3D map.

[0062] The scene coordinates of the target virtual object in the reference virtual scene are the coordinates of the target virtual object in the reference virtual scene.

[0063] 204. The terminal renders the target virtual object in the 3D map based on the map coordinates of the target virtual object and the target texture pixel value, which is determined in the reference virtual scene.

[0064] The target texture pixel value is determined in the reference virtual scene. When rendering the target virtual object in the 3D map, the target texture pixel value can be directly called for rendering, without the need to redetermine the texture pixel value in the 3D map, resulting in high rendering efficiency.

[0065] The technical solution provided in this application determines reference projection coordinates by referencing the map coordinates of control points in the virtual scene on a 3D map. These reference projection coordinates are then used to transform the scene coordinates of the target virtual object in the reference virtual scene to map coordinates on the 3D map, effectively converting the target virtual object from the reference virtual scene to the 3D map. The target virtual object can then be rendered directly in the 3D map by calling the target texture pixel values ​​determined in the reference virtual scene, eliminating the need to determine the texture pixel values ​​again in the 3D map. This improves rendering efficiency while enhancing human-computer interaction.

[0066] Steps 201-204 above are a brief introduction to the technical solutions provided in the embodiments of this application. The technical solutions provided in the embodiments of this application will be explained more clearly below with some examples. See [link to relevant documentation]. Figure 3 Taking the joint execution of the server and terminal as an example, the method includes the following steps.

[0067] 301. The server determines the map coordinates of the control points in the reference virtual scene in the 3D map, which includes the target virtual object to be rendered.

[0068] The reference virtual scene is independent of the 3D map. The reference virtual scene is used to create virtual objects, while the 3D map displays the real terrain within a certain area. The 3D map includes multiple virtual objects that simulate buildings, roads, and public facilities within the area. The positions of virtual objects in the reference virtual scene are described by scene coordinates, which are coordinates in the scene coordinate system corresponding to the reference virtual scene. These scene coordinates are 3D coordinates. In some embodiments, the scene coordinate system is also called the local coordinate system, and correspondingly, the scene coordinates are also called local coordinates. In some embodiments, the scene coordinate system (local coordinate system) is a Cartesian coordinate system in the form of XYZ. The control point is a reference point in the reference virtual scene, used as a reference point for coordinate transformation, serving as a positional reference. The map coordinates in the 3D map represent the positions of virtual objects within the 3D map. These map coordinates are coordinates in the map coordinate system corresponding to the 3D map, and are spherical coordinates in the form of latitude and longitude, including three dimensions: longitude, latitude, and altitude. In some embodiments, the map coordinate system is also called the geographic coordinate system, and correspondingly, the map coordinates are also called geographic coordinates. The target virtual object to be rendered is a virtual object to be rendered in the 3D map, and the target virtual object is a 3D object. In some embodiments, the target virtual object is a virtual building.

[0069] In one possible implementation, the control point is the origin of the scene coordinate system of the reference virtual scene, and the server determines the reference point corresponding to the origin in the 3D map. The server then determines the map coordinates of the reference point in the 3D map.

[0070] In this implementation, the server can determine the corresponding reference point in the 3D map based on the origin of the scene coordinate system, and set the map coordinates of the reference point as the map coordinates of the origin, which is highly efficient.

[0071] In some embodiments, the terminal displays the reference virtual scene and the 3D map. The reference virtual scene displays three coordinate axes of the scene coordinate system. The data used to display the reference virtual scene and the 3D map is sent to the terminal by the server. In response to a click operation on the origin of the scene coordinate system, the server designates the origin as a control point. In response to the origin being dragged to any position in the 3D map, the server determines a reference point at the end of the drag operation, and the server determines the map coordinates of the reference point, which are also the map coordinates of the origin. In this implementation, technicians can determine the position of the origin in the 3D map by dragging it, offering high autonomy. The drag operation directly establishes the association between the origin and the reference point, resulting in high efficiency of human-computer interaction.

[0072] In some embodiments, the terminal displays the reference virtual scene, which shows the three coordinate axes of the scene coordinate system. The data used to display the reference virtual scene and the 3D map is sent to the terminal by the server. In response to a click operation on the origin of the scene coordinate system, the server designates the origin as a control point. In response to a call to the 3D map, the terminal displays the 3D map. In response to a click operation in the 3D map, the server determines a reference point at the clicked location. The server determines the map coordinates of the reference point in the 3D map; these map coordinates are also the map coordinates of the origin. In this implementation, technicians can quickly determine the map coordinates of the origin in the 3D map through a click operation, resulting in high efficiency.

[0073] It should be noted that the above two embodiments are illustrated by using a server as a cloud service provider platform to execute the technical solutions provided in this application. In other possible implementations, the terminal can also directly execute the above implementations, and this application does not limit this.

[0074] In some embodiments, the origin of the scene coordinate system may be on the target virtual object, such as at the geometric center of the target virtual object, or it may not be on the target virtual object, such as below the target virtual object. This application embodiment does not limit this.

[0075] In some embodiments, the reference virtual scene provides editing functionality for the target virtual object. The terminal displays the reference virtual scene, which includes various editing tools for creating or editing virtual objects within the scene. These tools may include tools for selecting different material effects to render the virtual object, as well as tools for adjusting the size of the virtual object. This embodiment does not limit the scope of these tools; different material effects correspond to different textures. It should be noted that the reference virtual scene is displayed by the terminal, while the background processing for editing the virtual object using the editing tools is executed by the server.

[0076] 302. Based on the map coordinates of the control point, the server determines the reference projection coordinates of the control point. The reference projection coordinates are used to represent the offset between the scene coordinates of the target virtual object in the reference virtual scene and the projection coordinates in the 3D map.

[0077] The map coordinates of this control point include longitude and latitude. The projected coordinates in a 3D map refer to the coordinates in the projected coordinate system of the 3D map, and are planar projected coordinates in XY form.

[0078] In one possible implementation, the server determines the abscissa of the reference projected coordinates of the control point based on the longitude and latitude of the control point's map coordinates, the radius of curvature of the primordial circle in the Earth's ellipsoid parameters, the central longitude of the Gaussian projection zone where the control point is located, a first coordinate transformation parameter, a second coordinate transformation parameter, and a third coordinate transformation parameter. The first coordinate transformation parameter is determined based on the semi-major axis, the first eccentricity, and the latitude of the map coordinates in the ellipsoid parameters. The second coordinate transformation parameter is determined based on the second eccentricity and the latitude of the map coordinates in the ellipsoid parameters. The third coordinate transformation parameter is determined based on the latitude of the map coordinates. The server then determines the ordinate of the reference projected coordinates of the control point based on the longitude and latitude of the control point's map coordinates, the zone number and central longitude of the Gaussian projection zone where the control point is located, the radius of curvature of the primordial circle in the ellipsoid parameters, the second coordinate transformation parameter, and the third coordinate transformation parameter.

[0079] The Earth's ellipsoid parameters are used to describe the Earth's shape. These ellipsoid parameters correspond one-to-one with geocentric coordinate systems. For example, in this embodiment, the ellipsoid parameters correspond to the WGS84 (World Geodetic System 1984) geocentric coordinate system. The meridian refers to the great circle in the horizontal coordinate system. In other possible implementations, ellipsoid parameters corresponding to other geocentric coordinate systems can also be used for calculations; this embodiment does not limit this. The horizontal meridian is perpendicular to the meridian circle, intersecting it at its east and west points. Gaussian projection zones refer to several projection zones that divide the Earth's ellipsoid according to a certain longitude difference. The zone number of a Gaussian projection zone refers to its sequence number among multiple Gaussian projection zones, and the central longitude of a Gaussian projection zone refers to the longitude that bisects the zone. The first coordinate transformation parameter, the second coordinate transformation parameter, and the third coordinate transformation parameter are all parameters used for coordinate transformation.

[0080] In this implementation, the server can determine the reference projection coordinates of the control point based on the Earth's ellipsoid parameters and the map coordinates of the control point, and then perform coordinate transformations using the reference projection coordinates of the control point.

[0081] To provide a clearer explanation of the above embodiments, the following description will be divided into two parts.

[0082] Part 1: The server determines the abscissa of the reference projection coordinates of the control point based on the longitude of the control point's map coordinates, the latitude of the control point's map coordinates, the radius of curvature of the troposphere in the Earth's ellipsoid parameters, the central longitude of the Gaussian projection zone where the control point is located, the first coordinate transformation parameter, the second coordinate transformation parameter, and the third coordinate transformation parameter.

[0083] In one possible implementation, the server determines a first fusion parameter based on the ramidal radius of curvature of the ellipsoid parameters, the longitude and latitude of the control point's map coordinates, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter. The server then determines a second fusion parameter based on the same parameters. Finally, the server adds the first fusion parameter, the first fusion parameter, and the second fusion parameter to obtain the abscissa of the control point's reference projected coordinates.

[0084] In this implementation, the server can determine the first fusion parameter and the second fusion parameter based on the above-mentioned multiple parameters, and add the first coordinate transformation parameter, the first fusion parameter and the second fusion parameter to obtain the abscissa of the reference projection coordinates of the control point.

[0085] For example, the server obtains the abscissa of the reference projection coordinates of the control point using the following formula (1).

[0086]

[0087] Where X is the abscissa of the reference projected coordinates of the control point, M is the first coordinate transformation parameter, C1 is the second coordinate transformation parameter, and T1 is the third coordinate transformation parameter. T1 = tan(latitude) 2 , where 'a' is the semi-major axis in the Earth's ellipsoid parameters, and 'e1' is the first eccentricity in the Earth's ellipsoid parameters. e2 is the second eccentricity in the Earth's ellipsoid parameters. b represents the minor semi-axis in the Earth's ellipsoid parameters, longitude represents the longitude (expressed in radians) of the control point's map coordinates, latitude represents the latitude (expressed in radians) of the control point's map coordinates, and L represents the central longitude (expressed in radians) of the Gaussian projection zone in which the control point is located. The first fusion parameter, The second fusion parameter is N1, where N1 is the radius of curvature of the ramid.

[0088] The second part involves the server determining the ordinate of the reference projection coordinates of the control point based on the longitude of the control point's map coordinates, the latitude of the control point's map coordinates, the zone number and central longitude of the Gaussian projection zone in which the control point is located, the radius of curvature of the ramusoidal circle in the ellipsoidal parameters, the second coordinate transformation parameter, and the third coordinate transformation parameter.

[0089] In one possible implementation, the server multiplies the zone number of the Gaussian projection zone in which the control point is located with a first value to obtain a third fusion parameter. Based on the elliptic curvature radius, the longitude and latitude of the control point's map coordinates, the central longitude of the Gaussian projection zone in which the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter, the server determines a fourth fusion parameter. The server then adds the second value, the third fusion parameter, and the fourth fusion parameter to obtain the ordinate of the reference projected coordinates of the control point.

[0090] For example, the server obtains the ordinate of the reference projection coordinates of the control point using the following formula (2).

[0091]

[0092] Where Y is the ordinate of the reference projection coordinates of the control point, Num is the zone number of the Gaussian projection zone in which the control point is located, with the first value being 1,000,000, the second value being 500,000, and the third fusion parameter being Num × 1,000,000. The first and second values ​​are determined by technicians based on the actual situation, and the fourth fusion parameter is...

[0093] 303. The server adds the scene coordinates of the target virtual object in the reference virtual scene to the reference projection coordinates to obtain the projection coordinates of the target virtual object.

[0094] Here, the scene coordinates of the target virtual object in the reference virtual scene refer to the scene coordinates of multiple points on the target virtual object in the reference virtual scene. Correspondingly, the projected coordinates of the target virtual object refer to the coordinates of multiple points on the target virtual object in the projected coordinate system of the 3D map.

[0095] In one possible implementation, the scene coordinates of the target virtual object in the reference virtual scene are three-dimensional coordinates, including three dimensions: horizontal (X), vertical (Y), and height (Z). The server adds the x-coordinate of the target virtual object's scene coordinates to the x-coordinate of the reference projection coordinates to obtain the x-coordinate of the target virtual object's projected coordinates. The server adds the y-coordinate of the target virtual object's scene coordinates to the y-coordinate of the reference projection coordinates to obtain the y-coordinate of the target virtual object's projected coordinates. The projected coordinates of the target virtual object are two-dimensional coordinates, including both x and y coordinates. The projected coordinates of the target virtual object can represent the position of the target virtual object in the projected coordinate system of the three-dimensional map.

[0096] In this implementation, the server can adjust the scene coordinates of the target virtual object by referring to the projection coordinates, thereby obtaining the projection coordinates of the target virtual object, which completes a coordinate transformation and facilitates subsequent coordinate unification.

[0097] 304. The server converts the projected coordinates of the target virtual object into map coordinates in the 3D map.

[0098] In one possible implementation, the server determines the latitude of the target virtual object's map coordinates in the 3D map based on a fourth, fifth, sixth, seventh, eighth, and ninth coordinate transformation parameter. The fourth coordinate transformation parameter is determined based on a first angle and a first parameter. The first angle is determined based on the abscissa of the target virtual object's projected coordinates, the semi-major axis of the Earth's ellipsoid, and a first eccentricity. The first parameter is determined based on the semi-major and semi-minor axes of the ellipsoid. The fifth coordinate transformation parameter... The transformation parameters are determined based on the fourth coordinate transformation parameter, the semi-major axis of the ellipsoid parameter, and the first eccentricity. The sixth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter, the semi-major axis and semi-minor axis of the ellipsoid parameter, and the second eccentricity. The seventh coordinate transformation parameter is determined based on the ordinate of the projected coordinates of the target virtual object, the sixth coordinate transformation parameter, and the zone number of the Gaussian projection zone in which the target virtual object is located. The eighth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter. The ninth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter and the second eccentricity. The server determines the longitude of the map coordinates of the target virtual object in the 3D map based on the central longitude of the Gaussian projection zone in which the target virtual object is located, the fourth coordinate transformation parameter, the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter.

[0099] Among them, the fourth, fifth, sixth, seventh, eighth, and ninth coordinate transformation parameters are all parameters used for coordinate transformation.

[0100] In this implementation method, the server can transform the projected coordinates of the target virtual object into map coordinates in a 3D map, thereby achieving the purpose of transforming the target virtual object from the reference virtual scene into a 3D map.

[0101] To provide a clearer explanation of the above embodiments, the following description will be divided into two parts.

[0102] Part 1: The server determines the latitude of the target virtual object's map coordinates in the 3D map based on the fourth, fifth, sixth, seventh, eighth, and ninth coordinate transformation parameters.

[0103] In one possible implementation, the server determines a fifth fusion parameter based on the fourth, fifth, and sixth coordinate transformation parameters. The server determines a sixth fusion parameter based on the seventh, eighth, and ninth coordinate transformation parameters. The server subtracts the product of the fourth coordinate transformation parameter and the fifth and sixth fusion parameters to obtain the latitude of the target virtual object's map coordinates in the 3D map.

[0104] For example, the server can obtain the latitude of the map coordinates of the target virtual object in the three-dimensional map using the following formula (3).

[0105]

[0106] Among them, latitude m B represents the dimension of the target virtual object in this three-dimensional graph, and B is the fourth coordinate transformation parameter. e3 is the first parameter. From the first angle, X t R represents the x-coordinate in the projected coordinates of the target virtual object, and R is the fifth coordinate transformation parameter. N2 is the sixth coordinate transformation parameter. D is the fifth fusion parameter, and D is the seventh coordinate transformation parameter. Y t T1 is the x-coordinate in the projected coordinates of the target virtual object, and T2 is the eighth coordinate transformation parameter, T2 = tan B. 2 C2 is the ninth coordinate transformation parameter. The sixth fusion parameter is L, where L is the Gaussian projection zone where the target virtual object is located.

[0107] Part Two: The server determines the longitude of the map coordinates of the target virtual object in the 3D map based on the central longitude of the Gaussian projection zone where the target virtual object is located, the fourth coordinate transformation parameter, the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter.

[0108] In one possible implementation, the server determines the seventh fusion parameter based on the fourth coordinate transformation parameter. The server then determines the eighth fusion parameter based on the seventh, eighth, and ninth coordinate transformation parameters. The server adds the central longitude of the Gaussian projection zone where the target virtual object is located to the product of the seventh and eighth fusion parameters to obtain the longitude of the target virtual object's map coordinates in the 3D map.

[0109] For example, the server can obtain the longitude of the map coordinates of the target virtual object in the three-dimensional map using the following formula (4).

[0110]

[0111] Among them, longtitude m The longitude of the target virtual object in this three-dimensional graph. This is the seventh fusion parameter. This is the eighth fusion parameter.

[0112] It should be noted that the above steps can determine the longitude and latitude of the target virtual object in the 3D map. The map coordinates also include the height. Since the height does not change during the coordinate transformation, the height of the target virtual object can be directly reused from the height of the target virtual object in the reference virtual scene.

[0113] Through steps 301-304 above, the server transforms the scene coordinates of the target virtual object in the reference virtual scene to the map coordinates in the 3D map, thereby unifying the coordinates of the reference virtual scene and the 3D map.

[0114] Furthermore, the above steps 301-304 are described using the server as the execution subject as an example. In other possible implementations, the above steps 301-304 can also be executed by the terminal, and this application embodiment does not limit this.

[0115] 305. The server sends the map coordinates of the target virtual object to the terminal.

[0116] 306. The terminal obtains the target texture pixel value of the target virtual object.

[0117] In one possible implementation, the terminal loads the model of the target virtual object into the reference virtual scene. The terminal obtains multiple candidate texture pixel values ​​of the target virtual object. The terminal performs a weighted summation of the multiple candidate texture pixel values ​​to obtain the target texture pixel value of the target virtual object.

[0118] The target virtual object is a 3D model created by technicians using a reference virtual scene or other modeling applications. Multiple candidate texture pixel values ​​of the target virtual object correspond to various rendering effects. Each rendering effect is derived by combining real-time lighting, real-time lighting reflection calculations, and the texture of the 3D model itself. Using multiple texture pixel values ​​to represent different rendering effects allows technicians to individually adjust specific rendering effects, improving the efficiency of human-computer interaction. In some embodiments, rendering effects include occlusion shadow calculation, PBR (Physically Based Rendering) mapping, and self-illumination. The PBR mapping includes physically based lighting reflection factors that define the material, such as metallicity, roughness, and ambient occlusion. The lighting reflection of each vertex is calculated in real-time based on these factors, forming material effects such as ambient reflection, shadows, bumps, and specular highlights.

[0119] In this implementation, the terminal can determine the target texture pixel value of the target virtual object by referring to the virtual scene.

[0120] For example, in response to a call operation on the target virtual object in the reference virtual scene, the terminal determines the model of the target virtual object and loads the 3D model of the target virtual object into the reference virtual scene. In response to a rendering operation on the target virtual object in the reference virtual scene, the terminal obtains multiple candidate texture pixel values ​​corresponding to the rendering operation. The terminal performs a weighted summation of the multiple candidate texture pixel values ​​to obtain the target texture pixel value of the target virtual object. In some embodiments, the process of the terminal obtaining the target texture pixel value of the target virtual object is all processed in the terminal's rendering pipeline.

[0121] For example, the terminal displays the reference virtual scene, which includes a model loading control. In response to a click on the model loading control, the terminal displays a model selection interface, which displays the identifiers of multiple candidate virtual objects. In response to a click on the identifier of the target virtual object among the multiple candidate virtual object identifiers, the terminal queries based on the identifier of the target virtual object to obtain the model file of the target virtual object. The terminal calls the model file and loads the model of the target virtual object into the reference virtual scene. The reference virtual scene also includes multiple rendering controls, which are used to render the model of the target virtual object. For example, the multiple rendering controls include a lighting adjustment control, which can be used to adjust the lighting of the model of the target virtual object. In response to the operation of the multiple rendering controls, the terminal obtains multiple candidate texture pixel values ​​corresponding to the rendering operation. The terminal performs a weighted sum of the multiple candidate texture pixel values ​​to obtain the target texture pixel value of the target virtual object. For example, taking two candidate texture pixel values ​​as an example, the terminal performs a weighted sum of the two candidate texture pixel values ​​using the following formula (5) to obtain the target texture pixel value.

[0122] mix.rgbα=texture1.rgbα×(1-β)+texture2.rgbα×β (5)

[0123] Wherein, mix.rgbα is the target texture pixel value, rgbα represents the RGB value and transparency respectively, texture1.rgbα is the first candidate texture pixel value, corresponding to the first rendering effect. In some embodiments, texture1.rgbα is a texture pixel matrix, and the expression form of texture1.rgbα is [texture1.rtexture1.gtexture1.btexture1 α]. texture2.rgbα is the second candidate texture pixel value, corresponding to the second rendering effect. In some embodiments, texture2.rgbα is a texture pixel matrix, and the expression form of texture2.rgbα is [texture2.r texture2.g texture2.b texture2 α]. The expression form of mix.rgbα is [mix.r mix.g mix.b mix α]. β is the weight of the weighted summation, which is set by the technician according to the actual situation. This application embodiment does not limit this.

[0124] It should be noted that the above description is based on the terminal determining the target rendering parameters of the target virtual object. In other possible implementations, the target rendering parameters of the target virtual object can also be determined by the server, such as by the cloud rendering server provided by the cloud platform. This application embodiment does not limit this.

[0125] In some embodiments, the rendering effect of the model of the target virtual object based on the target texture pixel values ​​is displayed in the reference virtual scene via a terminal, so that technicians can preview the rendering effect in real time. For example, see Figure 4 The terminal displays the target virtual object 401 rendered based on the target texture pixel value in the reference virtual scene 400. The target virtual object 401 is a virtual building.

[0126] Furthermore, the above implementation is illustrated by taking the weighted summation of the multiple candidate texture pixel values ​​as an example to obtain the target texture pixel value. Weighted summation is a linear mixing method. In other possible implementations, the terminal can also use a non-linear mixing method to fuse the multiple candidate texture pixel values ​​to obtain the target texture pixel value. This application does not limit this.

[0127] It should be noted that step 306 can be executed either after step 305 or at any time before steps 301-305, and this embodiment does not limit this. In this embodiment, step 306 is executed after step 305 as an example.

[0128] 307. The terminal renders the target virtual object in the 3D map based on the map coordinates and target texture pixel values ​​of the target virtual object, wherein the target texture pixel values ​​are determined in the reference virtual scene.

[0129] In one possible implementation, the terminal creates a model of the target virtual object in the 3D map based on the map coordinates of the target virtual object. The terminal then renders the model of the target virtual object in the 3D map based on the target texture pixel values.

[0130] In this implementation, the terminal can create a model of the target virtual object in the 3D map and render the model of the target virtual object using the target texture pixel values ​​determined in the reference virtual scene, so that the target virtual object can be completely displayed in the 3D map without having to repeatedly create the model and set the texture pixel values ​​in the 3D map, thus improving the efficiency of human-computer interaction.

[0131] For example, based on the map coordinates of multiple points within the target virtual object on a 3D map, the terminal adds these points to the 3D map to obtain a model of the target virtual object. The terminal then parses the target texture pixel values ​​and uses these parsed values ​​to render the model of the target virtual object; that is, it adds the parsed target texture pixel values ​​to the frame buffer to perform the rendering to the texture process. See also... Figure 5 The terminal renders the model of the target virtual object in the 3D map 500 using the target texture pixel values. The terminal then displays the target virtual object 501 in the 3D map 500.

[0132] The rendered 3D map can be used in various navigation scenarios, such as navigation during vehicle travel or pedestrian navigation; this application does not limit this application. Compared to 2D maps, 3D maps include elevation information, thus providing users with richer information and enabling them to choose appropriate routes based on their understanding of the terrain.

[0133] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.

[0134] The technical solution provided in this application determines reference projection coordinates by referencing the map coordinates of control points in the virtual scene on a 3D map. These reference projection coordinates are then used to transform the scene coordinates of the target virtual object in the reference virtual scene to map coordinates on the 3D map, effectively converting the target virtual object from the reference virtual scene to the 3D map. The target virtual object can then be rendered directly in the 3D map by calling the target texture pixel values ​​determined in the reference virtual scene, eliminating the need to determine the texture pixel values ​​again in the 3D map. This improves rendering efficiency while enhancing human-computer interaction.

[0135] In other words, the technical solution provided in this application proposes a method for quickly reusing the rendering effects of small-scale 3D models to large-scale 3D maps. By designing and standardizing unified coordinate system conversion rules and rendering effect conversion rules for 3D scenes at different scales, the technical solution achieves seamless integration of visualization effects between multi-scale 3D scenes. This allows technicians to transfer the visualization effects of a refined 3D model developed in a single operation to a large-scale 3D map, effectively improving the efficiency of 3D map development and usage. In other words, the technical solution provided in this application allows technicians to quickly reuse the rendering effects of a refined 3D model in a small-scale reference virtual scene after only one rendering edit, and then combine it with other virtual objects to quickly achieve overall 3D map visualization. This eliminates the need for repetitive development and rendering effect editing work in multiple-scale 3D scenes simultaneously, enabling visualization products to have the ability to reuse rendering effects multiple times after a single edit, significantly improving the development efficiency and visualization quality of 3D map construction at multiple scales.

[0136] Figure 6 This is a schematic diagram of the structure of a virtual object rendering device provided in an embodiment of this application. See also... Figure 6 The device includes: a map coordinate determination module 601, a projection coordinate determination module 602, and a rendering module 603.

[0137] The map coordinate determination module 601 is used to determine the map coordinates of control points in a reference virtual scene in a 3D map. The reference virtual scene includes the target virtual object to be rendered.

[0138] The projection coordinate determination module 602 is used to determine the reference projection coordinates of the control point based on the map coordinates of the control point. The reference projection coordinates are used to represent the offset between the scene coordinates of the target virtual object in the reference virtual scene and the projection coordinates in the three-dimensional map.

[0139] The map coordinate determination module 601 is also used to determine the map coordinates of the target virtual object in the three-dimensional map based on the reference projection coordinates and the scene coordinates of the target virtual object in the reference virtual scene.

[0140] Rendering module 603 is used to render the target virtual object in the 3D map based on the map coordinates of the target virtual object and the target texture pixel value, wherein the target texture pixel value is determined in the reference virtual scene.

[0141] In one possible implementation, the map coordinates of the control point include longitude and latitude. The projection coordinate determination module 602 is used to determine the abscissa of the reference projection coordinates of the control point based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the radius of curvature of the ramusoidal circle in the Earth's ellipsoid parameters, the central longitude of the Gaussian projection zone where the control point is located, a first coordinate transformation parameter, a second coordinate transformation parameter, and a third coordinate transformation parameter. The first coordinate transformation parameter is determined based on the semi-major axis, the first eccentricity in the ellipsoid parameters, and the latitude of the map coordinates. The second coordinate transformation parameter is determined based on the second eccentricity in the ellipsoid parameters and the latitude of the map coordinates. The third coordinate transformation parameter is determined based on the latitude of the map coordinates of the control point. The ordinate of the reference projection coordinates of the control point is determined based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the zone number and central longitude of the Gaussian projection zone where the control point is located, the radius of curvature of the ramusoidal circle in the ellipsoid parameters, the second coordinate transformation parameter, and the third coordinate transformation parameter.

[0142] In one possible implementation, the projection coordinate determination module 602 is used to determine a first fusion parameter based on the ramidal radius of curvature of the ellipsoid parameters, the longitude and latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter. A second fusion parameter is determined based on the longitude and latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter. The first coordinate transformation parameter, the first fusion parameter, and the second fusion parameter are added together to obtain the abscissa of the reference projection coordinates of the control point.

[0143] In one possible implementation, the projection coordinate determination module 602 is used to multiply the zone number of the Gaussian projection zone where the control point is located by a first value to obtain a third fusion parameter. Based on the elliptic curvature radius, the longitude and latitude of the control point's map coordinates, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter, a fourth fusion parameter is determined. The second value, the third fusion parameter, and the fourth fusion parameter are then added together to obtain the ordinate of the reference projection coordinates of the control point.

[0144] In one possible implementation, the map coordinate determination module 601 is used to add the scene coordinates of the target virtual object in the reference virtual scene to the reference projection coordinates to obtain the projection coordinates of the target virtual object. The projection coordinates of the target virtual object are then converted into map coordinates in the 3D map.

[0145] In one possible implementation, the map coordinate determination module 601 is used to determine the latitude of the target virtual object's map coordinates in the 3D map based on a fourth coordinate transformation parameter, a fifth coordinate transformation parameter, a sixth coordinate transformation parameter, a seventh coordinate transformation parameter, an eighth coordinate transformation parameter, and a ninth coordinate transformation parameter. The fourth coordinate transformation parameter is determined based on a first angle and a first parameter. The first angle is determined based on the abscissa of the target virtual object's projected coordinates, the semi-major axis of the Earth's ellipsoid parameters, and a first eccentricity. The first parameter is determined based on the semi-major axis and semi-minor axis of the ellipsoid parameters. The fifth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter, the semi-major axis of the ellipsoid parameter, and the first eccentricity. The sixth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter, the semi-major axis and semi-minor axis of the ellipsoid parameter, and the second eccentricity. The seventh coordinate transformation parameter is determined based on the ordinate of the projected coordinates of the target virtual object, the sixth coordinate transformation parameter, and the zone number of the Gaussian projection zone in which the target virtual object is located. The eighth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter. The ninth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter and the second eccentricity. Based on the central longitude of the Gaussian projection zone in which the target virtual object is located, the fourth coordinate transformation parameter, the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter, the longitude of the map coordinates of the target virtual object in the 3D map is determined.

[0146] In one possible implementation, the map coordinate determination module 601 is used to determine a fifth fusion parameter based on the fourth, fifth, and sixth coordinate transformation parameters. It then determines a sixth fusion parameter based on the seventh, eighth, and ninth coordinate transformation parameters. Finally, it subtracts the product of the fourth coordinate transformation parameter and the fifth and sixth fusion parameters to obtain the latitude of the target virtual object's map coordinates in the 3D map.

[0147] In one possible implementation, the map coordinate determination module 601 is used to determine a seventh fusion parameter based on the fourth coordinate transformation parameter. An eighth fusion parameter is determined based on the seventh, eighth, and ninth coordinate transformation parameters. The longitude of the central longitude of the Gaussian projection zone where the target virtual object is located is added to the product of the seventh and eighth fusion parameters to obtain the longitude of the target virtual object's map coordinates in the 3D map.

[0148] In one possible implementation, the rendering module 603 is used to create a model of the target virtual object in the 3D map based on the map coordinates of the target virtual object, and to render the model of the target virtual object in the 3D map based on the target texture pixel values.

[0149] In one possible implementation, the device further includes:

[0150] The target texture pixel value acquisition module is used to load the model of the target virtual object into the reference virtual scene. It acquires multiple candidate texture pixel values ​​for the target virtual object. Then, it performs a weighted sum of these candidate texture pixel values ​​to obtain the target texture pixel value of the target virtual object.

[0151] In one possible implementation, the map coordinate determination module 601 is used to determine a reference point corresponding to the origin in the 3D map, and to determine the map coordinates of the reference point in the 3D map.

[0152] It should be noted that the rendering device for virtual objects provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above. In addition, the rendering device for virtual objects and the rendering method for virtual objects provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.

[0153] The technical solution provided in this application determines reference projection coordinates by referencing the map coordinates of control points in the virtual scene on a 3D map. These reference projection coordinates are then used to transform the scene coordinates of the target virtual object in the reference virtual scene to map coordinates on the 3D map, effectively converting the target virtual object from the reference virtual scene to the 3D map. The target virtual object can then be rendered directly in the 3D map by calling the target texture pixel values ​​determined in the reference virtual scene, eliminating the need to determine the texture pixel values ​​again in the 3D map. This improves rendering efficiency while enhancing human-computer interaction.

[0154] This application provides a computer device for performing the above-described method. This computer device can be implemented as a terminal or a server. The structure of the terminal will be described below:

[0155] Figure 7 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application. The terminal 700 can be a smartphone, tablet computer, laptop computer, or desktop computer. The terminal 700 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.

[0156] Typically, terminal 700 includes one or more processors 701 and one or more memories 702.

[0157] Processor 701 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 701 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 701 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 701 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 701 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0158] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 702 are used to store at least one computer program, which is executed by the processor 701 to implement the virtual object rendering method provided in the method embodiments of this application.

[0159] In some embodiments, the terminal 700 may also optionally include a peripheral device interface 703 and at least one peripheral device. The processor 701, memory 702, and peripheral device interface 703 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 704, a display screen 705, a camera assembly 706, an audio circuit 707, and a power supply 708.

[0160] Peripheral device interface 703 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 701 and memory 702. In some embodiments, processor 701, memory 702 and peripheral device interface 703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 701, memory 702 and peripheral device interface 703 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0161] The radio frequency (RF) circuit 704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 704 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 704 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc.

[0162] Display screen 705 is used to display a user interface (UI). This UI may include graphics, text, icons, video, and any combination thereof. When display screen 705 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 701 for processing. In this case, display screen 705 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard.

[0163] The camera assembly 706 is used to capture images or videos. Optionally, the camera assembly 706 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal.

[0164] The audio circuit 707 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals that are input to the processor 701 for processing, or input to the radio frequency circuit 704 to realize voice communication.

[0165] Power supply 708 is used to supply power to the various components in terminal 700. Power supply 708 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery.

[0166] In some embodiments, the terminal 700 further includes one or more sensors 709. The one or more sensors 709 include, but are not limited to: an accelerometer 710, a gyroscope 711, a pressure sensor 712, an optical sensor 713, and a proximity sensor 714.

[0167] Accelerometer 710 can detect the magnitude of acceleration on the three coordinate axes of a coordinate system established with terminal 700.

[0168] The gyroscope sensor 711 can detect the orientation and rotation angle of the terminal 700. The gyroscope sensor 711 can work in conjunction with the accelerometer sensor 710 to collect the user's 3D movements on the terminal 700.

[0169] The pressure sensor 712 can be installed on the side bezel of the terminal 700 and / or on the lower layer of the display screen 705. When the pressure sensor 712 is installed on the side bezel of the terminal 700, it can detect the user's grip signal on the terminal 700, and the processor 701 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 712. When the pressure sensor 712 is installed on the lower layer of the display screen 705, the processor 701 can control the operable controls on the UI interface based on the user's pressure operation on the display screen 705.

[0170] An optical sensor 713 is used to collect ambient light intensity. In one embodiment, the processor 701 can control the display brightness of the display screen 705 based on the ambient light intensity collected by the optical sensor 713.

[0171] The proximity sensor 714 is used to detect the distance between the user and the front of the terminal 700.

[0172] Those skilled in the art will understand that Figure 7 The structure shown does not constitute a limitation on terminal 700, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0173] The aforementioned computer equipment can also be implemented as a server. The structure of a server is described below:

[0174] Figure 8This is a schematic diagram of a server structure provided in an embodiment of this application. The server 800 can vary significantly due to different configurations or performance. It may include one or more Central Processing Units (CPUs) 801 and one or more memories 802. The one or more memories 802 store at least one computer program, which is loaded and executed by the one or more processors 801 to implement the methods provided in the various method embodiments described above. Of course, the server 800 may also have wired or wireless network interfaces, a keyboard, and input / output interfaces for input and output. The server 800 may also include other components for implementing device functions, which will not be elaborated upon here.

[0175] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including a computer program that can be executed by a processor to perform the virtual object rendering method in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0176] In an exemplary embodiment, a computer program product or computer program is also provided, which includes program code stored in a computer-readable storage medium. A processor of a computer device reads the program code from the computer-readable storage medium and executes the program code, causing the computer device to perform the rendering method of the virtual object described above.

[0177] In some embodiments, the computer program involved in the present application embodiments may be deployed and executed on a computer device, or executed on multiple computer devices located in one location, or executed on multiple computer devices distributed in multiple locations and interconnected through a communication network. Multiple computer devices distributed in multiple locations and interconnected through a communication network may constitute a blockchain system.

[0178] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0179] The above are merely optional embodiments of this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for rendering virtual objects, characterized in that, The method includes: Based on the control points in the reference virtual scene, corresponding reference points are determined in the 3D map, and the map coordinates of the reference points in the 3D map are determined as the map coordinates of the control points; the control point is a reference point in the reference virtual scene, and the reference virtual scene includes the target virtual object to be rendered; the map coordinates are geographic coordinates. Based on the map coordinates of the control point, the reference projection coordinates of the control point are determined. The reference projection coordinates are used to represent the offset between the scene coordinates of the target virtual object in the reference virtual scene and the projection coordinates in the three-dimensional map. Based on the reference projection coordinates and the scene coordinates of multiple points on the target virtual object in the reference virtual scene, determine the projection coordinates of multiple points on the target virtual object in the projection coordinate system of the 3D map; Convert the projected coordinates of the target virtual object into map coordinates in the 3D map; In response to a rendering operation on the target virtual object in the reference virtual scene, multiple candidate texture pixel values ​​corresponding to the rendering operation are obtained. These multiple candidate texture pixel values ​​correspond to multiple rendering effects, each of which is obtained by combining real-time lighting, the emission calculation results of real-time lighting, and the texture of the 3D model itself. Based on the multiple candidate texture pixel values, the target texture pixel value of the target virtual object is obtained. Based on the map coordinates of the target virtual object, a model of the target virtual object is created in the 3D map; and based on the target texture pixel values ​​of the target virtual object, the model of the target virtual object is rendered in the 3D map.

2. The method according to claim 1, characterized in that, The map coordinates of the control point include longitude and latitude, and determining the reference projection coordinates of the control point based on the map coordinates of the control point includes: Based on the longitude and latitude of the control point's map coordinates, the radius of curvature of the prime meridian in the Earth's ellipsoid parameters, the central longitude of the Gaussian projection zone where the control point is located, a first coordinate transformation parameter, a second coordinate transformation parameter, and a third coordinate transformation parameter, the abscissa of the reference projection coordinates of the control point is determined. The first coordinate transformation parameter is determined based on the semi-major axis, the first eccentricity in the ellipsoid parameters, and the latitude of the map coordinates. The second coordinate transformation parameter is determined based on the second eccentricity in the ellipsoid parameters and the latitude of the map coordinates. The third coordinate transformation parameter is determined based on the latitude of the map coordinates. Based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the zone number and central longitude of the Gaussian projection zone in which the control point is located, the radius of curvature of the ramusoidal circle in the ellipsoidal parameters, the second coordinate transformation parameter and the third coordinate transformation parameter, the ordinate of the reference projection coordinates of the control point is determined.

3. The method according to claim 2, characterized in that, The determination of the abscissa of the reference projection coordinates of the control point based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the radius of curvature of the prime meridian in the Earth's ellipsoid parameters, the central longitude of the Gaussian projection zone where the control point is located, the first coordinate transformation parameter, the second coordinate transformation parameter, and the third coordinate transformation parameter includes: The first fusion parameter is determined based on the radii of curvature of the ramus and troposphere in the ellipsoid parameters, the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter. The second fusion parameter is determined based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter; The first coordinate transformation parameter, the first fusion parameter, and the second fusion parameter are added together to obtain the abscissa of the reference projection coordinates of the control point.

4. The method according to claim 2, characterized in that, The determination of the ordinate of the reference projection coordinates of the control point based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the zone number and central longitude of the Gaussian projection zone in which the control point is located, the radius of curvature of the prime and trochanter in the ellipsoidal parameters, the second coordinate transformation parameter, and the third coordinate transformation parameter includes: Multiply the zone number of the Gaussian projection zone where the control point is located by the first value to obtain the third fusion parameter; Based on the radii of curvature of the ramus and troposphere in the ellipsoid parameters, the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter, the fourth fusion parameter is determined. The second value, the third fusion parameter, and the fourth fusion parameter are added together to obtain the ordinate of the reference projection coordinates of the control point.

5. The method according to claim 1, characterized in that, Determining the projection coordinates of multiple points on the target virtual object in the projection coordinate system of the 3D map based on the reference projection coordinates and the scene coordinates of multiple points on the target virtual object in the reference virtual scene includes: The scene coordinates of the target virtual object in the reference virtual scene are added to the reference projection coordinates to obtain the projection coordinates of the target virtual object.

6. The method according to claim 5, characterized in that, The step of converting the projected coordinates of the target virtual object into map coordinates in the 3D map includes: Based on the fourth, fifth, sixth, seventh, eighth, and ninth coordinate transformation parameters, the latitude of the target virtual object's map coordinates in the 3D map is determined. The fourth coordinate transformation parameter is determined based on a first angle and a first parameter. The first angle is determined based on the abscissa of the target virtual object's projected coordinates, the semi-major axis of the Earth's ellipsoid, and the first eccentricity. The first parameter is determined based on the semi-major axis and the semi-minor axis of the ellipsoid. The fifth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter, the semi-major axis of the ellipsoid, and the first eccentricity. The sixth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter, the semi-major axis of the ellipsoid, the semi-minor axis, and the second eccentricity. The seventh coordinate transformation parameter is determined based on the ordinate of the target virtual object's projected coordinates, the sixth coordinate transformation parameter, and the zone number of the Gaussian projection zone in which the target virtual object is located. The eighth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter. The ninth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter and the second eccentricity. Based on the central longitude of the Gaussian projection zone where the target virtual object is located, the fourth coordinate transformation parameter, the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter, the longitude of the map coordinates of the target virtual object in the three-dimensional map is determined.

7. The method according to claim 6, characterized in that, The determination of the latitude of the target virtual object's map coordinates in the 3D map based on the fourth, fifth, sixth, seventh, eighth, and ninth coordinate transformation parameters includes: The fifth fusion parameter is determined based on the fourth coordinate transformation parameter, the fifth coordinate transformation parameter, and the sixth coordinate transformation parameter; The sixth fusion parameter is determined based on the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter; Subtracting the product of the fourth coordinate transformation parameter and the fifth and sixth fusion parameters yields the latitude of the target virtual object's map coordinates in the 3D map.

8. The method according to claim 6, characterized in that, The determination of the longitude of the target virtual object's map coordinates in the 3D map based on the central longitude of the Gaussian projection zone where the target virtual object is located, the fourth coordinate transformation parameter, the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter includes: Based on the fourth coordinate transformation parameter, the seventh fusion parameter is determined; The eighth fusion parameter is determined based on the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter; The longitude of the central longitude of the Gaussian projection zone where the target virtual object is located is added to the product of the seventh fusion parameter and the eighth fusion parameter to obtain the longitude of the map coordinates of the target virtual object in the three-dimensional map.

9. The method according to claim 1, characterized in that, Before rendering the model of the target virtual object in the 3D map based on the target texture pixel values ​​of the target virtual object, the method further includes: Load the model of the target virtual object into the reference virtual scene; Obtain multiple candidate texture pixel values ​​of the target virtual object; The target texture pixel value of the target virtual object is obtained by weighted summation of the multiple candidate texture pixel values.

10. The method according to claim 1, characterized in that, The control point is the origin of the scene coordinate system of the reference virtual scene. The process of determining the map coordinates of the control point in the reference virtual scene on the 3D map includes: Determine the reference point corresponding to the origin in the three-dimensional map; Determine the map coordinates of the reference point corresponding to the origin in the three-dimensional map.

11. A rendering apparatus for virtual objects, characterized in that, The device includes: The map coordinate determination module is used to determine a corresponding reference point in a 3D map based on control points in a reference virtual scene, and to determine the map coordinates of the reference point in the 3D map as the map coordinates of the control point; the control point is a reference point in the reference virtual scene, and the reference virtual scene includes a target virtual object to be rendered; the map coordinates are geographic coordinates. The projection coordinate determination module is used to determine the reference projection coordinates of the control point based on the map coordinates of the control point. The reference projection coordinates are used to represent the offset between the scene coordinates of the target virtual object in the reference virtual scene and the projection coordinates in the three-dimensional map. The map coordinate determination module is further configured to determine the projection coordinates of multiple points on the target virtual object in the projection coordinate system of the three-dimensional map based on the reference projection coordinates and the scene coordinates of multiple points on the target virtual object in the reference virtual scene; and convert the projection coordinates of the target virtual object into map coordinates in the three-dimensional map. A rendering module is configured to create a model of the target virtual object in the 3D map based on the map coordinates of the target virtual object; and to render the model of the target virtual object in the 3D map based on the target texture pixel values ​​of the target virtual object.

12. The apparatus according to claim 11, characterized in that, The map coordinates of the control point include longitude and latitude, and the projection coordinate determination module is used for: Based on the longitude and latitude of the control point's map coordinates, the radius of curvature of the prime meridian in the Earth's ellipsoid parameters, the central longitude of the Gaussian projection zone where the control point is located, a first coordinate transformation parameter, a second coordinate transformation parameter, and a third coordinate transformation parameter, the abscissa of the reference projection coordinates of the control point is determined. The first coordinate transformation parameter is determined based on the semi-major axis, the first eccentricity in the ellipsoid parameters, and the latitude of the map coordinates. The second coordinate transformation parameter is determined based on the second eccentricity in the ellipsoid parameters and the latitude of the map coordinates. The third coordinate transformation parameter is determined based on the latitude of the map coordinates. Based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the zone number and central longitude of the Gaussian projection zone in which the control point is located, the radius of curvature of the ramusoidal circle in the ellipsoidal parameters, the second coordinate transformation parameter and the third coordinate transformation parameter, the ordinate of the reference projection coordinates of the control point is determined.

13. The apparatus according to claim 12, characterized in that, The projection coordinate determination module is used for: The first fusion parameter is determined based on the radii of curvature of the ramus and troposphere in the ellipsoid parameters, the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter. The second fusion parameter is determined based on the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter; The first coordinate transformation parameter, the first fusion parameter, and the second fusion parameter are added together to obtain the abscissa of the reference projection coordinates of the control point.

14. The apparatus according to claim 12, characterized in that, The projection coordinate determination module is used for: Multiply the zone number of the Gaussian projection zone where the control point is located by the first value to obtain the third fusion parameter; Based on the radii of curvature of the ramus and troposphere in the ellipsoid parameters, the longitude of the map coordinates of the control point, the latitude of the map coordinates of the control point, the central longitude of the Gaussian projection zone where the control point is located, the second coordinate transformation parameter, and the third coordinate transformation parameter, the fourth fusion parameter is determined. The second value, the third fusion parameter, and the fourth fusion parameter are added together to obtain the ordinate of the reference projection coordinates of the control point.

15. The apparatus according to claim 11, characterized in that, The map coordinate determination module is used for: The scene coordinates of the target virtual object in the reference virtual scene are added to the reference projection coordinates to obtain the projection coordinates of the target virtual object.

16. The apparatus according to claim 15, characterized in that, The map coordinate determination module is used for: Based on the fourth, fifth, sixth, seventh, eighth, and ninth coordinate transformation parameters, the latitude of the target virtual object's map coordinates in the 3D map is determined. The fourth coordinate transformation parameter is determined based on a first angle and a first parameter. The first angle is determined based on the abscissa of the target virtual object's projected coordinates, the semi-major axis of the Earth's ellipsoid, and the first eccentricity. The first parameter is determined based on the semi-major axis and the semi-minor axis of the ellipsoid. The fifth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter, the semi-major axis of the ellipsoid, and the first eccentricity. The sixth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter, the semi-major axis of the ellipsoid, the semi-minor axis, and the second eccentricity. The seventh coordinate transformation parameter is determined based on the ordinate of the target virtual object's projected coordinates, the sixth coordinate transformation parameter, and the zone number of the Gaussian projection zone in which the target virtual object is located. The eighth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter. The ninth coordinate transformation parameter is determined based on the fourth coordinate transformation parameter and the second eccentricity. Based on the central longitude of the Gaussian projection zone where the target virtual object is located, the fourth coordinate transformation parameter, the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter, the longitude of the map coordinates of the target virtual object in the three-dimensional map is determined.

17. The apparatus according to claim 16, characterized in that, The map coordinate determination module is used for: The fifth fusion parameter is determined based on the fourth coordinate transformation parameter, the fifth coordinate transformation parameter, and the sixth coordinate transformation parameter; The sixth fusion parameter is determined based on the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter; Subtracting the product of the fourth coordinate transformation parameter and the fifth and sixth fusion parameters yields the latitude of the target virtual object's map coordinates in the 3D map.

18. The apparatus according to claim 16, characterized in that, The map coordinate determination module is used for: Based on the fourth coordinate transformation parameter, the seventh fusion parameter is determined; The eighth fusion parameter is determined based on the seventh coordinate transformation parameter, the eighth coordinate transformation parameter, and the ninth coordinate transformation parameter; The longitude of the central longitude of the Gaussian projection zone where the target virtual object is located is added to the product of the seventh fusion parameter and the eighth fusion parameter to obtain the longitude of the map coordinates of the target virtual object in the three-dimensional map.

19. The apparatus according to claim 11, characterized in that, The device further includes a target texture pixel value acquisition module, used for: Load the model of the target virtual object into the reference virtual scene; Obtain multiple candidate texture pixel values ​​of the target virtual object; The target texture pixel value of the target virtual object is obtained by weighted summation of the multiple candidate texture pixel values.

20. The apparatus according to claim 11, characterized in that, The control point is the origin of the scene coordinate system of the reference virtual scene. The map coordinate determination module is used to determine the reference point corresponding to the origin in the three-dimensional map and to determine the map coordinates of the reference point corresponding to the origin in the three-dimensional map.

21. A computer device, characterized in that, The computer device includes one or more processors and one or more memories, wherein at least one computer program is stored in the one or more memories, and the computer program is loaded and executed by the one or more processors to implement the rendering method of the virtual object as described in any one of claims 1 to 10.

22. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which is loaded and executed by a processor to implement the rendering method of the virtual object as described in any one of claims 1 to 10.

23. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the rendering method of the virtual object according to any one of claims 1 to 10.