A method and system for rendering light effects

CN122597624APending Publication Date: 2026-08-18GONEO GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610590213.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-04-29
Publication Date
2026-08-18

AI Technical Summary

Technical Problem

同时,用户对灯光布局的调整也无法实时反馈至渲染结果中,导致常规的基于人工智能的灯光设计系统响应速度缓慢、人机交互流畅度不足,严重影响用户使用体验

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122597624A_ABST
    Figure CN122597624A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a light effect rendering method and system. The light effect rendering method comprises the following steps: obtaining an original house plan and preprocessing the original house plan; sending the preprocessed original house plan to a server to obtain house plan analysis data and light layout data output by the server; rendering a structured house plan based on the house plan analysis data and rendering a house static layer based on the house plan analysis data; and rendering a light dynamic layer based on the light layout data on the basis of the house static layer. The light effect rendering method of the present disclosure can improve response speed, enhance human-computer interaction fluency, and improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of software technology, and in particular to a method and system for rendering lighting effects. Background Technology

[0002] With the rapid development of the smart home industry, users' demands for personalized and visualized home lighting design continue to increase. Artificial intelligence-based lighting design systems can automatically generate lighting layout schemes based on AI models and simulate lighting effects through rendering technology, allowing users to intuitively preview the lighting design effects and thus assisting them in completing professional-grade lighting design solutions.

[0003] However, the computing power of front-end user devices (such as mobile phones, tablets, and personal computers) is generally insufficient to support the efficient operation of artificial intelligence models. To ensure operational efficiency, these models are typically deployed on back-end servers. Due to the interaction latency between the server and the terminal device, it often takes several seconds or even tens of seconds for the artificial intelligence model to complete rendering after outputting lighting layout data. Simultaneously, user adjustments to the lighting layout cannot be reflected in the rendering results in real time, leading to slow response speeds and insufficient smoothness of human-computer interaction in conventional AI-based lighting design systems, severely impacting the user experience.

[0004] The above background description is intended to provide a general overview of the relevant technical fields to facilitate understanding of the technical solutions involved in this application. The above description is not intended, nor should it be construed, as an admission, confirmation, or limitation of any prior art, nor does it imply that the content described was known to those skilled in the art or belonged to the prior art before the priority date of this application. Unless otherwise expressly stated, the above background information should not be used to limit the scope of protection of the claims of this application. Summary of the Invention

[0005] It should be understood that the general description above and the detailed description below are exemplary and illustrative, and are intended to provide further explanation of the present disclosure as described in the claims.

[0006] This disclosure is provided to improve response speed, enhance the smoothness of human-computer interaction, and improve the user experience.

[0007] According to a first aspect of this disclosure, a method for rendering lighting effects is provided, comprising the following steps: obtaining an original floor plan and preprocessing the original floor plan; sending the preprocessed original floor plan to a server to obtain floor plan parsing data and lighting layout data output by the server; rendering a structured floor plan based on the floor plan parsing data, and rendering a static layer of the house based on the floor plan parsing data; and rendering a dynamic layer of lighting based on the static layer of the house based on the lighting layout data.

[0008] This disclosure optimizes the front-end and back-end task division mechanism. After obtaining the original floor plan, the front-end terminal device preprocesses it before transmitting the preprocessed original floor plan to the back-end, effectively reducing the amount of data transmitted between the front-end and back-end and improving data transmission efficiency. Simultaneously, the preprocessed original floor plan can be directly input into the back-end artificial intelligence model, significantly reducing the computational pressure on the back-end and improving its response speed. This disclosure also optimizes the front-end rendering architecture by dividing the rendering task into a static layer and a dynamic layer. When a user modifies the lighting layout data, only the dynamic lighting layer needs to be updated without performing a full-house rendering, significantly reducing computational overhead and improving rendering response speed, thereby enhancing the smoothness of human-computer interaction and the user experience.

[0009] Optionally, the lighting effect rendering method may also include the steps of: pre-caching at least one lighting layout configuration template for the user to select, and the user switching the lighting layout configuration template is regarded as modifying the lighting layout data.

[0010] Optionally, the lighting effect rendering method may also include the step of: recommending a lighting layout configuration template based on the user's spending power, wherein the user's spending power is assessed based on the user's city, neighborhood and / or apartment size, and the apartment size is obtained based on the floor plan parsing data.

[0011] Optionally, the lighting effect rendering method may also include the steps of: setting up multi-level selection components for users to modify lighting layout data, wherein when displaying the options of the lower-level selection components, some options are selectively hidden according to the options of the upper-level selection components and preset compatibility rules.

[0012] Optionally, the lighting effect rendering method may also include the step of: adjusting the lighting dynamic layer according to the modified lighting layout data in response to determining that the user has modified the lighting layout data.

[0013] Optionally, the lighting effect rendering method may also include the step of: calculating and displaying the quotation results based on the lighting layout data.

[0014] Optionally, the lighting effect rendering method may also include the steps of: in response to determining that the user has modified the lighting layout data, adjusting and displaying the quotation result based on the modified lighting layout data.

[0015] Optionally, the lighting effect rendering method may also include the steps of: adjusting the structured floor plan according to the modified floor plan parsing data in response to determining that the user has modified the floor plan parsing data.

[0016] Optionally, the lighting effect rendering method may also include the step of: in response to determining that the user has modified either the floor plan parsing data or the lighting layout data, sending the modification to the server for storage.

