Lighting simulation method, device, electronic device and storage medium

By displaying virtual objects in the user interface and rendering with pre-configured lighting data, and dynamic lighting simulation is performed in response to user gesture operations, the problem of poor lighting simulation effect in the prior art is solved, efficient lighting simulation and display is achieved, and users' house viewing needs are met.

CN113989427BActive Publication Date: 2025-03-04SHENZHEN XUMI YUNTU SPACE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111204593.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-15
Publication Date
2025-03-04
Estimated Expiration
2041-10-15

AI Technical Summary

Technical Problem

In the lighting simulation of digital real estate, the existing technology cannot perform specific lighting simulation for each building and room, resulting in poor lighting simulation results, and users' low efficiency in viewing lighting conditions, which cannot meet users' house viewing needs.

Method used

Display virtual objects in the user interface, and render them with pre-configured lighting data, load lighting data in a continuous period of time in response to user gesture operations for dynamic simulation, and load corresponding lighting data for rendering in response to object operations.

Benefits of technology

It improves the lighting simulation effect of virtual objects, realizes dynamic simulation and display of the lighting conditions of virtual objects, improves the efficiency of users' viewing of lighting conditions, and meets the user's viewing needs for virtual objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113989427B_ABST
    Figure CN113989427B_ABST
Patent Text Reader

Abstract

The present disclosure provides a lighting simulation method, device, electronic device and storage medium. The method includes: displaying a first virtual object in a user interface, rendering the first virtual object using pre-configured first lighting data, so as to display a lighting image corresponding to the first virtual object; in response to a gesture operation for simulating lighting icons in the user interface, loading second lighting data within a continuous time period corresponding to the first virtual object, rendering the first virtual object using the second lighting data, so as to dynamically simulate the lighting changes of the first virtual object within a continuous time period; in response to a gesture operation for the first virtual object, determining a second virtual object corresponding to the first virtual object, loading pre-configured third lighting data corresponding to the second virtual object, and rendering the second virtual object using the third lighting data. The present disclosure can dynamically simulate lighting and improve the lighting simulation effect of virtual objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a lighting simulation method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of computer technology and smart terminals, the application of simulating and displaying the lighting conditions of virtual objects in virtual scenes has become popular. By simulating the lighting conditions of virtual objects through algorithms, the display effect of virtual objects can be optimized. For example, in the display scene of digital real estate, the lighting of the building can be simulated to enhance the user's viewing experience.

[0003] Among the current lighting simulation methods for digital buildings, many applications can only simply simulate the lighting conditions of the entire building, and cannot simulate the specific lighting conditions for each building; although some applications can display the specific lighting conditions for each building, they are limited to displaying static lighting data, requiring users to select each building one by one at the static time for viewing, and cannot simulate the lighting for each room, resulting in poor lighting simulation effects and low efficiency in users' viewing of lighting conditions, thus failing to meet users' house viewing needs. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a lighting simulation method, device, electronic device and storage medium to solve the problems in the prior art that the lighting simulation effect is poor, the efficiency of viewing the lighting conditions is low, and the needs of users for viewing houses cannot be met.

[0005] In a first aspect of an embodiment of the present disclosure, a lighting simulation method is provided, including: displaying a first virtual object in a user interface, rendering the first virtual object using pre-configured first lighting data so as to display a lighting image corresponding to the first virtual object; in response to a gesture operation for a lighting simulation icon in the user interface, loading second lighting data within a continuous time period corresponding to the first virtual object, rendering the first virtual object using the second lighting data so as to dynamically simulate lighting changes of the first virtual object within the continuous time period; in response to a gesture operation for the first virtual object, determining a second virtual object corresponding to the first virtual object, loading pre-configured third lighting data corresponding to the second virtual object, and rendering the second virtual object using the third lighting data so as to display a lighting image corresponding to the second virtual object.

