A method and system for rendering a scene cut

CN117201870BActive Publication Date: 2026-09-25HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311198187.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-15
Publication Date
2026-09-25
Estimated Expiration
2043-09-15

AI Technical Summary

Technical Problem

然而,传统的静态家居效果图以及家居视频通常无法展现智能家居设备的联动变化

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117201870B_ABST
    Figure CN117201870B_ABST
Patent Text Reader

Abstract

The embodiment of the specification provides a rendering picture scene switching method, which comprises the following steps: acquiring a first color parameter of a target object in a first scene mode and a second color parameter of the target object in a second scene mode; generating a scene light animation and a target object animation when a target scene switches from the first scene mode to the second scene mode, wherein the scene light animation reflects light changes of the target scene when the scene mode switches, and the target object animation reflects changes of the target object itself when the scene mode switches; performing color processing on the target object animation based on the first color parameter and the second color parameter to obtain a processed target object animation; and generating a scene switching animation based on the scene light animation and the processed target object animation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This manual relates to the field of image processing, and in particular to a method and system for switching rendering scenes. Background Technology

[0002] When smart home scene modes switch, the scene lighting changes, and the status of smart home devices may also change (such as curtains opening or closing, robot vacuums moving, and televisions turning on or off). These changes in device status may also trigger corresponding changes in ambient light. Traditional home design can showcase smart home scenarios to users through static renderings and videos. However, traditional static renderings and videos typically cannot demonstrate the synchronized changes in smart home devices. While popular virtual reality (VR) devices offer a degree of user interactivity and operational freedom, they require VR functionality from the terminal device and lack widespread applicability.

[0003] Therefore, it is desirable to provide a rendering scene switching method and system that can show the linkage changes of smart home devices, and has low requirements for terminal devices. Summary of the Invention

[0004] One embodiment of this specification provides a rendering scene switching method, the method comprising: obtaining a first color parameter of a target object in a first scene mode and a second color parameter of a target object in a second scene mode; generating scene lighting animation and target object animation when the target scene switches from the first scene mode to the second scene mode, wherein the scene lighting animation reflects the lighting changes of the target scene when the scene mode switches, and the target object animation reflects the changes of the target object itself when the scene mode switches; performing color processing on the target object animation based on the first color parameter and the second color parameter to obtain a processed target object animation; and generating a scene switching animation based on the scene lighting animation and the processed target object animation.

[0005] In some embodiments, the scene lighting animation is generated by: obtaining a first lighting configuration parameter of the first scene mode and a second lighting configuration parameter of the second scene mode; obtaining the change characteristics of the lighting configuration when switching from the first scene mode to the second scene mode; and generating the scene lighting animation based on the first lighting configuration parameter, the second lighting configuration parameter and the change characteristics.

[0006] In some embodiments, the target object animation is generated by: determining multiple base layers corresponding to multiple states of the target object during the switching process from the first scene mode to the second scene mode; obtaining layer weight change curves, the layer weight change curves reflecting the weight changes of the multiple base layers when switching from the first scene mode to the second scene mode; and generating the target object animation based on the multiple base layers and the layer weight change curves.

[0007] In some embodiments, for each of the first scene mode and the second scene mode, the corresponding color parameters are determined by: determining multiple sampling points of the target object in the scene mode; determining the base color of the multiple sampling points based on the light base layer; determining the target color of the multiple sampling points in the scene mode based on the light configuration parameters of the scene mode and the light base layer; and determining the color and brightness of the target object in the scene mode based on the base color and the target color of the multiple sampling points.

[0008] In some embodiments, determining multiple sampling points of the target object in the scenario mode includes: determining the state of the target object in the scenario mode; obtaining a channel map of the target object based on the state; and sampling the coverage area of ​​the target object based on the channel map to determine the multiple sampling points.

[0009] In some embodiments, the step of color processing the target object animation based on the first color parameter and the second color parameter to obtain a processed target object animation includes: for each frame of the target object animation, determining a third color parameter of the target object in the frame based on the change characteristics of the lighting configuration when switching from the first scene mode to the second scene mode, the first color parameter, and the second color parameter; performing color processing on the frame based on the third color parameter to obtain a processed frame; and generating the processed target object animation based on the processed frame corresponding to each frame of the target object animation.

[0010] In some embodiments, changes in the target object itself during scene mode switching cause changes in the exterior scenery. The step of generating a scene switching animation based on the scene lighting animation and the processed target object animation further includes: generating an exterior scene animation when switching from a first scene mode to a second scene mode; and generating the scene switching animation based on the scene lighting animation, the processed target object animation, and the exterior scene animation.

[0011] In some embodiments, the target scene is a smart home scene, and the target object is a curtain.

[0012] One embodiment of this specification provides a rendering scene switching system, the system comprising: a first generation module, configured to generate scene lighting animation and target object animation when a target scene switches from a first scene mode to a second scene mode, wherein the scene lighting animation reflects the lighting changes of the target scene during the scene mode switch, and the target object animation reflects the changes of the target object itself during the scene mode switch; an acquisition module, configured to acquire a first color parameter of the target object in the first scene mode and a second color parameter of the target object in the second scene mode; a processing module, configured to perform color processing on the target object animation based on the first color parameter and the second color parameter to obtain a processed target object animation; and a second generation module, configured to generate a scene switching animation based on the scene lighting animation and the processed target object animation.

[0013] One embodiment of this specification provides a computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the rendering scene switching method. Attached Figure Description

[0014] This specification will be further described by way of exemplary embodiments, which will be described in detail with reference to the accompanying drawings. These embodiments are not limiting; in these embodiments, the same reference numerals denote the same structures, wherein:

[0015] Figure 1 This is a schematic diagram illustrating the application scenario of the rendering scene switching method system according to some embodiments of this specification;

[0016] Figure 2 This is a block diagram of a rendering scene switching system according to some embodiments of this specification;

[0017] Figure 3 This is an exemplary flowchart of a rendering scene switching method according to some embodiments of this specification;

[0018] Figure 4 This is an exemplary flowchart illustrating the generation of scene lighting animation according to some embodiments of this specification;

[0019] Figure 5 These are schematic diagrams illustrating the generation of scene lighting animations according to some embodiments of this specification;

[0020] Figure 6 This is an exemplary flowchart illustrating the generation of target object animation according to some embodiments of this specification;

[0021] Figure 7 It is a graph of the layer weight change curves shown in some embodiments of this specification;

[0022] Figure 8 This is an exemplary flowchart illustrating the determination of color parameters corresponding to each scene mode according to some embodiments of this specification;

[0023] Figure 9 This is a schematic diagram of the generated target object animation according to some embodiments of this specification. Detailed Implementation

[0024] To more clearly illustrate the technical solutions of the embodiments in this specification, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are merely some examples or embodiments of this specification. For those skilled in the art, these drawings can be applied to other similar scenarios without creative effort. Unless obvious from the context or otherwise specified, the same reference numerals in the drawings represent the same structures or operations.

