Lighting processing methods, devices, equipment, and media for 3D augmented models

By adding preset lighting parameters to the lighting nodes of the 3D augmented model, the target 3D augmented model is generated, which solves the problems of cumbersome lighting parameter configuration and resource redundancy, and achieves the effect of simplifying configuration and reducing resource burden.

CN114332335BActive Publication Date: 2025-11-14BEIJING 58 INFORMATION TTECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111633831.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2025-11-14
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

In existing technologies, the configuration of lighting parameters for 3D augmented models is too cumbersome, leading to resource redundancy and resource burden.

Method used

By responding to the display operation of the 3D augmented model, the corresponding lighting model file is obtained, and preset lighting parameters are added to the lighting nodes of the initial model to generate the target 3D augmented model.

Benefits of technology

It simplifies the configuration process of 3D augmented models, reduces the size of model resources, and alleviates the resource burden on the terminal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114332335B_ABST
    Figure CN114332335B_ABST
Patent Text Reader

Abstract

This invention provides a method, apparatus, device, and medium for lighting processing of a 3D augmented model. The method includes: responding to a display operation on the 3D augmented model, determining an initial 3D augmented model corresponding to the display operation, and obtaining an external lighting model file corresponding to the initial 3D augmented model. The initial 3D augmented model may include several first lighting nodes. Preset lighting parameters from the lighting model file are added to the first lighting nodes of the initial 3D augmented model to configure the lighting parameters, thereby obtaining a target 3D augmented model. The target 3D augmented model can then be rendered and displayed. This method adds lighting parameters to the lighting nodes in the 3D augmented model through the lighting model file, avoiding the need to configure lighting parameters on the 3D augmented model itself, effectively simplifying the configuration process of the 3D augmented model, and reducing the model resource size of the 3D augmented model, thus effectively alleviating the resource burden on the terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of augmented reality technology, and in particular to a lighting processing method for a three-dimensional augmented model, a lighting processing device for a three-dimensional augmented model, an electronic device, and a computer-readable storage medium. Background Technology

[0002] Augmented reality (AR) technology seamlessly integrates real-world and virtual-world information, enabling interaction between the real world and 3D augmented models on a mobile device. With the increasing computing power of electronic products, AR's applications are expanding. For example, when combining AR technology with scenarios such as housing and vehicle locations, to enhance the realism of 3D augmented models (e.g., house models, vehicle models) in the displayed scene, corresponding lighting effects are often added to the models, thereby improving the realism of the model's presentation. However, in the process of adding lighting effects to models, often one model corresponds to one lighting effect. When adjusting the model's lighting effects, new lighting effects need to be reconfigured, leading to overly cumbersome lighting parameter configurations. Furthermore, when too many lighting effects need to be added, the resources associated with the lighting data become excessively redundant, placing a significant resource burden on the mobile device. Summary of the Invention

[0003] The present invention provides a lighting processing method, apparatus, electronic device, and computer-readable storage medium for a three-dimensional augmented model, in order to solve or partially solve the problem that the configuration of lighting parameters for a three-dimensional augmented model is too cumbersome and easily leads to resource redundancy and resource burden in related technologies.

[0004] This invention discloses a lighting processing method for a three-dimensional augmented model, comprising:

[0005] In response to the display operation of the 3D augmented model, an initial 3D augmented model corresponding to the display operation is determined, and a lighting model file for the initial 3D augmented model is obtained, wherein the initial 3D augmented model includes a plurality of first lighting nodes;

[0006] Based on the lighting model file, preset lighting parameters are added to the first lighting node of the initial 3D augmented model to generate the target 3D augmented model.

[0007] The target 3D augmented model is displayed.

[0008] Optionally, the lighting model file includes at least several second lighting nodes and preset lighting parameters for the second lighting nodes. The step of adding preset lighting parameters to the first lighting nodes of the initial 3D enhanced model based on the lighting model file to generate the target 3D enhanced model includes:

[0009] Obtain the first node information of the first light node and the second node information of the second light node;

[0010] The first node information is matched with the second node information, and the first light node corresponding to the first node information that is successfully matched is taken as the first target light node, and the second light node corresponding to the second node information that is successfully matched is taken as the second target light node.

[0011] The preset lighting parameters of the second target light node are added to the first target light node to generate a target 3D augmented model.

[0012] Optionally, the first node information includes a first node identifier corresponding to the first light node in the initial 3D augmented model, and the second node information includes a second node identifier corresponding to the second light node in the light model file. The step of matching the first node information with the second node information, and using the first light node corresponding to the successfully matched first node information as the first target light node, and using the second light node corresponding to the successfully matched second node information as the second target light node, includes:

[0013] The first node identifier is matched with the second node identifier to determine the first target node identifier that is successfully matched and the second target node identifier that corresponds to the first target node identifier;

[0014] The first light node corresponding to the first target node identifier is designated as the first target light node, and the second light node corresponding to the second target node identifier is designated as the second target light node.

[0015] Optionally, the first node information includes the first position information corresponding to the first light node in the initial 3D enhanced model, and the second node information includes the second position information corresponding to the second light node in the light model file. The step of matching the first node information with the second node information, and using the first light node corresponding to the successfully matched first node information as the first target light node, and using the second light node corresponding to the successfully matched second node information as the second target light node, includes:

