A map scene skinning method and device
Patent Information
- Application Number
- CN202211501781.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-28
- Publication Date
- 2026-10-27
- Estimated Expiration
- 2042-11-28
AI Technical Summary
然而,这样的单独绘制和开发并更换显示的过程,会对应增加换肤时间,效率不足,降低用户体验,并且增加了开发成本和美术资源的投入,降低了资源利用率
[0035]本申请实施例中,接收针对指定地图场景的换肤请求,其中,换肤请求携带指定地图场景的场景标识,根据场景标识,确定指定地图场景对应的更新环境模组,其中,更新环境模组用于目标客户端对指定地图场景执行换肤操作,目标客户端包括第一客户端和第二客户端,第一客户端为发起换肤请求的客户端,第二客户端为访问指定地图场景的其他客户端。针对第一客户端和第二客户端的多用户在线地图场景,通过场景标识,确定指定地图场景对应的更新环境模组,用于执行换肤操作,避免了另外绘制和开发针对指定地图场景的多套地图皮肤,降低了开发成本,降低了美术资源的投入,提升了资源的利用率,另外,由于对指定地图场景中的环境模组进行更新,并未对整个指定地图场景进行替换加载,减少了换肤时间,提升了用户体验。
Smart Images

Figure CN115982298B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of digital map display technology, and in particular to a method and apparatus for changing the skin of a map scene, a computing device, and a computer-readable storage medium. Background Technology
[0002] With the development of internet technology, online map scenarios are being widely used. For example, in game map scenarios, players control and play; in VR (Virtual Reality) map scenarios, users interact; and in engineering simulation map scenarios, designers conduct simulations, and so on.
[0003] Currently, in multiplayer online map scenarios, each map scene has a specific map skin, meaning it includes specific environmental modules, such as weather (sunny), season (summer), and sea surface (low tide, calm). Due to their monotonous skins, these online map scenes often fail to meet users' actual needs and lack enjoyment and adaptability. For example, in engineering simulation scenarios, designers need to repeatedly adjust the dock's appearance under different weather conditions (sunny, rainy, high tide, low tide). To address this, multiple map scenes with corresponding skins need to be drawn and developed separately to change the display of the current scene. However, this process of drawing, developing, and changing the display of each skin increases the skinning time, is inefficient, reduces user experience, and increases development costs and art resource investment, reducing resource utilization. Therefore, there is an urgent need for an efficient and low-cost method for skinning map scenes. Summary of the Invention
[0004] In view of this, embodiments of this application provide a map scene skinning method and apparatus, a computing device and a computer-readable storage medium to solve the technical defects existing in the prior art.
[0005] According to a first aspect of the embodiments of this application, a map scene skinning method is provided, applied to a skinning server, including:
[0006] Receive a skinning request for a specified map scene, wherein the skinning request carries the scene identifier of the specified map scene;
[0007] Based on the scene identifier, determine the update environment module corresponding to the specified map scene. The update environment module is used by the target client to perform skinning operation on the specified map scene. The target client includes a first client and a second client. The first client is the client that initiates the skinning request, and the second client is another client that accesses the specified map scene.
[0008] According to a second aspect of the embodiments of this application, a map scene skinning method is provided, applied to an application server, including:
[0009] Receive a skin-changing request for a specified map scene sent by a first client, wherein the first client is the client that initiates the skin-changing request, and the skin-changing request carries the scene identifier of the specified map scene;
[0010] Send a skin-changing request to the skin-changing server so that the skin-changing server can determine the update environment module corresponding to the specified map scene based on the scene identifier;
[0011] Receive update environment module feedback from the skinning server;
[0012] Send an updated environment module to the target client so that the target client can perform a skinning operation on the specified map scene based on the updated environment module. The target client includes a first client and a second client, where the second client is another client accessing the specified map scene.
[0013] According to a third aspect of the embodiments of this application, a map scene skinning method is provided, applied to a client, including:
[0014] Receive the updated environment module corresponding to the specified map scene sent by the application server, where the specified map scene is the map scene accessed by the client;
[0015] Based on the updated environment module, a skinning operation is performed on a specified map scene. During the skinning operation, the environment module of the user-editable area in the specified map scene remains unchanged. The user-editable area is the editable module area set for the logged-in client user within the specified map scene. According to a fourth aspect of this application, a map scene skinning device is provided, applied to a skinning server, comprising:
[0016] The first receiving module is configured to receive a skinning request for a specified map scene, wherein the skinning request carries a scene identifier of the specified map scene;
[0017] The first determining module is configured to determine the update environment module corresponding to the specified map scene based on the scene identifier. The update environment module is used by the target client to perform a skinning operation on the specified map scene. The target client includes a first client and a second client. The first client is the client that initiates the skinning request, and the second client is another client that accesses the specified map scene.
[0018] According to a fifth aspect of the embodiments of this application, a map scene skinning device is provided, applied to an application server, comprising:
[0019] The second receiving module is configured to receive a skin-changing request for a specified map scene sent by the first client, wherein the first client is the client that initiates the skin-changing request, and the skin-changing request carries a scene identifier of the specified map scene.
[0020] The first sending module is configured to send a skin-changing request to the skin-changing server, so that the skin-changing server can determine the update environment module corresponding to the specified map scene based on the scene identifier.
[0021] The third receiving module is configured to receive the update environment module fed back by the skinning server;
[0022] The second sending module is configured to send an updated environment module to the target client so that the target client can perform a skinning operation on the specified map scene based on the updated environment module. The target client includes the first client and the second client logged in by the second user.
[0023] According to a sixth aspect of the embodiments of this application, a map scene skinning device is provided, applied to a client, comprising:
[0024] The fourth receiving module is configured to receive the update environment module corresponding to the specified map scene sent by the application server, wherein the specified map scene is the map scene accessed by the client;
[0025] A skinning module is configured to perform a skinning operation on a specified map scene based on an updated environment module, and during the skinning operation, maintain the environment module of the user-editable area in the specified map scene unchanged. The user-editable area is the editable area of the module set for the logged-in client user within the specified map scene. According to a seventh aspect of this application, a map scene skinning system is provided, comprising: a skinning server, an application server, a first client, and a second client. The first client is the client that initiates the skinning request, and the second client is another client accessing the specified map scene.
[0026] The first client is used to send a skin-changing request for a specified map scene to the application server. The skin-changing request carries the scene identifier of the specified map scene.
[0027] The application server is used to receive skin-changing requests and send skin-changing requests to the skin-changing server.
[0028] The skinning server receives skinning requests; determines the update environment module corresponding to the specified map scene based on the scene identifier; and sends the update environment module to the application server.
[0029] The application server is also used to receive the updated environment module and send the updated environment module to the first client and the second client.
[0030] The first client is also used to receive the updated environment module; and to perform skinning operations on the specified map scene based on the updated environment module.
[0031] The second client is also used to receive the updated environment module and perform skinning operations on the specified map scene based on the updated environment module.
[0032] According to an eighth aspect of the present application, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor executes the instructions to implement the steps of the map scene skinning method.
[0033] According to a ninth aspect of the present application, a computer-readable storage medium is provided that stores computer instructions which, when executed by a processor, implement the steps of the map scene skinning method.
[0034] According to a tenth aspect of the present application, a chip is provided that stores computer instructions, which, when executed by the chip, implement the steps of the map scene skinning method.
[0035] In this embodiment, a skin-changing request for a specified map scene is received. The skin-changing request carries a scene identifier for the specified map scene. Based on the scene identifier, an update environment module corresponding to the specified map scene is determined. This update environment module is used by the target client to perform a skin-changing operation on the specified map scene. The target client includes a first client and a second client. The first client is the client that initiated the skin-changing request, and the second client is another client accessing the specified map scene. For multi-user online map scenes involving the first client and the second client, the update environment module corresponding to the specified map scene is determined through the scene identifier to perform the skin-changing operation. This avoids the need to separately draw and develop multiple map skins for the specified map scene, reducing development costs, reducing the investment in art resources, and improving resource utilization. Furthermore, since only the environment module in the specified map scene is updated, and the entire specified map scene is not replaced or loaded, the skin-changing time is reduced, improving the user experience. Attached Figure Description
[0036] Figure 1 This is a structural block diagram of the computing device provided in the embodiments of this application;
[0037] Figure 2 This is a flowchart of a map scene skinning method provided in an embodiment of this application;
[0038] Figure 3 This is a flowchart of another map scene skinning method provided in the embodiments of this application;
[0039] Figure 4This is a flowchart of another map scene skinning method provided in the embodiments of this application;
[0040] Figure 5 This is a flowchart illustrating a map scene skinning method applied to game map scenes, provided in an embodiment of this application.
[0041] Figure 6 This is a schematic diagram of the structure of a map scene skinning system provided in an embodiment of this application;
[0042] Figure 7 This is a schematic diagram of the processing flow of a map scene skinning system provided in an embodiment of this application;
[0043] Figure 8 This is a schematic diagram of the processing flow of a map scene skinning system applied to weather changes, provided in an embodiment of this application;
[0044] Figure 9 This is a schematic diagram of the structure of a map scene skinning device provided in an embodiment of this application;
[0045] Figure 10 This is a schematic diagram of another map scene skinning device provided in an embodiment of this application;
[0046] Figure 11 This is a schematic diagram of another map scene skinning device provided in the embodiments of this application. Detailed Implementation
[0047] Many specific details are set forth in the following description to provide a full understanding of this application. However, this application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of this application; therefore, this application is not limited to the specific embodiments disclosed below.
[0048] The terminology used in one or more embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the scope of one or more embodiments of this application. The singular forms “a,” “the,” and “the” used in one or more embodiments of this application and in the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” used in one or more embodiments of this application refers to and includes any or all possible combinations of one or more associated listed items.
[0049] It should be understood that although the terms first, second, etc., may be used to describe various information in one or more embodiments of this application, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second without departing from the scope of one or more embodiments of this application, and similarly, second may also be referred to as first. Depending on the context, the word "if" as used herein may be interpreted as "in response to a determination".
[0050] This application provides a map scene skinning method and apparatus, a computing device and a computer-readable storage medium, which will be described in detail in the following embodiments.
[0051] Figure 1 A structural block diagram of a computing device provided in an embodiment of this application is shown. The components of the computing device 100 include, but are not limited to, a memory 110 and a processor 120. The processor 120 is connected to the memory 110 via a bus 130, and a database 150 is used to store data.
[0052] The computing device 100 also includes an access device 140, which enables the computing device 100 to communicate via one or more networks 160. Examples of these networks include Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or combinations of communication networks such as the Internet. The access device 140 may include one or more of any type of wired or wireless network interface (e.g., a Network Interface Controller (NIC)), such as an IEEE 802.11 Wireless Local Area Network (WLAN) wireless interface, a Wi-MAX (Worldwide Interoperability for Microwave Access) interface, an Ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and so on.
[0053] In one embodiment of this application, the aforementioned components of the computing device 100 and Figure 1 Other components, not shown, can also be connected to each other, for example, via a bus. It should be understood that... Figure 1The block diagram of the computing device shown is for illustrative purposes only and is not intended to limit the scope of this application. Those skilled in the art can add or replace other components as needed.
[0054] The computing device 100 can be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile phones (e.g., smartphones), wearable computing devices (e.g., smartwatches, smart glasses, etc.) or other types of mobile devices, or stationary computing devices such as desktop computers or PCs. The computing device 100 can also be a mobile or stationary server.
[0055] Among them, processor 120 can execute Figure 2 The steps in the map scene skinning method shown. Figure 2 The flowchart of a map scene skinning method provided in an embodiment of this application is shown. It is applied to a skinning server and includes steps 202 to 204.
[0056] Step 202: Receive a skinning request for a specified map scene, wherein the skinning request carries the scene identifier of the specified map scene.
[0057] This application embodiment is applied to a skinning server for an application (App) with map scene display and map scene skinning functions. The skinning server is a remote server for the application that implements the update environment module.
[0058] A map scene is a digital map environment in which users can interact. Examples include a game map scene where players control and play, a VR (Virtual Reality) map scene where users interact, and an engineering simulation map scene where designers conduct simulations. Each map scene has a unique identifier within the application, known as a scene identifier.
[0059] The specified map scene refers to the online map scene displayed on the first client. The online map scene is a pre-built digital map scene displayed on the application's client. The map scene can be a two-dimensional map scene or a three-dimensional map scene. Skinning operations for the specified map scene are achieved by changing the environment modules of the specified map scene. For example, if the specified map scene is a forest map scene, and the current environment modules include Tree Module 1 (trees with leaves), Ground Module 1 (ground without fallen leaves), and Lighting Effect Module 1 (strong lighting, high lighting angle), by replacing the current environment modules in the forest map scene with Tree Module 2 (trees without leaves), Ground Module 2 (ground with fallen leaves), and Lighting Effect Module 2 (weak lighting, low lighting angle), the skinning operation of the forest map scene for spring / autumn seasons is achieved by changing it to the skinning for autumn / winter seasons.
[0060] The skinning request for the specified map scene is generated by the first user for the specified map scene. The specified map scene is displayed on the first client.
[0061] The system receives skin-changing requests for a specified map scene. Specifically, it receives skin-changing requests generated by a first user for a specified map scene. Optionally, it receives skin-changing requests for a specified map scene sent by a first client; alternatively, it receives skin-changing requests for a specified map scene generated by a first client and forwarded by the application server. The first user is the user logged into the first client.
[0062] For example, the specified map scene is a valley map scene with a unique scene identifier: Canyon_11.map. The valley map scene is displayed on the first client where the first user logs in. The skinning server receives the skinning request SkinChanging_Request sent by the first client for the valley map scene, wherein the skinning request carries the scene identifier Canyon_11.map of the valley map scene.
[0063] By submitting a skinning request for a specified map scene, with the request carrying the scene identifier, a basis is provided for subsequently determining the corresponding update environment data, ensuring the accuracy of the correspondence between the determined update environment module and the specified map scene.
[0064] Step 204: Based on the scene identifier, determine the update environment module corresponding to the specified map scene. The update environment module is used by the target client to perform skinning operation on the specified map scene. The target client includes a first client and a second client. The first client is the client that initiates the skinning request, and the second client is another client that accesses the specified map scene.
[0065] The environment module comprises environmental elements within a map scene, divided into geographic environment element modules and human environment element modules. Environment modules can be pre-initialized or user-defined. They include terrain modules, interactive object modules, item modules, and environmental effect modules. Terrain modules are terrain objects within the digital map scene, such as mountains, trees, and rivers. Interactive object modules are objects that users can interact with within the digital map scene, such as interactive characters, animals, and vehicles. Item modules are item objects within the digital map scene, such as decorative items and architectural items. Environmental effect modules are environmental display effects within the digital map scene, such as lighting effects and water effects. Environment modules have attribute parameters, including model attribute parameters, display attribute parameters, and interaction attribute parameters (logical attribute parameters). For example, if the environment module is a tree module, the model attribute parameters, display attribute parameters and interaction attribute parameters of tree modules with leaves and tree modules without leaves are different. When a controllable object in the map scene performs a tree climbing interaction operation on the tree module, the tree module with leaves will drop leaves, while the tree module without leaves will not drop leaves.
[0066] The Update Environment Module is an environment module that updates the current environment module of a specified map scene.
[0067] The first client is the client that initiates the skin-changing request. The second client is the client accessing the specified map scene. The first user is the user logged into the first client, and the second user is the user logged into the second client. Specifically, the second user is the user who is in the same specified map scene as the first user. There can be an in-application relationship between the first user and the second user, such as them being friends or the first user initiating an "invite" operation to the second user. Alternatively, there may be no in-application relationship between the first user and the second user. For example, if the specified map scene is a custom map scene of the first user, and this custom map scene is open to all users in the application, and each user's client can access this custom map scene, then the client accessing this custom map scene is identified as the second client, and the user logged into the second client is identified as the second user. The specified map scene is displayed on the first client. The first user initiates a skin-changing request for the displayed specified map scene, and the specified map scene is also displayed on the second client. After the skin-changing server determines the update environment module, it performs a skin-changing operation on the specified map scene displayed on both the first and second clients based on the update environment module. For example, if the first user is the developer of the specified map scene, and the first user initiates a skin-changing request, a skin-changing operation is performed on both the first and second clients.
[0068] Based on the scene identifier, determine the update environment module corresponding to the specified map scene. Specifically, based on the scene identifier, determine the update environment module corresponding to the target skin of the specified map scene.
[0069] The update environment module corresponding to the target skin can be a pre-generated environment element module stored in the map database. The map database can be set on the skinning server or not; this is not limited here. For example, if the specified map scene is a lake scene, the update environment module corresponding to the winter skin of the lake scene includes: lake surface effect module (frozen), lake surface interactive object module (ice surface), and tree module (no leaves). The update environment module corresponding to the target skin can also be an environment element module generated based on the scene identifier. The target skin has specific environment modules, such as terrain module, lighting effect module, rendering effect module, item module, object detail module (LOD, Level of Details), water surface module, and fog module.
[0070] For example, based on the scene identifier Canyon_11.map, the update environment modules corresponding to the target skins (spring skin, summer skin, autumn skin, and winter skin) pre-generated and stored in the map database are determined: Spring skin: Plant module 1 (tender grass, light green leaves and trees, peach blossoms, pear blossoms), lighting effect module (medium lighting, medium lighting angle); Summer skin: Plant module 2 (green grass, dark green leaves and trees, peaches, sunflowers), lighting effect module (strong lighting, high lighting angle); Autumn skin: Plant module 3 (withered grass, yellow-red leaves and trees, pears), lighting effect module (medium lighting, medium lighting angle); Winter skin: Plant module 4 (no grass, withered trees), lighting effect module (weak lighting, low lighting angle). The first client and the second client update the environment modules in the valley map scene based on the four target skins, realize the skinning operation of the valley map scene, and display it on the first client and the second client.
[0071] In this embodiment, a skin-changing request for a specified map scene is received. The skin-changing request carries a scene identifier for the specified map scene. Based on the scene identifier, an update environment module corresponding to the specified map scene is determined. This update environment module is used by the target client to perform a skin-changing operation on the specified map scene. The target client includes a first client and a second client. The first client is the client that initiated the skin-changing request, and the second client is another client accessing the specified map scene. For multi-user online map scenes involving the first client and the second client, the update environment module corresponding to the specified map scene is determined through the scene identifier to perform the skin-changing operation. This avoids the need to separately draw and develop multiple map skins for the specified map scene, reducing development costs, reducing the investment in art resources, and improving resource utilization. Furthermore, by updating the environment module in the specified map scene, skin-changing time is reduced, skin-changing efficiency is improved, and the user experience is enhanced.
[0072] Optionally, in one embodiment, the skin-changing request also carries target weather parameters;
[0073] Correspondingly, after step 204, the following steps are also included:
[0074] Based on the target weather parameters, the attributes of the updated environment module are adjusted to obtain the updated environment module with adjusted attributes.
[0075] The target weather parameters are preset parameters for the target weather. The attributes of the updated environment module are adjusted based on the target weather parameters to obtain an updated environment module that can represent the target weather. For example, if the updated environment module is a lake module and the target weather is sunny or rainy, the display attributes of the corresponding lake module will be different: no ripples for the former and ripples for the latter.
[0076] Based on the target weather parameters, the attributes of the updated environment module are adjusted. Specifically, the attribute parameters of the updated environment module are adjusted according to the target weather parameters. Furthermore, at least one of the model attribute parameters, display attribute parameters, and interaction attribute parameters of the updated environment module is adjusted according to the target weather parameters. The adjustment is performed using a preset adjustment method, which can be a pre-trained neural network model.
[0077] For example, the updated environment module is a concave terrain, and the target weather parameter is a rainy day parameter (rainfall: 600mm / hr). Based on the target weather parameter (rainfall: 600mm / hr), a preset adjustment method (changing according to time t) is used to adjust the model attribute parameters (no filling), display attribute parameters (soil color), and interaction attribute parameters (walkable, runnable, jumpable) of the updated environment module, resulting in the adjusted updated environment module. The adjusted updated environment module has the following model attribute parameters (water depth of 600*t), display attribute parameters (light yellow transparent color), and interaction attribute parameters (swimming, boating).
[0078] Based on the target weather parameters, the attributes of the updated environment module are adjusted to obtain an updated environment module with adjusted attributes. This allows the updated environment module to adapt to the target weather, improving the realism and diversity of the updated environment module, enhancing the realism and diversity of the specified map scene after skinning, and improving the user experience.
[0079] Optionally, in one embodiment, the skin-changing request also carries target weather parameters;
[0080] Correspondingly, after step 204, the following steps are also included:
[0081] Based on the target weather parameters, adjust the attributes of other environmental modules in the specified map scene, except for the updated environmental module, to obtain the other environmental modules with adjusted attributes.
[0082] Since the updated environment module is a newer one, users want it to be highlighted on the client's front end. Users adjust the attribute parameters of other environment modules in a specified map scene so that the specified map scene can represent the target weather without losing the highlighting of the updated environment module.
[0083] Based on the target weather parameters, the attributes of other environmental modules in the specified map scene, excluding the updated environment module, are adjusted. Specifically, based on the target weather parameters, the attribute parameters of other environmental modules in the specified map scene, excluding the updated environment module, are adjusted. Furthermore, based on the target weather parameters, at least one of the model attribute parameters, display attribute parameters, and interaction attribute parameters of other environmental modules in the specified map scene, excluding the updated environment module, is adjusted. The adjustment is performed using a preset adjustment method, which can be a pre-trained neural network model.
[0084] For example, the updated environment module is a potted plant module, and the target weather parameter is a snowy weather parameter (snowfall: 1200mm / hr). Based on the target weather parameter (snowfall: 1200mm / hr), a preset adjustment method (changing according to time t) is used to adjust the model attribute parameters (no additives, no additives, liquid) and display attribute parameters (soil color, turquoise, transparent) of other environment modules (ground module, house module, pool module, etc.) to obtain the adjusted updated environment module. The adjusted updated environment module has model attribute parameters (snow thickness of 1200*t, snow thickness of 1200*t, solid) and display attribute parameters (white, white, semi-transparent).
[0085] Based on the target weather parameters, the attributes of other environmental modules in the specified map scene, excluding the updated environment module, are adjusted to obtain the other environmental modules with adjusted attributes. This allows the specified map scene to adapt to the target weather while ensuring the prominent display of the updated environment module, improving the realism and diversity of the specified map scene, enhancing the display effect of the updated environment module, and improving the user experience.
[0086] Optionally, in one specific embodiment, step 204 includes the following specific steps:
[0087] Based on the scene identifier, find the environmental modules corresponding to the target skin of the specified map scene;
[0088] Determine the custom environment module built by the first user in the specified map scene, where the first user is the user who logged into the first client;
[0089] Based on the environmental modules corresponding to the target skin and the custom environmental modules, generate the updated environmental module corresponding to the specified map scene.
[0090] A specified map scene has multiple corresponding environment modules under the target skin. The target skin is represented by the combination of these environment modules. Each environment module corresponding to the target skin is pre-stored using a scene identifier as an index.
[0091] In this embodiment, the custom environment module is an environment module custom-constructed by the first user for a specified map scene displayed on the first client. For example, if the specified user scene is a city street map scene, the user can custom-construct multiple building modules on the city street map scene, and these multiple building modules constitute the custom environment module. The custom environment module can be constructed using the environment module construction tool provided by the first client, or it can be loaded using the environment module loading tool provided by the first client; this is not limited here. The custom environment module has attribute parameters, including model attribute parameters, display attribute parameters, and interaction attribute parameters (logical attribute parameters), etc.
[0092] Based on the scene identifier, find the environmental modules corresponding to the target skin of the specified map scene. Specifically, based on the scene identifier, find the environmental modules corresponding to the target skin of the specified map scene stored in the map database.
[0093] Based on the environment modules corresponding to the target skin and the custom environment module, an updated environment module corresponding to the specified map scene is generated. Specifically, based on the environment modules corresponding to the target skin, the attributes of the custom environment module are adjusted, and based on the environment modules corresponding to the target skin and the adjusted custom environment module, an updated environment module corresponding to the specified map scene is generated.
[0094] For example, a town map scene is specified, with a scene identifier Town_38.map. Based on the scene identifier Town_38.map, the environmental modules corresponding to the spring skin of the town map scene stored in the map database are searched. Each environmental module includes a floating object module (petals) and a lighting effect module (medium lighting, medium lighting angle). A custom environmental module constructed by the first user for displaying the town map scene on the first client is determined: a temple module. Based on the floating object module (petals) and lighting effect module (medium lighting, medium lighting angle) corresponding to the spring skin, the display attribute parameters (no floating objects, strong lighting, high lighting angle) of the custom environmental module are adjusted to generate an updated environmental module corresponding to the town map scene. The updated environmental module includes the floating object module (petals), the lighting effect module (medium lighting, medium lighting angle), and the adjusted temple module.
[0095] Based on the scene identifier, the system locates the environment modules corresponding to the target skin for the specified map scene, and determines the custom environment module built by the first user in the specified map scene. The first user is the user logged into the first client. Based on the environment modules corresponding to the target skin and the custom environment module, an updated environment module corresponding to the specified map scene is generated. This ensures that the updated environment module not only includes the pre-stored environment modules corresponding to the target skin, but also the custom environment module built by the first user, improving the adaptability and diversity of the updated environment module, enhancing the adaptability and diversity of the specified map scene after skinning, and improving the user experience.
[0096] Optionally, in one specific embodiment, the method further includes:
[0097] Based on the scene identifier, find the environmental modules corresponding to the target skin of the specified map scene;
[0098] Determine the custom environment module built by the second user in the specified map scene, where the second user is the user who logged into the second client;
[0099] Based on the environmental modules corresponding to the target skin and the custom environmental modules, generate the updated environmental module corresponding to the specified map scene.
[0100] In this embodiment, the custom environment module is an environment module custom-built by the second user for a specified map scene displayed on the second client. For example, if the specified user scene is a city street map scene, the user can custom-build multiple landscape modules on the city street map scene, and these multiple landscape modules constitute the custom environment module. The custom environment module can be built using the environment module building tool provided by the second client, or it can be loaded using the environment module loading tool provided by the second client; this is not limited here. The custom environment module has attribute parameters, including model attribute parameters, display attribute parameters, and interaction attribute parameters (logical attribute parameters), etc.
[0101] The other steps are the same as in the above embodiments, and will not be repeated here.
[0102] Based on the scene identifier, the system locates the environment modules corresponding to the target skin for the specified map scene, and determines the custom environment module constructed by the second user in the specified map scene. The second user is the user logged into the second client. Based on the environment modules corresponding to the target skin and the custom environment module, an updated environment module corresponding to the specified map scene is generated. This ensures that the updated environment module not only includes the pre-stored environment modules corresponding to the target skin, but also the custom environment module constructed by the second user, improving the adaptability and diversity of the updated environment module, enhancing the adaptability and diversity of the specified map scene after skinning, and improving the user experience. Optionally, in one specific implementation, the skinning request also carries the skin identifier of the target skin.
[0103] Correspondingly, based on the scene identifier, the system locates the corresponding environment modules for the target skin of the specified map scene, including the following specific steps:
[0104] Based on scene and skin identifiers, locate the corresponding environment modules for the target skin of a specified map scene.
[0105] The skin identifier is the corresponding identifier of the target skin in the specified map scene. The environmental modules corresponding to the target skin are pre-stored using the scene identifier and skin identifier as indexes.
[0106] Based on scene identifiers and skin identifiers, find the environmental modules corresponding to the target skin of the specified map scene. Specifically, based on scene identifiers and skin identifiers, search the map database for the environmental modules corresponding to the target skin of the specified map scene.
[0107] For example, the specified map scene is a town map scene with a scene identifier Town_38.map, the target skin is a spring skin with a skin identifier Spring_Label, and based on the scene identifier Town_38.map and the skin identifier Spring_Label, the corresponding environment modules for the spring skin of the town map scene stored in the map database are searched.
[0108] Based on scene and skin identifiers, this function locates the corresponding environment modules for a target skin within a specified map scene. This improves the accuracy of finding the environment modules corresponding to the target skin.
[0109] Optionally, in one specific embodiment, after step 204, the following specific steps are further included:
[0110] The environment module is synchronously updated to the application server, enabling the application server to update the locally stored environment module corresponding to the specified map scene based on the updated environment module, and then send the updated environment module to the target client. The application server is the backend management server for applications with map scene display and map scene skinning functions, enabling data interaction processing with the client.
[0111] The environment module is synchronously updated to the application server. Specifically, an update command for the environment module and a module update instruction are sent to the application server. By sending the module update instruction to the application server, the application server is notified to synchronously update the environment module corresponding to the specified map scene stored locally, and then send the updated environment module to the target client to achieve the skinning operation for the specified map scene.
[0112] For example, an update environment module and a module update command (ModuleChanging_Command) are sent to the application server. The update environment module includes a floating object module (petals), a lighting effects module (medium lighting, medium lighting angle), and an adjusted temple module. The application server is notified to update the floating object module (petals), lighting effects module (medium lighting, medium lighting angle), and temple module corresponding to the town map scene based on the update environment module, and the update environment module is sent to the target client to realize the skinning operation of the town map scene.
[0113] The environment module is synchronously updated to the application server, enabling the application server to update the locally stored environment module corresponding to the specified map scene based on the updated environment module, and then send the updated environment module to the target client. This completes the synchronous update of the environment module in the specified map scene and sends the updated environment module to the target client, ensuring the consistency and accuracy of the skinning operation.
[0114] The processor 120 can also perform Figure 3The steps in the map scene skinning method shown. Figure 3 The flowchart of another map scene skinning method provided in this application embodiment is shown, which is applied to a game server and includes steps 302 to 308.
[0115] Step 302: Receive a skin-changing request for a specified map scene sent by the first client, wherein the first client is the client that initiates the skin-changing request, and the skin-changing request carries the scene identifier of the specified map scene.
[0116] Step 302 has already been completed. Figure 2 The embodiments are described in detail and will not be repeated here.
[0117] The system receives a skin-changing request for a specified map scene from a first client, where the first client is the client initiating the skin-changing request, and the skin-changing request carries a scene identifier for the specified map scene. This lays the foundation for subsequently sending skin-changing requests to the skin-changing server.
[0118] Step 304: Send a skin-changing request to the skin-changing server so that the skin-changing server can determine the update environment module corresponding to the specified map scene based on the scene identifier.
[0119] Step 304 has already been completed. Figure 2 The embodiments are described in detail and will not be repeated here.
[0120] A skin-changing request is sent to the skin-changing server, enabling the server to determine the corresponding update environment module for the specified map scene based on the scene identifier. This ensures that the skin-changing server identifies and provides the update environment module, laying the foundation for subsequent skin-changing operations on the specified map scene. Furthermore, determining the update environment module based on the scene identifier guarantees the accuracy of the correspondence between the identified update environment module and the specified map scene.
[0121] Step 306: Receive the updated environment module from the skinning server.
[0122] Step 306 has already been completed. Figure 2 The embodiments are described in detail and will not be repeated here.
[0123] This module receives the updated environment feedback from the skinning server. It provides the module foundation for subsequent skinning operations on target clients.
[0124] Step 308: Send an updated environment module to the target client so that the target client can perform a skinning operation on the specified map scene based on the updated environment module. The target client includes a first client and a second client, where the second client is another client accessing the specified map scene.
[0125] For example, an update environment module is sent to a first client Client1 and a second client Client2 so that the first client Client1 and the second client Client2 can perform a skinning operation based on the update environment module.
[0126] In this embodiment, a skin-changing request for a specified map scene is received from a first client. The first client is the client initiating the skin-changing request, which carries a scene identifier for the specified map scene. The skin-changing request is sent to a skin-changing server, allowing the skin-changing server to determine the corresponding update environment module for the specified map scene based on the scene identifier. The update environment module is then received from the skin-changing server and sent to a target client, enabling the target client to perform a skin-changing operation on the specified map scene based on the update environment module. The target client includes both the first client and a second client, where the second client is another client accessing the specified map scene. For multi-user online map scenes involving both the first and second clients, the update environment module corresponding to the specified map scene is determined through the scene identifier for skin-changing operations. This avoids the need to draw and develop multiple map skins for the specified map scene, reducing development costs, minimizing the investment in art resources, and improving resource utilization. Furthermore, since only the environment module within the specified map scene is updated, without replacing the entire specified map scene, skin-changing time is reduced, skin-changing efficiency is improved, and the user experience is enhanced.
[0127] Optionally, in one specific implementation, the skin-changing request also carries the user identifier of the first user, who is the user who logged into the first client;
[0128] Correspondingly, before step 304, the following specific steps are also included:
[0129] Based on scene identifiers and user identifiers, the system verifies whether the first user has the permission to change the skin of a specified map scene.
[0130] If the verification result is yes, a skin-changing request is sent to the skin-changing server.
[0131] In the application, when a user changes the skin for a specific map scene, it is necessary to verify whether the user has the permission to change the skin, thus ensuring the application provider's unified management of the client.
[0132] A user identifier is a unique identifier for a user within an application. Examples include a user's account or the network address of the client the user is using.
[0133] Based on scene identifiers and user identifiers, the system verifies whether the first user has the permission to change the skin of a specified map scene. Specifically, based on scene identifiers and user identifiers, the system queries a pre-recorded list of user permissions to verify whether the first user has the permission to change the skin of a specified map scene.
[0134] For example, if the map scene is specified as a town map scene, based on the scene identifier Town_38.map and the user identifier "User1", the pre-recorded user permission list UserAuthorityList is queried to verify whether the first user User1 has the permission to change the skin of the town map scene. If the verification result is yes, a skin change request SkinChanging_Request is sent to the skin change server.
[0135] Based on scene and user identifiers, the system verifies whether the first user has permission to change the skin of a specified map scene. If the verification result is yes, a skin-changing request is sent to the skin-changing server. This enables unified management of clients by the application provider, ensuring the rights and interests of the application provider.
[0136] Optionally, in one specific embodiment, after receiving the updated environment module from the skinning server in step 306, the following specific steps are further included:
[0137] Based on the updated environment module, update the environment module corresponding to the specified map scene stored locally.
[0138] The embodiments of this application have been described. Figure 2 The embodiments are described in detail and will not be repeated here.
[0139] Based on the updated environment module, the environment module corresponding to the specified map scene in local storage is updated. This completes the synchronous update of the environment module in the specified map scene, ensuring the consistency and accuracy of the skinning operation.
[0140] Optionally, after receiving the updated environment module from the skinning server in step 306, the following specific steps are also included:
[0141] Record the module identifier of the updated environment module. The module identifier is used to obtain the updated environment module from the skinning server when a request is received from the target client, and to feed it back to the target client to perform skinning operation on the specified map scene.
[0142] After the target client exits an application with map scene display and skinning functions, it uninstalls the updated environment module obtained from the application server. Upon restarting the application, this needs to be regenerated and reloaded. This approach saves local storage space on the application server; however, regenerating and reloading increases skinning time and reduces efficiency. Pre-recording the update environment module's module identifier on the application server allows for faster retrieval of the updated environment module from the skinning server.
[0143] The skinning server determines the corresponding update environment module based on the module identifier. The specific steps for determining the update environment module have been described in detail in the above-mentioned embodiments and will not be repeated here.
[0144] Optionally, after the skinning server determines the update environment module corresponding to the specified map scene in step 304, it stores the update environment module in the skinning server. After receiving the module identifier sent by the application server, the skinning server obtains the pre-stored update environment module according to the module identifier.
[0145] Optionally, after receiving the module identifier sent by the application server, the skinning server regenerates the update environment module based on the module identifier.
[0146] For example, the map scene is specified as a town map scene with a scene identifier Town_38.map, and the updated environment modules include a floating object module (petals), a lighting effect module (medium lighting, medium lighting angle), and an adjusted temple module. The system records the module identifiers of the updated environment module: FloatItem_33, Illum_7, and Temple_2. It receives a MapGet_Request request from the target client for obtaining the skinned town map scene. The MapGet_Request request carries the scene identifier Town_38.map. It then queries and obtains the module identifiers FloatItem_33, Illum_7, and Temple_2 for the updated environment module, and sends these identifiers to the skinning server. The skinning server then determines the corresponding updated environment module based on these identifiers. Finally, it receives the updated environment modules from the skinning server: floating object module (petals), lighting effect module (medium lighting, medium lighting angle), and the adjusted temple module. Finally, it sends the updated environment modules to the target client, enabling the target client to perform a skinning operation on the town map scene based on the updated environment modules.
[0147] The module identifier of the updated environment module is recorded. This module identifier is used to obtain the updated environment module from the skinning server upon receiving a request from the target client, and then feeds it back to the target client to perform a skinning operation on the specified map scene. This saves local storage space and improves skinning efficiency.
[0148] Optionally, in one specific embodiment, after step 306, the following specific steps are further included:
[0149] Retrieve the logic execution data corresponding to the specified map scene;
[0150] Based on the update environment module, the target logical segments in the logical operation data are configured;
[0151] Send the configured target logic fragment to the target client so that the target client runs according to the target logic fragment in the specified map scene after skinning.
[0152] Interactive operations in map scenes require logic and data to be executed on the client side.
[0153] The logical operation data corresponding to a specified map scene refers to the logical operation data of controllable objects within that scene. This data includes multiple logical segments, such as logical segments for controllable objects, item modules, and interactive object modules. Each logical segment corresponds to the interaction attribute parameters (logical attribute parameters) of a single environment module or the entire specified map scene. For example, changing the skin of a specified map scene (from autumn to winter) reduces the movement speed of controllable objects within the scene, and adds snow footprints when the object passes over a ground module—this modifies the model attribute parameters, display attribute parameters, and interaction attribute parameters of the ground module. The logical operation data is stored in the application's logical database.
[0154] To retrieve the logical execution data corresponding to a specified map scene, the specific method is to retrieve the logical execution data corresponding to the specified map scene from the logical database. Furthermore, this can be done by calling the logical execution data corresponding to the specified map scene from the logical database, or by retrieving the logical execution data corresponding to the specified map scene from the logical database beforehand, storing it locally, and then retrieving the locally stored logical execution data.
[0155] For example, obtain the logic execution data LogicStat corresponding to the town map scene in the logic database; based on the updated environment module (ground module: ice surface), configure the target logic segment Target_LogicStat (movement mode of the controllable object) in the logic execution data LogicStat: movement mode of the controllable object: gliding; send the configured target logic segment Target_LogicStat (movement mode of the controllable object: gliding) to the first client Client1 and the second client Client2, so that the first client Client1 and the second client Client2 can implement the gliding movement of the controllable object in the town map scene after skinning according to Target_LogicStat.
[0156] This system acquires the logical execution data corresponding to a specified map scene; configures the target logical fragment in the logical execution data based on the update environment module; and sends the configured target logical fragment to the target client, enabling the target client to run according to the target logical fragment in the skinned specified map scene. This achieves targeted adjustments to the execution logic of a specified map scene, improves the adaptability and diversity of the update environment module, enhances the adaptability and diversity of the skinned specified map scene, and improves the user experience.
[0157] Optionally, after sending the configured target logic fragment to the target client, the following specific steps are also included:
[0158] Receive operation requests from the target client for any environmental module in the specified map scene;
[0159] Based on the operation request, execute the target logic segment to obtain the operation result;
[0160] The operation results are fed back to the target client so that the target client can display the operation results.
[0161] An operation request is an interactive operation request for any environmental module within a specified map scene. An interactive operation is a command request generated when a user interacts with any environmental module displayed on the target client. Interactive operations include point selection, movement, and dialogue. An operation request includes the interactive operation type, interactive operation parameters, and the module identifier for updating the environmental module.
[0162] Based on the operation request, the target logic segment is executed to obtain the operation result. Specifically, based on the module identifier of any environment module, the target logic segment of that environment module is determined, and the target logic segment is executed according to the interaction operation type and interaction operation parameters to obtain the operation result.
[0163] For example, the system receives an Operation_Request sent by the target client (Client) for a controllable object in a road module within a town map scene. The road module is a road module in snowy weather. The Operation_Request includes the interaction operation type (running), interaction operation parameters (movement speed, initial movement direction), and the road module identifier Road_137. Based on the Road_137 identifier, the target logic segment Road_137_Target_LogicStat of the road module is determined. According to the interaction operation type (running), interaction operation parameters (movement speed, initial movement direction), and Road_137_Target_LogicStat, the operation result Operation_Result is obtained. The Operation_Result is then fed back to the target client (Client) so that the target client (Client) can adjust the display of the road module and the controllable object based on the Operation_Result: snowy weather movement speed, no jumping allowed, thus enabling interactive operations of the controllable object on the road module.
[0164] It receives operation requests from the target client for any environment module within a specified map scene. Based on the operation request, it executes the target logic segment, obtains the operation result, and feeds the result back to the target client so that the target client can display the operation result. This implements targeted adjustments to the runtime logic of the updated environment module within a specified map scene, improving the adaptability and diversity of the updated environment module, enhancing the adaptability and diversity of the specified map scene after skinning, and improving the user experience.
[0165] The processor 120 can also perform Figure 4 The steps in the map scene skinning method shown. Figure 4 A flowchart of another map scene skinning method provided in this application embodiment is shown, applied to a client, including steps 402 to 406.
[0166] Step 402: Receive the environmental modules corresponding to the target skin of the specified map scene;
[0167] Step 404: Perform a skinning operation on the specified map scene based on the updated environment module, and keep the environment module of the user-editable area in the specified map scene unchanged during the skinning operation. The user-editable area is the module editable area set for the logged-in client user in the specified map scene.
[0168] Since the environment module edited by the user in the user's editable area is the one that the user wants to highlight on the front end, the highlighting effect may be weakened if the skinning operation is performed. Therefore, in this embodiment of the application, the environment module in the user's editable area is kept unchanged during the skinning operation.
[0169] The client is an application that displays and skins map scenes, and accesses a specified map scene.
[0170] Users create custom environment modules by editing them within a user-editable area of a specified map scene. For example, if a user has edited a snowman module in their editable area, the snowman module remains unchanged during a skin change operation from light snow to heavy snow on the specified map scene. In this embodiment, the system receives the environment modules corresponding to the target skin of the specified map scene, updates the environment modules, and performs a skin change operation on the specified map scene. During the skin change operation, the environment modules in the user-editable area of the specified map scene remain unchanged. The user-editable area is the editable area for modules set for logged-in users within the specified map scene. By keeping the environment modules in the user-editable area unchanged during the skin change operation and highlighting them later, the system improves the adaptability and diversity of the updated environment modules, enhances the adaptability and diversity of the specified map scene after the skin change, and improves the user experience. It also reduces skin change time.
[0171] Optionally, after performing a skinning operation on a specified map scene based on the updated environment module, the following specific steps are also included:
[0172] Render the specified map scene after skinning.
[0173] The specified map scene after skinning is rendered. Specifically, a preset rendering tool is used to render the specified map scene after skinning. Alternatively, the specified map scene before skinning is first unloaded, then the specified map scene after skinning is loaded, and finally the preset rendering tool is used to render the specified map scene after skinning.
[0174] For example, the specified map scene is a valley map scene for the spring skin: plant module 1 (tender grass, light green leaves and trees, peach blossoms, pear blossoms), lighting effect module (medium lighting, medium lighting angle); summer skin: plant module 2 (green grass, dark green leaves and trees, peaches, sunflowers), lighting effect module (strong lighting, high lighting angle); the updated environment module is a winter skin: plant module 4 (no grass, dead trees), lighting effect module (weak lighting, low lighting angle). The updated environment module corresponding to the valley map scene for the spring skin is received. The plant module and lighting effect module in the valley map scene for the spring skin are replaced using the updated environment module to obtain the specified map scene for the winter skin after the skin change. The valley map scene for the spring skin is unloaded, and the specified map scene for the winter skin is loaded. Finally, the specified map scene for the winter skin is rendered using a preset rendering tool.
[0175] Figure 5 This paper illustrates a process flowchart of a map scene skinning method applied to game map scenes, provided by an embodiment of this application. The map scene skinning method applied to game map scenes uses a game map scene as an example. Figure 2 , Figure 3 and Figure 4 The map scene skinning is described, including steps 502 to 512.
[0176] Step 502: Receive a skin-changing request for a specified game map scene from the first game client where the first player is located. The skin-changing request carries the player's identifier and the scene identifier of the game map scene.
[0177] The embodiments of this application are applied to application servers.
[0178] Step 504: Based on the player identifier and skin identifier, find the game environment modules corresponding to the target skin in the specified game map scene;
[0179] Step 506: Determine the custom game environment module constructed by the first player in the specified game map scene;
[0180] Step 508: Generate an updated game environment module corresponding to the specified game map scene based on the game environment modules and custom game environment modules corresponding to the target skin;
[0181] Step 510: Adjust the attributes of the updated game environment module according to the target weather parameters to obtain the updated game environment module with adjusted attributes;
[0182] Step 512: Synchronously update the game environment module to the game server, so that the game server updates the game environment module corresponding to the specified game map scene in local storage based on the updated game environment module, and sends the updated game environment module to the first player's first client and multiple associated clients. The associated clients are the clients of the associated players associated with the first player.
[0183] In this embodiment, a skin-changing request for a specified game map scene is received. Based on the scene identifier and player identifier, the updated game environment module corresponding to the specified game map scene is determined, enabling multi-user online skin-changing operations for the specified game map scene. For multi-user online game map scenes involving a first client and multiple associated clients, the updated game environment module corresponding to the specified game scene is determined through the scene identifier and player identifier to perform the skin-changing operation. This avoids the need to develop multiple sets of game map skins for the specified game map scene, reducing development costs. Furthermore, since only the game environment module in the specified game map scene is updated, without replacing and loading the entire specified game map scene, skin-changing time is reduced, skin-changing efficiency is improved, and the player experience is enhanced.
[0184] Corresponding to the above method embodiments, this application also provides an embodiment of a map scene skinning system. Figure 6 A schematic diagram of a map scene skinning system provided in an embodiment of this application is shown. Figure 6 As shown, the system includes: a skin-changing server, an application server, a first client, and a second client. The first client is the client that initiates the skin-changing request, and the second client is another client that accesses the specified map scene.
[0185] The first client 602 is used to send a skinning request for a specified map scene to the application server, wherein the skinning request carries the scene identifier of the specified map scene;
[0186] Application server 604 is used to receive skin change requests and send skin change requests to the skin change server;
[0187] Skinning server 606 is used to receive skinning requests; determine the update environment module corresponding to the specified map scene based on the scene identifier; and send the update environment module to the application server.
[0188] Application server 604 is also used to receive the updated environment module and send the updated environment module to the first client and the second client;
[0189] The first client 602 is also used to receive the updated environment module; and to perform skinning operations on the specified map scene based on the updated environment module;
[0190] The second client 608 is also used to receive the updated environment module and perform skinning operations on the specified map scene based on the updated environment module.
[0191] In this embodiment, a skin-changing request for a specified map scene is received, wherein the skin-changing request carries a scene identifier of the specified map scene. Based on the scene identifier, an update environment module corresponding to the specified map scene is determined. The update environment module is used by the target client to perform a skin-changing operation on the specified map scene. The target client includes a first client logged in by a first user who initiated the skin-changing request and a second client logged in by a second user associated with the first user. For multi-user online map scenes with the first and second clients, the update environment module corresponding to the specified map scene is determined through the scene identifier to perform the skin-changing operation. This avoids drawing and developing multiple sets of map skins for the specified map scene, reducing development costs, reducing the investment in art resources, and improving resource utilization. In addition, since the environment module in the specified map scene is updated instead of replacing and loading the entire specified map scene, the skin-changing time is reduced, the skin-changing efficiency is improved, and the user experience is enhanced.
[0192] The above is an illustrative scheme of a map scene skinning system according to this embodiment. It should be noted that the technical solution of this map scene skinning system and the technical solution of the map scene skinning method described above belong to the same concept. For details not described in detail in the technical solution of the map scene skinning system, please refer to the description of the technical solution of the map scene skinning method described above.
[0193] It should be noted that each component in the system claims should be understood as a functional module necessary to implement each step of the program flow or method, and the functional modules are not actual functional divisions or separations. A system claim defined by such a set of functional modules should be understood as a functional module architecture that mainly implements the solution through the computer program described in the specification, and should not be understood as a physical system that mainly implements the solution through hardware.
[0194] Figure 7 This paper illustrates a schematic diagram of the processing flow of a map scene skinning system provided in an embodiment of this application, as shown below. Figure 7 As shown:
[0195] The first client sends a skin-changing request for a specified map scene to the application server. The application server verifies permissions, and if qualified, sends the skin-changing request to the skin-changing server. The skin-changing server generates an updated environment module for the specified map scene based on the environment modules corresponding to the target skin and custom environment modules. The skin-changing server synchronously updates the environment module to the application server. Based on the updated environment module, the application server updates the locally stored environment module for the specified map scene. The application server synchronously sends the environment module for the specified map scene to the clients and notifies each client to perform the skin-changing operation. Each client obtains and runs the target logic fragment configured based on the updated environment module. Each client changes the rendering effect, unloads the environment module for the specified map scene before the skin-changing, and loads the environment module for the specified map scene after the skin-changing. The skin-changing process ends.
[0196] Figure 8 This illustration shows a schematic diagram of the processing flow of a map scene skinning system applied to weather changes, as provided in an embodiment of this application. Figure 8 As shown:
[0197] The application server sends a weather change request to the skinning server. The skinning server adjusts the attributes of the updated environment module according to the target weather parameters to obtain the updated environment module with adjusted attributes. The skinning server synchronizes the updated environment module with adjusted attributes to the application server. The application server synchronizes the updated environment module with adjusted attributes to the client and notifies each client to perform the weather change operation. Each client obtains and runs the target logic fragment configured based on the updated environment module with adjusted attributes, and each client changes the rendering effect. The weather change ends.
[0198] Corresponding to the above method embodiments, this application also provides an embodiment of a map scene skinning device. Figure 9 A schematic diagram of a map scene skinning device provided in an embodiment of this application is shown. Figure 9 As shown, this device is used in a skinning server and includes:
[0199] The first receiving module 902 is configured to receive a skinning request for a specified map scene, wherein the skinning request carries a scene identifier of the specified map scene;
[0200] The first determining module 904 is configured to determine the update environment module corresponding to the specified map scene based on the scene identifier. The update environment module is used by the target client to perform a skinning operation on the specified map scene. The target client includes a first client and a second client. The first client is the client that initiates the skinning request, and the second client is another client that accesses the specified map scene.
[0201] Optionally, in one embodiment, the skin-changing request also carries target weather parameters;
[0202] Correspondingly, the device also includes:
[0203] The attribute adjustment module is configured to adjust the attributes of the updated environment module based on the target weather parameters, so as to obtain the updated environment module with adjusted attributes.
[0204] Optionally, in one specific embodiment, the first determining module 904 is further configured to:
[0205] Based on the scene identifier, locate the environment modules corresponding to the target skin of the specified map scene; determine the custom environment module built by the first user in the specified map scene, where the first user is the user who logged into the first client; generate the updated environment module corresponding to the specified map scene based on the environment modules corresponding to the target skin and the custom environment module.
[0206] Optionally, in one embodiment, the skin-changing request also carries the skin identifier of the target skin;
[0207] Correspondingly, the first determining module 904 is further configured as follows:
[0208] Based on scene and skin identifiers, locate the corresponding environment modules for the target skin of a specified map scene.
[0209] Optionally, in one embodiment, the device further includes:
[0210] The synchronization module is configured to synchronize the environment module to the application server, so that the application server updates the environment module corresponding to the specified map scene in local storage based on the updated environment module, and sends the updated environment module to the target client.
[0211] In this embodiment, a skin-changing request for a specified map scene is received. The skin-changing request carries a scene identifier for the specified map scene. Based on the scene identifier, an update environment module corresponding to the specified map scene is determined. This update environment module is used by the target client to perform a skin-changing operation on the specified map scene. The target client includes a first client and a second client. The first client is the client that initiated the skin-changing request, and the second client is another client accessing the specified map scene. For multi-user online map scenes involving the first client and the second client, the update environment module corresponding to the specified map scene is determined through the scene identifier to perform the skin-changing operation. This avoids the need to draw and develop multiple sets of map skins for the specified map scene, reducing development costs, reducing the investment in art resources, and improving resource utilization. Furthermore, since only the environment module in the specified map scene is updated, without replacing and loading the entire specified map scene, skin-changing time is reduced, skin-changing efficiency is improved, and the user experience is enhanced.
[0212] The above is a schematic scheme of a map scene skinning device according to this embodiment. It should be noted that the technical solution of this map scene skinning device and the technical solution of the map scene skinning method described above belong to the same concept. For details not described in detail in the technical solution of the map scene skinning device, please refer to the description of the technical solution of the map scene skinning method described above.
[0213] It should be noted that each component in the device claim should be understood as a functional module necessary to implement each step of the program flow or method, and the functional modules are not actual functional divisions or separations. A device claim defined by such a set of functional modules should be understood as a functional module architecture that implements the solution primarily through the computer program described in the specification, and not as a physical device that implements the solution primarily through hardware.
[0214] Corresponding to the above method embodiments, this application also provides another embodiment of a map scene skinning device. Figure 10 A schematic diagram of another map scene skinning device provided in an embodiment of this application is shown.
[0215] like Figure 10 As shown, this device is used in an application server and includes:
[0216] The second receiving module 1002 is configured to receive a skin-changing request for a specified map scene sent by the first client, wherein the first client is the client that initiates the skin-changing request, and the skin-changing request carries a scene identifier of the specified map scene.
[0217] The first sending module 1004 is configured to send a skin-changing request to the skin-changing server, so that the skin-changing server can determine the update environment module corresponding to the specified map scene based on the scene identifier.
[0218] The third receiving module 1006 is configured to receive the update environment module fed back by the skinning server;
[0219] The second sending module 1008 is configured to send an updated environment module to the target client, so that the target client can perform a skinning operation on a specified map scene based on the updated environment module. The target client includes a first client and a second client logged in by a second user. Optionally, in one specific embodiment, the skinning request also carries the user identifier of the first user, who is the user logged into the first client.
[0220] Correspondingly, the device also includes:
[0221] The permission verification module is configured to verify whether the first user has the permission to change the skin of a specified map scene based on the scene identifier and the user identifier; if the verification result is yes, a skin-changing request is sent to the skin-changing server.
[0222] Optionally, in one embodiment, the device further includes:
[0223] The recording module is configured to record the module identifier of the update environment module. The module identifier is used to obtain the update environment module from the skinning server when a request is received from the target client, and to feed it back to the target client to perform skinning operation on the specified map scene.
[0224] Optionally, in one embodiment, the device further includes:
[0225] The logic configuration module is configured to obtain the logic operation data corresponding to the specified map scene; configure the target logic fragment in the logic operation data based on the update environment module; and send the configured target logic fragment to the target client so that the target client runs according to the target logic fragment in the specified map scene after skinning.
[0226] Optionally, in one embodiment, the device further includes:
[0227] The operation interaction module is configured to obtain operation requests sent by the target client for any environment module in the specified map scene; execute the target logic segment based on the operation request to obtain the operation result; and feed back the operation result to the target client so that the target client can display the operation result.
[0228] In this embodiment, a skin-changing request for a specified map scene is received from a first client. The first client is the client initiating the skin-changing request, which carries a scene identifier for the specified map scene. The skin-changing request is sent to a skin-changing server, allowing the skin-changing server to determine the corresponding update environment module for the specified map scene based on the scene identifier. The update environment module is then received from the skin-changing server and sent to a target client, enabling the target client to perform a skin-changing operation on the specified map scene based on the update environment module. The target client includes both the first client and a second client, where the second client is another client accessing the specified map scene. For multi-user online map scenes involving both the first and second clients, the update environment module corresponding to the specified map scene is determined through the scene identifier for skin-changing operations. This avoids the need to draw and develop multiple map skins for the specified map scene, reducing development costs, minimizing the investment in art resources, and improving resource utilization. Furthermore, since only the environment module within the specified map scene is updated, without replacing the entire specified map scene, skin-changing time is reduced, skin-changing efficiency is improved, and the user experience is enhanced.
[0229] The above is a schematic scheme of a map scene skinning device according to this embodiment. It should be noted that the technical solution of this map scene skinning device and the technical solution of the map scene skinning method described above belong to the same concept. For details not described in detail in the technical solution of the map scene skinning device, please refer to the description of the technical solution of the map scene skinning method described above.
[0230] It should be noted that each component in the device claim should be understood as a functional module necessary to implement each step of the program flow or method, and the functional modules are not actual functional divisions or separations. A device claim defined by such a set of functional modules should be understood as a functional module architecture that implements the solution primarily through the computer program described in the specification, and not as a physical device that implements the solution primarily through hardware.
[0231] Corresponding to the above method embodiments, this application also provides another embodiment of a map scene skinning device. Figure 11 A schematic diagram of another map scene skinning device provided in an embodiment of this application is shown. Figure 11 As shown, the device is applied to a second client, which is another client accessing a specified map scene, including:
[0232] The fourth receiving module 1102 is configured to receive the update environment module corresponding to the specified map scene sent by the application server, wherein the specified map scene is the map scene accessed by the client.
[0233] The skinning module 1104 is configured to perform a skinning operation on a specified map scene based on an updated environment module. During the skinning operation, the environment module of the user-editable area in the specified map scene remains unchanged. The user-editable area is the editable area of the module set for the logged-in client user within the specified map scene. In this embodiment, the system receives the environment modules corresponding to the target skin of the specified map scene, performs a skinning operation on the specified map scene based on the updated environment module, and maintains the environment module of the user-editable area in the specified map scene unchanged during the skinning operation. The user-editable area is the editable area of the module set for the logged-in client user within the specified map scene. Maintaining the unchanged environment module of the user-editable area during the skinning operation of the specified map scene, and highlighting it later, improves the adaptability and diversity of the updated environment module, enhances the adaptability and diversity of the specified map scene after skinning, and improves the user experience. It also reduces skinning time. The above is an illustrative scheme of a map scene skinning device according to this embodiment. It should be noted that the technical solution of this map scene skinning device and the technical solution of the map scene skinning method mentioned above belong to the same concept. For details not described in detail in the technical solution of the map scene skinning device, please refer to the description of the technical solution of the map scene skinning method mentioned above.
[0234] It should be noted that each component in the device claim should be understood as a functional module necessary to implement each step of the program flow or method, and the functional modules are not actual functional divisions or separations. A device claim defined by such a set of functional modules should be understood as a functional module architecture that implements the solution primarily through the computer program described in the specification, and not as a physical device that implements the solution primarily through hardware.
[0235] In one embodiment of this application, a computing device is also provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor executes the instructions to implement the steps of the map scene skinning method.
[0236] The above is an illustrative scheme of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the map scene skinning method described above belong to the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the map scene skinning method described above.
[0237] An embodiment of this application also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the steps of the map scene skinning method described above.
[0238] The above is an illustrative scheme of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium belongs to the same concept as the technical solution of the map scene skinning method described above. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the map scene skinning method described above.
[0239] This application discloses a chip that stores computer instructions, which, when executed by a processor, implement the steps of the map scene skinning method described above.
[0240] The foregoing has described specific embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired results. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0241] The computer instructions include computer program code, which may be in the form of source code, object code, executable file, or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0242] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0243] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0244] The preferred embodiments disclosed above are merely illustrative of this application. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific implementations described. Clearly, many modifications and variations can be made based on the content of this application. These embodiments are selected and specifically described in this application to better explain the principles and practical applications of this application, thereby enabling those skilled in the art to better understand and utilize this application. This application is limited only by the claims and their full scope and equivalents.
Claims
1. A method for skinning a map scene, characterized in that, Applied to skinning servers, the method includes: Receive a skinning request for a specified map scene, wherein the skinning request carries the scene identifier and target weather parameters of the specified map scene; Based on the scene identifier, an update environment module corresponding to the specified map scene is determined. Based on the target weather parameters, at least one of the model attribute parameters, display attribute parameters, and interaction attribute parameters of the update environment module is adjusted to obtain the updated environment module with adjusted attributes. The attributes of other environment modules in the specified map scene, excluding the update environment module, are adjusted to obtain other environment modules with adjusted attributes. The environment modules are environmental element modules in the map scene. The update environment module is used by the target client to perform a skinning operation on the specified map scene. The target client includes a first client and a second client. The first client is the client that initiates the skinning request, and the second client is another client that accesses the specified map scene.
2. The method according to claim 1, characterized in that, The step of determining the update environment module corresponding to the specified map scene based on the scene identifier includes: Based on the scene identifier, locate the environmental modules corresponding to the target skin of the specified map scene; Determine the custom environment module constructed by the first user in the specified map scene, wherein the first user is the user who logged into the first client; Based on the environmental modules corresponding to the target skin and the custom environmental module, an updated environmental module corresponding to the specified map scene is generated.
3. The method according to claim 2, characterized in that, The skin change request also carries the skin identifier of the target skin; The step of finding the corresponding environment modules for the target skin of the specified map scene based on the scene identifier includes: Based on the scene identifier and the skin identifier, find the environmental modules corresponding to the target skin of the specified map scene.
4. The method according to claim 1, characterized in that, After determining the update environment module corresponding to the specified map scene based on the scene identifier, the method further includes: The updated environment module is synchronized to the application server, so that the application server updates the environment module corresponding to the specified map scene stored locally based on the updated environment module, and sends the updated environment module to the target client.
5. A method for skinning a map scene, characterized in that, Applied to an application server, the method includes: Receive a skin-changing request for a specified map scene sent by a first client, wherein the first client is the client that initiates the skin-changing request, and the skin-changing request carries the scene identifier and target weather parameters of the specified map scene; The skin-changing request is sent to the skin-changing server, so that the skin-changing server determines the update environment module corresponding to the specified map scene based on the scene identifier, and adjusts at least one of the model attribute parameters, display attribute parameters, and interaction attribute parameters of the update environment module according to the target weather parameters to obtain the updated environment module with adjusted attributes. The attributes of other environment modules in the specified map scene other than the update environment module are adjusted to obtain other environment modules with adjusted attributes, wherein the environment module is the environmental element module in the map scene; Receive the update environment module fed back by the skinning server; The updated environment module is sent to the target client so that the target client performs a skinning operation on the specified map scene based on the updated environment module. The target client includes the first client and the second client, and the second client is another client accessing the specified map scene.
6. The method according to claim 5, characterized in that, The skin-changing request also carries the user identifier of the first user, who is the user who logged into the first client. Before sending the skin-changing request to the skin-changing server, the method further includes: Based on the scene identifier and the user identifier, it is verified whether the first user has the permission to change the skin of the specified map scene; If the verification result is yes, the skin-changing request is sent to the skin-changing server.
7. The method according to claim 5, characterized in that, After receiving the updated environment module from the skinning server, the method further includes: The module identifier of the updated environment module is recorded. The module identifier is used to obtain the updated environment module from the skinning server when a request is received from the target client, and to feed it back to the target client to perform a skinning operation on the specified map scene.
8. The method according to claim 5, characterized in that, After receiving the updated environment module from the skinning server, the method further includes: Obtain the logic execution data corresponding to the specified map scene; Based on the updated environment module, the target logical segment in the logical operation data is configured; The target logic fragment with complete configuration is sent to the target client so that the target client runs according to the target logic fragment in the specified map scene after skinning.
9. The method according to claim 8, characterized in that, After sending the configured target logic segment to the target client, the method further includes: Receive an operation request sent by the target client for any environmental module in the specified map scene; Based on the operation request, the target logic segment is executed to obtain the operation result; The operation result is fed back to the target client so that the target client can display the operation result.
10. A method for skinning a map scene, characterized in that, Applied to a client, the method includes: The system receives an updated environment module and other environment modules corresponding to a specified map scene sent by an application server. The environment modules are environmental element modules in the map scene, and the specified map scene is the map scene accessed by the client. The updated environment module and the other environment modules are obtained by adjusting at least one of the model attribute parameters, display attribute parameters, and interaction attribute parameters of the updated environment module and other environment modules before attribute adjustment according to the target weather parameters. Based on the updated environment module and the other environment modules, a skinning operation is performed on the specified map scene. During the skinning operation, the environment module of the user-editable area in the specified map scene remains unchanged. The user-editable area is the module editable area set for the user logged into the client in the specified map scene.
11. A map scene skinning device, characterized in that, The device, used in skinning servers, includes: The first receiving module is configured to receive a skin-changing request from a first user for a specified map scene, wherein the skin-changing request carries a scene identifier and target weather parameters of the specified map scene; The first determining module is configured to determine the update environment module corresponding to the specified map scene based on the scene identifier, adjust at least one of the model attribute parameters, display attribute parameters, and interaction attribute parameters of the update environment module based on the target weather parameters to obtain the updated environment module with adjusted attributes, and adjust the attributes of other environment modules in the specified map scene other than the update environment module to obtain other environment modules with adjusted attributes. The environment modules are environmental element modules in the map scene. The update environment module is used by the target client to perform a skinning operation on the specified map scene. The target client includes a first client and a second client. The first client is the client that initiates the skinning request, and the second client is another client that accesses the specified map scene.
12. A map scene skinning device, characterized in that, The device, used in an application server, includes: The second receiving module is configured to receive a skin-changing request for a specified map scene sent by a first client, wherein the first client is the client that initiates the skin-changing request, and the skin-changing request carries the scene identifier and target weather parameters of the specified map scene. The first sending module is configured to send the skin-changing request to the skin-changing server, so that the skin-changing server determines the update environment module corresponding to the specified map scene based on the scene identifier, and adjusts at least one of the model attribute parameters, display attribute parameters, and interaction attribute parameters of the update environment module according to the target weather parameters to obtain the updated environment module with adjusted attributes. The module also adjusts the attributes of other environment modules in the specified map scene other than the update environment module to obtain other environment modules with adjusted attributes. The environment modules are environmental element modules in the map scene. The third receiving module is configured to receive the update environment module fed back by the skinning server; The third sending module is configured to send the updated environment module to the target client, so that the target client performs a skinning operation on the specified map scene based on the updated environment module. The target client includes the first client and the second client, and the second client is another client accessing the specified map scene.
13. A map scene skinning device, characterized in that, Applied to a client, the device includes: The fourth receiving module is configured to receive an updated environment module and other environment modules corresponding to a specified map scene sent by the application server. The environment modules are environmental element modules in the map scene, and the specified map scene is the map scene accessed by the client. The updated environment module and the other environment modules are obtained by adjusting at least one of the model attribute parameters, display attribute parameters, and interaction attribute parameters of the updated environment module and other environment modules before attribute adjustment according to the target weather parameters. The skinning module is configured to perform a skinning operation on the specified map scene based on the updated environment module and the other environment modules, and to keep the environment module of the user-editable area in the specified map scene unchanged during the skinning operation. The user-editable area is the module editable area set for the user logged into the client in the specified map scene.
14. A map scene skinning system, characterized in that, The system includes: a skin-changing server, an application server, a first client, and a second client. The first client is the client that initiates the skin-changing request, and the second client is another client that accesses the specified map scene. The first client is configured to send a skin-changing request for the specified map scene to the application server, wherein the skin-changing request carries the scene identifier and target weather parameters of the specified map scene; The application server is used to receive the skin-changing request and send the skin-changing request to the skin-changing server. The skinning server is configured to receive the skinning request; determine the update environment module corresponding to the specified map scene based on the scene identifier; adjust at least one of the model attribute parameters, display attribute parameters, and interaction attribute parameters of the update environment module based on the target weather parameters to obtain the updated environment module with adjusted attributes; adjust the attributes of other environment modules in the specified map scene other than the update environment module to obtain other environment modules with adjusted attributes, wherein the environment modules are environmental element modules in the map scene; and send the updated environment module to the application server. The application server is also used to receive the updated environment module and send the updated environment module to the first client and the second client; The first client is further configured to receive the updated environment module; and perform a skinning operation on the specified map scene based on the updated environment module; The second client is also used to receive the updated environment module and perform a skinning operation on the specified map scene based on the updated environment module.
15. A computing device, comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that, When the processor executes the instructions, it implements the steps of the method according to any one of claims 1-10.
16. A computer-readable storage medium storing computer instructions, characterized in that, When executed by the processor, this instruction implements the steps of the method according to any one of claims 1-10.
17. A computer program product, characterized in that, It includes computer instructions that, when executed by a processor, implement the steps of the method according to any one of claims 1-10.
Citation Information
Patent Citations
Scene map editing system, method and device
CN111375206A
Scene resource updating method and device, storage medium and electronic device
CN113398595A