[0025] It should be understood that the terms “system,” “device,” “unit,” and / or “module” used herein are one way to distinguish different components, elements, parts, sections, or assemblies at different levels. However, if other terms can achieve the same purpose, they may be replaced by other expressions.

[0026] As indicated in this specification and claims, unless the context clearly indicates otherwise, the words "a," "an," "an," and / or "the" do not specifically refer to the singular and may also include the plural. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of expressly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.

[0027] Flowcharts are used in this specification to illustrate the operations performed by the system according to embodiments of this specification. It should be understood that the preceding or following operations are not necessarily performed in exact order. Instead, the steps can be processed in reverse order or simultaneously. Furthermore, other operations can be added to these processes, or one or more steps can be removed from them.

[0028] Traditional home design can showcase smart home scenarios to users through static renderings and videos. However, multiple static renderings are needed to demonstrate the status changes of smart home devices, lighting synchronization, and feedback to user input. Multiple static renderings consume significant memory space and require individual drawing, resulting in high rendering and design costs. Furthermore, home videos lack real-time feedback based on user input and thus lack user interaction. While currently popular virtual reality devices offer some user interactivity and operational freedom, they require specific VR functionality from the terminal device and lack widespread applicability.

[0029] Therefore, this application provides a rendering scene switching method that generates corresponding scene switching animations by considering changes in scene lighting and changes in the state of target objects, serving as a dynamic expression of home decoration design for smart home scenes. The scene switching animations are applicable to various terminal devices, have a wide range of applications, and can achieve user interaction.

[0030] Figure 1 This is a schematic diagram illustrating the application scenario of the rendering scene switching method system according to some embodiments of this specification.

[0031] The rendering scene switching system 100 can be simply referred to as System 100. For example... Figure 1 As shown, in some embodiments, system 100 may include target scene 110, processing device 120 and user terminal 130.

[0032] The target scene 110 can be an environment from which a corresponding image representation needs to be generated. For example, the target scene 110 can be an indoor environment (such as a smart home environment). In some embodiments, the target scene 110 may include at least one scene light and a target object. Exemplary scene light may include natural light sources such as sunlight and artificial light sources such as lamps. Exemplary target objects may include curtains, vacuum cleaners, robot vacuums, televisions, smart door locks, etc. In some embodiments, the target scene 110 can switch from a first scene mode to a second scene mode. When the target scene 110 switches scenes, the state of the scene light and / or the target object may change. For a detailed description of the first scene mode and the second scene mode, see [link to documentation]. Figure 3 And its related descriptions.

[0033] Processing device 120 can process data and / or information obtained from external devices and / or other components of the system, and execute the rendering scene switching method shown in some embodiments of this specification based on this data and / or information to perform one or more functions described in some embodiments of this specification. In some embodiments, processing device 120 can obtain rendering images related to target scene 110 (e.g., base layers of lighting and / or target objects in target scene 110) from one or more data sources. Exemplary data sources may include storage devices, networks, user terminal 130, servers, etc. In some embodiments, processing device 120 can generate scene switching animations when target scene 110 switches from a first scene mode to a second scene mode, which can reflect the coordinated changes in ambient lighting and target objects in target scene 110 during scene mode switching. In some embodiments, processing device 120 can be a processor of user terminal 130, that is, processing device 120 can be part of user terminal 130. In some embodiments, processing device 120 can upload the generated scene switching animations to user terminal 130.

[0034] In some embodiments, the processing device 120 may include one or more sub-processing devices (e.g., a single-core processing device or a multi-core multi-chip processing device), which may be used to implement the rendering scene switching method shown in some embodiments of this specification. By way of example only, the processing device 120 may include a central processing unit (CPU), a graphics processing unit (GPU), or any combination thereof.

[0035] User terminal 130 can interact with the user, who can perform specified operations through it, such as inputting scene mode switching requirements and setting relevant parameters for scene modes. In some embodiments, user terminal 130 can receive scene switching animations sent by processing device 120 and display them to the user. In some embodiments, user terminal 130 may include web-based image decoders, image processors, and other components, through which user terminal 130 can process rendered images, such as decoding and generating texture resources. In some embodiments, user terminal 130 may be one or any combination of devices with input and / or output functions, such as mobile device 130-1, tablet computer 130-2, laptop computer 130-3, and desktop computer 130-4.

[0036] It should be noted that the above description is provided for illustrative purposes only and is not intended to limit the scope of this specification. Various changes and modifications can be made by those skilled in the art based on the content of this specification. Features, structures, methods, and other features of the exemplary embodiments described herein can be combined in various ways to obtain other and / or alternative exemplary embodiments. For example, system 100 may also include a storage device for storing data and / or information involved in the processing of processing device 120 and / or user terminal 130, such as scene lighting animation, target object animation, first color parameters, second color parameters, scene switching animation, etc. As another example, system 100 may also include a network for connecting the various components of the system and / or connecting the system with external resources, enabling communication between the components and with other parts outside the system to facilitate the exchange of data and / or information. Yet another example, system 100 may also include a server. The server can be used to generate base layers corresponding to target objects, scenes, exterior views, etc. The server can also be used to determine the color parameters of target objects when switching to different scene modes. It should be noted that the above changes and modifications do not depart from the scope of this specification.

[0037] Figure 2 This is a block diagram of a rendering scene switching system according to some embodiments of this specification.

[0038] In some embodiments, the rendering scene switching system 200 (hereinafter referred to as system 200) may include a first generation module 210, an acquisition module 220, a processing module 230, and a second generation module 240. Figure 2 The module shown can be implemented by processing device 120.

[0039] The first generation module 210 can be used to generate scene lighting animation and target object animation when the target scene switches from the first scene mode to the second scene mode. The scene lighting animation reflects the changes in the lighting of the target scene when the scene mode is switched, and the target object animation reflects the changes in the target object itself when the scene mode is switched.

[0040] The acquisition module 220 can be used to acquire the first color parameter of the target object in the first scene mode and the second color parameter in the second scene mode.

[0041] The processing module 230 can be used to perform color processing on the target object animation based on the first color parameter and the second color parameter to obtain the processed target object animation.

[0042] The second generation module 240 can be used to generate scene switching animations based on the scene lighting animation and the processed target object animation.

[0043] It should be noted that the above description of the rendering scene switching system 200 and its modules is for convenience only and should not be construed as limiting this specification to the scope of the illustrated embodiments. It is understood that those skilled in the art, after understanding the principles of this system, may arbitrarily combine the various modules or construct subsystems connected to other modules without departing from these principles. In some embodiments, Figure 2 The first generation module 210, acquisition module 220, processing module 230, and second generation module 240 disclosed herein can be different modules within a single system, or a single module can implement the functions of two or more of the aforementioned modules. For example, the modules can share a single storage module, or each module can have its own separate storage module. Such variations are all within the scope of protection of this specification.