[0016] The first location information is matched with the second location information to determine the first target location information that is successfully matched and the second target location information that corresponds to the first target location information;

[0017] The first light node corresponding to the first target location information is taken as the first target light node, and the second light node corresponding to the second target location information is taken as the second target light node.

[0018] Optionally, it also includes:

[0019] If the information of the first node fails to match with the information of each of the second nodes, the initial enhanced 3D model is displayed.

[0020] Optionally, obtaining the lighting model file for the initial 3D enhanced model includes:

[0021] Obtain the model type of the initial 3D enhanced model and determine the lighting model file that matches the model type.

[0022] Optionally, the preset lighting parameters include at least one of the following: lighting color, lighting brightness, light source type, light source reduction distance, and light source color temperature.

[0023] This invention also discloses a lighting processing device for a three-dimensional augmented model, comprising:

[0024] An initial 3D augmented model determination module is used to determine the initial 3D augmented model corresponding to the display operation in response to the display operation of the 3D augmented model, and to obtain a lighting model file for the initial 3D augmented model, wherein the initial 3D augmented model includes a plurality of first lighting nodes;

[0025] The target 3D augmented model generation module is used to add preset lighting parameters to the first lighting node of the initial 3D augmented model according to the lighting model file, and generate the target 3D augmented model.

[0026] The target 3D augmented model display module is used to display the target 3D augmented model.

[0027] Optionally, the lighting model file includes at least several second lighting nodes and preset lighting parameters for the second lighting nodes, and the target 3D augmented model generation module includes:

[0028] The node information acquisition submodule is used to acquire the first node information of the first light node and the second node information of the second light node;

[0029] The target light node generation submodule is used to match the first node information with the second node information, and take the first light node corresponding to the successfully matched first node information as the first target light node, and take the second light node corresponding to the successfully matched second node information as the second target light node.

[0030] The target 3D augmented model generation submodule is used to add the preset lighting parameters of the second target light node to the first target light node to generate the target 3D augmented model.

[0031] Optionally, the first node information includes the first node identifier corresponding to the first light node in the initial 3D enhanced model, and the second node information includes the second node identifier corresponding to the second light node in the light model file. The target light node generation submodule is specifically used for:

[0032] The first node identifier is matched with the second node identifier to determine the first target node identifier that is successfully matched and the second target node identifier that corresponds to the first target node identifier;

[0033] The first light node corresponding to the first target node identifier is designated as the first target light node, and the second light node corresponding to the second target node identifier is designated as the second target light node.

[0034] Optionally, the first node information includes the first position information corresponding to the first light node in the initial 3D enhanced model, and the second node information includes the second position information corresponding to the second light node in the light model file. The target light node generation submodule is specifically used for:

[0035] The first location information is matched with the second location information to determine the first target location information that is successfully matched and the second target location information that corresponds to the first target location information;

[0036] The first light node corresponding to the first target location information is taken as the first target light node, and the second light node corresponding to the second target location information is taken as the second target light node.

[0037] Optionally, it also includes:

[0038] The initial enhanced 3D model display module is used to display the initial enhanced 3D model if the first node information fails to match the information of each of the second nodes.

[0039] Optionally, the initial 3D augmented model determination module is specifically used for:

[0040] Obtain the model type of the initial 3D enhanced model and determine the lighting model file that matches the model type.

[0041] Optionally, the preset lighting parameters include at least one of the following: lighting color, lighting brightness, light source type, light source reduction distance, and light source color temperature.

[0042] This invention also discloses an electronic device, comprising:

[0043] One or more processors; and

[0044] One or more machine-readable media storing instructions thereon, when executed by the one or more processors, cause the electronic device to perform the methods described above.

[0045] Embodiments of the present invention also disclose one or more machine-readable media having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described above.

[0046] The embodiments of the present invention have the following advantages:

[0047] In this embodiment of the invention, in response to a display operation on a 3D augmented model, an initial 3D augmented model corresponding to the display operation is determined, and an external lighting model file corresponding to the initial 3D augmented model is obtained. The initial 3D augmented model may include several first lighting nodes. Preset lighting parameters from the lighting model file can be added to the first lighting nodes of the initial 3D augmented model to configure the lighting parameters, thereby obtaining a target 3D augmented model. Then, the target 3D augmented model can be rendered and displayed. In this way, lighting parameters are added to the lighting nodes in the 3D augmented model through the lighting model file, avoiding the need to configure the lighting parameters of the 3D augmented model, effectively simplifying the configuration process of the 3D augmented model, and reducing the model resource size of the 3D augmented model, effectively alleviating the resource burden on the terminal. Attached Figure Description

[0048] Figure 1 This is a flowchart of the steps of a lighting processing method for a three-dimensional enhanced model provided in an embodiment of the present invention;

[0049] Figure 2 This is a flowchart of the steps of a lighting processing method for a three-dimensional enhanced model provided in an embodiment of the present invention;

[0050] Figure 3 This is a structural block diagram of a lighting processing device for a three-dimensional enhanced model provided in an embodiment of the present invention;

