Method and apparatus for processing virtual scene, storage medium, and electronic device

By using the picture editing engine in the virtual live broadcast room to generate basic virtual scenes and build channel maps, the user terminal equipment adjusts the color parameters, solving the problem of low virtual scene generation efficiency, realizing efficient virtual scene generation and reducing application burden.

CN114821010BActive Publication Date: 2025-08-01GUANGZHOU BOGUAN TELECOMM TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210370017.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-08
Publication Date
2025-08-01
Estimated Expiration
2042-04-08

AI Technical Summary

Technical Problem

The virtual scene generation efficiency of the existing virtual live broadcast room is low, and the face film needs to be modified through three-dimensional software, resulting in low generation efficiency.

Method used

The preset picture editing engine generates basic virtual scenes, classifies scene element identification, builds a channel diagram and embeds it into the application, and adjusts the color parameters of the user terminal device to generate the target virtual scene.

Benefits of technology

No three-dimensional software modifications are required to improve the efficiency of virtual scene generation, reduce application burden, and improve the diversity and accuracy of channel maps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114821010B_ABST
    Figure CN114821010B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and apparatus for processing a virtual scene, a storage medium, and an electronic device, and relates to the technical field of image processing. The method includes: generating a basic virtual scene according to a preset picture editing engine, and performing identification classification on scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications; constructing a map channel corresponding to the color-changing map based on a preset channel map construction rule, and generating a plurality of channel maps corresponding to the basic virtual scene based on the map channel; embedding each channel map and the basic virtual scene into an application program, and marking the scene elements to be edited in the basic virtual scene in the application program; pushing the marking result of the scene elements to be edited in the basic virtual scene to a terminal device, so that a user can adjust color parameters of the scene elements to be edited according to the marking result displayed on the terminal device. The present disclosure improves the generation efficiency of the virtual scene.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] As a new live broadcast background solution, the virtual live broadcast room is more flexible than the traditional live broadcast room, and can also greatly reduce the occupied area and cost of the venue.

[0003] The change of the virtual scene of the existing virtual live broadcast room can be realized in the following way: First, output a variety of 3D scenes and make each 3D scene into a patch; Second, when the virtual scene needs to be changed, the virtual scene of the virtual live broadcast room can be changed by changing the patch, and then the live broadcast scene of the virtual live broadcast room can be changed.

[0004] However, in order to make the patch applicable to the virtual live broadcast room, it is necessary to adaptively modify the patch through 3D software, and then change the virtual scene of the virtual live broadcast room according to the patch output after modification, so that the generation efficiency of the virtual scene is relatively low.

[0005] Therefore, it is necessary to provide a new method and device for processing virtual scenes.

[0006] It should be noted that the information of the invention in the above background art is only used to strengthen the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art. Summary of the Invention

[0007] The purpose of the present disclosure is to provide a method for processing virtual scenes, a device for processing virtual scenes, a computer-readable storage medium, and an electronic device, so as to at least overcome to a certain extent the problem of low scene generation efficiency caused by the limitations and defects of related technologies.

[0008] According to one aspect of the present disclosure, a method for processing a virtual scene is provided, which is configured on the server side. The method for processing the virtual scene includes:

[0009] Generate a basic virtual scene according to a preset picture editing engine, and identify and classify the scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifiers;

[0010] Construct a map channel corresponding to the color-changing map based on a preset map channel construction rule, and generate a plurality of channel maps corresponding to the basic virtual scene based on the map channel;

[0011] Embed each of the channel maps and the basic virtual scene into an application program, and mark the scene elements to be edited in the basic virtual scene in the application program;

[0012] Push the marking result of the scene element to be edited in the basic virtual scene to the terminal device, so that the user can adjust the color parameters of the scene element to be edited according to the marking result displayed on the terminal device, and generate a target virtual scene according to the adjusted color parameters.

[0013] In an exemplary embodiment of the present disclosure, identify and classify the scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications, including:

[0014] Obtain the first object category of the scene element to be edited included in the basic virtual scene, and the second object category of the object components included in the scene element to be edited;

[0015] Obtain the first object area of the scene element to be edited of the first object category in the basic virtual scene and the second object area of the object components of the second object category in the first object area;

[0016] Mark the first object area and the second object area with different color identifications to obtain the color-changing map with different color identifications.

[0017] In an exemplary embodiment of the present disclosure, the preset channel map construction rules include multiple types such as a reflection channel for characterizing the reflection degree, a basic color channel for characterizing the color, a depth channel for characterizing the depth of field or fog, and a roughness channel for characterizing the rough texture;

[0018] Among them, constructing a map channel corresponding to the color-changing map based on the preset channel map construction rules includes:

[0019] Construct a reflection map channel and / or a basic color map channel and / or a depth map channel and / or a roughness map channel corresponding to the color-changing map.

[0020] In an exemplary embodiment of the present disclosure, embedding each of the channel maps and the basic virtual scene into an application program includes:

[0021] Package each of the channel maps and the basic virtual scene to generate a scene data packet, and embed the scene data packet into the application program.

[0022] In an exemplary embodiment of the present disclosure, marking the scene element to be edited in the target virtual scene in the application program includes:

[0023] Mark the scene element to be edited in the basic virtual scene in the application program according to the color identification of the scene element to be edited.

[0024] According to an aspect of the present disclosure, there is provided a method for processing a virtual scene, configured in a terminal device. The method for processing the virtual scene includes:

[0025] Receiving a basic virtual scene pushed by a server side, which has a marking result of a scene element to be edited; wherein, the marking result of the scene element to be edited is marked by an application program according to a color identifier of the scene element to be edited, and the color identifier of the scene element to be edited is obtained by classifying and identifying the scene element to be edited;

[0026] In response to a touch operation of a user on the marked scene element to be edited in the basic virtual scene, calling a parameter adjustment panel corresponding to the scene element to be edited in the application program, and in response to a touch operation of the user on a parameter adjustment control in the parameter adjustment panel, adjusting color parameters of the scene element to be edited;

[0027] Associating the adjusted color parameters with the original color of the scene element to be edited in a channel map of the basic virtual scene to obtain an exhaled color parameter; wherein, the channel map of the basic virtual scene is established based on a preset channel map construction rule;

[0028] Adjusting the basic virtual scene based on the exhaled color parameter of the scene element to be edited to generate a target virtual scene, and displaying the target virtual scene.

[0029] In an exemplary embodiment of the present disclosure, in response to a touch operation of the user on a parameter adjustment control in the parameter adjustment panel, adjusting the color parameters of the scene element to be edited includes:

[0030] In response to a touch operation of the user on a parameter adjustment control in the parameter adjustment panel, adjusting a reflection parameter and / or a base color parameter and / or a depth parameter and / or a roughness parameter of the scene element to be edited.

[0031] According to an aspect of the present disclosure, there is provided a device for processing a virtual scene, configured in a server side. The device for processing the virtual scene includes:

[0032] An identification classification module, configured to generate a basic virtual scene according to a preset picture editing engine, and perform identification classification on scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifiers;

[0033] A channel map generation module, configured to construct a map channel corresponding to the color-changing map based on a preset channel map construction rule, and to generate a plurality of channel maps corresponding to the basic virtual scene based on the map channel;

[0034] A scene element marking module, configured to embed each of the channel graphs and the basic virtual scene into an application, and mark the scene elements to be edited in the basic virtual scene in the application;

[0035] The marking result pushing module is used to push the marking results of the scene elements to be edited in the basic virtual scene to the terminal device, so that the user can adjust the color parameters of the scene elements to be edited according to the marking results displayed by the terminal device, and generate the target virtual scene according to the adjusted color parameters.

[0036] According to one aspect of the present disclosure, a virtual scene processing device is provided, which is configured in a terminal device. The virtual scene processing device includes:

[0037] A scene receiving module, configured to receive a basic virtual scene with marking results of scene elements to be edited pushed by a server; wherein the marking results of the scene elements to be edited are marked by an application according to the color identification of the scene elements to be edited, and the color identification of the scene elements to be edited is obtained by classifying and identifying the scene elements to be edited;

[0038] a color parameter adjustment module, configured to, in response to a user's touch operation on a marked scene element to be edited in the basic virtual scene, call a parameter adjustment panel corresponding to the scene element to be edited in the application program, and adjust the color parameters of the scene element to be edited in response to the user's touch operation on a parameter adjustment control in the parameter adjustment panel;

[0039] a color association module for associating the adjusted color parameters with the original colors of the scene elements to be edited in the channel map of the basic virtual scene to obtain outgoing color parameters; wherein the channel map of the basic virtual scene is established based on preset channel map construction rules;

[0040] The virtual scene adjustment module is used to adjust the basic virtual scene based on the outgoing color parameter of the scene element to be edited, generate a target virtual scene, and display the target virtual scene.

[0041] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the computer program implements any one of the above-mentioned methods for processing a virtual scene.

[0042] According to one aspect of the present disclosure, there is provided an electronic device, including:

[0043] a processor; and

[0044] a memory for storing executable instructions of the processor;

[0045] wherein the processor is configured to execute the processing method of the virtual scene described in any one of the above via executing the executable instructions.

[0046] A processing method of a virtual scene provided by an embodiment of the present disclosure. On the one hand, since a basic virtual scene can be generated according to a preset picture editing engine, and the scene elements to be edited included in the basic virtual scene are identified and classified to obtain a color-changing map with different color identifications; then a map channel corresponding to the color-changing map is constructed based on a preset map channel construction rule, and a plurality of map channels corresponding to the basic virtual scene are generated based on the map channel; then each map channel and the basic virtual scene are embedded into an application program, and the scene elements to be edited in the original virtual scene are marked in the application program; finally, the marking result of the scene elements to be edited in the basic virtual scene is pushed to a terminal device, so that the user can adjust the color parameters of the scene elements to be edited according to the marking result displayed on the terminal device, and generate a target virtual scene according to the adjusted color parameters, thereby realizing the generation of the target virtual scene without modifying the virtual scene through 3D software, and improving the generation efficiency of the virtual scene; on the other hand, since the map channels and the basic virtual scene can be directly embedded into the application program to realize the adjustment of the color parameters of the scene elements to be edited, without embedding the picture editing engine into the application program, thereby reducing the burden on the application program; on the further hand, since a map channel corresponding to the color-changing map can be constructed based on a preset map channel construction rule, and a plurality of map channels corresponding to the basic virtual scene are generated based on the map channel, the diversity and accuracy of the map channels are improved.

[0047] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] The drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those of ordinary skill in the art can obtain other drawings without creative efforts based on these drawings.

[0049] Figure 1A flowchart schematically showing a method for processing a virtual scene on the server side according to an exemplary embodiment of the present disclosure.

[0050] Figure 2 An exemplary diagram schematically showing a basic virtual scene according to an exemplary embodiment of the present disclosure.