[0006] According to a second aspect of an embodiment of the present disclosure, there is provided a lighting simulation device, comprising: a first lighting module, configured to display a first virtual object in a user interface, and to render the first virtual object using pre-configured first lighting data so as to display a lighting image corresponding to the first virtual object; a second lighting module, configured to load second lighting data within a continuous time period corresponding to the first virtual object in response to a gesture operation for a lighting simulation icon in the user interface, and to render the first virtual object using the second lighting data so as to dynamically simulate lighting changes of the first virtual object within the continuous time period; and a third lighting module, configured to determine a second virtual object corresponding to the first virtual object in response to a gesture operation for the first virtual object, load pre-configured third lighting data corresponding to the second virtual object, and render the second virtual object using the third lighting data so as to display a lighting image corresponding to the second virtual object.

[0007] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the above method are implemented when the processor executes the program.

[0008] According to a fourth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0009] At least one of the above technical solutions adopted in the embodiments of the present disclosure can achieve the following beneficial effects:

[0010] By displaying a first virtual object in a user interface, the first virtual object is rendered using pre-configured first illumination data to display an illumination image corresponding to the first virtual object; in response to a gesture operation for a simulated illumination icon in the user interface, second illumination data corresponding to the first virtual object in a continuous time period is loaded, and the first virtual object is rendered using the second illumination data to dynamically simulate illumination changes of the first virtual object in a continuous time period; in response to a gesture operation for the first virtual object, a second virtual object corresponding to the first virtual object is determined, third illumination data corresponding to the pre-configured second virtual object is loaded, and the second virtual object is rendered using the third illumination data to display an illumination image corresponding to the second virtual object. The present disclosure can improve the illumination simulation effect of virtual objects, realize dynamic simulation and display of illumination conditions of virtual objects, improve the efficiency of users viewing illumination conditions of virtual objects, and meet users' viewing needs for virtual objects. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1 is a flow chart of a lighting simulation method provided by an embodiment of the present disclosure;

[0013] Figure 2 is a schematic diagram of dynamic lighting simulation for a virtual object provided by an embodiment of the present disclosure;

[0014] Figure 3 is a schematic diagram of performing lighting simulation on a virtual room object provided by an embodiment of the present disclosure;

[0015] Figure 4 is a structural schematic diagram of a lighting simulation device provided by an embodiment of the present disclosure;

[0016] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0017] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.

[0018] With the rapid development of smart terminal hardware and software technology, more and more services can be implemented with the help of software or applications installed in smart terminals. For example, by building virtual scenes in applications and rendering objects in virtual scenes, the virtual scenes are presented more realistically. The following takes the lighting simulation of virtual objects in virtual scenes as an example to explain the current technical solutions for lighting simulation of virtual objects, which may include the following contents:

[0019] Taking the field of digital real estate as an example, by simulating digital real estate objects in the application or web page of the smart terminal, users can view the housing, apartment type and sunshine conditions of the real estate at any time through the smart terminal, thereby enhancing the user's house viewing experience. However, the currently known mobile terminal applications for house viewing generally lack the function of light simulation. Therefore, users cannot judge the sunshine conditions of each building and room by simulating light, which is not conducive to improving the user's house viewing experience; although some mobile terminal applications for house viewing can simulate light, the simulation of real estate lighting is limited to simulating static light data, and users need to select each building one by one at the corresponding light of the static time for viewing. When the number of buildings in the real estate is large, it increases the time consumption of users to view the sunshine conditions, and it is impossible to simulate the light conditions for each room, resulting in poor light simulation effect of the real estate, low efficiency of users viewing the light conditions, and thus failing to meet the user's house viewing needs.

[0020] Since users pay more attention to the sunlight conditions of buildings and rooms than other factors when selecting houses through smart terminal applications, in order to facilitate users to view the sunlight conditions inside and outside each building and room, it is necessary to provide a lighting simulation solution that can dynamically simulate lighting conditions and perform lighting simulation for a single room, thereby improving the overall lighting simulation effect of the building, improving the user's viewing efficiency of lighting simulation conditions, and meeting users' diverse house viewing needs.