[0051] Figure 4 This is a block diagram of an electronic device provided in an embodiment of the present invention;

[0052] Figure 5 This is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. Detailed Implementation

[0053] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0054] The lighting processing method for the 3D enhanced model in this embodiment of the invention can run on a terminal device or a server. The terminal device can be a local terminal device. When the lighting processing method for the 3D enhanced model runs on a server, it can be used for cloud display.

[0055] In one optional implementation, cloud display refers to an information display method based on cloud computing. In the cloud display operating mode, the main body running the information processing program and the main body presenting the information screen are separate. The storage and operation of the lighting processing method for the 3D enhanced model are completed on the cloud display server. The cloud display client's role is to receive and send data and present the information screen. For example, the cloud display client can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the terminal device for processing information data is the cloud display server in the cloud. When processing the lighting of the 3D enhanced model, the user operates the cloud display client to send operation commands to the cloud display server. The cloud display server processes the lighting of the 3D enhanced model according to the operation commands, encodes and compresses the data, returns it to the cloud display client via the network, and finally, the cloud display client decodes and outputs the 3D enhanced model after lighting processing.

[0056] In another alternative implementation, the terminal device can be a local terminal device. The local terminal device stores applications and is used to present the application interface. The local terminal device is used to interact with the user through a graphical user interface, i.e., conventionally downloading, installing, and running applications via an electronic device. The local terminal device can provide the graphical user interface to the user in various ways, such as rendering it on a terminal's display screen or providing it to the user through holographic projection. For example, the local terminal device can include a display screen for presenting the graphical user interface, which includes application screens, and a processor for running the application, generating the graphical user interface, and controlling the display of the graphical user interface on the display screen.

[0057] With the continuous development and improvement of augmented reality (AR) technology, its application areas are becoming increasingly widespread, especially in fields such as real estate, vehicle information, and gaming. Technicians can enhance the realism of 3D augmented models by continuously optimizing their display appearance and lighting. For example, during the configuration of 3D augmented models, adding lighting effects can enhance their realism within a real-world scene, achieving a more lifelike effect. This allows users to browse different 3D augmented models on their devices and gain comprehensive and in-depth access to more relevant information, thus improving the user experience.

[0058] Augmented Reality (AR), also known as Augmented Reality, is a new technology that seamlessly integrates real-world and virtual-world information. It uses computer technology to simulate and overlay virtual information (visual, auditory, tactile, etc.) that is difficult to experience in the real world within a certain time and space. Users can then intuitively access this virtual information using different devices, experiencing entities that are difficult to display in the real world. This allows the real environment and virtual objects to coexist in the same scene or space in real time. Therefore, it not only displays real-world information but also instantly shows virtual information, with the two types of information complementing and overlapping each other. In visual augmented reality, users use AR devices to composite the real world with computer graphics, creating a visual representation of the real world surrounding them.

[0059] However, in existing 3D augmented model display processes, to enhance the realism of the 3D augmented model within a real-world scene, multiple different light nodes are often configured directly within the 3D augmented model. This allows for the creation of rich lighting effects through the adaptation of different light nodes during the display. In practical applications, some larger 3D augmented models may have dozens or even hundreds of different light nodes. When a user interacts with multiple 3D augmented models, the number of light nodes that need to be configured increases rapidly due to the increased number of models. Therefore, configuring 3D augmented models is not only cumbersome, leading to a large workload and high error rate, but also results in a large resource package for the 3D augmented model due to the increased number of light nodes and parameters. This can place a significant burden on the application when downloading or configuring the 3D augmented model.

[0060] One of the core inventive points of this invention is that it can respond to a display operation on a 3D augmented model, determine the initial 3D augmented model corresponding to the display operation, and obtain the external lighting model file corresponding to the initial 3D augmented model. The initial 3D augmented model may include several first lighting nodes. The preset lighting parameters in the lighting model file can be added to the first lighting nodes of the initial 3D augmented model to configure the lighting parameters, thereby obtaining the target 3D augmented model. Then, the target 3D augmented model can be rendered and displayed. In this way, lighting parameters are added to the lighting nodes in the 3D augmented model through the lighting model file, avoiding the need to configure the lighting parameters of the 3D augmented model, effectively simplifying the configuration process of the 3D augmented model, and reducing the model resource size of the 3D augmented model, effectively reducing the resource burden on the terminal.

[0061] To enable those skilled in the art to better understand the embodiments of the present invention, the data involved in the embodiments of the present invention are further explained as follows:

[0062] A light node is a node used to carry light parameters, and it can include a first light node and a second light node. The first light node can be an empty node in the 3D augmented model where the light parameters are null, and the second light node can be a node in the light model file that carries different light parameters.

[0063] Node information can be specific information about light nodes, such as their name and location. It includes first node information and second node information. The first node information is the specific information of the first light node, including at least a first node identifier and first location information. The first node identifier can represent the name of the first light node, such as "light1" and "light2" in the initial 3D augmented model. The first location information can represent the specific location of the first light node in the initial 3D augmented model. The second node information is the specific information of the second light node, including at least a second node identifier and second location information. The second node identifier can represent the name of the second light node, and the second location information can represent the specific location of the second light node in the light model file.