[0044] Figure 3 This is an exemplary flowchart of a rendering scene switching method according to some embodiments of this specification. Figure 3 As shown, process 300 includes the following steps. In some embodiments, process 300 may be executed by system 200.

[0045] Step 310: Obtain the first color parameter of the target object in the first scene mode and the second color parameter in the second scene mode. In some embodiments, step 310 can be implemented by the acquisition module 220 of system 200.

[0046] The target object can be an object that needs to be rendered in the image, and its state changes when the scene mode is switched. For example, the target object may include curtains, a vacuum cleaner, a robot vacuum cleaner, a television, a smart door lock, etc. In some embodiments, the target object may have at least one parameter. For example, curtains may have on / off state parameters (such as open, half-open, closed) and location parameters (such as living room, balcony, etc.); a television may include on / off state parameters (such as open, closed) and playback content parameters (such as channel, specific program, etc.), brightness parameters, etc.; a robot vacuum cleaner may include on / off state parameters and motion parameters (such as motion trajectory, starting point, destination, etc.). In some embodiments, the target object may be specified and determined by the user or the system.

[0047] In the subsequent embodiments of this specification, curtains are used as an exemplary target object for illustration. When the target scene changes, the state of the curtains will change, the color and brightness of the curtains will change with the changes in home lighting, and the change in the state of the curtains will cause changes in the external view (i.e., ambient light).

[0048] A scene mode can be a collection of various device states in a target scene. For example, scene modes may include daytime mode, nighttime mode, movie-watching scene mode, home scene mode, and outing scene mode. In some embodiments, when switching to a certain scene mode, the lighting configuration parameters, change characteristics, and parameters of the target objects in the target scene will present preset values ​​for that scene mode. For example, when switching to the home scene mode, the scene's lighting configuration parameters may include 100% brightness and 5000k; change characteristics may include a 500ms delay and a 1s gradual change; and the curtain parameters may include a 0s delay and a 5s gradual closing.

[0049] In some embodiments, the scene mode may include a first scene mode and a second scene mode. The first scene mode and the second scene mode are different. When the target scene switches from the first scene mode to the second scene mode, the lighting configuration parameters and the parameters of the target objects in the target scene can be switched from preset values ​​in the first scene mode to preset values ​​in the second scene mode. For example, when the target scene switches from a movie-watching scene mode to a homecoming scene mode, the lighting configuration parameters can switch from 80% brightness and 3000k to 100% brightness and 5000k; the change characteristic can be a 500ms delay followed by a 1s gradient; the curtain parameters can switch from 80% closed to completely closed, and the change characteristic can be a 0s delay followed by a 5s gradient. Further descriptions of the change characteristics can be found elsewhere in this specification, such as... Figure 4 And its related descriptions.

[0050] Color parameters can be feature parameters related to the color of the target object. For example, color parameters may include parameters such as the color and brightness of the target object. The color parameters of the target object may differ in different scenario modes. In some embodiments, color parameters may include a first color parameter and a second color parameter. The first color parameter may be the color parameter of the target object in a first scenario mode. The second color parameter may be the color parameter of the target object in a second scenario mode. In some embodiments, the color parameter of the target object in a specific scenario mode may be determined by a server, and the processing device of the user terminal may obtain the color parameter from the server. For a detailed explanation of color parameter determination, see [link to documentation]. Figure 8 And its related descriptions.

[0051] Step 320: Generate scene lighting animation and target object animation when the target scene switches from the first scene mode to the second scene mode. In some embodiments, step 320 can be implemented by the first generation module 210 of system 200.

[0052] The target scene can be the environment in which a corresponding image representation needs to be generated. For a detailed explanation of the target scene, see [link to relevant documentation]. Figure 1And related descriptions. In some embodiments, the target scenario can be a smart home scenario. For example, the target scenario can be an indoor environment containing one or more smart home devices. For example, the target scenario can be a room containing smart home devices such as curtains, robot vacuum cleaners, televisions, and smart door locks. The aforementioned smart home devices can be interconnected via a network or managed uniformly through at least one smart home management platform. It should be understood that the target scenario can also include one or more non-smart home devices, such as ordinary home appliances such as sofas, dining tables, and cabinets.

[0053] Scene lighting animation can reflect changes in lighting in a target scene during scene mode transitions. For example, scene lighting animation can be an animation of the lighting changes during a transition from a movie-watching scene mode to a homecoming scene mode. In some embodiments, scene lighting animation can be determined by adjusting at least one parameter of at least a portion of the rendered image. For detailed instructions on scene lighting animation generation, see [link to documentation]. Figure 4 And its related descriptions.

[0054] Object animation can reflect changes in the object itself during scene mode transitions. These changes include changes in position, shape, and color caused by the object's movement, as well as the effect of its motion on ambient light. For example, object animation could be the animation of curtains closing during a scene mode transition from a movie-watching mode to a home-coming mode. In some embodiments, object animation can be determined by overlaying multiple layers. For detailed instructions on object animation generation, see [link to documentation]. Figure 6 And its related descriptions.

[0055] In some embodiments, steps 310 and 320 may be interchanged or performed simultaneously, and this specification does not limit this.

[0056] Step 330: Perform color processing on the target object animation based on the first color parameter and the second color parameter to obtain the processed target object animation. In some embodiments, step 330 can be implemented by the processing module 230 of the system 200.

[0057] The processed target object animation can display changes in parameters such as color and motion state of the target object during scene mode switching. Unlike the target object animation in step 310, the processed target object animation not only displays changes caused by the target object's own movement during scene switching, but also changes caused by changes in the surrounding environment (such as scene lighting). In some embodiments, the processed target object animation can be obtained by the system 200 performing color processing on at least one frame of the target object animation. For detailed instructions on processing the target object animation, see [link to documentation]. Figure 9 And its related descriptions.

[0058] Step 340: Generate a scene transition animation based on the scene lighting animation and the processed target object animation. In some embodiments, step 310 can be implemented by the second generation module 240 of the system 200.

[0059] Scene transition animation can be an animation that shows the overall visual changes of a target scene during a scene mode transition. For example, scene transition animation can take into account factors such as changes in lighting, movement of target objects, and changes in the exterior scenery during scene mode transitions.

[0060] In some embodiments, the processing device 120 can generate an exterior animation when switching from a first scene mode to a second scene mode; and generate a scene switching animation based on scene lighting animation, processed target object animation, and exterior animation.

[0061] Exterior animation can be an animation showing the changing external scene in different scene modes. For example, exterior animation could show the changes in size and content of the exterior scene in the rendered image as the curtains open and close, during the transition from a movie-watching scene mode to a home-coming scene mode. Exterior animation can be composed of multiple exterior scene layers arranged sequentially. In some embodiments, the exterior scene can be considered a target object; that is, exterior animation can be understood as an animation of a target object. For specific instructions on determining exterior animation, see [link to documentation]. Figure 6 And its related descriptions.