[0051] Figure 3 A flowchart schematically showing a method for identifying and classifying scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications according to an exemplary embodiment of the present disclosure.

[0052] Figure 4 An exemplary diagram schematically showing a color-changing map with different color identifications according to an exemplary embodiment of the present disclosure.

[0053] Figure 5 An exemplary channel diagram of a basic virtual scene schematically showing according to an exemplary embodiment of the present disclosure.

[0054] Figure 6 A flowchart schematically showing a method for processing a virtual scene on the terminal device side according to an exemplary embodiment of the present disclosure.

[0055] Figure 7 An exemplary diagram schematically showing a target virtual scene according to an exemplary embodiment of the present disclosure.

[0056] Figure 8 An exemplary diagram schematically showing another target virtual scene according to an exemplary embodiment of the present disclosure.

[0057] Figure 9 An exemplary diagram schematically showing another target virtual scene according to an exemplary embodiment of the present disclosure.

[0058] Figure 10 A block diagram schematically showing a processing device for a virtual scene on the server side according to an exemplary embodiment of the present disclosure.

[0059] Figure 11 A block diagram schematically showing a processing device for a virtual scene on the terminal device side according to an exemplary embodiment of the present disclosure.

[0060] Figure 12 An electronic device schematically showing for implementing the above method for processing a virtual scene according to an exemplary embodiment of the present disclosure. Detailed implementation manners

[0061] Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The features, structures, or characteristics described may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will recognize that one or more of the specific details may be omitted, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring aspects of the present disclosure.

[0062] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus repeated descriptions thereof will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0063] In the existing methods for changing the scene atmosphere of a virtual live room, the scene atmosphere can be changed by adjusting the lights in the virtual live room. The specific implementation method may include: First, the positions and brightness of the lights in the current texture map are matched in real time with the positions and brightness of the lights in the virtual live room / studio through the Unreal Engine, and the same lighting environment as that of the user device is arranged in the physical scene, and then the virtual live room / studio is placed in front of the scene of the user device.

[0064] However, due to the need for the assistance of the physical scene, the deployment efficiency of the lighting environment is relatively low; at the same time, since the Unreal Engine needs to be embedded in the application to achieve real-time matching of information such as the positions and brightness of the lights, the burden on the application is relatively heavy.

[0065] Based on this, in this example embodiment, a method for processing a virtual scene is first provided. This method can run on a server, a server cluster, a cloud server, etc.; of course, those skilled in the art can also run the method of the present disclosure on other platforms according to requirements, and no special limitation is made in this exemplary embodiment. Refer to Figure 1 As shown, the method for processing the virtual scene may include the following steps:

[0066] Step S110. Generate a basic virtual scene according to a preset picture editing engine, and perform identification and classification on the scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications;

[0067] Step S120. Construct a map channel corresponding to the color-changing map based on a preset map channel construction rule, and generate a plurality of map channels corresponding to the basic virtual scene based on the map channel;

[0068] Step S130. Embed each of the map channels and the basic virtual scene into an application program, and mark the scene elements to be edited in the basic virtual scene in the application program;

[0069] Step S140. Push the marking result of the scene elements to be edited in the basic virtual scene to a terminal device, so that a user can adjust the color parameters of the scene elements to be edited according to the marking result displayed on the terminal device, and generate a target virtual scene according to the adjusted color parameters.

[0070] In the above method for processing a virtual scene, on the one hand, since a basic virtual scene can be generated according to a preset picture editing engine, and identification and classification are performed on the scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications; then a map channel corresponding to the color-changing map is constructed based on a preset map channel construction rule, and a plurality of map channels corresponding to the basic virtual scene are generated based on the map channel; then each map channel and the basic virtual scene are embedded into an application program, and the scene elements to be edited in the original virtual scene are marked in the application program; finally, the marking result of the scene elements to be edited in the basic virtual scene is pushed to a terminal device, so that a user can adjust the color parameters of the scene elements to be edited according to the marking result displayed on the terminal device, and generate a target virtual scene according to the adjusted color parameters. Thus, the generation of the target virtual scene can be realized without modifying the virtual scene through 3D software, improving the generation efficiency of the virtual scene; on the other hand, since the color parameters of the scene elements to be edited can be adjusted by directly embedding the map channels and the basic virtual scene into the application program without embedding the picture editing engine into the application program, the burden on the application program is reduced; on the further hand, since a map channel corresponding to the color-changing map can be constructed based on a preset map channel construction rule, and a plurality of map channels corresponding to the basic virtual scene are generated based on the map channel, the diversity and accuracy of the map channels are improved.

[0071] Hereinafter, the method for processing a virtual scene according to an exemplary embodiment of the present disclosure will be explained and described in detail with reference to the accompanying drawings.

[0072] First, the nouns involved in the exemplary embodiments of the present disclosure are explained and described.

[0073] Virtual scene: A virtual scene displayed when an application runs on a terminal or a server. Optionally, the virtual scene is a simulation environment of the real world, or a semi-simulated and semi-fictional virtual environment, or a purely fictional virtual environment.

[0074] Scene element to be edited: Refers to a controllable dynamic object in a virtual scene. Optionally, the dynamic object can be a virtual character, a virtual animal, an anime character, etc. The virtual object is a character that a player can control, or an artificial intelligence (AI) set in a virtual environment battle through training, or a non-player character (NPC) set in a virtual scene battle. Optionally, the virtual object is a virtual character competing in a virtual scene. Optionally, the number of virtual objects in the virtual scene battle is preset or dynamically determined according to the number of clients joining the battle. The embodiments of the present application do not limit this. In a possible implementation manner, a user can control the virtual object to move in the virtual scene. For example, control the virtual object to run, jump, crawl, etc., and can also control the virtual object to use skills, virtual props, etc. provided by the application to fight with other virtual objects.