[0021] It should be noted that in the application scenarios of the embodiments of the present disclosure, the present disclosure can be executed by a client, application or web page installed or running in an intelligent terminal, and the intelligent terminal includes but is not limited to: a mobile terminal that supports touch screen operation, such as a smart phone, a tablet computer, and a laptop computer. The following embodiments of the present disclosure take the digital virtual real estate in the real estate field as a virtual object, and specifically treat each building and room in the real estate as a virtual object for processing. However, in actual applications, the embodiments of the present disclosure are not limited to virtual real estate, and any virtual resource object that can be viewed in the application interface or web page of a mobile terminal is applicable to this solution. The following takes an application running in a mobile terminal to provide users with house viewing services as an example to explain the solution of this specification in detail.

[0022] Figure 1 It is a flowchart of the lighting simulation method provided by an embodiment of the present disclosure. Figure 1 The illumination simulation method can be executed by an application installed on the mobile terminal. Figure 1 As shown, the illumination simulation method may specifically include:

[0023] S101, displaying a first virtual object in a user interface, and rendering the first virtual object using pre-configured first illumination data to display an illumination image corresponding to the first virtual object;

[0024] S102, in response to a gesture operation on a simulated illumination icon in a user interface, loading second illumination data within a continuous time period corresponding to a first virtual object, and rendering the first virtual object using the second illumination data, so as to dynamically simulate illumination changes of the first virtual object within the continuous time period;

[0025] S103, in response to a gesture operation on the first virtual object, determining a second virtual object corresponding to the first virtual object, loading pre-configured third lighting data corresponding to the second virtual object, and rendering the second virtual object using the third lighting data to display a lighting image corresponding to the second virtual object.

[0026] Specifically, the user interface refers to the interface of an application running in a mobile terminal, which is an application that provides house viewing services for users. The application can be used to simulate a digital sand table so that users can view the digital sand table on their mobile phones; virtual objects can be considered as virtual buildings or virtual rooms in a digital building. In actual applications, the first virtual object refers to a virtual building object, which can also be referred to as a building object, and the second virtual object refers to a virtual room object, which can also be referred to as a room object. Of course, the embodiments of the present disclosure are not limited to the application scenarios of digital sand tables, nor are they limited to the lighting simulation of virtual buildings and virtual rooms. Therefore, the above virtual objects are not sufficient to limit the technical solutions of the present application.

[0027] Furthermore, the process of simulating lighting for virtual objects can be considered as using pre-configured lighting parameters to render a corresponding virtual image in the virtual object of the digital sandbox, that is, rendering the virtual object by the image formed by the lighting parameters, so that the virtual object presents a lighting effect; in addition, the virtual object can also be rendered in the form of a map, that is, using a pre-configured lighting effect map, when a virtual object needs to be rendered for lighting, the corresponding lighting effect map is loaded in the virtual object of the digital sandbox, so that the virtual object presents the lighting effect map, so that the user can view the lighting effect of the virtual object (i.e., a virtual building or room).

[0028] Furthermore, gesture operations can be considered as gesture instructions formed by users clicking or sliding the touch screen on the mobile terminal. Different gesture operations generate different gesture instructions. The binding relationship between gestures and instructions can be pre-configured and stored in the server corresponding to the client. In actual applications, after the touch screen detects a gesture issued by a user through a finger or a stylus, the gesture instruction issued by the user is determined based on the correspondence between the gesture and the pre-configured instruction. For example, when a user clicks a time button on the touch screen, the lighting display area in the client displays the light effect corresponding to the time.

[0029] According to the technical solution provided by the embodiment of the present disclosure, by displaying a first virtual object in a user interface, the first virtual object is rendered using the pre-configured first illumination data so as to display the illumination image corresponding to the first virtual object; in response to a gesture operation for simulating illumination icons in the user interface, the second illumination data corresponding to the first virtual object in a continuous time period is loaded, and the first virtual object is rendered using the second illumination data so as to dynamically simulate the illumination changes of the first virtual object in a continuous time period; in response to a gesture operation for the first virtual object, the second virtual object corresponding to the first virtual object is determined, the pre-configured third illumination data corresponding to the second virtual object is loaded, and the second virtual object is rendered using the third illumination data so as to display the illumination image corresponding to the second virtual object. The present disclosure can improve the illumination simulation effect of virtual objects, realize dynamic simulation and display of the illumination conditions of virtual objects, improve the efficiency of users viewing the illumination conditions of virtual objects, and meet the viewing needs of users for virtual objects.