[0064] Specifically, refer to Figure 1 The diagram illustrates a flowchart of a lighting processing method for a three-dimensional enhanced model provided in an embodiment of the present invention, which may specifically include the following steps:

[0065] Step 101: In response to the display operation of the 3D augmented model, determine the initial 3D augmented model corresponding to the display operation, and obtain the lighting model file for the initial 3D augmented model, wherein the initial 3D augmented model includes a plurality of first lighting nodes;

[0066] In this embodiment of the invention, the 3D enhanced model can be a model that a user can integrate and display in the graphical user interface of a terminal device. The user can control the 3D enhanced model using the corresponding terminal device to interact with it. It can include different types such as housing and vehicle resources. The initial 3D enhanced model can be a 3D enhanced model without added lighting effects. Different initial 3D enhanced models of the same model type can correspond to the same lighting model file. Therefore, different initial 3D enhanced models can use the same lighting model file to obtain the corresponding lighting effects, thereby reducing the number of times the lighting model file is configured and improving the utilization rate of the lighting model file.

[0067] Optionally, users can use corresponding terminal devices to display different 3D augmented models in a real scene, thereby intuitively obtaining specific information about the 3D model of the property in the real scene. By responding to the display operation of the 3D augmented model, the user can determine the initial 3D augmented model corresponding to the display operation, and then obtain the pre-configured lighting model file corresponding to the initial 3D augmented model. The initial 3D augmented model includes several first lighting nodes, all of which are empty lighting nodes.

[0068] In the implementation, before obtaining the lighting model file, the model type of the initial 3D augmented model can be obtained first. Then, the lighting model file matching the model type of the initial 3D augmented model can be determined. 3D augmented models of the same model type can use the same lighting model file. By distinguishing the model types of different initial 3D augmented models, the lighting model file corresponding to the model type can be determined. Therefore, one lighting model file can correspond to multiple 3D augmented models, thereby improving the utilization rate of lighting model files, reducing the number of times lighting model files are created, and improving the efficiency of lighting processing.

[0069] As an example, when a user browses a pre-sale property through a terminal device, if they want to understand the lighting effect of the pre-sale property in the real world, they can view the corresponding 3D model of the property. The terminal can obtain the lighting model file corresponding to the 3D model and use interactive operations such as sliding and touch to control the display angle of the 3D model of the pre-sale property. By configuring the corresponding lighting model file for the 3D model, the user can intuitively obtain the lighting effect of the pre-sale property from various angles.

[0070] Step 102: Based on the lighting model file, add preset lighting parameters to the first lighting node of the initial 3D augmented model to generate the target 3D augmented model;

[0071] In this embodiment of the invention, after obtaining the lighting model file corresponding to the initial three-dimensional augmented model, the lighting model file can be added to the initial three-dimensional augmented model, so that the initial three-dimensional augmented model used for display is combined with the lighting model file used to achieve the lighting effect to generate a target three-dimensional augmented model corresponding to the initial three-dimensional augmented model and the lighting model file.

[0072] Optionally, the lighting model file corresponding to the model type of the initial 3D augmented model may include several files of second lighting nodes. Different preset lighting parameters can be configured in each second lighting node. Thus, when adding the lighting model file to the initial 3D augmented model, the preset lighting parameters in the lighting model file can be added to the initial 3D augmented model to present the lighting effect corresponding to the set preset lighting parameters. In this way, different lighting effects can be displayed by configuring different lighting parameters, so that the target 3D augmented model configured with the lighting model file can meet the user's needs.

[0073] In practice, the preset lighting parameters include at least one of the following: light color, light brightness, light source type, light source reduction distance, and light source color temperature. The preset lighting parameters are added to the initial 3D augmented model to generate a target 3D augmented model configured with the preset lighting parameters, thereby enabling personalized customization of lighting for the 3D augmented model according to different usage scenarios and user needs.

[0074] The preset lighting parameters can include colors such as purple, green, red, and pink. Light brightness can be adjusted according to actual conditions, such as 80% or 50%. Light source types can include D50, TL84, U30, CWF, F, and A light sources. For example, to simulate the lighting conditions of a vehicle in motion, a D50 light source can be configured to simulate standard artificial daylight; to represent the lighting of a building at sunset, F and A light sources can be configured to simulate sunset light; or to simulate shopping mall lighting, a U30 light source can be configured to model commercial fluorescence. The light source reduction distance can be the illumination range, such as a 0.3m illumination range. The unit of measurement for light source color temperature is the Kelvin Scale (K). The standard for color temperature measurement is based on heating a standard blackbody from absolute zero (-273°C). At 0°C, the value is 273K. When a standard blackbody is heated to 800°C, its color temperature is approximately 1000K, which appears reddish. Heating it to 5727°C, the color temperature is approximately 6000K, similar to the white light of sunlight. Heating it above 10000°C results in a color temperature of approximately 10000K, appearing bluish-violet. Therefore, higher color temperatures result in a bluish tint to objects, while lower color temperatures result in a reddish tint. When the color temperature is below 3300K, the light is predominantly red, generally perceived as warm and healthy. A color temperature between 3300K and 6000K is considered neutral, with red, green, and blue light present in proportions, typically perceived as comfortable, pleasant, and soft. Above 6000K, blue light predominates, generally perceived as cold and somber.