[0017] Optionally, preprocessing may include one or more of the following: cropping redundant edges and resolution normalization.

[0018] Optionally, the lighting effect rendering method may also include the step of: performing coordinate mapping transformation on the floor plan parsing data and lighting layout data returned by the server.

[0019] Optionally, the lighting effect rendering method may also include the step of: in response to determining that the user has switched perspectives, rendering perspective switching animation effects based on the following easing function: , In the formula t Indicates normalized time. f ( t () indicates the progress of camera movement.

[0020] According to a second aspect of this disclosure, a lighting effects rendering system is also provided, comprising a terminal device and a server. The terminal device is configured to execute the lighting effects rendering method of this disclosure. The server is configured to output floor plan parsing data and lighting layout data based on the original floor plan.

[0021] It should be understood that the above description is only intended to provide a general overview of several embodiments of this disclosure and is not intended to limit the scope of protection of this disclosure. Other aspects, embodiments, and optional features of this disclosure will be further described in the following description, or can be understood by those skilled in the art after reading this specification. Attached Figure Description

[0022] A better understanding of the various aspects of this disclosure can be achieved by reading the following detailed description and referring to the accompanying drawings, in which: Figure 1 This is a schematic diagram illustrating a lighting effect rendering system according to some embodiments of the present disclosure.

[0023] Figure 2 A flowchart illustrating a lighting effect rendering method according to some embodiments of the present disclosure is provided.

[0024] Figure 3 This is a schematic diagram illustrating a scheme for parsing and visualizing floor plans according to some embodiments of the present disclosure.

[0025] Figure 4 This is a schematic diagram illustrating white model images according to some embodiments of the present disclosure.

[0026] Figure 5 This is a schematic diagram illustrating a structured floor plan with adaptive lighting according to some embodiments of the present disclosure.

[0027] Figure 6This is a schematic diagram illustrating a rendering effect according to some embodiments of the present disclosure.

[0028] Figure 7 This is a schematic diagram illustrating a human-computer interaction interface according to some embodiments of the present disclosure.

[0029] Figure 8 A block diagram illustrating a computer-readable storage medium according to some embodiments of the present disclosure.

[0030] Figure 9 A block diagram illustrating a computer program product according to some embodiments of the present disclosure.

[0031] In the accompanying drawings, similar components and / or features may have the same numerical reference numerals. Furthermore, components of the same type may be distinguished by a letter following the reference numeral, which can differentiate between similar components and / or features. If only the first numerical reference numeral is used in the specification, the description applies to any similar component and / or feature having the same first numerical reference numeral, regardless of the letter subscript. Detailed Implementation

[0032] The following describes specific embodiments of this disclosure. It should be noted that, in order to maintain brevity, this specification cannot provide a detailed description of all features of the actual embodiments. It should be understood that, in the actual implementation of any embodiment, just as in any engineering or design project, various specific decisions are often made to achieve the developer's specific goals and to meet system-related or business-related constraints, and this can change from one embodiment to another. Furthermore, it is understood that although the efforts made in this development process may be complex and lengthy, for those skilled in the art related to the content of this disclosure, changes in design, manufacturing, or production based on the technical content disclosed herein are merely conventional technical means and should not be construed as insufficient content of this disclosure.

[0033] References to "some embodiments," "embodiments," "example embodiments," etc., in the specification indicate that the described embodiments may include specific features, structures, or characteristics; however, not every embodiment necessarily includes that specific feature, structure, or characteristic. Furthermore, such phrases do not necessarily refer to the same embodiment. Additionally, when a specific feature, structure, or characteristic is described in connection with an embodiment, it is believed that the influence of such feature, structure, or characteristic on such feature, structure, or characteristic in conjunction with other embodiments, whether explicitly described or not, is within the knowledge of those skilled in the art.

[0034] Unless otherwise defined, the technical or scientific terms used in the claims and description shall have the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure pertains. Words such as “comprising” or “including” mean that the elements or objects preceding “comprising” or “including” encompass the elements or objects listed following “comprising” or “including” and their equivalents, and do not exclude other elements or objects.

[0035] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects. For example, "A and / or B" means (A), (B) or (A and B), and "A, B, and / or C" means (A), (B), (C), (A and B), (A and C), (B and C) or (A, B and C). The character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0036] Figure 1 This is a schematic diagram illustrating a lighting effects rendering system 100 according to some embodiments of the present disclosure.

[0037] The lighting effects rendering system 100 includes a terminal device 110 and a server 120. The terminal device 110 can be a front-end user-side terminal device. As an example, the terminal device 110 may include a mobile phone, tablet computer, and personal computer, but this disclosure is not limited to these. The terminal device 110 can be configured to interact with the user to obtain the original floor plan, then preprocess the original floor plan, and send the preprocessed original floor plan to the server 120.

[0038] Server 120 can be a backend server. As an example, server 120 may include a physical server, a cloud server, a virtual server, etc., but this disclosure is not limited to these. Server 120 can be configured to output floor plan parsing data and lighting layout data based on the original floor plan.