[0030] In some embodiments, the user interface includes an option bar and a lighting display area; a first virtual object is displayed in the user interface, and the first virtual object is rendered using pre-configured first lighting data to display a lighting image corresponding to the first virtual object, including: displaying multiple first virtual objects in the lighting display area, each first virtual object including multiple second virtual objects, loading the pre-configured first lighting data, and performing a rendering operation on the first virtual object to display a lighting image corresponding to the rendered first virtual object in the lighting display area; wherein the first lighting data, the second lighting data, and the third lighting data include lighting images, color data, lighting time, and light and shadow data.

[0031] Specifically, an option bar is provided at the top of the application page (i.e., the user interface), and a lighting display area is provided below the option bar. The option bar contains a time button and a simulated sunlight button. Clicking the time button can switch the time point, and clicking the simulated sunlight button can perform dynamic rendering operations on the virtual objects on the current page. One or more virtual building objects can be displayed in the lighting display area, and each virtual building object is composed of several room objects, and each room object will distinguish the sunlight time with different colors. The legend of the corresponding relationship between color and sunlight time is displayed in the lower right corner of the application page.

[0032] Furthermore, before rendering the virtual building object, the lighting data corresponding to each virtual building object in the digital sandbox is configured, such as the lighting data corresponding to the virtual building object at a certain point in time or a certain season. The lighting data can include data stored in a data structure, such as the color corresponding to the lighting, the lighting time, the shadow data generated by the lighting, etc., and can also include some image data, such as the corresponding picture of the building or room under the current lighting conditions.

[0033] It should be noted that the corresponding lighting data of a building or room in a digital sandbox can be generated using separate software or a computer program. The embodiments of the present disclosure do not limit the specific method for generating the lighting data. As long as the method can generate the corresponding lighting data, it is applicable to this solution.

[0034] In some embodiments, in response to a gesture operation on a simulated lighting icon in a user interface, second lighting data within a continuous time period corresponding to a first virtual object is loaded, and the first virtual object is rendered using the second lighting data so as to dynamically simulate the lighting changes of the first virtual object within the continuous time period, including: when a click operation on the simulated lighting icon is detected, the pre-configured second lighting data of the first virtual object within the continuous time period is loaded, and based on the lighting time in the second lighting data, rendering operations are performed on the first virtual object in sequence according to the time sequence corresponding to the lighting time, so as to dynamically and continuously display the lighting image corresponding to the rendered first virtual object in the lighting display area.

[0035] Specifically, when a click operation is received on the simulated lighting icon in the option bar, the lighting display area of ​​the current application page is switched to the page of dynamic simulated lighting, and by loading the lighting data (i.e., the second lighting data) in a pre-configured continuous time period, the dynamic effect of sunlight on the building within a period of time can be simulated with one click. The process of dynamically simulating lighting for virtual objects in the embodiments of the present disclosure is described below in conjunction with the accompanying drawings. Figure 2 FIG. 1 is a schematic diagram of a dynamic lighting simulation for a virtual object provided by an embodiment of the present disclosure. Figure 2 As shown, the process of dynamic lighting simulation for virtual objects mainly includes the following contents:

[0036] When the user clicks on the simulated lighting icon in the upper right corner of the page options bar, the lighting display area of ​​the current application page switches to the page of dynamic simulated lighting. At this time, the virtual objects displayed in the lighting display area will call the dynamic lighting data pre-configured in the server, that is, obtain the lighting data for a continuous period of time, and continue to render the virtual objects at a certain time interval, so that users can view the dynamic lighting effects of the virtual objects, thereby forming light and shadow effects. For example, the page will display the continuously changing sunlight conditions corresponding to 9 o'clock to 18 o'clock in units of hours.