[0075] As an example, a user can pre-set the light color to light blue, the light brightness to 40%, and the light source type to U30 light source in a light model file A. The light model file A corresponds to the stage type model. When the user displays the initial stage 3D model through the mall's related app, the user can simultaneously obtain the light model file A corresponding to the initial stage 3D model, thereby generating the target stage 3D model. When the target stage 3D model is displayed, the model can emit soft light blue light.

[0076] In the specific implementation, each lighting model file includes at least several second lighting nodes and preset lighting parameters corresponding to each second lighting node. Therefore, different lighting parameters can be adapted to each second lighting node in turn to obtain richer lighting effects. Furthermore, different preset lighting parameters can be added to the first lighting node of the initial 3D augmented model to generate a target augmented model that includes multiple preset lighting parameters. The target 3D augmented model is rendered from multiple angles using different second lighting nodes. This multi-angle lighting processing method greatly improves the realism of the target 3D augmented model in the real world.

[0077] Specifically, the first node information of the first light node in the initial 3D augmented model and the second node information of the second light node in the light model file can be obtained. The first node information and the second node information are matched, and it is determined whether the first node information and the second node information are successfully matched. If the result is a successful match, the first light node corresponding to the successfully matched first node information can be used as the first target light node, and the second light node corresponding to the successfully matched second node information can be used as the second target light node. Then, the preset light parameters of the second target light node are added to the first target light node, thereby generating the target 3D augmented model. By matching the first node information in the initial 3D augmented model with the second node information in the light model file one by one, the preset light parameters can be accurately added to the initial 3D augmented model.

[0078] In one optional embodiment, the first node information corresponding to the initial 3D augmented model may include the first node identifier corresponding to the first light node in the initial 3D augmented model. For example, the first node identifier corresponding to the first light node may be light1, light2, light3, and light4, etc. The second node information corresponding to the light model file may include the second node identifier of the second light node in the light model file. For example, the second node identifier corresponding to the second light node may be lightⅠ, lightⅡ, lightⅢ, and lightⅣ, etc. Therefore, the process of matching the first node identifier with the second node identifier can be as follows: First, obtain the second node identifiers in the light model file: lightⅠ, lightⅡ, lightⅢ, and lightⅣ. Then, traverse each first light node of the initial 3D augmented model and match the first node identifier of each first light node with the second node identifier one by one. If the first node identifier (light1) is the same as the second node identifier (lightⅠ), it means that the first light node corresponding to light1 and the second light node corresponding to lightⅠ are successfully matched. The successfully matched first node identifier (light1) is used as the first target node identifier, and the successfully matched second node identifier (lightⅠ) is used as the second target node identifier. Then, the first light node corresponding to the first target node identifier is used as the first target light node, and the second light node corresponding to the second target node identifier is used as the second target light node. Finally, the preset light parameters of the second target light node are added to the first target light node to generate the target 3D augmented model.

[0079] In one example, suppose the 3D augmented model is a property 3D model. This property 3D model includes light nodes ①, ②, and ③, with light node ① identified as light1, light node ② as light2, and light node ③ as light3. The lighting model file A' corresponding to the property type includes light nodes I, II, and III, with light node I identified as lightI, light node II as lightII, and light node III as lightIII. Node identifier lightI corresponds to preset lighting parameter A, node identifier lightII corresponds to preset lighting parameter B, and node identifier lightIII corresponds to preset lighting parameter C. When a user displays this property 3D model using a property app, the lighting model file A' corresponding to this property 3D model is obtained, and then the property 3D model is traversed. For each light node in the 3D model of the property, it is determined whether the node identifiers of each light node in the 3D model of the property are the same as those of each light node in the lighting model file. If light1 is the same as lightⅠ, light2 is the same as lightⅡ, and light3 is different from lightⅢ, it means that light node ① and light node ② in the 3D model of the property are successfully matched with light node Ⅰ and light node Ⅱ in the lighting model file, respectively. Light node ③ fails to match with light node Ⅲ. In this case, the preset light parameter A corresponding to node identifier lightⅠ can be added to light node ① corresponding to node identifier light1, and the preset light parameter B corresponding to node identifier lightⅡ can be added to light node ② corresponding to node identifier light2. The light node corresponding to node identifier light3 is left empty (no lighting effect is displayed). Finally, the lighting effect corresponding to the target 3D augmented model using preset light parameter A and preset light parameter C is generated and displayed.

[0080] In another optional embodiment, the first node information corresponding to the initial 3D augmented model may include the first position information of the first light node in the initial 3D augmented model, and the second node information corresponding to the light model file may include the second position information of the second light node in the light model file. The first position information of the first light node and the second position information of the second light node may be matched, and it may be determined whether the match is successful. If the result is a successful match, the first target position information and the second target position information corresponding to the first target position information may be determined. Then, the first light node corresponding to the first target position information is taken as the first target light node, and the second light node corresponding to the second target position information is taken as the second target light node. Finally, the preset light parameters of the second target light node are added to the first target light node to generate the target 3D augmented model.

