Virtual scene information processing method and device, electronic equipment and storage medium

By querying and rendering the lighting information of the target virtual object in the virtual scene, the problems of high hardware requirements for virtual scene lighting rendering and high memory consumption in the prior art are solved, and games running on low-configuration devices are realized, and the audience is expanded.

CN119838215APending Publication Date: 2025-04-18SHANGHAI LINGXI INTERACTIVE ENTERTAINMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411738256.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

When existing games are lighting rendering in real-time virtual scenes, the hardware requirements are high, which limits the audience of the game and requires real-time calculation of lighting effects, resulting in large memory consumption.

Method used

By determining the relative position of the target virtual object and the set query path in the virtual scene, the target lighting information is queried and obtained, and the lighting effect is rendered in the first scene area. Different virtual objects select different query paths, texture information or baking information according to the attribute value to achieve rendering of lighting effects.

Benefits of technology

It reduces memory consumption during game operation, reduces hardware requirements, enables games to run on devices with lower configurations, and expands the audience of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119838215A_ABST
    Figure CN119838215A_ABST
Patent Text Reader

Abstract

The invention relates to an information processing method and device for a virtual scene, electronic equipment and a storage medium, and the method comprises the steps: determining a to-be-displayed first scene region in the virtual scene and a target virtual object in the first scene region in response to a display instruction of the virtual scene; determining target illumination information of the target virtual object through a query path set by the target virtual object by taking the relative position of the target virtual object in the virtual scene as a query condition; and displaying the illumination effect of the target virtual object in the first scene area according to the target illumination information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of information processing, and more specifically, to a method, device, electronic device and storage medium for processing information of a virtual scene. Background Art

[0002] As the technology of game development becomes more mature, the virtual scenes presented by games are becoming more realistic. At present, game development not only requires building a virtual scene for users' virtual character activities, but also requires lighting rendering of virtual characters, vehicles, buildings or natural environments presented in the virtual scene in order to improve the realism of the virtual scene. However, existing games usually require real-time lighting of real-time virtual scenes, and calculate the lighting effects of virtual scenes in real time based on real-time lighting, which makes the hardware requirements of the game high and limits the audience of the game. Summary of the invention

[0003] One purpose of the embodiments of the present disclosure is to provide a new technical solution for information processing of a virtual scene.

[0004] According to a first aspect of the present disclosure, a method for processing information of a virtual scene is provided, the method comprising:

[0005] In response to a display instruction of the virtual scene, determining a first scene area to be displayed in the virtual scene and a target virtual object in the first scene area;

[0006] Taking the relative position of the target virtual object in the virtual scene as a query condition, and determining the target lighting information of the target virtual object through the query path set by the target virtual object;

[0007] According to the target lighting information, a lighting effect of the target virtual object is displayed in the first scene area.

[0008] In a possible implementation, different virtual objects have different attribute values ​​for a first object attribute; virtual objects whose attribute values ​​exceed a set threshold correspond to a first query path, and virtual objects whose attribute values ​​do not exceed the set threshold correspond to a second query path; wherein the lighting information corresponding to the first query path is texture information corresponding to the query position, and the lighting information corresponding to the second query path is baking information on a probe corresponding to the query position.

[0009] In a possible implementation, when the query path set by the target virtual object is the first query path, determining the target lighting information of the target virtual object through the query path set by the target virtual object includes:

[0010] Through the first query path, it is determined that the scene skylight of the first scene area is set to the ambient light that represents the overall visual characteristics of the first scene area and the directional light that represents the local visual characteristics of the first scene area to act on the texture information of the target virtual object, and serve as the target lighting information of the target virtual object.

[0011] In a possible implementation manner, when the query path set by the target virtual object is the second query path, determining the target lighting information of the target virtual object through the query path set by the target virtual object includes:

[0012] determining target baking information on a probe group surrounding the target virtual object in the first scene area through the second query path;

[0013] According to the relative position of the probe group and the target virtual object, the baking information is interpolated to obtain the target lighting information of the target virtual object.