[0037] In some embodiments, in response to a gesture operation on a time icon in a user interface, fourth lighting data corresponding to the first virtual object or the second virtual object is loaded, and the first virtual object or the second virtual object is rendered using the fourth lighting data to display a lighting image corresponding to the first virtual object or the second virtual object at the selected time point.

[0038] Specifically, in addition to being able to click the simulated lighting icon in the options bar to view the dynamic lighting effects of the virtual objects on the current page, users can also click the time icon in the options bar to switch the lighting conditions of the virtual objects in different time scenes. For example, users can click on the three time points of "Spring and Autumn Equinox", "Summer Solstice" and "Winter Solstice" to view the sunshine. In actual applications, the time icon can represent specific time points, such as 8 o'clock, 16 o'clock, etc., and can also represent the time corresponding to some seasons, such as the above-mentioned "Spring and Autumn Equinox", "Summer Solstice", "Winter Solstice", etc.

[0039] In some embodiments, in response to a gesture operation on a first virtual object, a second virtual object corresponding to the first virtual object is determined, third lighting data corresponding to a pre-configured second virtual object is loaded, and the second virtual object is rendered using the third lighting data so as to display a lighting image corresponding to the second virtual object, including: when a click operation on the first virtual object is detected, the first virtual object is enlarged within the lighting display area, a click operation on the second virtual object within the enlarged first virtual object is received, the second virtual object and the third lighting data are loaded, and a rendering operation is performed on the second virtual object using the third lighting data so as to display the lighting image corresponding to the rendered second virtual object within the lighting display area.

[0040] Specifically, in the embodiment of the present disclosure, in addition to being able to view the sunlight conditions corresponding to each building in the digital sandbox, the user can also view the sunlight conditions corresponding to the rooms in each building. The process of simulating lighting for virtual room objects in the embodiment of the present disclosure is described below in conjunction with the accompanying drawings. Figure 3 FIG. 1 is a schematic diagram of performing lighting simulation on a virtual room object provided by an embodiment of the present disclosure. Figure 3 As shown, the process of simulating the lighting of the virtual room object mainly includes the following contents:

[0041] When the user clicks on a building object in the lighting display area, the building object will be enlarged and displayed to cover the entire lighting display area. For the enlarged building object, the page can continue to be zoomed in and out using gestures, and a room object corresponding to the building object can be clicked. After receiving a click operation on a room object, the page in the lighting display area switches to the indoor environment page corresponding to the room object. At this time, the indoor lighting data (i.e., the third lighting data) of the room object is loaded from the server, and the indoor environment is rendered using the indoor lighting data to form an indoor environment image that integrates lighting, so that the user can view the indoor lighting conditions of the room.

[0042] In addition, in addition to performing dynamic lighting simulation operations on the first virtual object (i.e., building object) in the lighting display area, dynamic lighting simulation operations can also be performed on the second virtual object (i.e., room object). The process of performing dynamic lighting simulation operations on the indoor environment is similar to the above-mentioned process of performing dynamic lighting simulation operations on the outdoor building, and will not be repeated here.

[0043] In some embodiments, the second virtual object includes multiple subsidiary virtual objects, the second virtual object and third lighting data are loaded, and a rendering operation is performed on the second virtual object using the third lighting data, so as to display a lighting image corresponding to the rendered second virtual object in the lighting display area, including: loading the subsidiary virtual object in the lighting display area, and loading pre-configured third lighting data corresponding to the subsidiary virtual object, and performing a rendering operation on the subsidiary virtual object using the third lighting data, so as to display a lighting image corresponding to the rendered subsidiary virtual object in the lighting display area; when a click operation on the subsidiary virtual object is detected, switching the rendered subsidiary virtual object displayed in the lighting display area to the subsidiary virtual object of the click operation, so as to switch different subsidiary virtual objects in the lighting display area, wherein the subsidiary virtual object is a subsidiary room object.