[0039] In some embodiments, server 120 can obtain floor plan parsing data and lighting layout data by running an artificial intelligence model. As an example, the artificial intelligence model may include a floor plan recognition model and a lighting layout generation model. The floor plan recognition model can be an image recognition network, which extracts and recognizes features from the original floor plan to convert the original floor plan in image form into structured floor plan parsing data. The lighting layout generation model may include an optimization model or a generative model. The optimization model can output a set of lighting layout data with the highest optimization objective function score based on the current floor plan parsing data, according to preset lighting rules, constraints, and optimization objective functions. The generative model may include a Transformer model, a diffusion model, an LLM (Large Language Model), etc. Those skilled in the art can design suitable artificial intelligence models to obtain floor plan parsing data and lighting layout data according to actual needs; this disclosure does not impose specific limitations.

[0040] Terminal device 110 is also configured to render a structured floor plan based on floor plan parsing data, render a static layer of the house based on floor plan parsing data, and render a dynamic layer of lighting based on the static layer of the house based on lighting layout data, thereby achieving lighting effect rendering.

[0041] Figure 2 A flowchart is provided to illustrate a lighting effect rendering method 200 according to some embodiments of the present disclosure. This lighting effect rendering method 200 can be executed by a terminal device 110.

[0042] The lighting effect rendering method 200 may include step 202: obtaining the original floor plan and preprocessing the original floor plan. As an example, the format of the original floor plan may include image formats such as PNG and JPEG, and the file size of the original floor plan may be less than or equal to 10MB, but this disclosure is not limited thereto.

[0043] In some embodiments, preprocessing may include one or more of cropping redundant edges and resolution normalization to reduce data transmission volume and / or reduce data parsing pressure.

[0044] The cropping of redundant edges can be done automatically through image recognition technology or manually by the user; this disclosure does not impose any specific limitations.

[0045] Resolution normalization may include: pre-configuring multiple resolution specifications, matching one resolution specification from the pre-configured multiple resolution specifications according to the resolution of the original floor plan, and finally unifying the resolution of the original floor plan to that resolution specification. This disclosure exemplarily unifies the resolution of the original floor plan to 1920×1080, but those skilled in the art can configure any resolution specification according to actual needs. This disclosure does not exclude the possibility of using other resolution specifications in other embodiments.

[0046] The lighting effect rendering method 200 may include step 204: sending the preprocessed original floor plan to the server to obtain the floor plan parsing data and lighting layout data output by the server.

[0047] As an example, the preprocessed original floor plan can be fragmented and sent to the server in base64 encoded form. Each fragment can be set to 500KB to reduce memory pressure, improve transmission success rate, and avoid timeouts for large file transfers. Those skilled in the art can set any encoding format and fragment size according to actual needs; this disclosure is not limited thereto.

[0048] The lighting effect rendering method 200 may include step 206: rendering a structured floor plan based on the floor plan parsing data, and rendering a static layer of the house based on the floor plan parsing data.

[0049] As an example, floor plan parsing data can include room type, location coordinates, area, and other data. Rendering a structured floor plan based on this parsing data can involve: creating a first canvas using a Canvas and drawing the corresponding structured floor plan on that first canvas based on the parsing data. Furthermore, when drawing the structured floor plan, different styles (e.g., different colored borders) can be set for each room based on its room type to help distinguish between rooms, and room names (e.g., living room, bedroom, bathroom, etc.) and area data can be labeled. Additionally, rendering a static floor plan layer based on the parsing data can involve: creating a second canvas using a Canvas and using the Three.js framework to render the corresponding static floor plan layer on that second canvas based on the parsing data. The static floor plan layer can include static scenes such as walls, ceilings, and interior decorations. The static floor plan layer is cached after the first rendering and does not require repeated rendering.

[0050] The lighting effect rendering method 200 may include step 208: rendering a dynamic lighting layer based on the static building layer using lighting layout data. As an example, the dynamic lighting layer can be overlaid on the static building layer with a preset blending mode, ultimately compositing a rendered image with lighting effects, thus completing the lighting effect rendering. Since the dynamic lighting layer is independent of the static building layer, when modifying the lighting layout data, only the dynamic lighting layer needs to be adjusted without changing the static building layer, thereby reducing computational overhead and improving rendering efficiency and response speed.

[0051] As mentioned in the background, conventional AI-based lighting design systems generally suffer from slow response times, poor real-time rendering, and lag in human-computer interaction, severely impacting user experience. The main reasons for these problems include: 1. The front-end (terminal device) of conventional AI-based lighting design systems only obtains the original floor plan through human-computer interaction and sends it directly to the back-end (server). Because the original floor plans lack standardized formats and resolutions, uploading high-resolution original floor plans significantly increases the amount of data transmitted between the front-end and back-end, resulting in high data transmission latency. Furthermore, the original floor plans typically cannot be directly input into the back-end AI model, requiring the back-end to perform additional preprocessing work, further reducing the response speed of the output floor plan parsing data and lighting layout data. 2. When rendering lighting effects, the front-end typically performs a unified full-scale rendering of static scenes such as walls, ceilings, and soft furnishings along with the lighting effects. When the user adjusts the lighting layout data, a full-scale re-render of the entire scene is required. Due to the limitations of the terminal device's computing power, this re-rendering process is highly delayed, time-consuming, and prone to screen lag and poor interactive smoothness.