[0014] In a possible implementation manner, determining target baking information on a probe group surrounding the target virtual object in the first scene area includes:

[0015] Determine first baking information for applying scene skylight and point light source of the first scene area to a target tetrahedron surrounding the target virtual object;

[0016] Determine second baking information for applying scene skylight and point light source of the first scene area to a target probe bounding box surrounding the target virtual object;

[0017] When a first irradiance value reflected by the first baking information is greater than or equal to a second irradiance value reflected by the second baking information, determining the first baking information as target baking information;

[0018] When the first irradiance value reflected by the first baking information is less than the second irradiance value reflected by the second baking information, the second baking information is determined as the target baking information.

[0019] In a possible implementation, the virtual scene is composed of a plurality of scene modules; and in response to the display instruction of the virtual scene, determining a first scene area to be displayed in the virtual scene includes:

[0020] In response to a display instruction of the virtual scene, determining a first scene module in the scene modules that is associated with the display instruction;

[0021] Determine a first scene area in the virtual scene to display the first scene module.

[0022] In a possible implementation, the method further includes:

[0023] Determining a first time node currently corresponding to the first scene area;

[0024] The step of taking the relative position of the target virtual object in the virtual scene as a query condition and determining the target lighting information of the target virtual object through a query path set by the target virtual object includes:

[0025] The relative position of the target virtual object in the virtual scene is used as a query condition, and the target lighting information of the target virtual object at the first time node is determined through the query path set by the target virtual object.

[0026] According to a second aspect of the present disclosure, there is also provided an information processing device for a virtual scene, comprising:

[0027] A response module, configured to determine a first scene area to be displayed in the virtual scene and a target virtual object in the first scene area in response to a display instruction of the virtual scene;

[0028] A query module, configured to determine target lighting information of the target virtual object by taking the relative position of the target virtual object in the virtual scene as a query condition and by using a query path set by the target virtual object;

[0029] A display module is used to display the lighting effect of the target virtual object in the first scene area according to the target lighting information.

[0030] According to a third aspect of the present disclosure, a computer system is also provided, the computer system includes a processor, when the processor executes a program instruction or code, the computer system implements the information processing method of the virtual scene in the first aspect. Exemplarily, the computer system also includes a memory, the memory is used to store the program instruction or code.

[0031] According to a fourth aspect of the present disclosure, a computer-readable storage medium is further provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned virtual scene information processing method when running.

[0032] According to a fifth aspect of the present disclosure, there is also provided a computer program product, comprising a game program, wherein when the game program is executed, the computer executes the steps of the above-mentioned virtual scene information processing method.

[0033] According to a sixth aspect of the present disclosure, there is also provided an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the information processing method of the virtual scene through the computer program.

[0034] A beneficial effect of the embodiments of the present disclosure is that the information processing method of the virtual scene provided by the embodiments of the present disclosure can determine the first scene area to be displayed and the target virtual object in the first scene area when the first scene area of ​​the virtual scene needs to be displayed, and use the relative position of the target virtual object in the virtual scene as a query condition, and determine the target lighting information of the target virtual object through the query path set by the target virtual object, and then render the lighting effect of the target virtual object in the first scene area, so as to provide different query paths to obtain the lighting information of virtual objects in different positions, so that some virtual objects with lower lighting effect requirements can directly query the lighting information without real-time calculation, thereby effectively reducing the memory consumption during the game operation process.

[0035] Features and advantages of the embodiments of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the embodiments of the specification.

[0037] Figure 1 A schematic diagram showing the hardware structure of an electronic device that can be used to implement the information processing method of a virtual scene according to an embodiment of the present disclosure;

[0038] Figure 2 A schematic diagram showing a flow chart of a method for processing information of a virtual scene according to some embodiments;

[0039] Figure 3 A schematic diagram showing the structure of an information processing device for a virtual scene according to some embodiments;