[0081] In another example, suppose the 3D augmented model is a property 3D model, which includes light nodes ①, ②, ③, and ④, with position information i corresponding to light node ①, ii to light node ②, iii to light node ③, and iv to light node ④. The lighting model file B' corresponding to the property type includes light nodes I, II, III, and IV, with position information a to light node I, b to light node II, c to light node III, and d to light node IV. When a user displays this property 3D model using a property app, the lighting model file corresponding to this property 3D model is obtained. Then, iterate through each light node of the 3D model of the property and match the position information i of light node ① in the 3D model of the property with the position information a, b, c, d corresponding to light nodes I, II, III, and IV in the light model file B' one by one. Determine the position information a that successfully matches position information i. Then, position information i can be used as the first target position information, and position information a that successfully matches position information i can be used as the second target position information. Next, the light node ① corresponding to the first target position information is used as the first target light node, and the light node A corresponding to the second target position information is used as the second target light node. Finally, the preset light parameters of the second target light node are added to the first target light node, thereby generating and displaying the lighting effect of the target 3D enhanced model with the added preset light parameters.

[0082] In another alternative embodiment, after obtaining the first node information of the first light node in the initial 3D enhanced model and the second node information of the second light node in the light model file, the first node information and the second node information can be matched, and it can be determined whether the first node information and the second node information are successfully matched. If the result is that the match fails, it means that the light model file has not configured the corresponding lighting effects for the initial 3D enhanced model, and the initial 3D enhanced model can be directly displayed.

[0083] Step 103: Display the target 3D augmented model.

[0084] In an embodiment of the present invention, after loading the initial 3D augmented model, a lighting model file corresponding to the model type of the initial 3D augmented model can be obtained. By traversing and matching each first lighting node in the initial 3D augmented model, and matching the first node information of each first lighting node with the second node information of each second lighting node in the lighting model file, the successfully matched first lighting node is taken as the first target lighting node, and the successfully matched second lighting node is taken as the second target lighting node. Finally, the preset lighting parameters of the second target lighting node are added to the first target lighting node, so that the target 3D augmented model can be rendered using the added preset lighting parameters.

[0085] It should be noted that the embodiments of the present invention include, but are not limited to, the examples described above. It is understood that, under the guidance of the ideas in the embodiments of the present invention, those skilled in the art can make settings according to actual circumstances, and the present invention does not limit such settings.

[0086] In this embodiment of the invention, in response to a display operation on a 3D augmented model, an initial 3D augmented model corresponding to the display operation can be determined, and an external lighting model file corresponding to the initial 3D augmented model can be obtained. The initial 3D augmented model may include several first lighting nodes. Preset lighting parameters from the lighting model file can be added to the first lighting nodes of the initial 3D augmented model to configure the lighting parameters, thereby obtaining a target 3D augmented model. Then, the target 3D augmented model can be rendered and displayed. In this way, lighting parameters are added to the lighting nodes in the 3D augmented model through the lighting model file, avoiding the need to configure the lighting parameters of the 3D augmented model, effectively simplifying the configuration process of the 3D augmented model, and reducing the model resource size of the 3D augmented model, effectively reducing the resource burden on the terminal.

[0087] To enable those skilled in the art to better understand the technical solutions of the embodiments of the present invention, an example is provided below, along with reference to... Figure 2 The flowchart shown illustrates an embodiment of the present invention.

[0088] 1) Launch the property listing app;

[0089] 2) Obtain the lighting model file corresponding to the property type, with several built-in second lighting nodes. Each second lighting node has preset lighting parameters, such as lighting brightness, lighting color, light source type, light source reduction distance, etc.

[0090] 3) Display the initial 3D model of the property and obtain each first light node in the initial 3D model of the property. All first light nodes are empty nodes.

[0091] 4) Determine whether each first light node in the initial 3D model of the property matches each second light node in the light model file;

[0092] 5) If each first light node in the initial 3D model of the property matches each second light node in the light model file, then add the preset light parameters in the second light node to the first light node, and use the preset light parameters to render the 3D model of the target property.

[0093] 6) If the first light nodes in the 3D model of the property do not match the second light nodes in the light model file, then the initial 3D model of the property will be displayed.

[0094] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0095] Reference Figure 3 The diagram illustrates a structural block diagram of a lighting processing device for a three-dimensional enhanced model provided in an embodiment of the present invention, which may specifically include the following modules:

[0096] The initial 3D augmented model determination module 301 is used to determine the initial 3D augmented model corresponding to the display operation in response to the display operation of the 3D augmented model, and to obtain the lighting model file for the initial 3D augmented model, wherein the initial 3D augmented model includes a plurality of first lighting nodes.

[0097] The target 3D augmented model generation module 302 is used to add preset lighting parameters to the first lighting node of the initial 3D augmented model according to the lighting model file, and generate the target 3D augmented model.

[0098] The target 3D augmented model display module 303 is used to display the target 3D augmented model.

[0099] In one optional embodiment, the lighting model file includes at least a plurality of second lighting nodes and preset lighting parameters for the second lighting nodes, and the target 3D augmented model generation module 302 includes:

[0100] The node information acquisition submodule is used to acquire the first node information of the first light node and the second node information of the second light node;

[0101] The target light node generation submodule is used to match the first node information with the second node information, and take the first light node corresponding to the successfully matched first node information as the first target light node, and take the second light node corresponding to the successfully matched second node information as the second target light node.

[0102] The target 3D augmented model generation submodule is used to add the preset lighting parameters of the second target light node to the first target light node to generate the target 3D augmented model.

[0103] In one optional embodiment, the first node information includes a first node identifier corresponding to the first light node in the initial 3D enhanced model, and the second node information includes a second node identifier corresponding to the second light node in the light model file. The target light node generation submodule is specifically used for:

[0104] The first node identifier is matched with the second node identifier to determine the first target node identifier that is successfully matched and the second target node identifier that corresponds to the first target node identifier;

[0105] The first light node corresponding to the first target node identifier is designated as the first target light node, and the second light node corresponding to the second target node identifier is designated as the second target light node.

[0106] In one optional embodiment, the first node information includes first position information corresponding to the first light node in the initial 3D enhanced model, and the second node information includes second position information corresponding to the second light node in the light model file. The target light node generation submodule is specifically used for:

[0107] The first location information is matched with the second location information to determine the first target location information that is successfully matched and the second target location information that corresponds to the first target location information;

[0108] The first light node corresponding to the first target location information is taken as the first target light node, and the second light node corresponding to the second target location information is taken as the second target light node.

[0109] In one alternative embodiment, it further includes:

[0110] The initial enhanced 3D model display module is used to display the initial enhanced 3D model if the first node information fails to match the information of each of the second nodes.

[0111] In one optional embodiment, the initial 3D augmented model determination module 301 is specifically used for:

[0112] Obtain the model type of the initial 3D enhanced model and determine the lighting model file that matches the model type.

[0113] In one optional embodiment, the preset lighting parameters include at least one of the following: lighting color, lighting brightness, light source type, light source reduction distance, and light source color temperature.

[0114] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0115] In addition, embodiments of the present invention also provide an electronic device, such as... Figure 4 As shown, it includes a processor 401, a communication interface 402, a memory 403, and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404.

[0116] Memory 403 is used to store computer programs;

[0117] When processor 401 executes the program stored in memory 403, it performs the following steps:

[0118] In response to the display operation of the 3D augmented model, an initial 3D augmented model corresponding to the display operation is determined, and a lighting model file for the initial 3D augmented model is obtained, wherein the initial 3D augmented model includes a plurality of first lighting nodes;

[0119] Based on the lighting model file, preset lighting parameters are added to the first lighting node of the initial 3D augmented model to generate the target 3D augmented model.

[0120] The target 3D augmented model is displayed.

[0121] In one optional embodiment, the lighting model file includes at least a plurality of second lighting nodes and preset lighting parameters for the second lighting nodes. The step of adding the preset lighting parameters to the first lighting nodes of the initial 3D enhanced model based on the lighting model file to generate the target 3D enhanced model includes:

[0122] Obtain the first node information of the first light node and the second node information of the second light node;

[0123] The first node information is matched with the second node information, and the first light node corresponding to the first node information that is successfully matched is taken as the first target light node, and the second light node corresponding to the second node information that is successfully matched is taken as the second target light node.

[0124] The preset lighting parameters of the second target light node are added to the first target light node to generate a target 3D augmented model.

[0125] In one optional embodiment, the first node information includes a first node identifier corresponding to the first light node in the initial 3D enhanced model, and the second node information includes a second node identifier corresponding to the second light node in the light model file. The step of matching the first node information with the second node information, and using the first light node corresponding to the successfully matched first node information as the first target light node, and using the second light node corresponding to the successfully matched second node information as the second target light node, includes:

[0126] The first node identifier is matched with the second node identifier to determine the first target node identifier that is successfully matched and the second target node identifier that corresponds to the first target node identifier;

[0127] The first light node corresponding to the first target node identifier is designated as the first target light node, and the second light node corresponding to the second target node identifier is designated as the second target light node.

[0128] In one optional embodiment, the first node information includes first position information corresponding to the first light node in the initial 3D enhanced model, and the second node information includes second position information corresponding to the second light node in the light model file. The step of matching the first node information with the second node information, and using the first light node corresponding to the successfully matched first node information as the first target light node, and using the second light node corresponding to the successfully matched second node information as the second target light node, includes:

[0129] The first location information is matched with the second location information to determine the first target location information that is successfully matched and the second target location information that corresponds to the first target location information;

[0130] The first light node corresponding to the first target location information is taken as the first target light node, and the second light node corresponding to the second target location information is taken as the second target light node.

[0131] In one alternative embodiment, it further includes:

[0132] If the information of the first node fails to match with the information of each of the second nodes, the initial enhanced 3D model is displayed.

[0133] In one optional embodiment, obtaining the lighting model file for the initial 3D enhanced model includes:

[0134] Obtain the model type of the initial 3D enhanced model and determine the lighting model file that matches the model type.

[0135] In one optional embodiment, the preset lighting parameters include at least one of the following: lighting color, lighting brightness, light source type, light source reduction distance, and light source color temperature.