[0075] Secondly, the application scenarios of the exemplary embodiments of the present disclosure are explained and described. Specifically, the method for processing a virtual scene involved in the exemplary embodiments of the present disclosure can be used to change the scene atmosphere in a virtual live room / virtual studio, or to change the specific scene in a virtual live room / virtual studio. In a specific application process, a host user can adjust the color, depth of field, fog, or roughness, etc. of the scene element to be edited with markings displayed on a display terminal, so as to achieve the purpose of changing the scene atmosphere or the purpose of changing the overall scene.

[0076] Specifically, in a method for processing a virtual scene according to an exemplary embodiment of the present disclosure:

[0077] In step S110, a basic virtual scene is generated according to a preset picture editing engine, and the scene elements to be edited included in the basic virtual scene are identified and classified to obtain a color-changing map with different color markings.

[0078] In this exemplary embodiment, first, a basic virtual scene can be generated based on a preset image editing engine. For example, the preset image editing engine can be the editing tool UnrealEd (i.e., UE) provided by the Unreal Engine. In this image editing engine, based on the built-in visual physical modeling tool, corresponding objects can be selected to generate the basic virtual scene. The basic virtual scene can be the basic virtual scene under a preset scene, such as a virtual studio or a virtual live broadcast room, etc., or can be selected according to actual needs, and this example does not make special limitations on this. In this state, the basic virtual scene can be, for example, the basic model of a virtual live broadcast room or the basic model of a virtual studio. Among them, in the specific process of generating the basic virtual scene, all scene objects included in the basic virtual scene can be simulated, adjusted, mixed, etc., and then the above basic virtual scene can be obtained. The basic virtual scene can refer to Figure 2 as shown.

[0079] Secondly, after obtaining the basic virtual scene, the scene elements to be edited included in the basic virtual scene can be identified and classified to obtain a color-changing texture map with different color identifications. Specifically, referring to Figure 3 as shown, the following steps can be included:

[0080] Step S310, obtain the first object category of the scene elements to be edited included in the basic virtual scene, and the second object category of the object components included in the scene elements to be edited;

[0081] Step S320, obtain the first object area of the scene elements to be edited of the first object category in the basic virtual scene and the second object area of the object components of the second object category in the first object area;

[0082] Step S330, use different color identifications to mark the first object area and the second object area to obtain the color-changing texture map with different color identifications.

[0083] Next, steps S310 - S330 will be explained and described. First, through the artificial intelligence and network tools based on physical principles integrated in the editing tool UnrealEd, the scene elements to be edited included in the basic virtual scene and the first object area and the second object area that each scene element to be edited shrinks to can be obtained. Among them, the artificial intelligence and network tools can be, for example, a convolutional neural network model or a recurrent neural network model, and this example does not make special restrictions on this. Further, after obtaining the object category and the object area, different color markings can be used to mark the first object area and the second object area to obtain the color-changing map with different color markings. Among them, the color-changing map with different color markings can be referred to, for example, Figure 4 as shown.

[0084] Specifically, as shown in Figure 4 , the first object categories of the scene elements to be edited can include, for example, the trees on the left and right sides and at the back, the building in the middle, and the vehicles on both sides in the front; the second object categories can include, for example, the tires of the vehicles, the steps, doors, columns, and round platforms of the building, etc. After identifying each first object category and the second object category, they can be marked with different colors. For example, the vehicles are uniformly marked as red, the wheels are marked as green, the steps are marked as blue, the trees are marked as pinkish white, the building is marked as pink, the doors and columns are marked as blue, etc. Marking the corresponding object categories with different colors can facilitate the later host user to select the object, and then select and modify the color, depth of field, roughness, etc. of the object to realize the change of the scene.

[0085] In step S120, a texture channel corresponding to the color-changing map is constructed based on a preset texture channel construction rule, and a plurality of texture maps corresponding to the basic virtual scene are generated based on the texture channel.

[0086] Specifically, the preset texture channel construction rule includes a reflection channel for characterizing the reflection degree, a base color channel for characterizing the color, a depth channel for characterizing the depth of field or fog, a roughness channel for characterizing the rough texture, etc. Among them, constructing a texture channel corresponding to the color-changing map based on the preset texture channel construction rule can include: constructing a reflection texture channel and / or a base color texture channel and / or a depth texture channel and / or a roughness texture channel corresponding to the color-changing map. It should be supplemented here that since the final output result of the editing tool UnrealEd is a plurality of texture maps, a plurality of texture channels need to be constructed and a plurality of texture maps need to be generated. Among them, the texture map corresponding to the basic virtual scene can be referred to, for example, Figure 5As shown. In this way, it is possible to change the color of the scene elements to be edited without embedding the editing tool UnrealEd into the application, thereby reducing the burden on the application.

[0087] Further, after obtaining the texture channels, the editing tool UnrealEd can be used to edit each of the texture channels and the basic virtual scene, thereby obtaining multiple channel maps.

[0088] In step S130, each of the channel maps and the basic virtual scene are embedded into the application, and the scene elements to be edited in the basic virtual scene are marked in the application.