[0040] Figure 4 A schematic diagram of the hardware structure of an electronic device according to some embodiments is shown. DETAILED DESCRIPTION

[0041] Various exemplary embodiments of the present specification will now be described in detail with reference to the accompanying drawings.

[0042] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the embodiments of the present specification and its application or uses.

[0043] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0044] It should be noted that all actions of acquiring signals, information or data in the embodiments of the present disclosure are performed in compliance with the corresponding data protection laws and policies of the country where the device is located, and with the authorization given by the owner of the corresponding device.

[0045] The disclosed embodiment provides a new information processing scheme for a virtual scene. When entering a first scene area of ​​the virtual scene, the scheme determines the relative position of a target virtual object in the first scene area in the virtual scene, and determines the lighting information of the target virtual object and renders the lighting effect according to the query path set for the target virtual object, so as to provide a query path to obtain the lighting information of the target virtual object, so that some virtual objects with lower lighting effect requirements can directly query the lighting information without real-time calculation, thereby effectively reducing the memory consumption during the game operation process.

[0046] Figure 1 A schematic diagram of the hardware structure of an electronic device that can be used to implement the information processing method of a virtual scene according to an embodiment of the present disclosure is shown.

[0047] The electronic device 1000 is a device capable of running a game, and the game may be a local application installed on the electronic device, or a web game, a light application, or a small program, etc., which is not limited here. The electronic device 1000 may be a mobile phone, a tablet computer, a PC, etc., which is not limited here.

[0048] like Figure 1 As shown, the electronic device 1000 may include a processor 1101, a memory 1102, an interface device 1103, a communication device 1104, an output device 1105, an input device 1106, and the like. Figure 1 The hardware configuration shown is merely illustrative and is in no way intended to limit the present disclosure, its application, or uses.

[0049] The processor 1101 is used to execute a computer program, which can be written in an instruction set of an architecture such as x86, Arm, RISC, MIPS, SSE, etc. The memory 1102 includes, for example, ROM (read-only memory), RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1103 includes, for example, a USB interface, a network cable interface, a headphone interface, etc. The communication device 1104 is capable of wired or wireless communication, for example, and the communication device 1104 may include at least one short-range communication module, for example, any module for short-range wireless communication based on short-range wireless communication protocols such as Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, etc. The communication device 1104 may also include a remote communication module, for example, any module for WLAN, GPRS, 2G / 3G / 4G / 5G remote communication. The output device 1105 may include, for example, a liquid crystal display or a touch display, a speaker, etc. The input device 1106 may include, for example, a touch screen, a keyboard, a microphone, various sensors, etc.

[0050] In this embodiment, the memory 1102 of the electronic device 1000 is used to store a computer program, and the computer program is used to control the processor 1101 to operate so as to execute the information processing method of the virtual scene according to any embodiment of the present disclosure.

[0051] Next, Figure 1 Taking the electronic device 1000 as an example of an implementation subject, various embodiments of the information processing method of the virtual scene are explained.

[0052] <First Embodiment>

[0053] Figure 2 A method for processing information of a virtual scene according to some embodiments is shown. The method for processing information of a virtual scene may include the following steps S210 and S230:

[0054] Step S210 , in response to a display instruction of a virtual scene, determining a first scene area to be displayed in the virtual scene and a target virtual object in the first scene area.

[0055] In this embodiment, the display instruction may be triggered after the user starts the game or when the user switches to a virtual scene in the game.

[0056] In this embodiment, the virtual scene is composed of multiple scene modules, for example, the virtual scene is composed of 3×3 scene modules A, wherein the size of each scene module A is 1×1. The display instruction may indicate any one or more of the multiple scene modules, for example, the virtual scene is composed of 3×3 scene modules A, and the user's game interface may display three scene modules A located in the first row of the 3×3 scene modules A.

[0057] In this embodiment, the first scene area may be a scene area displayed to the user, and the first active object in the first scene area may be an object moved or newly created in the first scene area during the running of the game. The first active object may be, for example, a character controlled by a user or computer AI, or a created building.