[0062] In some embodiments, scene transition animation can be obtained by overlaying scene lighting animation, processed target object animation, and exterior scene animation. The overlaying of animations can be achieved by color mixing, channel mixing, layer mixing, etc., of multiple animations. In some embodiments, the processing device 120 can overlay two layers, scene lighting animation and exterior scene animation, to obtain a first overlay animation. The first overlay animation can reflect the switching process of scene lighting and exterior scene in different scene modes. In some embodiments, the processing device 120 can overlay the first overlay animation with the processed target object animation to obtain the final scene transition animation.

[0063] In some embodiments, the processing device 120 can generate a target object channel map corresponding to each frame during scene mode switching, based on the target object animations corresponding to the first scene mode and the second scene mode. The target object channel map can be a binary image reflecting the target object. In some embodiments, for each frame in the first overlay animation, the processing device 120 can determine the curtain area based on the target object channel map corresponding to that frame, and replace the curtain area with the corresponding frame in the processed target object animation. For example, the processing device 120 can use the area of ​​the white part in the target object channel map corresponding to each frame of the first overlay animation as the curtain area, crop the curtain area, and replace the curtain area with the corresponding frame in the processed target object animation. For a detailed explanation of the target object channel map, see [link to relevant documentation]. Figure 8 And its related descriptions.

[0064] In some embodiments, process 300 may further include post-processing steps. For example, processing device 120 may perform white balance, automatic exposure, tone mapping, and other operations on the final scene transition animation. As another example, processing device 120 may map a High Dynamic Range (HDR) image to a Low Dynamic Range (LDR) image and output it to the screen of user terminal 130. Yet another example is that processing device 120 may generate an H5 (HTML5) page obtained through this method and output it to the screen of user terminal 130. It is understood that the above description of post-processing is illustrative only and is not intended to limit process 300. Process 300 may also include other post-processing steps, and process 300 formed through other post-processing steps should all fall within the scope of this specification.

[0065] The scene switching method for rendering provided in some embodiments of this specification can take into account changes in lighting, movement of objects, and changes in the exterior scenery in the target scene, and obtain a more realistic scene switching animation. In addition, the whole method can avoid the huge cost of direct rendering, and the generated scene switching animation has small error and can achieve the animation quality of direct rendering at the image level.

[0066] Figure 4 This is an exemplary flowchart illustrating the generation of scene lighting animation according to some embodiments of this specification. Figure 4 As shown, process 400 includes the following steps. In some embodiments, process 400 may be executed by system 200.

[0067] Step 410: Obtain the first lighting configuration parameters for the first scene mode and the second lighting configuration parameters for the second scene mode.

[0068] Lighting configuration parameters can be the parameter values ​​of scene lights during use. For example, lighting configuration parameters may include parameters such as the color temperature, brightness, power, luminous flux, and whether a particular light is on or off. In some embodiments, the lighting configuration parameters may differ for different scene modes. For example, a first scene mode may use first lighting configuration parameters; a second scene mode may use second lighting configuration parameters. For example, such as... Figure 5 As shown, the first lighting configuration parameters for lamp A can be a color temperature of 3000K and a brightness of 20%; the second lighting configuration parameters for lamp A can be a color temperature of 3000K and a brightness of 0%; the first lighting configuration parameters for lamp B can be a color temperature of 5500K and a brightness of 0%; the second lighting configuration parameters for lamp B can be a color temperature of 7000K and a brightness of 80%; the first lighting configuration parameters for lamp C can be a color temperature of 3000K and a brightness of 0%; the second lighting configuration parameters for lamp C can be a color temperature of 5500K and a brightness of 100%.

[0069] In some embodiments, light configuration parameters can be parameters for one or more lights. For example, for all lights in a target scene, multiple lights with the same logical behavior (such as simultaneous on / off, the same color temperature and brightness) can be grouped together, and lights in the same group can use the same light configuration parameters. Grouping one or more lights as described above simplifies calculations. That is, Figure 5 In this specification, lights A, B, and C can also refer to light groups A, B, and C. It should be understood that elsewhere in this specification, a description of a single light can also be interpreted as a description of a group of lights. In some embodiments, the light configuration parameters can be user-defined or automatically determined by the system. For example, users (such as interior designers) can preset light configuration parameters corresponding to different scenario modes based on their usage needs.

[0070] Step 420: Obtain the changes in lighting configuration when switching from the first scene mode to the second scene mode.

[0071] Change characteristics can be parameters involved in the transition process during scene mode switching. For example, change characteristics may include parameters such as delay time and fade time. The delay time can be the duration of the delay in issuing the light configuration parameter adjustment command; the fade time can be the duration required to complete the light configuration parameter adjustment after receiving the command. For example, ... Figure 5As shown, the change characteristics of light A can be a delay time of 0ms and a transition time of 500ms; the change characteristics of light B can be a delay time of 200ms and a transition time of 300ms; and the change characteristics of light C can be a transition time of 300ms. Taking light B as an example, when switching scene modes, the first lighting configuration parameter of light B will start to adjust after 200ms and gradually adjust to the second lighting configuration parameter over 300ms. In some embodiments, the change characteristics can be set by the user or automatically determined by the system. For example, users (such as home decoration designers) can preset the change characteristics corresponding to different scene mode switching based on their usage needs.

[0072] In some embodiments, the first light configuration parameters, the second light configuration parameters, and the change characteristics can be represented by functions. As an example only, taking color temperature as an example, when the first light configuration parameter is 3000K, the second light configuration parameter is 6000K, the delay time is 200ms, and the fading time is 500ms, the time-color temperature function can be represented by the following formula (1): Where C is the color temperature at time t (in K), and t is time (in ms). It should be noted that the relationship between color temperature C and time t can be other than a linear function, such as an exponential or logarithmic relationship; this specification does not impose any limitations on this. In some embodiments, the time-color temperature function can also be converted into a time-color function. In some embodiments, the first light configuration parameters, the second light configuration parameters, and the variation characteristics can also be represented by other functions.

[0073] Step 430: Generate scene lighting animation based on the first lighting configuration parameters, the second lighting configuration parameters, and the change characteristics.

[0074] In some embodiments, the server can split the rendering images of the first scene mode and the second scene mode into at least two layers. For example, the server can split the above rendering images into an ambient light layer, a self-illuminating layer, and a luminaire IES layer (a standard file format defined by the Illuminating Engineering Society of North America). In some embodiments, the processing device 120 can determine the time interval for inserting intermediate frame rendering images based on the change characteristics. For example, assuming the scene mode switching duration is 500ms and the time interval can be a preset 200ms, the fading process includes a total of three frames: the first frame, the second frame, and the third frame (e.g., ...). Figure 5 (As shown on the time axis in the image).