[0089] In this exemplary embodiment, first, each of the channel maps and the basic virtual scene are embedded into the application. Specifically, it may include: packing each of the channel maps and the basic virtual scene to generate a scene data packet, and embedding the scene data packet into the application. Specifically, when packing each of the channel maps, the channel maps can be named according to the effects they have, and then the named channel maps are packed, so that the application can mark the scene elements to be edited included in the channel map according to the effects of each channel map; further, after the packing is completed, the scene data packet can be embedded into the application at the position with the same scene as the above basic virtual scene; for example, the scene data packet can be embedded at the position of a virtual studio or a virtual live room in the application.

[0090] Secondly, the scene elements to be edited in the target virtual scene are marked in the application. Specifically, it may include: marking the scene elements to be edited in the basic virtual scene in the application according to the color identifiers of the scene elements to be edited. For example, vehicles are uniformly marked as red, wheels are marked as green, steps are marked as blue, trees are marked as pink and white, buildings are marked as pink, doors and columns are marked as blue, and so on.

[0091] In step S140, the marking results of the scene elements to be edited in the basic virtual scene are pushed to the terminal device, so that the user can adjust the color parameters of the scene elements to be edited according to the marking results displayed on the terminal device, and generate a target virtual scene according to the adjusted color parameters.

[0092] Specifically, after the marking of the scene elements to be edited is completed, the marked virtual scene can be pushed to the terminal device. The terminal device can be the terminal device where the host user is located, or it can also be other users. This example does not make special restrictions on this. Further, when the host user logs in to the user terminal, the marking results of the scene elements to be edited included in the scene can be displayed on the user terminal, so that the host user can select the corresponding scene elements to be edited, thereby realizing the change of the scene or the scene atmosphere.

[0093] Figure 6 Schematically shows another virtual scene processing method according to an exemplary embodiment of the present disclosure. This virtual scene processing method can run on a terminal device, and the terminal device can be a local terminal device, such as a mobile phone, a tablet computer, and a PC, etc. Of course, those skilled in the art can also run the method of the present invention on other platforms according to needs, and this exemplary embodiment does not make special limitations on this. Refer to Figure 6 As shown, this virtual scene processing method can include the following steps:

[0094] Step S610, receiving a basic virtual scene with a marking result of a scene element to be edited from the server side; wherein, the marking result of the scene element to be edited is marked by an application program according to the color identifier of the scene element to be edited, and the color identifier of the scene element to be edited is obtained by classifying and identifying the scene element to be edited.

[0095] In this exemplary embodiment, when the user logs in to the client of the application program, the marking result of the scene element to be edited can be displayed on the display interface of the user's terminal device. That is, when the user selects to edit the basic virtual scene, in the basic virtual scene displayed on the display interface of the user's terminal device, the scene elements to be edited are marked with different colors, and the user can select the corresponding scene elements to be edited according to the corresponding color identifier. Herein, the user referred to can include the host user, or it can also include other users. This example does not make special restrictions on this.

[0096] Step S620, in response to the user's touch operation on the marked scene element to be edited in the basic virtual scene, calling a parameter adjustment panel corresponding to the scene element to be edited in the application program, and in response to the user's touch operation on the parameter adjustment control in the parameter adjustment panel, adjusting the color parameters of the scene element to be edited.

[0097] In this example embodiment, first, in response to a user's touch operation on a marked scene element to be edited in the basic virtual scene, a parameter adjustment panel corresponding to the scene element to be edited in the application is called. The parameter adjustment panel may include a reflection parameter panel, a basic color parameter panel, a depth parameter panel, a roughness parameter panel, etc. The parameter adjustment panels may be displayed simultaneously or separately, and this example does not impose any special restrictions on this. Secondly, in response to the user's touch operation on the parameter adjustment control in the parameter adjustment panel, the color parameters of the scene element to be edited are adjusted. Specifically, this may include: in response to the user's touch operation on the parameter adjustment control in the parameter adjustment panel, the reflection parameter and / or basic color parameter and / or depth parameter and / or roughness parameter of the scene element to be edited are adjusted.

[0098] Step S630, associating the adjusted color parameters with the original colors of the scene elements to be edited in the channel map of the basic virtual scene to obtain outgoing color parameters; wherein the channel map of the basic virtual scene is established based on preset channel map construction rules.

[0099] Specifically, the preset channel map construction rules may include: a reflection channel for characterizing the degree of reflection, a basic color channel for characterizing color, a depth channel for characterizing depth of field or fog, and a roughness channel for characterizing rough texture, etc.

[0100] Step S640 : adjusting the basic virtual scene based on the outgoing color parameter of the scene element to be edited, generating a target virtual scene, and displaying the target virtual scene.

[0101] Figure 6 In the example embodiment shown, the adjusted color parameters and the original colors of the scene elements to be edited in the channel map of the basic virtual scene can be associated to obtain the outgoing color parameters, and then the basic virtual scene can be adjusted based on the outgoing color parameters of the scene elements to be edited to generate the target virtual scene, so as to achieve the purpose of adding fog effects, changing fog colors, or increasing depth of field effects, etc., thereby achieving the purpose of changing the scene atmosphere of the basic virtual scene and simulating a real camera; wherein, the target virtual scene finally formed can refer to Figure 7 、 Figure 8 as well as Figure 9 shown.

[0102] The exemplary embodiment of the present disclosure also provides a virtual scene processing device, which is configured on the server side. Figure 10As shown in the figure, the processing device for the virtual scene may include an identification and classification module 1010, a channel map generation module 1020, a scene element marking module 1030, and a marking result pushing module 1040. Among them:

[0103] The identification and classification module 1010 can be used to generate a basic virtual scene according to a preset picture editing engine, and identify and classify the scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications;

[0104] The channel map generation module 1020 can be used to construct a map channel corresponding to the color-changing map based on a preset channel map construction rule, and generate a plurality of channel maps corresponding to the basic virtual scene based on the map channel;

[0105] The scene element marking module 1030 can be used to embed each of the channel maps and the basic virtual scene into an application program, and mark the scene elements to be edited in the basic virtual scene in the application program;

[0106] The marking result pushing module 1040 can be used to push the marking results of the scene elements to be edited in the basic virtual scene to a terminal device, so that a user can adjust the color parameters of the scene elements to be edited according to the marking results displayed on the terminal device, and generate a target virtual scene according to the adjusted color parameters.

[0107] In an exemplary embodiment of the present disclosure, identifying and classifying the scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications includes:

[0108] Obtaining a first object category of the scene elements to be edited included in the basic virtual scene, and a second object category of the object components included in the scene elements to be edited;

[0109] Obtaining a first object area of the scene elements to be edited of the first object category in the basic virtual scene and a second object area of the object components of the second object category in the first object area;

[0110] Marking the first object area and the second object area with different color identifications to obtain the color-changing map with different color identifications.

[0111] In an exemplary embodiment of the present disclosure, the preset channel map construction rule includes multiple types such as a reflection channel for characterizing the reflection degree, a basic color channel for characterizing the color, a depth channel for characterizing the depth of field or fog, and a roughness channel for characterizing the rough texture;

[0112] Among them, constructing a texture channel corresponding to the color-changing texture based on a preset texture channel construction rule includes: constructing a reflection texture channel and / or a base color texture channel and / or a depth texture channel and / or a roughness texture channel corresponding to the color-changing texture.

[0113] In an exemplary embodiment of the present disclosure, embedding each of the texture channels and the base virtual scene into an application program includes:

[0114] Packaging each of the texture channels and the base virtual scene to generate a scene data packet, and embedding the scene data packet into the application program.

[0115] In an exemplary embodiment of the present disclosure, marking a scene element to be edited in the target virtual scene in the application program includes:

[0116] Marking the scene element to be edited in the base virtual scene in the application program according to the color identifier of the scene element to be edited.

[0117] The present disclosure also provides another virtual scene processing device, which is placed in a terminal device. Refer to Figure 11 As shown, the virtual scene processing device includes a scene receiving module 1110, a color parameter adjustment module 1120, a color association module 1130, and a virtual scene adjustment module 1140. Among them:

[0118] The scene receiving module 1110 can receive the base virtual scene with the marking result of the scene element to be edited pushed by the server side; wherein, the marking result of the scene element to be edited is marked by the application program according to the color identifier of the scene element to be edited, and the color identifier of the scene element to be edited is obtained by classifying and identifying the scene element to be edited;

[0119] The color parameter adjustment module 1120 can be used to, in response to a touch operation of the user on the marked scene element to be edited in the base virtual scene, call a parameter adjustment panel corresponding to the scene element to be edited in the application program, and in response to a touch operation of the user on the parameter adjustment control in the parameter adjustment panel, adjust the color parameters of the scene element to be edited;

[0120] The color association module 1130 can be used to associate the adjusted color parameters with the original color of the scene element to be edited in the texture channel of the base virtual scene to obtain an exhaled color parameter; wherein, the texture channel of the base virtual scene is established based on a preset texture channel construction rule;

[0121] The virtual scene adjustment module 1140 can be used to adjust the base virtual scene based on the exhaled color parameters of the scene elements to be edited, generate a target virtual scene, and display the target virtual scene.

[0122] In an exemplary embodiment of the present disclosure, in response to the user's touch operation on the parameter adjustment control in the parameter adjustment panel, adjusting the color parameters of the scene elements to be edited includes:

[0123] In response to the user's touch operation on the parameter adjustment control in the parameter adjustment panel, adjusting the reflection parameter and / or the base color parameter and / or the depth parameter and / or the roughness parameter of the scene elements to be edited.

[0124] The specific details of each module in the above virtual scene processing device have been described in detail in the corresponding virtual scene processing method, so they will not be repeated here.

[0125] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of the two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0126] In addition, although the steps of the methods in the present disclosure are described in a specific order in the drawings, this does not require or imply that these steps must be executed in that specific order, or that all the steps shown must be executed to achieve the desired result. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc.

[0127] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0128] Those skilled in the art of the relevant technology can understand that various aspects of the present disclosure can be implemented as a system, method, or program product. Therefore, various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which can be collectively referred to as "circuitry", "module", or "system" here.

[0129] Next, refer to Figure 12 to describe the electronic device 1200 according to this embodiment of the present disclosure. Figure 12The displayed electronic device 1200 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0130] As Figure 12 shown, the electronic device 1200 is presented in the form of a general-purpose computing device. The components of the electronic device 1200 may include, but are not limited to: at least one of the above-mentioned processing units 1210, at least one of the above-mentioned storage units 1220, a bus 1230 connecting different system components (including the storage unit 1220 and the processing unit 1210), and a display unit 1240.