[0058] Step S220 , using the relative position of the target virtual object in the virtual scene as a query condition, and determining the target lighting information of the target virtual object through the query path set by the target virtual object.

[0059] In this embodiment, the relative position of the target virtual object in the virtual scene may be a coordinate position set in the virtual scene, and through the coordinate position, in the query path set by the target virtual object, the target lighting information corresponding to the coordinate position of the target virtual object is determined from a preset lighting information set. The lighting information set may correspond to the scene skylight and point light source set for the entire virtual scene, and may correspond to the scene skylight and point light source set for the first scene area of ​​the virtual scene.

[0060] In some embodiments, in order to further reduce the hardware requirements of the game, different virtual objects have different attribute values ​​for the first object attribute; virtual objects whose attribute values ​​exceed a set threshold correspond to a first query path, and virtual objects whose attribute values ​​do not exceed the set threshold correspond to a second query path; wherein, the lighting information corresponding to the first query path is the texture information corresponding to the query position, and the lighting information corresponding to the second query path is the baked information on the probe corresponding to the query position.

[0061] In this embodiment, the first object attribute may be an extension length of the virtual object, and when the extension length of the virtual object exceeds a set threshold, the virtual object corresponds to a first query path, and when the extension length of the virtual object does not exceed the set threshold, the virtual object corresponds to a second query path.

[0062] In some examples, the target virtual object is a mountain A1 in the first scene area, the extension length of the mountain A1 is 30m, the set threshold is 20m, and the extension length of the mountain A1 exceeds the set threshold. Through the query condition that the coordinates of the center point of the mountain A1 are (50, 50, 8), in the lighting information set, it is found that the mountain A1 bakes the texture information of the scene skylight and point light source.

[0063] In some examples, the target virtual object is character A2 in the first scene area, the extension length of character A2 is 1m, the set threshold is 20m, and the extension length of character A2 does not exceed the set threshold. Through the query condition that the coordinates of the center point of character A2 are (8, 8, 0), the tetrahedron or probe bounding box surrounding the character A2 is queried in the lighting information set, and the lighting information of character A2 can be interpolated and calculated based on the baking information of the probes on the tetrahedron or probe bounding box and the relative position of the probes on the tetrahedron or probe bounding box and the center point of character A2. For example, the coordinates of a point P1 of the virtual object are (2, 0), the coordinates of the probe L1 in the tetrahedron are (1, 0) and the corresponding lighting information value is 10, the coordinates of the first probe L2 in the tetrahedron are (3, 0) and the corresponding lighting information value is 20, then the lighting information value of a point P1 of the virtual object is 15. The value here is only the target lighting information obtained by interpolation of the baking information, and does not represent the actual lighting information, such as irradiance.

[0064] In other words, for virtual objects with shorter extension lengths, such as buildings, characters, or decorations, the baking information of the probes on the tetrahedron or probe bounding box can be used to determine the lighting information of the virtual object, so as to render a more realistic lighting effect for virtual objects that need to be strongly expressed. For virtual objects with longer extension lengths, such as mountains, roads, or riverbanks, the lighting information of the virtual object can be determined using texture information. In this way, using different query paths to achieve lighting rendering of different virtual objects can effectively improve and reduce the hardware requirements of the game.

[0065] Step S230: displaying the lighting effect of the target virtual object in the first scene area according to the target lighting information.

[0066] In this embodiment, when the target virtual object corresponds to the first query path, the lighting texture matching the target virtual object can be rendered at the relative position in the virtual scene according to the queried texture information. When the target virtual object corresponds to the second query path, the position of the target virtual object in the tetrahedron or probe bounding box surrounding the target virtual object is determined according to the queried baking information, and according to the position of the target virtual object in the tetrahedron or probe bounding box surrounding the target virtual object, the baking information on the tetrahedron or probe bounding box surrounding the target virtual object is interpolated to obtain the target lighting information of the target virtual object, and the corresponding lighting effect is rendered for the relative position in the virtual scene according to the target lighting information. The tetrahedron here is generally the probe group where the prefab (i.e., Prefab) is located in the first scene area. The probe bounding box here is generally the probe group where the virtual object controlled by the user or computer AI is located in the first scene area.