[0075] In some embodiments, the rendering image of the intermediate frame can be obtained by overlaying all layers corresponding to each frame. For example, the processing device 120 can overlay all ambient light layers, self-illumination layers, lamp ies layers, etc., at the time point corresponding to the first frame to obtain the rendering image of the intermediate frame at that time point. Specifically, as... Figure 5 As shown, the target scene includes lights A, B, and C. The processing device 120 can overlay all layers of lights A, B, and C in the first frame; similarly, it overlays all layers in the second frame; and then overlays all layers in the third frame, thus obtaining a rendering image for each intermediate frame. The layer corresponding to each light in each frame can be determined based on the light's first lighting configuration parameters, second configuration parameters, change characteristics, and the time corresponding to that frame. For example, the color temperature and brightness of each light in that frame can be determined based on the first lighting configuration parameters, second configuration parameters, change characteristics, and the time corresponding to each frame, thereby generating a layer corresponding to each light. In some embodiments, the processing device 120 can arrange the rendering image corresponding to the first scene mode, at least one intermediate frame rendering image, and the rendering image corresponding to the second scene mode to obtain a scene lighting animation. For example, the processing device 120 can arrange the above rendering images sequentially in chronological order to obtain a scene lighting animation.

[0076] In some embodiments, for each intermediate frame, the processing device 120 can assign weights to the layers corresponding to each light and perform weighted superposition of these layers to obtain the scene lighting animation. The weights can be related to parameters such as brightness and color temperature of each layer. For a detailed explanation of the weighted superposition, see [link to documentation]. Figure 8 And its related descriptions.

[0077] The scene lighting animation determination process provided in this manual allows you to consider the lighting effects of multiple light sources in the same scene. In addition, the scene mode switching process can be manually participated in, resulting in lighting animations that better meet user needs and improve user experience.

[0078] Figure 6 This is an exemplary flowchart illustrating the generation of target object animations according to some embodiments of this specification. Figure 6 As shown, process 600 includes the following steps. In some embodiments, process 600 may be executed by system 200.

[0079] Step 610: Determine the multiple base layers corresponding to the multiple states of the target object during the switching process from the first scene mode to the second scene mode.

[0080] The base layer of the target object can be a layer containing the color information of the target object under preset lighting configuration parameters. For example, when the target object is a curtain, the base layer can be a layer containing the RGB values ​​of the curtain at 100% brightness and 6500K color temperature (also known as the base color temperature). In some embodiments, the base layer can be generated by a server, and the processing device 120 can obtain the base layer from the server. In some embodiments, the base layer of the target object can include at least a first base layer and a second base layer. The first base layer can be a layer of the target object in a first scene mode, which reflects the first state of the target object in the first scene mode; the second base layer can be a layer of the target object in a second scene mode, which reflects the second state of the target object in the second scene mode. For example, the first base layer can be a layer showing the curtains open; the second base layer can be a layer showing the curtains closed. It should be noted that the number of base layers of the target object can also be other, such as 10, 50, 100, etc. Each base layer can correspond to any state between the first scene mode and the second scene mode, such as the third base layer being a layer showing the curtains open 95%, the fourth base layer being a layer showing the curtains open 90%, and so on. The more base layers there are, the smoother and more seamless the transition from the first scene mode to the second scene mode will be; similarly, a larger number of base layers will also place higher demands on the hardware's memory and computing power. Therefore, an appropriate number of base layers can be set based on usage requirements.

[0081] Step 620: Obtain the layer weight change curve.

[0082] The layer weight change curve reflects the change in the weight of multiple base layers over time when a target object undergoes scene switching. The layer weight represents the proportion of that layer when layers are stacked.

[0083] like Figure 7 As shown, the layer weight change curve can be a time-weight curve (taking two states of the target object as an example). Curve 710 can be the time-weight curve corresponding to the first base layer (i.e., the layer where the curtain is in the first state); curve 720 can be the time-weight curve corresponding to the second base layer (i.e., the layer where the curtain is in the second state). For example, the first state can be the curtain being open; the second state can be the curtain being closed. During the process from 0s to 1s, the weight of the first base layer is 1, and the weight of the second base layer is 0, at which point the curtain is open. During the process from 1s to 2s, the weight of the first base layer decreases from 1 to 0, and the weight of the second base layer increases from 0 to 1, at which point the curtain gradually closes from the open state until it is fully closed. During the process after 2s, the weight of the first base layer is 0, and the weight of the second base layer is 1, at which point the curtain is fully closed. It should be understood that... Figure 7The layer weight change curves shown are for illustrative purposes only and can be modified according to actual needs. For example, when the curtain delay is 0 seconds during scene switching, the weight of the first base layer can be reduced starting from 0 seconds. Also, when the target object has multiple states (such as curtains fully open, curtains 80% open, curtains 50% open, curtains 20% open, curtains fully closed, etc.), the layer weight change curves can be adaptively adjusted. All the above examples of variations are within the scope of this specification.

[0084] Step 630: Generate the target object animation based on multiple base layers and layer weight change curves.

[0085] In some embodiments, the processing device 120 can assign the weights of each base layer to the layer of the frame corresponding to each time point. For example, at time point 0.5s, the processing device 120 can assign a weight value of 1 to the first base layer and a weight of 0 to the second base layer; by weighted superposition of the first and second base layers, the layer of the frame corresponding to time point 0.5s is obtained. Similarly, at time point 1.5s, the processing device 120 can assign a weight value of 0.5 to the first base layer and a weight of 0.5 to the second base layer; by weighted superposition of the first and second base layers, the layer of the frame corresponding to time point 1.5s is obtained. Through the above process, the layers of all frames during the switch from the first scene mode to the second scene mode can be obtained. Arranging all the above frames in chronological order yields the target object animation. It is understood that the above multiple base layers may include, but are not limited to, two. For example, a third base layer and a fourth base layer may also be included, and each base layer may correspond to at least one state of the target object.

[0086] In some embodiments, the processing device 120 can generate exterior animation using the method of process 600. For example, the processing device 120 can determine the third base layer of the exterior corresponding to the first scene mode and the fourth base layer of the exterior corresponding to the second scene mode. The processing device 120 can obtain the layer weight change curve corresponding to the exterior. When the target object is a curtain, since the opening and closing of the curtain affects the size of the area occupied by the exterior in the target scene, the layer weight change curve corresponding to the curtain is the same as the layer weight change curve corresponding to the exterior. The processing device 120 can assign weights to the third base layer and the fourth base layer corresponding to each frame based on the layer weight change curve to realize the change of the exterior when switching to different scene modes. For example, at time point 0.5s, the processing device 120 can assign a weight value of 1 to the third base layer, at which time the exterior layer is fully displayed; at time point 1.5s, the processing device 120 can assign a weight value of 0.5 to the third base layer and the fourth base layer, at which time the exterior layer is partially displayed (i.e., half is displayed). Similarly, the above process can be used to obtain the exterior scene layers of all frames during the switch from the first scene mode to the second scene mode. Arranging all the above frames in chronological order will yield the exterior scene animation.

[0087] In this embodiment, based on the motion state of the target object, a weight is assigned to the target object in each frame during the scene switching process, which can result in a more reasonable target object animation and exterior scene animation; the whole process requires fewer layers and less rendering, reducing rendering costs.