[0052] Based on this, this disclosure optimizes the front-end and back-end task division mechanism. After obtaining the original floor plan, the front-end preprocesses it before transmitting the preprocessed original floor plan to the back-end, effectively reducing the amount of data transmitted between the front-end and back-end and improving data transmission efficiency. Simultaneously, the preprocessed original floor plan can be directly input into the back-end's artificial intelligence model, reducing the computational burden on the back-end and improving its response speed. Furthermore, this disclosure also optimizes the front-end rendering architecture by dividing the rendering task into a static house layer and a dynamic lighting layer. When modifying the lighting layout data, only the dynamic lighting layer needs to be updated without performing a full-house rendering, significantly reducing computational overhead and improving rendering response speed, thereby enhancing the smoothness of human-computer interaction and the user experience.

[0053] In some embodiments, the lighting effect rendering method 200 may further include the steps of: pre-caching at least one lighting layout configuration template for the user to select, and the user switching the lighting layout configuration template is regarded as modifying the lighting layout data.

[0054] As an example, the lighting layout data corresponding to a lighting layout configuration template can be pre-configured by the lighting designer and stored in the local storage of the terminal device. When a user selects a lighting layout configuration template, the terminal device can directly retrieve the lighting layout data corresponding to that template from the local storage, without having to request the lighting layout data from the backend server, thus saving data transmission time and improving response speed.

[0055] In some embodiments, the lighting effect rendering method 200 may further include the step of: adjusting the lighting dynamic layer according to the modified lighting layout data in response to determining that the user has modified the lighting layout data.

[0056] As an example, adjusting the lighting dynamic layer based on the modified lighting layout data may include: clearing the original lighting dynamic layer and re-rendering a new lighting dynamic layer based on the modified lighting layout data, or adjusting some parameters on the basis of the original lighting dynamic layer to render a new lighting dynamic layer based on the modifications to the lighting layout data. The first implementation has lower code maintenance costs, and the second implementation has lower computational overhead. Those skilled in the art can choose the appropriate implementation method according to actual needs, and this disclosure does not impose specific limitations.

[0057] In some embodiments, the lighting effect rendering method 200 may further include the step of: calculating and displaying the quotation result based on the lighting layout data.

[0058] In some embodiments, the lighting effect rendering method 200 may further include the step of: in response to determining that the user has modified the lighting layout data, adjusting and displaying the quotation result according to the modified lighting layout data.

[0059] As an example, the system can list the names, models, and quantities of lighting fixtures based on the lighting layout data. Then, it can query a lighting fixture pricing database to obtain the prices, and finally calculate the sum of all fixture prices to arrive at a quote. When the user modifies the lighting layout data, the system can re-list the names, models, and quantities of the lighting fixtures based on the modified data to recalculate the quote, or adjust the models and quantities of some fixtures based on the changes to the lighting layout data to adjust the quote. Furthermore, a quote list can be generated along with the quote results. This quote list can include data such as fixture name, model, quantity, price, subtotal, and total quote to help users preview the pricing level of the lighting layout plan.

[0060] The lighting fixture price database can be pre-stored in the local memory of the terminal device or obtained by calling a database interface via a network. Considering the data transmission latency associated with calling the database interface via a network, this disclosure exemplarily pre-stores the lighting fixture price database in local memory to keep the response time for real-time updates of price results below 50ms, thereby meeting the user's need for efficient interaction and real-time feedback. However, this disclosure does not exclude the possibility of calling the database interface via a network in other embodiments.

[0061] In some embodiments, the lighting effect rendering method 200 may further include the step of: recommending a lighting layout configuration template based on the user's spending power, wherein the user's spending power is assessed based on the user's city, neighborhood and / or apartment size, and the apartment size is obtained based on the apartment layout parsing data.

[0062] In some embodiments, a method for assessing a user's spending power based on their city, neighborhood, and apartment size may include: obtaining the user's city and neighborhood; querying a city housing price database to obtain the city's average housing price; querying a neighborhood housing price database to obtain the neighborhood's regional housing price; parsing floor plan data to obtain the apartment size; and finally calculating the user's spending power score using the following formula: , In the formula This represents a user's spending power score. Indicates the housing prices in the neighborhood area. This represents the average housing price in the city. This indicates the floor area of ​​the apartment.

[0063] In some embodiments, the method for recommending lighting layout configuration templates based on user spending power may include: querying the average user spending power score for the current city based on the user's city. By comparing the current user spending power scores Compared with the average user spending power score in the current city Recommended lighting layout configuration templates based on differences.