[0067] The information processing method of the virtual scene according to the first embodiment of the present invention solves the problem in the prior art that the controlled objects, scene skylights, and preset objects need to calculate the lighting in real time in the virtual scene, which results in high memory consumption during the game operation. Based on this method, when the first scene area of ​​the virtual scene needs to be displayed, the target lighting information of the target virtual object is determined through the query path set by the target virtual object, and then the lighting effect of the target virtual object in the first scene area is rendered, so as to provide different query paths to obtain the lighting information of virtual objects at different positions, so as to achieve that some virtual objects with lower lighting effect requirements can directly query the lighting information without real-time calculation, which effectively reduces the memory consumption during the game operation process.

[0068] <Second Embodiment>

[0069] In this embodiment, in order to improve the target virtual object while reducing the memory consumption during the game running process, virtual objects with longer extension lengths such as mountains, roads or river banks are set to achieve the purpose of improving the visual effect of the virtual scene.

[0070] In these embodiments, relative to the first embodiment, when the query path set for the target virtual object is the first query path, step S220 may include the following step S310:

[0071] Step S310, through the first query path, determines that the scene skylight of the first scene area is set to the ambient light that represents the overall visual characteristics of the first scene area and the directional light that represents the local visual characteristics of the first scene area to act on the texture information of the target virtual object, and uses it as the target lighting information of the target virtual object.

[0072] In this embodiment, for virtual objects with a long extension length, such as mountains, roads or river banks, during the spherical harmonic reconstruction process, the scene skylight of the first scene area can be split into ambient light that represents the overall visual characteristics of the first scene area and directional light that represents the local visual characteristics of the first scene area, so as to simplify the calculation of the texture information of the virtual object. On the one hand, it can meet the connection requirements of virtual objects with a long extension length, such as mountains, roads or river banks. On the other hand, by using this simplified calculation, the number of spherical harmonic estimates can be effectively reduced, thereby improving the calculation efficiency.

[0073] <Third Embodiment>

[0074] In this embodiment, in order to enhance the lighting effect of a virtual object that needs to be strongly expressed, a probe group surrounding the virtual object may be used to obtain target lighting information of the virtual object.

[0075] In these embodiments, relative to the first embodiment, when the query path set by the target virtual object is the second query path, step S210 may include the following steps S410 and S420:

[0076] Step S410: determining target baking information on a probe group surrounding a target virtual object in a first scene area through a second query path.

[0077] In this embodiment, the probe group can be a tetrahedron or a probe bounding box in the first scene area. The tetrahedron here is generally obtained by tetrahedralizing multiple probes surrounding the prefab in the virtual scene after baking the scene skylight and point light source. The probe bounding box here is generally a plurality of probes surrounding the active object in the virtual scene, and each probe on the probe bounding box has baked the scene skylight and point light source. The active object here is generally an object controlled by a user or computer AI in the virtual scene. When the relative position of the target virtual object in the virtual scene is determined, the probe bounding box or tetrahedron corresponding to the relative position can be queried through the relative position, and then the baking information of the probe bounding box or tetrahedron, that is, the target baking information, can be obtained.

[0078] Step S420 , interpolating the baked information according to the relative position of the probe group and the target virtual object to obtain target lighting information of the target virtual object.

[0079] In some examples, a point P1 of the target virtual object has coordinates (2, 0), the first probe L1 in the probe group has coordinates (1, 0) and the corresponding baking information value is 10, the first probe L2 in the probe group has coordinates (3, 0) and the corresponding baking information value is 20, then the target lighting information value of the point P1 of the target virtual object is 15. The value here only indicates that the target lighting information is calculated by interpolation of the baking information, and does not represent the actual lighting information, such as irradiance.