[0131] Among them, the storage unit stores program code, and the program code can be executed by the processing unit 1210, so that the processing unit 1210 executes the steps according to various exemplary embodiments of the present disclosure described in the "Exemplary Method" section of the present specification above. For example, the processing unit 1210 can execute steps S110 as Figure 1 shown: generate a basic virtual scene according to a preset picture editing engine, and perform identification classification on the scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications; step S120: construct a map channel corresponding to the color-changing map based on a preset channel map construction rule, and generate a plurality of channel maps corresponding to the basic virtual scene based on the map channel; step S130: embed each of the channel maps and the basic virtual scene into an application program, and mark the scene elements to be edited in the basic virtual scene in the application program; step S140: push the marking result of the scene elements to be edited in the basic virtual scene to a terminal device, so that the user adjusts the color parameters of the scene elements to be edited according to the marking result displayed on the terminal device, and generates a target virtual scene according to the adjusted color parameters.

[0132] For another example, the processing unit 1210 may execute step S610 as shown in the figure: receiving a basic virtual scene with a marking result of a scene element to be edited pushed by the server side; wherein, the marking result of the scene element to be edited is marked by an application program according to a color identifier of the scene element to be edited, and the color identifier of the scene element to be edited is obtained by classifying and identifying the scene element to be edited; step S620: in response to a touch operation of the user on the scene element to be edited with a mark in the basic virtual scene, calling a parameter adjustment panel corresponding to the scene element to be edited in the application program, and in response to a touch operation of the user on a parameter adjustment control in the parameter adjustment panel, adjusting color parameters of the scene element to be edited; step S630: associating the adjusted color parameters with the original color of the scene element to be edited in the channel map of the basic virtual scene to obtain an exhaled color parameter; wherein, the channel map of the basic virtual scene is established based on a preset channel map construction rule; step S640: adjusting the basic virtual scene based on the exhaled color parameter of the scene element to be edited to generate a target virtual scene, and displaying the target virtual scene.

[0133] The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 12201 and / or a cache storage unit 12202, and may further include a read-only storage unit (ROM) 12203.

[0134] The storage unit 1220 may further include a program / utilities 12204 having a set (at least one) of program modules 12205. Such program modules 12205 include, but are not limited to: an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment.

[0135] The bus 1230 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures.

[0136] The electronic device 1200 can also communicate with one or more external devices 1300 (such as a keyboard, a pointing device, a Bluetooth device, etc.), and can also communicate with one or more devices that enable a user to interact with the electronic device 1200, and / or communicate with any device that enables the electronic device 1200 to communicate with one or more other computing devices (such as a router, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 1250. Moreover, the electronic device 1200 can also communicate with one or more networks (such as a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through the network adapter 1260. As shown in the figure, the network adapter 1260 communicates with other modules of the electronic device 1200 through the bus 1230. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the electronic device 1200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0137] Through the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by a combination of software and necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.

[0138] In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, on which a program product capable of implementing the above method of this specification is stored. In some possible implementation manners, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.

[0139] The program product for implementing the above method according to the embodiments of the present disclosure can be a portable compact disc read-only memory (CD-ROM) and includes program code, and can run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.

[0140] The program product may adopt any combination of one or more readable media. The readable media may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive list) of the readable storage medium include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0141] The computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries the readable program code. Such a propagated data signal may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The readable signal medium may also be any readable medium other than the readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.

[0142] The program code contained on the readable medium may be transmitted by any appropriate medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination of the above.

[0143] The program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also including conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's device, executed as a stand-alone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., by using an Internet service provider to connect through the Internet).

[0144] In addition, the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, rather than for limiting purposes. It is easy to understand that the processes shown in the above-mentioned drawings do not indicate or limit the time sequence of these processes. Additionally, it is also easy to understand that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0145] Other embodiments of the present disclosure will be readily apparent to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common general knowledge or conventional technical means in the art that are not invented by the present disclosure. The specification and examples are only illustrative, and the true scope and spirit of the present disclosure are pointed out by the claims.

Claims

1. A method for processing a virtual scene, characterized in that Configured on the server side, the method for processing the virtual scene includes: Generating a basic virtual scene according to a preset picture editing engine, and classifying and identifying the scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications; wherein, the color-changing map is obtained through the following method: obtaining the first object category of the scene elements to be edited included in the basic virtual scene, and the second object category of the object components included in the scene elements to be edited; obtaining the first object area of the scene elements to be edited of the first object category in the basic virtual scene and the second object area of the object components of the second object category in the first object area; using different color identifications to mark the first object area and the second object area to obtain the color-changing map with different color identifications; Constructing a map channel corresponding to the color-changing map based on a preset map channel construction rule, and generating a plurality of channel maps corresponding to the basic virtual scene based on the map channel; Embedding each of the channel maps and the basic virtual scene into an application program, and marking the scene elements to be edited in the basic virtual scene in the application program; Pushing the marking result of the scene elements to be edited in the basic virtual scene to a terminal device, so that the user can adjust the color parameters of the scene elements to be edited according to the marking result displayed on the terminal device, and generate a target virtual scene according to the adjusted color parameters.

2. The method for processing a virtual scene according to claim 1, wherein The preset map channel construction rule includes multiple ones of a reflection channel for characterizing the reflection degree, a basic color channel for characterizing the color, a depth channel for characterizing the depth of field or fog, and a roughness channel for characterizing the rough texture; Among them, constructing a map channel corresponding to the color-changing map based on a preset map channel construction rule includes: Constructing a reflection map channel and / or a basic color map channel and / or a depth map channel and / or a roughness map channel corresponding to the color-changing map.

3. The method for processing a virtual scenario according to claim 1, wherein Embedding each of the channel maps and the basic virtual scene into an application program includes: Packaging each of the channel maps and the basic virtual scene to generate a scene data packet, and embedding the scene data packet into the application program.