[0044] Specifically, the so-called subsidiary virtual objects refer to the indoor spaces corresponding to the houses in each building, such as bedrooms, living rooms, kitchens, etc. Therefore, in addition to rendering and displaying the lighting of the outdoor buildings, the embodiments of the present disclosure can also render and display the lighting conditions of the indoor houses. When displaying the indoor lighting conditions, different rooms can be switched, for example, different room cards are displayed on the right side of the indoor display page, and the user's click operation on the room card is received, and the lighting conditions corresponding to different rooms are switched in the indoor lighting display area. At the same time, the room number corresponding to the room can also be displayed in the upper left corner of the page to facilitate user distinction.

[0045] According to the technical solution provided by the embodiment of the present disclosure, not only can the lighting conditions of outdoor buildings be displayed, an overview of the lighting effects of buildings can be viewed, and the building view can be enlarged, but also specific rooms can be selected to view the lighting effects of different rooms indoors, and different time points can be selected and the dynamic effects of sunlight in a fixed time period can be simulated with one key; users can view the lighting effects from both outdoor and indoor perspectives through mobile terminals, thereby making a comprehensive judgment on the lighting conditions of the entire building and room, and improving the effect of users viewing houses on mobile terminals. The present disclosure can improve the lighting simulation effect of virtual objects, realize dynamic simulation and display of the lighting conditions of virtual objects, improve the efficiency of users viewing the lighting conditions of virtual objects, and meet the viewing needs of users for virtual objects.

[0046] The following are embodiments of the device disclosed herein, which can be used to execute the method embodiments disclosed herein. For details not disclosed in the device embodiments disclosed herein, please refer to the method embodiments disclosed herein.

[0047] Figure 4 Schematic diagram of the structure of the illumination simulation device provided by the embodiment of the present disclosure. Figure 4 As shown, the illumination simulation device comprises:

[0048] A first lighting module 401 is configured to display a first virtual object in a user interface, and render the first virtual object using pre-configured first lighting data, so as to display a lighting image corresponding to the first virtual object;

[0049] The second lighting module 402 is configured to load second lighting data within a continuous time period corresponding to the first virtual object in response to a gesture operation on the simulated lighting icon in the user interface, and render the first virtual object using the second lighting data to dynamically simulate lighting changes of the first virtual object within the continuous time period;

[0050] The third lighting module 403 is configured to determine a second virtual object corresponding to the first virtual object in response to a gesture operation on the first virtual object, load pre-configured third lighting data corresponding to the second virtual object, and render the second virtual object using the third lighting data so as to display a lighting image corresponding to the second virtual object.

[0051] In some embodiments, the user interface includes an options bar and a lighting display area. Figure 4The first lighting module 401 displays multiple first virtual objects in the lighting display area, each of which includes multiple second virtual objects, loads pre-configured first lighting data, and performs rendering operations on the first virtual objects, so as to display the lighting images corresponding to the rendered first virtual objects in the lighting display area; wherein the first lighting data, the second lighting data, and the third lighting data include lighting images, color data, lighting time, and light and shadow data.

[0052] In some embodiments, Figure 4 When a click operation on the simulated lighting icon is detected, the second lighting module 402 loads the pre-configured second lighting data of the first virtual object within a continuous time period, and based on the lighting time in the second lighting data, performs rendering operations on the first virtual object in sequence according to the time sequence corresponding to the lighting time, so as to dynamically and continuously display the lighting image corresponding to the rendered first virtual object in the lighting display area.

[0053] In some embodiments, Figure 4 The second lighting module 402 loads fourth lighting data corresponding to the first virtual object or the second virtual object in response to a gesture operation on the time icon in the user interface, and uses the fourth lighting data to render the first virtual object or the second virtual object so as to display a lighting image corresponding to the first virtual object or the second virtual object at the selected time point.

[0054] In some embodiments, Figure 4 When a click operation on the first virtual object is detected, the third lighting module 403 enlarges the first virtual object in the lighting display area, receives a click operation on the second virtual object within the enlarged first virtual object, loads the second virtual object and the third lighting data, and performs a rendering operation on the second virtual object using the third lighting data, so as to display a lighting image corresponding to the rendered second virtual object in the lighting display area.