[0080] <Fourth Embodiment>

[0081] In this embodiment, the realism of the lighting effect of the target virtual object in the virtual scene is further improved. The baking information of the probe bounding box where the post-active object is located in the first scene area is compared with the first tetrahedron where the prefabricated body is located, and the target virtual object is illuminated and rendered using the baking information with stronger irradiance, thereby effectively improving the realism of the lighting effect of the virtual scene.

[0082] In these embodiments, relative to the third embodiment, step S410 may include the following steps S510 to S540:

[0083] Step S510 : determining first baking information for applying scene skylight and point light sources in a first scene area to a target tetrahedron surrounding a target virtual object.

[0084] In this embodiment, the target tetrahedron is a plurality of probes surrounding a prefab in the first scene area, a scene light source and a point light source are baked on the target tetrahedron, and the probes on the tetrahedron can surround a target virtual object.

[0085] Step S520 , determining second baking information for applying scene skylight and point light sources of the first scene area to a target probe bounding box surrounding the target virtual object.

[0086] In this embodiment, the target probe bounding box is a plurality of probes that surround active objects in the virtual scene. Scene light sources and point light sources are baked on the target probe bounding box, and the probes on the target probe bounding box can surround the target virtual object.

[0087] Step S530: When the first irradiance value reflected by the first baking information is greater than or equal to the second irradiance value reflected by the second baking information, determine the first baking information as the target baking information.

[0088] Step S540: when the first irradiance value reflected by the first baking information is less than the second irradiance value reflected by the second baking information, determine the second baking information as the target baking information.

[0089] In this embodiment, the irradiance reflected by the first baking information may be the irradiance of the scene skylight and the point light source acting on the prefabricated object in the first scene area. The irradiance reflected by the second baking information may be the irradiance of the scene skylight and the point light source acting on the active object. Moreover, by performing lighting rendering on the target virtual object through lighting data with strong irradiance, the authenticity of the lighting effect of the target virtual object can be effectively improved.

[0090] <Fifth Embodiment>

[0091] In this embodiment, in order to further reduce the memory consumption during the game running process, the virtual scene can be composed of multiple scene modules.

[0092] In these embodiments, relative to the first embodiment, step S210 may include the following steps S610 and S620:

[0093] Step S610, in response to a display instruction of a virtual scene, determining a first scene module in the scene modules that is associated with the display instruction;

[0094] Step S620: determine a first scene area in the virtual scene to display a first scene module.

[0095] In this embodiment, the multiple scene modules are scene module C1-scene module C9, and the first scene module associated with the display instruction is scene module C1-scene module C2. Then, the first scene module displayed is scene module C1-scene module C2.

[0096] <Sixth Embodiment>

[0097] In this embodiment, in order to achieve different lighting effects when the virtual scene changes from day to night, one or more point light sources can be set in the first scene area located at the first time node, and the point light sources can act on preset objects and active objects to enhance the visual effect of the first scene area.

[0098] In these embodiments, relative to the first embodiment, before step S220, the method further includes the following step S710:

[0099] Step S710, determining a first time node currently corresponding to the first scene area.

[0100] In this embodiment, when the display instruction of the virtual scene is triggered, the first time node currently corresponding to the first scene area is determined according to the game process. The game process here is, for example, the time recorded by the user's most recent archive in a single-player game or the current time set in the game in a multiplayer game. For example, taking a multiplayer game as an example, the time nodes are divided into "early" and "late", where "early" corresponds to 0 o'clock-12 o'clock and "late" corresponds to 12 o'clock-24 o'clock. Then, when the current time is 18 o'clock, the first time node currently corresponding to the first scene area is "late".

[0101] Based on this, step S220 may include the following step S720:

[0102] Step S720, using the relative position of the target virtual object in the virtual scene as a query condition, and determining the target lighting information of the target virtual object at the first time node through the query path set by the target virtual object.