[0064] As an example, the steps for recommending a lighting layout configuration template may include: (1) Response to user spending power score Lower than the average user spending power score in the current city First percentage threshold (Right now (The recommended lighting layout configuration template is the first level.)

[0065] (2) Response to user spending power score Average user spending power score in the current city First percentage threshold To the second percentage threshold Within the range (i.e.) (The second-tier lighting layout configuration template is recommended.)

[0066] (3) Response to user spending power score Greater than the average user spending power score in the current city The second percentage threshold (Right now (The third-level lighting layout configuration template is recommended.)

[0067] As an example, the first percentage threshold It can be set to 80%, the second percentage threshold. It can be set to 120%, but those skilled in the art can set any value for the first percentage threshold according to actual needs. Second percentage threshold This disclosure does not impose any specific limitations.

[0068] As an example, the tier of a lighting layout configuration template can be determined based on its price. For instance, the price of a second-tier lighting layout configuration template can be higher than that of a first-tier template, and the price of a third-tier template can be higher than that of a second-tier template. The tier of a lighting layout configuration template can be pre-configured by the lighting designer or determined by calculating the price of the lighting layout data corresponding to the template; this disclosure does not impose any specific limitations.

[0069] As an example, city housing price databases, neighborhood housing price databases, average user spending power score databases for various cities, and / or lighting fixture price databases can either be pre-stored in the local memory of the terminal device or obtained by calling the database interface via a network. Considering the data transmission delay inherent in calling the database interface via a network, this disclosure exemplarily pre-stores the aforementioned databases in local memory, but does not exclude the possibility of calling the database interface via a network in other embodiments.

[0070] In some embodiments, the lighting effect rendering method 200 may further include the step of: setting up a multi-level selection component for users to modify lighting layout data, wherein when displaying the options of the lower-level selection component, some options are selectively blocked according to the options of the upper-level selection component and preset compatibility rules.

[0071] As an example, a multi-level selection component can include three levels. The first-level selection component can be a ceiling selection component, which can include options such as "floating ceiling," "edge-mounted ceiling," and "no ceiling." The second-level selection component can be a lighting layout configuration template selection component, which can include options such as "single-sided magnetic track template," "double-sided magnetic track template," and "simplified spotlight template." The third-level selection component can be a lighting mode selection component, which can include options such as "full on mode," "reading mode," "audio-visual mode," and "sleep aid mode."

[0072] As an example, since the simple spotlights involved in the "simple spotlight template" lack installation depth in a suspended ceiling scenario, the incompatibility between "suspended ceiling" and "simple spotlight template" can be pre-configured in the compatibility rules. When displaying the options of the template selection component in the lighting layout configuration, by detecting the selected options of the parent selection component and the preset compatibility rules, the "simple spotlight template" option can be automatically disabled when "suspended ceiling" is selected in the ceiling selection component.

[0073] As an example, since the "single-sided magnetic track template" in the suspended ceiling scenario does not include the embedded night light required for the "sleep aid mode," the incompatibility between "suspended ceiling & single-sided magnetic track template" and "sleep aid mode" can be pre-configured in the compatibility rules. When displaying the options of the lighting mode selection component, by detecting the selected options of the parent selection component and the preset compatibility rules, the "sleep aid mode" option can be automatically disabled when both the ceiling selection component has "suspended ceiling" selected and the lighting layout configuration template selection component has "single-sided magnetic track template."

[0074] Those skilled in the art should understand that the options and compatibility rules of the above three-level selection components are only used to illustrate the principle of hierarchical linkage display in multi-level selection components, and do not constitute a limitation on the scope of protection of this disclosure.

[0075] In some embodiments, the lighting effect rendering method 200 may further include the step of setting up a floor plan editing component for a user to modify the floor plan parsing data. As an example, the floor plan editing component may include room name input boxes and / or room area input boxes for a user to modify the room name and / or room area. This floor plan editing component may be positioned near a first Canvas-based canvas used to display the structured floor plan.

[0076] In some embodiments, the lighting effect rendering method 200 may further include the step of: adjusting the structured floor plan according to the modified floor plan parsing data in response to determining that the user has modified the floor plan parsing data. As an example, when a user modifies the floor plan parsing data through the floor plan editing component, the parameters for drawing the structured floor plan can be adjusted in real time according to the modified floor plan parsing data, so that the modified content can be displayed on the first canvas immediately, thereby enabling the user to view the modification results in real time and improving the human-computer interaction experience.

[0077] In some embodiments, the lighting effect rendering method 200 may further include the step of: in response to determining that the user has modified either the floor plan parsing data or the lighting layout data, sending the modified content to the server for storage. When the user restarts the system next time, the terminal device can obtain the previously configured floor plan parsing data and lighting layout data from the server, thereby avoiding the need for the user to reconfigure the data every time the system is restarted, and thus improving the user experience.

[0078] As an example, a lower execution priority can be set for the "send modified content to the server" step, allowing it to be executed asynchronously during idle periods when the terminal device has no rendering or pricing tasks. This is because tasks such as rendering structured floor plans, rendering dynamic lighting layers, and pricing calculations have high latency requirements, and their update delays significantly impact the user experience. The "send modified content to the server" step, however, is only used for data storage and has lower real-time requirements. In scenarios where terminal device computing power is limited, lowering the execution priority of front-end and back-end data synchronization allows limited computing resources to be allocated more efficiently to critical real-time rendering and pricing calculation tasks, thereby improving rendering real-time performance and human-computer interaction response speed.

[0079] In some embodiments, the lighting effect rendering method 200 may further include the step of: performing coordinate mapping transformation on the floor plan parsing data and lighting layout data returned by the server.

[0080] The floor plan analysis data and lighting layout data output by the artificial intelligence model include multiple coordinate data (such as the coordinate data of walls, doors, windows, and light fixtures). This coordinate data is usually generated based on a virtual coordinate system or a normalized coordinate system, which is incompatible with the rendering coordinate system used by front-end rendering engines such as Three.js and Canvas, and cannot be used directly for rendering. Therefore, it is necessary to perform coordinate mapping transformation on the original floor plan analysis data and lighting layout data.

[0081] In conventional lighting effect rendering systems, this coordinate mapping transformation step is typically performed by the backend server, which reduces the response speed of the backend data return. This disclosure further optimizes the frontend and backend task division mechanism by delegating the aforementioned coordinate mapping transformation step to the frontend terminal device, which can effectively reduce the backend computing load and improve the backend response speed.

[0082] In some embodiments, the lighting effect rendering method 200 may further include the step of: in response to determining that the user has switched perspectives, rendering perspective switching animation effects based on the following easing function: , In the formula t Indicates normalized time. f ( t () indicates the progress of camera movement.

[0083] As an example, to facilitate users' previewing of lighting effects from multiple perspectives, various commonly used perspectives (such as close-up, human view, and wide-angle) and lens parameters (such as distance, angle, and field of view) can be preset for users to switch between. In conventional lighting effect rendering systems, users switching perspectives can easily cause sudden changes in lens position and violent shaking of the image content, resulting in poor visual performance and a subpar user experience.

[0084] This disclosure optimizes the camera movement speed during viewpoint switching using the aforementioned easing function, resulting in a smooth three-stage transition: "rapid start → uniform and stable speed → gentle finish," ensuring a stable and jitter-free motion. Furthermore, it employs normalized time to fix the total duration of the transition animation, avoiding viewpoint switching delays or stuttering caused by differences in terminal device performance. This disclosure can control the viewpoint switching transition time to within 500ms while ensuring a smooth and stable transition, significantly improving visual effects. In addition, the camera movement during viewpoint switching can be synchronized with the fade-in and fade-out animations during room transitions, achieving a seamless and fluid 3D interactive experience.

[0085] In some embodiments, the lighting effect rendering method 200 may further include the steps of: in response to determining that the user has modified the lighting brightness, generating a plurality of intermediate transition values ​​based on the initial value and the target value of the lighting brightness, and rendering a stepless adjustment animation effect of the lighting brightness in sequence based on the initial value of the lighting brightness, each intermediate transition value and the target value.

[0086] As an example, if a user adjusts the light brightness from 10% to 90%, the initial value of the light brightness for this adjustment is 10%, and the target value is 90%. If the interval step size between adjacent transition intermediate values ​​is set to 10%, then multiple transition intermediate values ​​generated based on the initial and target values ​​can include 20%, 30%, 40%, 50%, 60%, 70%, and 80%. Subsequently, according to a preset rendering cycle (e.g., 10ms), the corresponding light fixture brightness parameters in the light dynamic layer are adjusted sequentially to 20%, 30%, 40%, 50%, 60%, 70%, 80%, and 90%. Visually, the user can observe that the light brightness smoothly transitions from 10% to 90% through multiple frames of animation. The overall animation transition is smooth and natural, without any abrupt changes, resulting in a soft and comfortable visual experience.

[0087] The specific values ​​of the initial and target values ​​of light brightness, the interval step size of adjacent transition intermediate values, and the preset rendering cycle mentioned above are only used to illustrate the principle of rendering the stepless adjustment animation effect of light brightness, and do not constitute a limitation on the scope of protection of this disclosure. Users can adjust the light brightness from any initial value to any target value. Those skilled in the art can set any interval step size and any preset rendering cycle according to actual needs. Those skilled in the art can also specify the number of multiple transition intermediate values, and use the number of multiple transition intermediate values ​​to divide the difference between the target value and the initial value of the light brightness to calculate the interval step size of adjacent transition intermediate values. This disclosure does not impose specific limitations.

[0088] In some embodiments, the lighting effect rendering method 200 may further include the step of: setting a lighting brightness adjustment slider, a lighting brightness input box, and / or a voice input button for users to modify the lighting brightness. Users can modify the lighting brightness by dragging the slider, manually entering values, and / or voice inputting values ​​to suit the operating habits of different users.

[0089] In some embodiments, the lighting effect rendering method 200 may further include the steps of: in response to determining that the user has modified the lighting color temperature, generating a plurality of intermediate transition values ​​based on the initial value and the target value of the lighting color temperature, and rendering a stepless adjustment animation effect of the lighting color temperature in sequence based on the initial value of the lighting color temperature, each intermediate transition value and the target value.

[0090] As an example, if a user adjusts the light color temperature from 3000K (warm yellow light) to 6000K (cool white light), the initial value for this adjustment is 3000K, and the target value is 6000K. If the interval between adjacent intermediate values ​​is set to 500K, the multiple intermediate values ​​generated based on the initial and target values ​​can include 3500K, 4000K, 4500K, 5000K, and 5500K. Subsequently, according to a preset rendering cycle (e.g., 10ms), the corresponding light fixture color temperature parameters in the light dynamic layer are sequentially adjusted to 3500K, 4000K, 4500K, 5000K, 5500K, and 6000K. Visually, the user can observe that the light color temperature smoothly transitions from 3000K to 6000K after multiple frames of animation, with a soft and continuous overall tone transition without obvious jumps, and a natural and comfortable switch between warm and cool light.

[0091] The specific values ​​of the initial and target light color temperature, the interval step size between adjacent intermediate transition values, and the preset rendering cycle mentioned above are only used as examples to illustrate the principle of rendering an animation effect with stepless adjustment of light color temperature, and do not constitute a limitation on the scope of protection of this disclosure. Users can adjust the light color temperature from any initial value to any target value. Those skilled in the art can set any interval step size and any preset rendering cycle according to actual needs. Those skilled in the art can also specify the number of multiple intermediate transition values ​​and use the number of multiple intermediate transition values ​​divided by the difference between the target value and the initial value of the light color temperature to calculate the interval step size between adjacent intermediate transition values. This disclosure does not impose specific limitations.

[0092] In some embodiments, the lighting effect rendering method 200 may further include the step of: setting a light color temperature adjustment slider, a light color temperature input box, and / or a voice input button for users to modify the light color temperature. Users can modify the light color temperature by dragging the slider, manually entering values, and / or voice inputting values ​​to suit the operating habits of different users.

[0093] In some embodiments, the lighting effect rendering method 200 may further include the step of setting a drag response event to allow the user to adjust the position of the lighting fixtures. The user can drag the lighting fixtures in the structured floor plan and / or the rendered image to modify the coordinate data corresponding to the lighting fixtures.

[0094] In some embodiments, the drag response event may further include: calculating the distance between the current lamp and adjacent lamps in real time during the dragging process, and triggering an alert event when the distance is less than a preset distance threshold. The alert event may include any one or more of the following: lamp style color change (e.g., turning red), lamp flashing, warning information display, pointer style switching, pop-up floating warning window, and playing warning sound effects, but this disclosure is not limited thereto.

[0095] In some embodiments, the lighting effect rendering method 200 may further include the step of setting an export button to allow users to export structured floor plans, rendered images, and / or price lists. As an example, the rendered images at a set resolution, the structured floor plans, and the price lists in Excel format can be packaged into a ZIP file and exported by calling the JSZip library; alternatively, the structured floor plans, rendered images, and / or price lists can be exported separately in image and / or table formats to accommodate diverse user export needs. The above export process does not require backend server involvement, and its export time can be controlled within 2 seconds (total file size ≤ 50MB).

[0096] In some embodiments, when rendering the static layer of the house and / or the dynamic layer of lighting, only the local area associated with the currently viewed room can be rendered, and rendering of other areas unrelated to the currently viewed room can be paused. This further reduces computational overhead and improves the rendering efficiency and accuracy of the currently viewed room. For example, when the user is currently viewing the master bedroom, rendering tasks for other rooms such as the living room, kitchen, and bathroom can be paused, and more computational resources can be allocated to the rendering task of the master bedroom, thereby optimizing the rendering effect and improving the user experience.

[0097] Figure 3 This is a schematic diagram illustrating a scheme for parsing and visualizing floor plans according to some embodiments of the present disclosure. Figure 3 The solution shown includes four main modules: apartment type information extraction, 2D rendering, 3D rendering, and intelligent pricing.

[0098] The purpose of extracting apartment type information is to obtain floor plan analysis data. Figure 3 Two methods for obtaining floor plan parsing data are shown: (1) The first method includes: obtaining the original floor plan uploaded by the user, using an artificial intelligence model to identify the floor plan parsing data based on the original floor plan, then performing area verification on the floor plan parsing data output by the artificial intelligence model, and finally outputting the floor plan parsing data that has passed the area verification as the final result; (2) The second method includes: obtaining the apartment type selected by the user, and searching for the selected apartment type in the preset floor plan database. If the search is successful, the floor plan parsing data is obtained directly. The floor plan parsing data includes information such as walls, doors and windows, and soft furnishings. After obtaining the floor plan parsing data, the living room and dining room can also be intelligently segmented using image segmentation technology.

[0099] The purpose of 2D rendering is to render 2D structured floor plans. Figure 3 The steps of 2D rendering are shown, including generating a white model image of a structured floor plan based on parsed data from the floor plan. Figure 4This is a schematic diagram illustrating a white model image according to some embodiments of the present disclosure. The white model image presents static elements of a house, such as walls, doors, windows, and soft furnishings, from a 2D top-down perspective. Users can perform operations such as switching rooms, changing ceilings, and selecting lighting schemes through front-end controls. Based on the user's operations, the coordinate data of the lighting fixtures is calculated, and finally, adaptive lighting is performed to achieve 2D rendering of the structured floor plan. Figure 5 This is a schematic diagram illustrating a structured floor plan with adaptive lighting according to some embodiments of the present disclosure. Figure 5 exist Figure 4 The placement of the lighting fixtures is further shown based on the white model image.

[0100] The purpose of 3D rendering is to render a 3D rendering effect image that is composed of a static layer of a house and a dynamic layer of lighting. Figure 3 The steps of 3D rendering are shown as follows: saving the design scheme information related to the 3D rendering task finalized in the upstream design stage (such as floor plan analysis data and lighting layout data), then submitting the solidified 3D scene project for rendering, while starting a polling request to continuously query the rendering task progress, thereby generating 3D rendering effect diagrams, and finally packaging and exporting the complete set of design results for delivery. Figure 6 This is a schematic diagram illustrating a rendered image according to some embodiments of the present disclosure. The rendered image overlays dynamic lighting effects onto static walls, doors, windows, and interior decorations.

[0101] The purpose of intelligent pricing is to calculate and display pricing results and recommend lighting packages with appropriate pricing levels based on the user's spending power. Figure 3 The steps of intelligent pricing are illustrated as follows: First, web crawling technology is used to search for housing price data of all neighborhoods in the city to form city-wide housing price data. Then, housing price data of specific neighborhoods is searched to form a neighborhood housing price database. Finally, multi-dimensional data, including the city's consumer price index, average neighborhood housing price, apartment size, and apartment layout complexity, are used to assess the user's spending power. Based on the user's spending power, a suitable lighting package with a reasonable price range is recommended, thus completing the entire closed-loop process of intelligent lighting design.

[0102] Figure 7 This is a schematic diagram illustrating a human-computer interaction interface according to some embodiments of the present disclosure. As an example, Figure 7 The human-computer interaction interface includes human-computer interaction components such as the apartment area input box, wall height input box, apartment map upload button, suite search button, soft furnishing template tab, ceiling selection menu, lighting layout configuration template selection menu, room tab, rendering effect display window, lighting layout data modification component, rendering start button, etc., but this disclosure is not limited to these.

[0103] Figure 8A block diagram of a computer-readable storage medium 800 according to some embodiments of the present disclosure is provided. Based on the same inventive concept, the present disclosure also provides a computer-readable storage medium 800. This computer-readable storage medium 800 stores a computer program 810. When executed by a processor, the computer program 810 implements the method 200 of the present disclosure.

[0104] Figure 9 A block diagram of a computer program product 900 according to some embodiments of the present disclosure is provided. Based on the same inventive concept, the present disclosure also provides a computer program product 900. The computer program product 900 stores a computer program 910. When executed by a processor, the computer program 910 implements the method 200 of the present disclosure.

[0105] This application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information may be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to: phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0106] This disclosure optimizes the front-end and back-end task division mechanism. After obtaining the original floor plan, the front-end terminal device preprocesses it before transmitting the preprocessed original floor plan to the back-end, effectively reducing the amount of data transmitted between the front-end and back-end and improving data transmission efficiency. Simultaneously, the preprocessed original floor plan can be directly input into the back-end artificial intelligence model, significantly reducing the computational pressure on the back-end and improving its response speed. This disclosure also optimizes the front-end rendering architecture by dividing the rendering task into a static layer and a dynamic layer. When a user modifies the lighting layout data, only the dynamic lighting layer needs to be updated without performing a full-house rendering, significantly reducing computational overhead and improving rendering response speed, thereby enhancing the smoothness of human-computer interaction and the user experience.

[0107] While this disclosure has been described with reference to certain embodiments, those skilled in the art will understand that various changes and substitutions can be made without departing from the scope of this disclosure. Furthermore, many modifications can be made to adapt particular situations or materials to the teachings of this disclosure without departing from the scope of this disclosure. Therefore, this disclosure is not intended to be limited to the specific embodiments disclosed, but rather to include all embodiments falling within the scope of the appended claims.

Claims

1. A method for rendering lighting effects, comprising the following steps: Obtain the original floor plan and preprocess it. The preprocessed original floor plan is sent to the server to obtain the floor plan parsing data and lighting layout data output by the server; Render a structured floor plan based on the floor plan parsing data, and render the static floor plan of the house based on the floor plan parsing data; Based on the lighting layout data, a dynamic lighting layer is rendered on top of the static layer of the building.

2. The method according to claim 1, characterized in that, It also includes the following steps: At least one lighting layout configuration template is pre-cached for users to choose from, and switching the lighting layout configuration template is regarded as modifying the lighting layout data.

3. The method according to claim 2, characterized in that, It also includes the following steps: The lighting layout configuration template is recommended based on the user's spending power, wherein the user's spending power is assessed based on the user's city, neighborhood, and / or apartment size, and the apartment size is obtained based on the floor plan parsing data.

4. The method according to claim 1, characterized in that, It also includes the following steps: A multi-level selection component is set up to allow users to modify the lighting layout data. When displaying the options of the lower-level selection component, some options are selectively hidden based on the options already selected by the upper-level selection component and preset compatibility rules.

5. The method according to claim 1, characterized in that, It also includes the following steps: In response to determining that the user has modified the lighting layout data, the lighting dynamic layer is adjusted according to the modified lighting layout data.

6. The method according to claim 1, characterized in that, It also includes the following steps: The quotation results are calculated and displayed based on the lighting layout data.

7. The method according to claim 6, characterized in that, It also includes the following steps: In response to determining that the user has modified the lighting layout data, the quotation result is adjusted and displayed according to the modified lighting layout data.

8. The method according to claim 1, characterized in that, It also includes the following steps: In response to determining that a user has modified the floor plan parsing data, the structured floor plan is adjusted according to the modified floor plan parsing data.

9. The method according to claim 1, characterized in that, It also includes the following steps: In response to determining that a user has modified either the floor plan parsing data or the lighting layout data, the modified content is sent to the server for storage.

10. The method according to claim 1, characterized in that, The preprocessing includes any one or more of the following: cropping redundant edges and resolution normalization.

11. The method according to claim 1, characterized in that, It also includes the following steps: The floor plan parsing data and lighting layout data returned by the server are subjected to coordinate mapping transformation.

12. The method according to claim 1, characterized in that, It also includes the following steps: In response to determining that the user has switched perspectives, render the perspective switching animation effect based on the following easing function: , In the formula t Indicates normalized time. f ( t () indicates the progress of camera movement.

13. A lighting effects rendering system, comprising a terminal device and a server, characterized in that, The terminal device is configured to perform the method described in any one of claims 1 to 12, and the server is configured to output floor plan parsing data and lighting layout data based on the original floor plan.