4. The processing method of the virtual scene according to claim 3, wherein Marking the scene elements to be edited in the target virtual scene in the application program includes: Marking the scene elements to be edited in the basic virtual scene in the application program according to the color identification of the scene elements to be edited.

5. A method for processing a virtual scene, characterized in that, Configured on the terminal device, the method for processing the virtual scene includes: Receive a basic virtual scene that receives a marked result of a scene element to be edited pushed by the server side; wherein, the marked result of the scene element to be edited is marked by an application program according to the color identifier of the scene element to be edited, and the color identifier of the scene element to be edited is obtained by classifying and identifying the scene element to be edited; the channel map included in the application program is generated based on a texture channel corresponding to a color-changing texture, and the color-changing texture is obtained by the following method: obtain a first object category of the scene element to be edited included in the basic virtual scene, and a second object category of the object component included in the scene element to be edited; obtain a first object area of the scene element to be edited of the first object category in the basic virtual scene and a second object area of the object component of the second object category in the first object area; use different color identifiers to mark the first object area and the second object area to obtain a color-changing texture with different color identifiers; In response to a touch operation of the user on the scene element to be edited with a mark in the basic virtual scene, call a parameter adjustment panel corresponding to the scene element to be edited in the application program, and in response to the touch operation of the user on the parameter adjustment control in the parameter adjustment panel, adjust the color parameters of the scene element to be edited; Associate the adjusted color parameters with the original color of the scene element to be edited in the channel map of the basic virtual scene to obtain an exhaling color parameter; wherein, the channel map of the basic virtual scene is established based on a preset channel map construction rule; Adjust the basic virtual scene based on the exhaling color parameter of the scene element to be edited to generate a target virtual scene, and display the target virtual scene.

6. The method for processing a virtual scene according to claim 5, wherein In response to the touch operation of the user on the parameter adjustment control in the parameter adjustment panel, adjusting the color parameters of the scene element to be edited includes: In response to the touch operation of the user on the parameter adjustment control in the parameter adjustment panel, adjust the reflection parameter and / or the base color parameter and / or the depth parameter and / or the roughness parameter of the scene element to be edited.

7. A processing device for a virtual scene, characterized in that, Configured on the server side, the processing device of the virtual scene includes: An identification classification module, which is used to generate a basic virtual scene according to a preset picture editing engine, and perform identification classification on the scene elements to be edited included in the basic virtual scene to obtain a color-changing map with different color identifications; wherein, the color-changing map is obtained in the following manner: obtaining a first object category of the scene elements to be edited included in the basic virtual scene, and a second object category of the object components included in the scene elements to be edited; obtaining a first object area of the scene elements to be edited of the first object category in the basic virtual scene and a second object area of the object components of the second object category in the first object area; using different color identifications to mark the first object area and the second object area to obtain a color-changing map with different color identifications; A channel map generation module, which is used to construct a map channel corresponding to the color-changing map based on a preset channel map construction rule, and generate a plurality of channel maps corresponding to the basic virtual scene based on the map channel; A scene element marking module, which is used to embed each of the channel maps and the basic virtual scene into an application program, and mark the scene elements to be edited in the basic virtual scene in the application program; A marking result pushing module, which is used to push the marking result of the scene elements to be edited in the basic virtual scene to a terminal device, so that the user can adjust the color parameters of the scene elements to be edited according to the marking result displayed on the terminal device, and generate a target virtual scene according to the adjusted color parameters.

8. A processing device for a virtual scene, characterized in that, Configured in a terminal device, the virtual scene processing device includes: A scene receiving module, which is used to receive a basic virtual scene with a marking result of a scene element to be edited pushed by a server side; wherein, the marking result of the scene element to be edited is marked by the application program according to the color identification of the scene element to be edited, and the color identification of the scene element to be edited is obtained by classifying and identifying the scene element to be edited; the channel map included in the application program is generated based on a map channel corresponding to a color-changing map, and the color-changing map is obtained in the following manner: obtaining a first object category of the scene elements to be edited included in the basic virtual scene, and a second object category of the object components included in the scene elements to be edited; obtaining a first object area of the scene elements to be edited of the first object category in the basic virtual scene and a second object area of the object components of the second object category in the first object area; using different color identifications to mark the first object area and the second object area to obtain a color-changing map with different color identifications; a color parameter adjustment module, configured to, in response to a user's touch operation on a marked scene element to be edited in the basic virtual scene, call a parameter adjustment panel corresponding to the scene element to be edited in the application program, and adjust the color parameters of the scene element to be edited in response to the user's touch operation on a parameter adjustment control in the parameter adjustment panel; a color association module for associating the adjusted color parameters with the original colors of the scene elements to be edited in the channel map of the basic virtual scene to obtain outgoing color parameters; wherein the channel map of the basic virtual scene is established based on preset channel map construction rules; The virtual scene adjustment module is used to adjust the basic virtual scene based on the outgoing color parameter of the scene element to be edited, generate a target virtual scene, and display the target virtual scene.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, the method for processing a virtual scene according to any one of claims 1 to 6 is implemented.

10. An electronic device, characterized in that, include: processor; as well as a memory for storing executable instructions of the processor; The processor is configured to execute the virtual scene processing method according to any one of claims 1 to 6 by executing the executable instructions.

Citation Information

Patent Citations

  • Implementation method and device for dynamic change of virtual scene, medium and electronic equipment

    CN111467805A