[0055] In some embodiments, the second virtual object includes a plurality of subsidiary virtual objects. Figure 4 The third lighting module 403 loads the subsidiary virtual object in the lighting display area, and loads the pre-configured third lighting data corresponding to the subsidiary virtual object, and uses the third lighting data to perform a rendering operation on the subsidiary virtual object, so as to display a lighting image corresponding to the rendered subsidiary virtual object in the lighting display area; when a click operation on the subsidiary virtual object is detected, the rendered subsidiary virtual object displayed in the lighting display area is switched to the subsidiary virtual object of the click operation, so as to switch different subsidiary virtual objects in the lighting display area, wherein the subsidiary virtual object is a subsidiary room object.

[0056] In some embodiments, the first virtual object is a building object, and the second virtual object is a room object.

[0057] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present disclosure.

[0058] Figure 5 Schematic diagram of the structure of the electronic device 5 provided by the embodiment of the present disclosure. Figure 5 As shown, the electronic device 5 of this embodiment includes: a processor 501, a memory 502, and a computer program 503 stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program 503, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 501 executes the computer program 503, the functions of the modules / units in the above-mentioned device embodiments are implemented.

[0059] Exemplarily, the computer program 503 may be divided into one or more modules / units, which are stored in the memory 502 and executed by the processor 501 to complete the present disclosure. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 503 in the electronic device 5.

[0060] The electronic device 5 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 5 may include, but is not limited to, a processor 501 and a memory 502. Those skilled in the art will appreciate that Figure 5 It is only an example of the electronic device 5 and does not constitute a limitation of the electronic device 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0061] The processor 501 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.

[0062] The memory 502 may be an internal storage unit of the electronic device 5, for example, a hard disk or memory of the electronic device 5. The memory 502 may also be an external storage device of the electronic device 5, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 5. Further, the memory 502 may also include both an internal storage unit of the electronic device 5 and an external storage device. The memory 502 is used to store computer programs and other programs and data required by the electronic device. The memory 502 may also be used to temporarily store data that has been output or is to be output.

[0063] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0064] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0065] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.

[0066] In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus / computer equipment and methods can be implemented in other ways. For example, the apparatus / computer equipment embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. Multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which may be electrical, mechanical or other forms.

[0067] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0068] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0069] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present disclosure implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.

[0070] The above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should all be included in the protection scope of the present disclosure.

Claims

1. A lighting simulation method, characterized in that: include: Displaying a first virtual object in a user interface, and rendering the first virtual object using pre-configured first illumination data to display an illumination image corresponding to the first virtual object; In response to a gesture operation on a simulated illumination icon in the user interface, second illumination data within a continuous time period corresponding to the first virtual object is loaded, and the first virtual object is rendered using the second illumination data, so as to dynamically simulate illumination changes of the first virtual object within the continuous time period, wherein the gesture operation includes a click operation, and when the click operation on the simulated illumination icon is detected, the pre-configured second illumination data of the first virtual object within the continuous time period is loaded, and based on illumination times in the second illumination data, the rendering operation is sequentially performed on the first virtual object in a time sequence corresponding to the illumination times, so as to dynamically and continuously display the illumination image corresponding to the rendered first virtual object in the illumination display area; In response to a gesture operation on the first virtual object, a second virtual object corresponding to the first virtual object is determined, third lighting data corresponding to the second virtual object that is pre-configured is loaded, and the second virtual object is rendered using the third lighting data so as to display a lighting image corresponding to the second virtual object; wherein the rendering means includes rendering the first virtual object or the second virtual object using an image formed by lighting parameters, and rendering the first virtual object or the second virtual object using a pre-configured lighting effect map; The first illumination data, the second illumination data and the third illumination data include color data and illumination time; each of the first virtual objects includes a plurality of the second virtual objects, and each of the second virtual objects uses different colors corresponding to the color data to distinguish the illumination time.