[0136] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0137] The communication interface is used for communication between the aforementioned terminal and other devices.

[0138] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0139] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0140] like Figure 5 As shown, in another embodiment of the present invention, a computer-readable storage medium 501 is also provided, which stores instructions that, when executed on a computer, cause the computer to perform the lighting processing method for the three-dimensional enhanced model described in the above embodiment.

[0141] In another embodiment of the present invention, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute the lighting processing method for the three-dimensional enhanced model described in the above embodiments.

[0142] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)).

[0143] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0144] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0145] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A lighting processing method for a three-dimensional augmented model, characterized in that, include: In response to the display operation of the 3D enhanced model, an initial 3D enhanced model corresponding to the display operation is determined, and a lighting model file for the initial 3D enhanced model is obtained. The initial 3D enhanced model includes a plurality of first lighting nodes, and the first lighting nodes are empty nodes in the 3D enhanced model whose lighting parameters are null values. Based on the lighting model file, preset lighting parameters are added to the first lighting node of the initial 3D augmented model to generate the target 3D augmented model. Show the three-dimensional augmented model of the target; The lighting model file includes at least several second lighting nodes and preset lighting parameters for the second lighting nodes. The step of adding preset lighting parameters to the first lighting nodes of the initial 3D augmented model based on the lighting model file to generate the target 3D augmented model includes: Obtain the first node information of the first light node and the second node information of the second light node, wherein the first node information includes the first node identifier corresponding to the first light node in the initial three-dimensional enhancement model, and the second node information includes the second node identifier corresponding to the second light node in the light model file; The first node information is matched with the second node information, and the first light node corresponding to the first node information that is successfully matched is taken as the first target light node, and the second light node corresponding to the second node information that is successfully matched is taken as the second target light node. The preset lighting parameters of the second target light node are added to the first target light node to generate a target 3D augmented model.

2. The method according to claim 1, characterized in that, The step of matching the first node information with the second node information, and taking the first light node corresponding to the successfully matched first node information as the first target light node, and taking the second light node corresponding to the successfully matched second node information as the second target light node, includes: The first node identifier is matched with the second node identifier to determine the first target node identifier that is successfully matched and the second target node identifier that corresponds to the first target node identifier; The first light node corresponding to the first target node identifier is designated as the first target light node, and the second light node corresponding to the second target node identifier is designated as the second target light node.

3. The method according to claim 1, characterized in that, The first node information includes the first position information corresponding to the first light node in the initial 3D enhanced model, and the second node information includes the second position information corresponding to the second light node in the light model file. The step of matching the first node information with the second node information, and using the first light node corresponding to the successfully matched first node information as the first target light node, and using the second light node corresponding to the successfully matched second node information as the second target light node, includes: The first location information is matched with the second location information to determine the first target location information that is successfully matched and the second target location information that corresponds to the first target location information; The first light node corresponding to the first target location information is taken as the first target light node, and the second light node corresponding to the second target location information is taken as the second target light node.

4. The method according to claim 1, characterized in that, Also includes: If the information of the first node fails to match with the information of each of the second nodes, the initial 3D augmented model is displayed.

5. The method according to claim 1, characterized in that, The step of obtaining the lighting model file for the initial 3D enhanced model includes: Obtain the model type of the initial 3D enhanced model and determine the lighting model file that matches the model type.

6. The method according to any one of claims 1 to 5, characterized in that, The preset lighting parameters include at least one of the following: light color, light brightness, light source type, light source reduction distance, and light source color temperature.

7. A lighting processing device for a three-dimensional augmented model, characterized in that, include: An initial 3D augmented model determination module is used to respond to a display operation of a 3D augmented model, determine an initial 3D augmented model corresponding to the display operation, and obtain a lighting model file for the initial 3D augmented model. The initial 3D augmented model includes a plurality of first lighting nodes, wherein the first lighting nodes are empty nodes in the 3D augmented model whose lighting parameters are null values. The target 3D augmented model generation module is used to add preset lighting parameters to the first lighting node of the initial 3D augmented model according to the lighting model file, and generate the target 3D augmented model. The target 3D augmented model display module is used to display the target 3D augmented model; The lighting model file includes at least several second lighting nodes and preset lighting parameters for the second lighting nodes. The target 3D augmented model generation module includes: The node information acquisition submodule is used to acquire the first node information of the first light node and the second node information of the second light node, wherein the first node information includes the first node identifier corresponding to the first light node in the initial three-dimensional enhancement model, and the second node information includes the second node identifier corresponding to the second light node in the light model file. The target light node generation submodule is used to match the first node information with the second node information, and take the first light node corresponding to the successfully matched first node information as the first target light node, and take the second light node corresponding to the successfully matched second node information as the second target light node. The target 3D augmented model generation submodule is used to add the preset lighting parameters of the second target light node to the first target light node to generate the target 3D augmented model.

8. An electronic device, characterized in that, include: One or more processors; and one or more machine-readable media thereon storing instructions, which, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1-6.

9. A computer-readable storage medium having instructions stored thereon that, when executed by one or more processors, cause the processors to perform the method as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Data processing method and device

    CN112306482A

  • Light effect generation method and device and electronic equipment

    CN115631290A