[0088] Figure 8 This is an exemplary flowchart illustrating the determination of the color parameters corresponding to a target object in a scene mode, according to some embodiments of this specification. Figure 8 As shown, process 800 includes the following steps. In some embodiments, process 800 may be executed by system 200. In some embodiments, process 800 may be executed by server. In some embodiments, process 800 may be executed for a first scene mode and a second scene mode respectively to generate a first color parameter corresponding to the first scene mode and a second color parameter corresponding to the second scene mode.

[0089] Step 810: Determine multiple sampling points of the target object in the scenario mode.

[0090] Sampling points can be locations obtained by collecting data from the area covered by the target object when switching to this scene mode. The coverage area of ​​the target object can refer to the area occupied by the target object in physical space or the area it might obstruct. For example, when the target object is a curtain, the curtain coverage area can be the wall and / or window area that the curtain would cover when switching to this scene mode. Sampling points can be obtained by uniformly or non-uniformly sampling the curtain coverage area.

[0091] In some embodiments, sampling points can be determined through the following process:

[0092] Step S1: Determine the state of the target object in the scene mode. For example, when the target object is a curtain, its state may include fully open, half open, fully closed, etc. In some embodiments, the state of the target object in the scene mode can be determined by user input.

[0093] Step S2: Based on the state, obtain the channel map of the target object. The channel map of the target object can be a binary image reflecting the target object in the stated state. The target object and non-target objects have different colors (grayscale values). For example, when the target object is a curtain, the curtain is white (grayscale value 255) in the binary image, while the surrounding scene of the non-target object is black (grayscale value 0). The channel map of the target object can be output simultaneously when rendering the base layer of the target object in the stated state.

[0094] Step S3: Sample the coverage area of ​​the target object based on the channel map to determine multiple sampling points. The coverage area of ​​the target object can be determined based on the area where the target object is located in the channel map. After determining the coverage area, uniform or non-uniform sampling can be performed within the coverage area, and the position coordinates of each sampling point are recorded. In some embodiments, the server can determine the maximum coverage area of ​​the target object (e.g., the coverage area when the curtains are fully open), and determine the bounding box of the target object accordingly, and evenly distribute multiple candidate sampling points within the bounding box. Specifically, the candidate sampling points can be distributed in a checkerboard pattern such as 5*5 or 8*8. Based on the channel map corresponding to the state, candidate sampling points located in the non-curtain area can be determined from the candidate sampling points, and these candidate sampling points are then discarded. The remaining candidate sampling points can be used as the sampling points corresponding to the target object in this state. In some embodiments, the server can discard sampling points with a color value of 0 to avoid the non-curtain area affecting the calculation (e.g., the refraction phenomenon caused by fully transparent glass may lead to calculation errors).

[0095] The above embodiments allow for the acquisition of precise sampling point locations, avoiding the impact of redundant data (data from non-curtain areas) on the efficiency and accuracy of color parameter calculation. Furthermore, by determining multiple sampling points and then basing the color parameters of the target object on these points, the resulting color parameters can more accurately reflect the color characteristics of the target object.

[0096] Step 820: Determine the base color of multiple sampling points based on the light base layer.

[0097] The base layer for lighting can be the lighting layer corresponding to preset lighting configuration parameters. For example, the base layer for lighting can be the color layer corresponding to a light with a color temperature of 6500K and a brightness of 100%.

[0098] The base color can be the color parameter at the sampling point under preset lighting configuration parameters. The color parameter can include color values ​​(such as RGB values), brightness, and other parameters. In some embodiments, lights with the same logical behavior (i.e., the same group of lights) can have the same base light layer. The server can generate multiple base light layers corresponding to multiple groups of lights and directly overlay the high dynamic range (HDR) images of all the base light layers to obtain a first overlay light layer. The server can find the position corresponding to each sampling point in the first overlay light layer and use the color at that position as the base color of that sampling point.

[0099] Step 830: Based on the lighting configuration parameters of the scene mode and the lighting base layer, determine the target color of multiple sampling points in the scene mode.

[0100] The target color can be the color parameter at the sampling point when switching to a certain scene mode. The color parameter can include color (such as RGB values), brightness, and other parameters. In some embodiments, the server can weightedly overlay the base lighting layers based on the lighting configuration parameters of a certain scene mode to obtain a second lighting overlay layer for that scene mode, and obtain the target color for each sampling point based on the lighting overlay layer. For example, for light A (or light group A) in a certain scene mode, given the lighting configuration parameters (brightness, color temperature) of light A, the server can use the brightness of light A as a brightness coefficient; convert the color temperature of light A to the color of light A (i.e., RGB values); use the ratio of the color of light A to the color of the base lighting layer (i.e., the ratio of the RGB values ​​of light A to the RGB values ​​of the base lighting layer, or the ratio of the normalized RGB values ​​of light A to the normalized RGB values ​​of the base lighting layer) as a color coefficient; and then use the product of the brightness coefficient and the color coefficient as the weight of the base lighting layer corresponding to light A in that scene mode. After determining the weight of the base layer for each light or group of lights, the high dynamic range (HDR) images of all base layers can be weighted and superimposed to obtain a second light overlay layer. The color temperature to color conversion can be achieved through methods such as lookup tables (color temperature-RGB value table) or formula fitting. Furthermore, the color at each sampling point can be determined based on the second light overlay layer and used as the target color for that sampling point.

[0101] Step 840: Based on the base color and target color of multiple sampling points, determine the color and brightness of the target object in the scene mode.

[0102] In some embodiments, the color of the target object in the scene mode can be determined based on the target color. In some embodiments, the server can determine the brightness corresponding to the base color; the server can determine the brightness corresponding to the target color; the server can determine the brightness of the target object in the scene mode based on the brightness corresponding to the base color and the brightness corresponding to the target color. For example, the brightness of the target object in the scene mode can be equal to the ratio of the brightness corresponding to the target color to the brightness corresponding to the base color. Determining brightness based on color can be achieved using existing brightness calculation functions. As an example only, the server can convert the color (i.e., RGB values) to a three-dimensional function in xyz space using a brightness calculation function, and then take the y component of the three-dimensional function as the brightness.

[0103] In some embodiments, the server can take the average of the brightness obtained from all sampling points as the brightness of the target object; the server can take the average of the color (i.e., RGB value) of all sampling points as the color of the target object in the scene mode.

[0104] In this embodiment, by assigning weights to each light / group of lights based on their brightness and color temperature, it is possible to obtain a more realistic color and brightness of the target object under complex multi-light source illumination conditions. In addition, this embodiment can reduce the amount of image rendering and lower design costs during scene switching.

[0105] It should be noted that the above descriptions of processes 300, 400, 600, and 800 are for illustrative purposes only and do not limit the scope of this specification. Those skilled in the art can make various modifications and changes to processes 300, 400, 600, and 800 under the guidance of this specification. However, these modifications and changes remain within the scope of this specification.