[0103] In this embodiment, when the relative position of the target virtual object in the virtual scene is determined, the target lighting information of the target virtual object at different time nodes can be obtained according to the query path set by the target virtual object, and according to the first time node currently corresponding to the first scene area, it is determined to filter out the target lighting information corresponding to the first time node from the target lighting information of different time nodes.

[0104] <Device Example>

[0105] Figure 3 FIG. 1 is a schematic diagram showing the composition structure of the information processing device for the virtual scene according to an embodiment of the present disclosure. Figure 3 As shown, the information processing device 300 of the virtual scene includes a response module 310 , a query module 320 and a display module 330 .

[0106] The response module 310 is used to respond to the display instruction of the virtual scene and determine the first scene area to be displayed in the virtual scene and the target virtual object in the first scene area;

[0107] The query module 320 is used to determine the target lighting information of the target virtual object by taking the relative position of the target virtual object in the virtual scene as a query condition and through the query path set by the target virtual object;

[0108] The display module 330 is used to display the lighting effect of the target virtual object in the first scene area according to the target lighting information.

[0109] In some embodiments, the query module 320 is also used to determine, through a first query path, that the scene skylight of the first scene area is set as ambient light that represents the overall visual characteristics of the first scene area and directional light that represents the local visual characteristics of the first scene area, and acts on the texture information of the target virtual object, and use it as the target lighting information of the target virtual object.

[0110] In some embodiments, the query module 320 is further used to determine target baking information on the probe group surrounding the target virtual object in the first scene area through a second query path;

[0111] According to the relative position of the probe group and the target virtual object, the baked information is interpolated to obtain the target lighting information of the target virtual object.

[0112] In some embodiments, the query module 320 is also used to determine first baking information for applying scene skylight and point light sources of the first scene area to a target tetrahedron surrounding the target virtual object; determine second baking information for applying scene skylight and point light sources of the first scene area to a target probe bounding box surrounding the target virtual object; determine the first baking information as target baking information when a first irradiance value reflected by the first baking information is greater than or equal to a second irradiance value reflected by the second baking information; and determine the second baking information as target baking information when the first irradiance value reflected by the first baking information is less than the second irradiance value reflected by the second baking information.

[0113] In some embodiments, the response module 310 is further used to respond to a display instruction of the virtual scene, determine a first scene module in the scene module that is associated with the display instruction; and determine a first scene area in the virtual scene to display the first scene module.

[0114] In some embodiments, the information processing device 300 of the virtual scene also includes a node determination module, and the node determination module is used to determine the first time node currently corresponding to the first scene area.

[0115] The query module 320 is also used to determine the target lighting information of the target virtual object at the first time node by using the relative position of the target virtual object in the virtual scene as a query condition and through the query path set by the target virtual object.

[0116] <Equipment Embodiment>

[0117] Figure 4 FIG. 1 shows a schematic diagram of the hardware structure of an electronic device according to some other embodiments. Figure 4As shown, the electronic device 400 includes a processor 410 and a memory 420, wherein the memory 420 is used to store a computer program, and the computer program is used to control the processor 410 to operate so as to control the electronic device 400 to execute the information processing method of the virtual scene according to any embodiment of the present disclosure.

[0118] An embodiment of the present disclosure further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the computer program implements the information processing method of the virtual scene according to any embodiment of the present disclosure.

[0119] The embodiments of the present disclosure also provide a computer program product, which includes a computer program or an instruction, and when the computer program or the instruction is executed by a processor, the information processing method of the virtual scene according to any embodiment of the disclosure is implemented. The computer program product is, for example, a game client.

[0120] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and equipment embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0121] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0122] The embodiments of the present specification may be devices, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present specification.

[0123] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0124] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0125] The computer program instructions for executing the operation of the embodiments of this specification may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Smalltalk, C++, etc., and conventional procedural programming languages ​​such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) may be personalized by utilizing the state information of a computer-readable program instruction, and the electronic circuit may execute a computer-readable program instruction, thereby realizing various aspects of the embodiments of this specification.