2. The method according to claim 1, characterized in that The user interface includes an option bar and a lighting display area; The displaying of the first virtual object in the user interface and rendering the first virtual object using pre-configured first illumination data so as to display an illumination image corresponding to the first virtual object includes: Displaying a plurality of the first virtual objects in the lighting display area, each of the first virtual objects including a plurality of the second virtual objects, loading the pre-configured first lighting data, and performing a rendering operation on the first virtual objects, so as to display a lighting image corresponding to the rendered first virtual objects in the lighting display area; The first illumination data, the second illumination data and the third illumination data further include illumination images and light and shadow data.

3. The method according to claim 1, characterized in that The method further comprises: In response to a gesture operation on the time icon in the user interface, fourth lighting data corresponding to the first virtual object or the second virtual object is loaded, and the first virtual object or the second virtual object is rendered using the fourth lighting data to display a lighting image corresponding to the first virtual object or the second virtual object at the selected time point.

4. The method according to claim 1, characterized in that: The method of determining, in response to a gesture operation on the first virtual object, a second virtual object corresponding to the first virtual object, loading pre-configured third illumination data corresponding to the second virtual object, and rendering the second virtual object using the third illumination data so as to display an illumination image corresponding to the second virtual object includes: When a click operation on the first virtual object is detected, the first virtual object is enlarged in the lighting display area, a click operation on the second virtual object within the enlarged first virtual object is received, the second virtual object and the third lighting data are loaded, and a rendering operation is performed on the second virtual object using the third lighting data, so as to display a lighting image corresponding to the rendered second virtual object in the lighting display area.

5. The method according to claim 4, characterized in that The second virtual object includes a plurality of subsidiary virtual objects, and the loading of the second virtual object and the third illumination data, and performing a rendering operation on the second virtual object using the third illumination data, so as to display a lighting image corresponding to the rendered second virtual object in the illumination display area, includes: Loading the subsidiary virtual object in the lighting display area, and loading pre-configured third lighting data corresponding to the subsidiary virtual object, and performing a rendering operation on the subsidiary virtual object using the third lighting data, so as to display a lighting image corresponding to the rendered subsidiary virtual object in the lighting display area; When a click operation on the subsidiary virtual object is detected, the rendered subsidiary virtual object displayed in the lighting display area is switched to the subsidiary virtual object of the click operation, so as to switch different subsidiary virtual objects in the lighting display area, wherein the subsidiary virtual object is a subsidiary room object.

6. The method according to any one of claims 1 to 5, characterized in that The first virtual object is a building object, and the second virtual object is a room object.

7. A lighting simulation device, characterized in that: include: A first lighting module is configured to display a first virtual object in a user interface, and render the first virtual object using pre-configured first lighting data so as to display a lighting image corresponding to the first virtual object; a second lighting module configured to, in response to a gesture operation on a simulated lighting icon in the user interface, load second lighting data within a continuous time period corresponding to the first virtual object, and render the first virtual object using the second lighting data, so as to dynamically simulate lighting changes of the first virtual object within the continuous time period, wherein the gesture operation includes a click operation, and when a click operation on the simulated lighting icon is detected, load pre-configured second lighting data of the first virtual object within a continuous time period, and based on the lighting time in the second lighting data, sequentially perform rendering operations on the first virtual object in a time sequence corresponding to the lighting time, so as to dynamically and continuously display a lighting image corresponding to the rendered first virtual object in the lighting display area; a third lighting module, configured to, in response to a gesture operation on the first virtual object, determine a second virtual object corresponding to the first virtual object, load pre-configured third lighting data corresponding to the second virtual object, and render the second virtual object using the third lighting data so as to display a lighting image corresponding to the second virtual object; wherein the rendering means includes rendering the first virtual object or the second virtual object using an image formed by lighting parameters, and rendering the first virtual object or the second virtual object using a pre-configured lighting effect map; The first illumination data, the second illumination data and the third illumination data include color data and illumination time; each of the first virtual objects includes a plurality of the second virtual objects, and each of the second virtual objects uses different colors corresponding to the color data to distinguish the illumination time.

8. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 6 when executing the program.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • A method and apparatus for simulating a lighting effect in a virtual three-dimensional space

    CN109242948A

  • Building lighting simulation method based on smart phone

    CN112164142A