[0106] Figure 9 This is a schematic diagram of the generated target object animation according to some embodiments of this specification.

[0107] In some embodiments, for each frame of the target object animation, the processing device 120 can determine the third color parameter 940 of the target object in the frame based on the change feature 910 of the lighting configuration when switching from the first scene mode to the second scene mode, the first color parameter 920, and the second color parameter 930.

[0108] The third color parameter can be a feature parameter related to the color of the target object in each frame of the target object's animation. For example, the third color parameter can include parameters such as the brightness and color of the target object in each frame of the target object's animation. In some embodiments, the third color parameter can be determined based on the first color parameter, the second color parameter, and the change features, through a time-color function of the target object, similar to... Figure 4The time-color temperature function in formula (1) is used to determine the color. Based on the time-color function of the target object and the time of each frame in the target object's animation, the color of each frame can be determined. It is understood that the third color parameter can also be determined by the time-brightness function of the target object, which will not be elaborated on in this manual.

[0109] In some embodiments, the processing device 120 may perform color processing on the frame based on the third color parameter 940 corresponding to each frame to obtain a processed frame. For example, the processing device 120 may process the first frame 951 in the target object animation 950 based on the third color parameter 940 of the first frame to obtain the processed frame 961 of the first frame; ...; the processing device 120 may process the Nth frame in the target object animation 950 based on the third color parameter 940 of the Nth frame to obtain the processed frame of the Nth frame.

[0110] In some embodiments, the third color parameter includes brightness and color. Color processing of the frame based on the third color parameter to obtain a processed frame includes: processing the frame based on brightness to obtain an initial processed frame; normalizing the color to obtain a normalized color; determining color adjustment weights based on the normalized color and a normalized base color corresponding to a base color temperature; and processing the initial processed frame based on the color adjustment weights to obtain a processed frame. In some embodiments, a base color can be determined based on a base color temperature; and the base color can be normalized to obtain a normalized base color.

[0111] The initial processing frame may be a frame generated after only processing the luminance. In some embodiments, the processing device 120 may multiply the luminance value by the frame to obtain the initial processing frame.

[0112] In some embodiments, the processing device 120 can convert the base color temperature into a base color, normalize the base color, and obtain a normalized base color.

[0113] The base color temperature can be the color temperature of the frame under preset lighting configuration parameters. For example, the base color temperature can be 6500K. In some embodiments, the base color temperature can be converted into the base color (i.e., RGB value) corresponding to the base color temperature by means of a lookup table (color temperature-RGB value table), formula fitting method, etc.

[0114] Color normalization and color adjustment weights can be determined by processing the R, G, and B channels of the frame separately. For example, for the R channel, the color adjustment weights can be determined using formula (2): Where R1 is the color adjustment weight of the R channel; R, G, and B are the channel values ​​of the frame described above, respectively. R is the normalized value of the R channel; R′, G′, and B′ are the channel values ​​of the base color corresponding to the base color temperature, respectively. This is the normalized value of the R channel.

[0115] Similarly, the color normalization weights for the G and B channels can be achieved using formulas (3) and (4), respectively: Wherein, G1 is the color adjustment weight of the G channel; B1 is the color adjustment weight of the B channel. The color adjustment weight can reflect the degree of adjustment of the target object's animation color in each channel.

[0116] In some embodiments, the processing device 120 can process the initial processing frame based on color adjustment weights to obtain a processed frame. For example, the initial processing frame can be split into three pixel value matrices corresponding to the three RGB channels. The processing device 120 can multiply the pixel value matrix corresponding to the R channel by the color adjustment weight R1 of the R channel; multiply the pixel value matrix corresponding to the G channel by the color adjustment weight G1 of the G channel; multiply the pixel value matrix corresponding to the B channel by the color adjustment weight B1 of the B channel; and merge the multiplied pixel value matrices corresponding to the three channels to obtain the processed frame.

[0117] In this embodiment, calculating the channel value of each channel after color processing separately yields more accurate colors, resulting in a more realistic representation of the target object's light color in the processed frame and animation, closely matching the actual lighting conditions. Furthermore, in this embodiment, the target object's own state changes (such as changes due to motion) are considered first to generate the target object animation, and then the changes caused by ambient lighting are considered to process the target object animation, resulting in the processed target object animation. This method of separately analyzing the target object's own changes and changes caused by ambient lighting simplifies the generation of scene transition animations and improves their efficiency.

[0118] In some embodiments, the processing device 120 can generate a processed target object animation based on the processing frames corresponding to each frame in the target object animation. For example, the processing device 120 can arrange the processing frames corresponding to each frame in chronological order to obtain the processed target object animation.

[0119] The above embodiments use curtains as an example as the target object. It should be noted that the target object can also be other objects, such as vacuum cleaners, robot vacuums, televisions, and smart door locks. The method is applicable to the movement of vacuum cleaners, robot vacuums, changes in television content, and changes in the locking status of smart door locks. Processing other target objects using the methods provided in this specification should also fall within the scope of this specification.

[0120] This specification also provides a computer-readable storage medium that stores computer instructions that, when executed by a processor, implement the rendering scene switching method.

[0121] The beneficial effects that the embodiments of this specification may bring include, but are not limited to: (1) the rendering scene switching method provided in some embodiments of this specification can take into account the changes in lighting, the movement of the target object, and the changes in the exterior scene in the target scene, and obtain a more realistic scene switching animation; (2) it can avoid the huge cost brought by direct rendering, and the generated scene switching animation has small error and can achieve the animation quality of direct rendering at the image level; (3) the scene switching process takes into account the factors of changes in lighting, the movement of the target object and the changes in the exterior scene respectively, and sets the corresponding weights. Under different scenarios, the importance of different layers and the degree of influence of different layers on the output animation can be reflected respectively, thereby improving the realism and accuracy of the animation; (4) the rendering scene switching method provided in some embodiments of this specification has a wide range of applications and can be applied to a variety of target objects. It should be noted that the beneficial effects that may be produced by different embodiments are different. In different embodiments, the beneficial effects that may be produced can be any one or a combination of the above, or any other possible beneficial effects.

[0122] The basic concepts have been described above. Obviously, for those skilled in the art, the detailed disclosure above is merely illustrative and does not constitute a limitation of this specification. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and corrections to this specification. Such modifications, improvements, and corrections are suggested in this specification and therefore remain within the spirit and scope of the exemplary embodiments described herein.

[0123] Furthermore, this specification uses specific terms to describe embodiments thereof. For example, "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of this specification. Therefore, it should be emphasized and noted that references to "an embodiment," "one embodiment," or "an alternative embodiment" in different locations throughout this specification do not necessarily refer to the same embodiment. Moreover, certain features, structures, or characteristics in one or more embodiments of this specification can be appropriately combined.