[0126] Various aspects of the embodiments of the present specification are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (equipment) and computer program products according to the embodiments of the present specification. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0127] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0128] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0129] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of this specification. In this regard, each box in the flowchart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0130] The embodiments of the present specification have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations are obvious to those of ordinary skill in the art without departing from the scope of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A method for processing information of a virtual scene, the method comprising: In response to a display instruction of the virtual scene, determining a first scene area to be displayed in the virtual scene and a target virtual object in the first scene area; Taking the relative position of the target virtual object in the virtual scene as a query condition, and determining the target lighting information of the target virtual object through the query path set by the target virtual object; According to the target lighting information, a lighting effect of the target virtual object is displayed in the first scene area.

2. The method according to claim 1, wherein: Different virtual objects have different attribute values ​​for the first object attribute; virtual objects whose attribute values ​​exceed a set threshold correspond to a first query path, and virtual objects whose attribute values ​​do not exceed the set threshold correspond to a second query path; wherein the lighting information corresponding to the first query path is texture information corresponding to the query position, and the lighting information corresponding to the second query path is baking information on a probe corresponding to the query position.

3. The method according to claim 2, wherein: When the query path set by the target virtual object is the first query path, determining the target lighting information of the target virtual object through the query path set by the target virtual object includes: Through the first query path, it is determined that the scene skylight of the first scene area is set to the ambient light that represents the overall visual characteristics of the first scene area and the directional light that represents the local visual characteristics of the first scene area to act on the texture information of the target virtual object, and serve as the target lighting information of the target virtual object.

4. The method according to claim 2, wherein: When the query path set by the target virtual object is the second query path, determining the target lighting information of the target virtual object through the query path set by the target virtual object includes: determining target baking information on a probe group surrounding the target virtual object in the first scene area through the second query path; According to the relative position of the probe group and the target virtual object, the baking information is interpolated to obtain the target lighting information of the target virtual object.

5. The method according to claim 4, wherein: The determining target baking information on the probe group surrounding the target virtual object in the first scene area includes: Determine first baking information for applying scene skylight and point light source of the first scene area to a target tetrahedron surrounding the target virtual object; Determine second baking information for applying scene skylight and point light source of the first scene area to a target probe bounding box surrounding the target virtual object; When a first irradiance value reflected by the first baking information is greater than or equal to a second irradiance value reflected by the second baking information, determining the first baking information as target baking information; When the first irradiance value reflected by the first baking information is less than the second irradiance value reflected by the second baking information, the second baking information is determined as the target baking information.

6. The method according to claim 1, wherein: The virtual scene is composed of a plurality of scene modules; the step of determining a first scene area to be displayed in the virtual scene in response to a display instruction of the virtual scene comprises: In response to a display instruction of the virtual scene, determining a first scene module in the scene modules that is associated with the display instruction; Determine a first scene area in the virtual scene to display the first scene module.

7. The method according to claim 1, wherein: The method further comprises: Determining a first time node currently corresponding to the first scene area; The step of taking the relative position of the target virtual object in the virtual scene as a query condition and determining the target lighting information of the target virtual object through a query path set by the target virtual object includes: The relative position of the target virtual object in the virtual scene is used as a query condition, and the target lighting information of the target virtual object at the first time node is determined through the query path set by the target virtual object.

8. A virtual scene information processing device, wherein: include: A response module, configured to determine a first scene area to be displayed in the virtual scene and a target virtual object in the first scene area in response to a display instruction of the virtual scene; A query module, configured to determine target lighting information of the target virtual object by taking the relative position of the target virtual object in the virtual scene as a query condition and by using a query path set by the target virtual object; A display module is used to display the lighting effect of the target virtual object in the first scene area according to the target lighting information.

9. An electronic device, wherein: The method comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the method steps according to any one of claims 1 to 7 under the control of the computer program.

10. A computer-readable storage medium, the computer-readable storage medium comprising a stored computer program, wherein: When the computer program is executed, the method steps of any one of claims 1 to 7 are performed.