[0124] Furthermore, unless expressly stated in the claims, the order of processing elements and sequences, the use of numbers and letters, or other names described in this specification are not intended to limit the order of the processes and methods described herein. Although various examples have been discussed in the foregoing disclosure of some embodiments of the invention that are currently considered useful, it should be understood that such details are for illustrative purposes only, and the appended claims are not limited to the disclosed embodiments; rather, the claims are intended to cover all modifications and equivalent combinations that conform to the spirit and scope of the embodiments described herein. For example, while the system components described above can be implemented using hardware devices, they can also be implemented solely using software solutions, such as installing the described system on existing servers or mobile devices.

[0125] Similarly, it should be noted that, in order to simplify the description disclosed herein and thus aid in the understanding of one or more embodiments of the invention, the foregoing description of embodiments in this specification may sometimes combine multiple features into a single embodiment, drawing, or description thereof. However, this method of disclosure does not imply that the subject matter of this specification requires more features than those mentioned in the claims. In fact, the embodiments contain fewer features than all the features of a single embodiment disclosed above.

[0126] In some embodiments, numbers describing the quantity of components and attributes are used. It should be understood that such numbers used in the description of embodiments are modified in some examples with the terms "approximately," "approximately," or "generally." Unless otherwise stated, "approximately," "approximately," or "generally" indicates that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may be changed depending on the characteristics required by individual embodiments. In some embodiments, numerical parameters should take into account specified significant digits and employ a general method of digit reservation. Although the numerical ranges and parameters used to confirm their breadth of range in some embodiments of this specification are approximate values, in specific embodiments, such values ​​are set as precisely as feasible.

[0127] For each patent, patent application, patent application publication, and other material, such as articles, books, specifications, publications, and documents, referenced in this specification, the entire contents of which are incorporated herein by reference. This excludes historical application documents that are inconsistent with or conflict with the content of this specification, as well as documents that limit the broadest scope of the claims in this specification (currently or subsequently appended to this specification). It should be noted that in the event of any inconsistency or conflict between the descriptions, definitions, and / or terminology used in the supplementary materials to this specification and the content of this specification, the descriptions, definitions, and / or terminology used in this specification shall prevail.

[0128] Finally, it should be understood that the embodiments described in this specification are merely illustrative of the principles of the embodiments described herein. Other variations may also fall within the scope of this specification. Therefore, alternative configurations of the embodiments described herein are intended to be illustrative rather than limiting, and should be considered consistent with the teachings of this specification. Accordingly, the embodiments described herein are not limited to those explicitly introduced and described herein.

Claims

1. A method for switching rendering scenes, characterized in that, The method includes: Obtain the first color parameter of the target object in the first scene mode and the second color parameter in the second scene mode; The process generates scene lighting animation and target object animation when the target scene switches from the first scene mode to the second scene mode. The scene lighting animation reflects the changes in lighting in the target scene during the scene mode switch, and the target object animation reflects the changes in the target object itself during the scene mode switch. The target object animation is determined by: identifying multiple base layers corresponding to multiple states of the target object during the transition from the first scene mode to the second scene mode; obtaining layer weight change curves, which reflect the weight changes of the multiple base layers during the transition from the first scene mode to the second scene mode; and generating the target object animation based on the multiple base layers and the layer weight change curves. The target object animation is color-processed based on the first color parameter and the second color parameter to obtain the processed target object animation; and Based on the scene lighting animation and the processed target object animation, a scene transition animation is generated, wherein color processing of the target object animation based on the first color parameter and the second color parameter to obtain the processed target object animation includes: For each frame of the target object animation, Based on the changes in lighting configuration when switching from the first scene mode to the second scene mode, the first color parameter and the second color parameter, the third color parameter of the target object in the frame is determined. Based on the third color parameter, the frame is color processed to obtain a processed frame; The processed target object animation is generated based on the processing frame corresponding to each frame in the target object animation.

2. The method as described in claim 1, characterized in that, The scene lighting animation is generated in the following way: Obtain the first lighting configuration parameters of the first scene mode and the second lighting configuration parameters of the second scene mode; Acquire the characteristics of the lighting configuration change when switching from the first scene mode to the second scene mode; The scene lighting animation is generated based on the first lighting configuration parameters, the second lighting configuration parameters, and the change characteristics.

3. The method as described in claim 1, characterized in that, For each of the first and second scene modes, the corresponding color parameters are determined in the following way: Identify multiple sampling points of the target object in the scenario mode; Based on the light base layer, determine the base color of the multiple sampling points; Based on the lighting configuration parameters of the scene mode and the lighting base layer, the target color of the multiple sampling points in the scene mode is determined; Based on the base color and the target color of the multiple sampling points, the color and brightness of the target object in the scene mode are determined.

4. The method as described in claim 3, characterized in that, Determining the target object at multiple sampling points in the scenario mode includes: Determine the state of the target object in the scenario mode; Based on the stated state, obtain the channel map of the target object; The coverage area of ​​the target object is sampled based on the channel map to determine the plurality of sampling points.

5. The method as described in claim 1, characterized in that, When a scene mode switch occurs, the change in the target object itself causes a change in the exterior scene. Generating the scene switching animation based on the scene lighting animation and the processed target object animation further includes: Generate exterior animations when switching from the first scene mode to the second scene mode; The scene transition animation is generated based on the scene lighting animation, the processed target object animation, and the exterior scene animation.

6. The method as described in claim 1, characterized in that, The target scenario is a smart home scenario, and the target object is a curtain.

7. A rendering scene switching system, characterized in that, The system includes: The first generation module is used to generate scene lighting animation and target object animation when the target scene switches from a first scene mode to a second scene mode. The scene lighting animation reflects the changes in lighting of the target scene when the scene mode switches, and the target object animation reflects the changes of the target object itself when the scene mode switches. The target object animation is determined by: determining multiple base layers corresponding to multiple states of the target object during the transition from the first scene mode to the second scene mode; obtaining layer weight change curves, which reflect the weight changes of the multiple base layers when switching from the first scene mode to the second scene mode; and generating the target object animation based on the multiple base layers and the layer weight change curves. The acquisition module is used to acquire the first color parameter of the target object in the first scene mode and the second color parameter in the second scene mode; The processing module is configured to perform color processing on the target object animation based on the first color parameter and the second color parameter to obtain the processed target object animation; and The second generation module is used to generate a scene transition animation based on the scene lighting animation and the processed target object animation, wherein color processing of the target object animation based on the first color parameter and the second color parameter to obtain the processed target object animation includes: For each frame of the target object animation, Based on the changes in lighting configuration when switching from the first scene mode to the second scene mode, the first color parameter and the second color parameter, the third color parameter of the target object in the frame is determined. Based on the third color parameter, the frame is color processed to obtain a processed frame; The processed target object animation is generated based on the processing frame corresponding to each frame in the target object animation.

8. A computer-readable storage medium, characterized in that, The storage medium stores computer instructions, which, when executed by a processor, implement the rendering scene switching method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Video processing method and device, electronic equipment and storage medium

    CN110675310A

  • Rendering graph scene dynamic switching method and device, electronic equipment and medium

    CN114299219A