CN113554746A - Decoration effect graph generation method and device, electronic equipment and storage medium - Google Patents

Decoration effect graph generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113554746A
CN113554746A CN202110851194.6A CN202110851194A CN113554746A CN 113554746 A CN113554746 A CN 113554746A CN 202110851194 A CN202110851194 A CN 202110851194A CN 113554746 A CN113554746 A CN 113554746A
Authority
CN
China
Prior art keywords
layer
light
decoration
scheme
brightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110851194.6A
Other languages
Chinese (zh)
Inventor
刘玉丹
龚四维
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong 3vjia Information Technology Co Ltd
Original Assignee
Guangdong 3vjia Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong 3vjia Information Technology Co Ltd filed Critical Guangdong 3vjia Information Technology Co Ltd
Priority to CN202110851194.6A priority Critical patent/CN113554746A/en
Publication of CN113554746A publication Critical patent/CN113554746A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/50Lighting effects

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention provides a decoration effect graph generation method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: obtaining a non-light source pattern layer and a light pattern layer corresponding to a decoration scheme of a target scene, wherein the number of the light pattern layers is N, and the light pattern layers correspond to N groups of light sources in the decoration scheme one by one; superposing the light source-free layer and the lamplight layer to obtain an initial decoration effect picture of the decoration scheme, and displaying the initial decoration effect picture; acquiring an adjusting value set aiming at a lamplight layer, and adjusting the brightness and the color of the lamplight layer, wherein the adjusting value comprises a brightness multiplication value and a color superposition value; superposing the light-free layer and the adjusted light layer to obtain a middle decoration effect picture of the decoration scheme, and displaying the middle decoration effect picture; and adjusting the brightness and the color of the N groups of lamp sources in the decoration scheme according to the adjustment value, performing off-line rendering on the adjusted decoration scheme, and outputting a final decoration effect diagram.

Description

Decoration effect graph generation method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of image processing, in particular to a decoration effect graph generation method and device, electronic equipment and a storage medium.
Background
At present, in the design process of decoration schemes, the mode of generating decoration effect diagrams is as follows: after the decoration scheme design of a scene (such as a bedroom) is finished and the light source arrangement is finished, off-line rendering is carried out on the decoration scheme of the scene with a small resolution ratio, a decoration effect graph is output, brightness and color adjustment is carried out according to the decoration effect graph, then off-line rendering is carried out on the decoration scheme of the scene again with a small resolution ratio, the decoration effect graph is output, brightness and color adjustment is carried out according to the decoration effect graph, iteration is carried out for multiple times, a satisfactory light source effect can be obtained, finally off-line rendering is carried out on the decoration scheme of the scene with a large resolution ratio, and a final decoration effect graph is output. In the way of generating the decoration effect graph, in the process of adjusting the brightness and the color of the light source, for a user, the decoration effect graph cannot be seen in each adjustment, the experience is poor, and meanwhile, iteration is needed for many times, so that time and rendering resources consumed by offline rendering are wasted.
Disclosure of Invention
In order to solve the technical problems that a decoration effect graph cannot be seen in each adjustment, the experience is poor, iteration is needed for multiple times at the same time, time is wasted, and rendering resources consumed by offline rendering are wasted for a user, the embodiment of the invention provides a decoration effect graph generation method and device, electronic equipment and a storage medium.
In a first aspect of an embodiment of the present invention, a decoration effect map generation method is provided, where the method includes:
obtaining a non-light source pattern layer and a light pattern layer corresponding to a decoration scheme of a target scene, wherein the number of the light pattern layers is N, and the light pattern layers are in one-to-one correspondence with N groups of light sources in the decoration scheme;
superposing the light-free layer and the lamplight layer to obtain an initial decoration effect picture of the decoration scheme, and displaying the initial decoration effect picture;
obtaining an adjustment value set for the lighting layer, and adjusting the brightness and the color of the lighting layer, wherein the adjustment value comprises a brightness multiplication value and a color superposition value;
superposing the light-free layer and the adjusted lamplight layer to obtain a middle decoration effect picture of the decoration scheme, and displaying the middle decoration effect picture; and the number of the first and second groups,
and adjusting the brightness and the color of N groups of light sources in the decoration scheme according to the adjustment value, performing off-line rendering on the decoration scheme after adjustment, and outputting a final decoration effect diagram.
In an optional embodiment, before performing the method, the method further comprises:
acquiring a decoration scheme of a target scene, wherein lamp sources in the target scene are grouped in the decoration scheme;
calling an offline rendering engine to analyze the decoration scheme, and acquiring the lamp source grouping condition in the decoration scheme;
calling an offline rendering engine to perform offline rendering on the decoration scheme according to the lamp source grouping condition, and outputting a light-source-free layer and a lamp layer corresponding to each group of lamp sources;
compressing the light-free layer and the lamplight layer into layer data of a target system, and uploading the layer data to a cloud server for storage;
the obtaining of the light source-free image layer and the lamplight image layer corresponding to the decoration scheme of the target scene comprises the following steps:
and downloading and decompressing the layer data from the cloud server to obtain the light-source-free layer and the lamplight layer corresponding to the decoration scheme of the target scene.
In an optional embodiment, the invoking an offline rendering engine to perform offline rendering on the decoration scheme according to the light source grouping condition includes:
and acquiring a first resolution of the decoration scheme, and calling an offline rendering engine to perform offline rendering on the decoration scheme at the first resolution according to the light source grouping condition.
In an optional embodiment, the overlaying the light-free layer and the lighting layer to obtain an initial decoration effect map of the decoration scheme includes:
superposing the light-free layer and the lamplight layer according to a linear attenuation mode to obtain an initial decoration effect graph of the decoration scheme;
the step of superposing the light-free layer and the adjusted light layer to obtain a middle decoration effect map of the decoration scheme includes:
and superposing the light-free layer and the adjusted lamplight layer according to a linear dimming mode to obtain a middle decoration effect diagram of the decoration scheme.
In an optional implementation manner, the obtaining an adjustment value set for the light layer and adjusting the brightness and the color of the light layer include:
displaying the lamplight layer, hiding the light-free layer, and prompting a user to set adjustment values for the brightness and the color of the lamplight layer;
and acquiring adjustment values set aiming at the brightness and the color of the lamplight layer, and adjusting the brightness and the color of the lamplight layer.
In an optional embodiment, the rendering the decoration scheme after the adjustment offline and outputting a final decoration effect map includes:
and acquiring a second resolution of the decoration scheme, performing off-line rendering on the adjusted decoration scheme at the second resolution, and outputting a final decoration effect graph.
In an alternative embodiment, the adjusting the brightness and the color of the N groups of light sources in the decoration scheme according to the adjustment value includes:
monitoring whether the operation of adjusting the brightness and the color of the adjusted lamplight layer again exists in a preset time period;
and if the operation of adjusting the brightness and the color of the adjusted lamplight layer again does not exist, adjusting the brightness and the color of N groups of lamp sources in the decoration scheme according to the adjustment value.
In a second aspect of the embodiments of the present invention, there is provided a decoration effect map generating apparatus, including:
the layer acquisition module is used for acquiring a non-light source layer and a light layer corresponding to a decoration scheme of a target scene, wherein the number of the light layers is N, and the light layers are in one-to-one correspondence with N groups of light sources in the decoration scheme;
the layer overlapping first module is used for overlapping the light-free layer and the lamplight layer to obtain an initial decoration effect picture of the decoration scheme and displaying the initial decoration effect picture;
the brightness and color adjusting module is used for acquiring an adjusting value set aiming at the lamplight layer and adjusting the brightness and the color of the lamplight layer, wherein the adjusting value comprises a brightness multiplication value and a color superposition value;
the layer superposition second module is used for superposing the light-free layer and the adjusted lamplight layer to obtain a middle decoration effect picture of the decoration scheme and displaying the middle decoration effect picture; and the number of the first and second groups,
and the effect map generation module is used for adjusting the brightness and the color of the N groups of lamp sources in the decoration scheme according to the adjustment value, performing off-line rendering on the decoration scheme after adjustment and outputting a final decoration effect map.
In a third aspect of the embodiments of the present invention, there is further provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the decoration effect graph generation method in the first aspect when executing the program stored in the memory.
In a fourth aspect of the embodiments of the present invention, there is also provided a storage medium, in which instructions are stored, and when the storage medium runs on a computer, the storage medium causes the computer to execute the decoration effect map generation method described in the first aspect.
In a fifth aspect of the embodiments of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the decoration effect map generation method described in the first aspect.
According to the technical scheme provided by the embodiment of the invention, a non-light source map layer and a light map layer corresponding to a decoration scheme of a target scene are obtained, wherein the light map layer comprises N light source layers which correspond to N groups of light sources in the decoration scheme one by one, the non-light source map layer and the light map layer are overlapped to obtain an initial decoration effect map of the decoration scheme and are displayed, adjustment values set for the light map layers are obtained, the brightness and the color of the light map layers are adjusted, the adjustment values comprise brightness multiplication values and color superposition values, the non-light source map layer and the adjusted light map layer are overlapped to obtain a middle decoration effect map of the decoration scheme and are displayed, the brightness and the color of the N groups of light sources in the decoration scheme are adjusted according to the adjustment values, the adjusted decoration scheme is rendered in an off-line mode, and a final decoration effect map is output. Through grouping the lamp sources, each group of lamp sources has a corresponding light layer, the brightness and the color of the light layer are adjusted based on the brightness multiplication value and the color superposition value, the decoration effect graph is restored by combining the layer merging technology and displayed, so that the adjusted decoration effect graph can be seen in real time for a user in the process of adjusting the brightness and the color of the lamp sources, the lamp sources are adjusted more intuitively, the user experience is improved, meanwhile, the time is saved, and the rendering resources consumed by offline rendering are saved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
FIG. 1 is a schematic flow chart illustrating an implementation of a decoration effect diagram generation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an output light-free layer and a lighting layer according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a layer merging implementation flow shown in the embodiment of the present invention;
FIG. 4 is a schematic view of another implementation flow of a decoration effect map generation method shown in the embodiment of the present invention;
FIG. 5 is a schematic structural diagram of a decoration effect map generating apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device shown in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As shown in fig. 1, an implementation flow diagram of a decoration effect graph generation method provided in an embodiment of the present invention is applied to a processor, and the method may specifically include the following steps:
s101, obtaining a non-light source pattern layer and a light pattern layer corresponding to a decoration scheme of a target scene, wherein the number of the light pattern layers is N, and the light pattern layers are in one-to-one correspondence with N groups of light sources in the decoration scheme.
Currently, designers design a finishing plan for a target scene (e.g., a bedroom) in 3D design software, arrange light sources, and group the light sources into groups, for example, 1 group, 2 groups, 3 groups, … … groups, N groups. After the designer completes the operation, the decoration scheme of the target scene is submitted and saved.
The embodiment of the invention can obtain the decoration scheme of the target scene, wherein the lamp sources in the target scene are grouped in the decoration scheme, such as the 1 group, the 2 group, the 3 group, the … … group and the N group, and the off-line rendering engine is called to analyze the decoration scheme, so that the lamp source grouping condition in the decoration scheme can be obtained.
And further, calling an offline rendering engine to perform offline rendering on the decoration scheme according to the grouping condition of the light sources, and outputting (one) light-source-free layer and the light layers corresponding to the groups of the light sources in the decoration scheme, namely, each group of the light sources has one corresponding light layer.
It should be noted that, in the embodiment of the present invention, a first resolution of the decoration scheme may be obtained, an offline rendering engine is invoked to perform offline rendering on the decoration scheme at the first resolution according to the lamp source grouping condition, and output (one) light-free layer and the lamp layer corresponding to each group of lamps in the decoration scheme. Here, the first resolution is a smaller resolution, which is not limited in the embodiment of the present invention.
For example, the embodiment of the present invention obtains a decoration scheme for a bedroom design, where the lamp sources in the bedroom are grouped (1 group, 2 groups, and 3 groups), and as shown in table 1 below, an offline rendering engine is invoked to parse the decoration scheme, so as to obtain the lamp source grouping situation in the decoration scheme.
Light source grouping Bedroom lamp source
Group 1 Bedside lamp
2 groups of Desk lamp
Group 3 Pendant lamp
TABLE 1
Further, an offline rendering engine is called to perform offline rendering on the decoration scheme once according to the grouping condition of the light sources, and output a no-light-source layer (nonlight), and light layers corresponding to each group of light sources in the decoration scheme, as shown in fig. 2, that is, each group of light sources has one corresponding light layer, as shown in the following table 2.
Light source grouping Light pattern layer
Group 1 LIGHTMIX1
2 groups of LIGHTMIX2
Group 3 LIGHTMIX3
TABLE 2
For the light-source-free layer and the light layer, in order to facilitate use, in the embodiment of the present invention, the light-source-free layer and the light layer may be compressed into layer data of a target system, and uploaded to a cloud server for storage, and then downloaded from the cloud server for use.
For example, for a no-light-source layer (nonlight), and the light layers (light ix1, light ix2, light ix3) shown in table 2 above, the embodiment of the present invention compresses the light layers into 16-bit layer data, and uploads the layer data to the cloud server for storage, which is convenient for subsequent use.
It should be noted that the light-free layer and the lighting layer are compressed into layer data of a target system, where the target system may be any current system, such as binary, octal, hexadecimal, and the like, and the embodiment of the present invention does not limit this.
After the non-light source image layer and the light image layer are compressed, packaged and uploaded to the cloud server, in the process of adjusting the light source in the decoration scheme, the image layer data can be downloaded and decompressed from the cloud server, and the non-light source image layer and the light image layer corresponding to the decoration scheme of the target scene are obtained.
For example, in the process of adjusting the light source in the decoration scheme, the embodiment of the present invention downloads and decompresses the layer data from the cloud server, and obtains a non-light source layer (nonlight) corresponding to the decoration scheme of the bedroom and the light layers (light ix1, light ix2, and light ix3) shown in table 2.
It should be noted that, for a non-light source pattern layer and a light pattern layer corresponding to a decoration scheme of a target scene, the number of the non-light source pattern layers may be 1, and the number of the light pattern layers may be N, where N is a positive integer, where N light pattern layers correspond to N groups of light sources in the decoration scheme one to one, which means that N light pattern layers correspond to N groups of light sources in the target scene one to one.
In addition, it should be noted that the offline rendering engine may group the light sources and output the light sources to different rendering layers, adjust the brightness and color of each group of light sources through operations on the rendering layers, and then merge and restore the decoration effect map through the layers, so that the adjusted effect of the light sources can be previewed.
And S102, overlapping the light source-free layer and the lamplight layer to obtain an initial decoration effect picture of the decoration scheme, and displaying the initial decoration effect picture.
For the light-free layer and the lamplight layer, the light-free layer and the lamplight layer are overlapped in the embodiment of the invention, so that the initial decoration effect graph corresponding to the decoration scheme can be obtained and displayed, and thus, a user can see the initial decoration effect graph corresponding to the decoration scheme.
For example, for a no-light-source layer (nonlight), and the light layers (light ix1, light ix2, light ix3) shown in table 2 above, the embodiment of the present invention superimposes the two layers, so that an initial decoration effect map corresponding to the decoration scheme can be obtained and displayed, and thus, a user can preview the initial decoration effect map corresponding to the decoration scheme.
In the embodiment of the invention, the light-free layer and the lamplight layer can be superposed in a linear dimming manner, so that an initial decoration effect diagram corresponding to the decoration scheme is obtained and displayed.
For example, for the no-light-source layer (nonlight), and the light layers (light ix1, light ix2, light ix3) shown in the above table 2, the embodiments of the present invention superimpose the two layers in a linear dimming manner, so as to obtain and display the initial decoration effect map corresponding to the decoration scheme, as shown in fig. 3, so that the user can preview the initial decoration effect map corresponding to the decoration scheme.
S103, obtaining an adjusting value set for the lighting layer, and adjusting the brightness and the color of the lighting layer, wherein the adjusting value comprises a brightness multiplication value and a color superposition value.
In the embodiment of the invention, the brightness adjustment and the color adjustment of each lighting layer are provided at the front end, and a user can set a corresponding adjustment value for each lighting layer, wherein the adjustment value comprises a brightness multiplication value (I) and a color superposition value (R).
Based on this, the embodiment of the present invention obtains the adjustment values set for the light layers, where the adjustment values include the brightness multiplication value (I) and the color superposition value (R) as described above, and adjusts the brightness and the color of the light layers according to the adjustment values.
For example, the embodiment of the present invention obtains the brightness multiplication value (I) and the color superposition value (R) set for the light layer (light ix1), adjusts the brightness of the light layer (light ix1) according to the brightness multiplication value (I), adjusts the color of the light layer (light ix1) according to the color superposition value (R), and also adjusts the light layers (light ix1, light ix 3).
It should be noted that, for the lighting layer, the number of the lighting layer includes N, where a user may adjust one or more or all of the lighting layer, and a specific situation may be determined according to a user's own need, which is not limited in the embodiment of the present invention.
In addition, in order to facilitate a user to adjust a light source, the lighting layer may be displayed, the non-light source layer may be hidden, and the user may be prompted to set an adjustment value for the brightness and the color of the lighting layer, so that the user may set a corresponding adjustment value for the corresponding lighting layer.
For example, in the embodiment of the present invention, the light layers (light ix1, light ix2, light ix3) may be displayed, the non-light source layer (nonlight) may be hidden, and the user may be prompted to set the adjustment value for the brightness and the color of the light layers (light ix1, light ix2, light ix3), so that the user may set the corresponding adjustment value for the corresponding light layer.
Assuming that a user sets a corresponding adjustment value for a light layer (light ix1), where the adjustment value includes a brightness multiplication value (I) and a color superposition value (R), in the embodiment of the present invention, an adjustment value set for the brightness and the color of the light layer (light ix1) is obtained, the brightness of the light layer (light ix1) is adjusted according to the brightness multiplication value (I), and the color of the light layer (light ix1) is adjusted according to the color superposition value (R).
And S104, overlapping the light-free layer and the adjusted light layer to obtain a middle decoration effect picture of the decoration scheme, and displaying the middle decoration effect picture.
After the brightness and the color of the lamplight layer are adjusted, the embodiment of the invention can superpose the light-free layer and the adjusted lamplight layer to obtain a middle decoration effect picture of the decoration scheme and display the middle decoration effect picture, so that a user can preview the decoration effect picture after the lamp source is adjusted.
For example, for the no-light-source layer (nonlight) and the adjusted light layer (light ix1, light ix2, light ix3), the two layers are superimposed by the embodiment of the present invention, so as to obtain the intermediate decoration effect map of the decoration scheme, and display the intermediate decoration effect map, so that the user can preview the decoration effect map after the light source is adjusted.
In the embodiment of the invention, the light-free layer and the adjusted light layer can be superposed in a linear dimming manner, so that a middle decoration effect diagram corresponding to a decoration scheme can be obtained and displayed.
For example, for a no-light-source layer (nonlight) and an adjusted light layer (light ix1, light ix2, and light ix3), the two layers are superimposed in a linear dimming manner, so that an intermediate decoration effect map corresponding to a decoration scheme can be obtained and displayed.
It should be noted that, the above steps S103 to S104 may be repeatedly executed until the user is satisfied with the effect exhibited by the intermediate decoration effect diagram, which is not limited in the embodiment of the present invention.
S105, adjusting the brightness and the color of the N groups of light sources in the decoration scheme according to the adjustment value, performing off-line rendering on the decoration scheme after adjustment, and outputting a final decoration effect graph.
In the embodiment of the present invention, if the user is satisfied with the effect exhibited by the intermediate decoration effect map, the adjustment value set for the lamplight layer may be transmitted back to the offline rendering engine, and a larger resolution, that is, a second resolution of the decoration scheme is specified, where the second resolution is greater than the first resolution.
According to the embodiment of the invention, the offline rendering engine is called to adjust the brightness and the color of N groups of light sources in the decoration scheme according to the adjustment value set for the light layer, and the adjusted decoration scheme is subjected to offline rendering once to output the final decoration effect picture. And performing offline rendering on the decoration scheme after adjustment at a second resolution, and outputting a final decoration effect graph.
For example, the offline rendering engine is called to adjust the brightness and color of 1 group of light sources in the decoration scheme according to the adjustment value for the light layer (light ix1), adjust the brightness and color of 2 groups of light sources in the decoration scheme according to the adjustment value for the light layer (light ix2), and adjust the brightness and color of 3 groups of light sources in the decoration scheme according to the adjustment value for the light layer (light ix 3). The adjustment may be, specifically, the original brightness L of the light source, the brightness multiplication value I, and the original color S of the light source, the color superposition value R, which is not limited in the embodiment of the present invention.
Therefore, the decoration scheme after adjustment can be obtained, the embodiment of the invention carries out off-line rendering on the decoration scheme after adjustment at the second resolution ratio and outputs a final decoration effect diagram, as shown in fig. 4. The offline rendering engine is called to adjust the brightness and the color of the corresponding group of light sources in the decoration scheme (the corresponding group of light sources corresponds to the lamplight layer) according to the adjustment value set for the lamplight layer, and the adjusted decoration scheme is subjected to offline rendering once, so that a final decoration effect graph can be output.
In the embodiment of the present invention, within a preset time period, it is monitored whether an operation of adjusting the brightness and the color of the adjusted lamp layer again exists, if the operation of adjusting the brightness and the color of the adjusted lamp layer again does not exist, an offline rendering engine is invoked to adjust the brightness and the color of a corresponding group of lamp sources in the decoration scheme (where the corresponding group of lamp sources corresponds to the lamp layer) according to an adjustment value set for the lamp layer, and perform offline rendering on the decoration scheme after adjustment once, so as to output a final decoration effect map, and if the operation of adjusting the brightness and the color of the adjusted lamp layer again exists, it indicates that the effect displayed by the user on the intermediate decoration effect map is still unsatisfactory, and the user is repeatedly executing the above steps S103 to S104, and temporarily does not execute the above step S105.
For example, after the user adjusts the brightness and the color of the lighting layer, monitoring whether an operation of adjusting the brightness and the color of the adjusted lighting layer again exists at an interval of 1 minute, if the operation of adjusting the brightness and the color of the adjusted lighting layer again does not exist, calling an offline rendering engine to adjust the brightness and the color of a corresponding group of light sources (where the corresponding group of light sources corresponds to the lighting layer) in the decoration scheme according to an adjustment value set for the lighting layer, performing offline rendering on the decoration scheme after adjustment, and outputting a final decoration effect map, otherwise, indicating that the effect displayed by the user on the intermediate decoration effect map is not satisfactory, the user repeatedly executes the steps S103 to S104, and temporarily does not execute the step S105.
Through the above description of the technical scheme provided by the embodiment of the invention, the non-light source pattern layer and the light pattern layer corresponding to the decoration scheme of the target scene are obtained, wherein the light pattern layer comprises N light source pattern layers, and corresponds to N groups of light sources in the decoration scheme one by one, the non-light source layer and the light layer are overlapped to obtain an initial decoration effect picture of the decoration scheme, and the initial decoration effect picture is displayed to obtain an adjustment value set for the light layer, adjusting the brightness and color of the lighting layer, the adjustment values including brightness multiplication value and color superposition value, superposing the non-light source layer and the adjusted lighting layer to obtain a middle decoration effect map of the decoration scheme, displaying, and according to the adjustment values, and adjusting the brightness and the color of the N groups of lamp sources in the decoration scheme, performing off-line rendering on the adjusted decoration scheme, and outputting a final decoration effect diagram.
The light sources are grouped, each group of light sources has a corresponding light layer, the brightness and the color of the light layers are adjusted based on the brightness multiplication value and the color superposition value, and the decoration effect graph is restored and displayed by combining the layer merging technology. Therefore, in the process of adjusting the brightness and the color of the light source, for a user, the adjusted decoration effect graph can be seen in real time, so that the light source is adjusted more visually, the user experience is improved, meanwhile, the time is saved, and the rendering resources consumed by offline rendering are also saved.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides a decoration effect map generating device, as shown in fig. 5, the device may include: the image layer acquiring module 510, the image layer overlaying first module 520, the brightness and color adjusting module 530, the image layer overlaying second module 540, and the effect map generating module 550.
The layer obtaining module 510 is configured to obtain a non-light source layer and a light layer corresponding to a decoration scheme of a target scene, where the number of the light layers is N, and the light layers are in one-to-one correspondence with N groups of light sources in the decoration scheme;
a layer overlapping first module 520, configured to overlap the light-source-free layer and the lighting layer to obtain an initial decoration effect map of the decoration scheme, and display the initial decoration effect map;
a brightness and color adjusting module 530, configured to obtain an adjustment value set for the lighting layer, and adjust the brightness and the color of the lighting layer, where the adjustment value includes a brightness multiplication value and a color superposition value;
the layer overlapping second module 540 is configured to overlap the light-free layer and the adjusted lighting layer to obtain a middle decoration effect map of the decoration scheme, and display the middle decoration effect map; and the number of the first and second groups,
and an effect map generating module 550, configured to adjust the brightness and color of the N groups of light sources in the decoration scheme according to the adjustment value, perform offline rendering on the decoration scheme after adjustment, and output a final decoration effect map.
An embodiment of the present invention further provides an electronic device, as shown in fig. 6, including a processor 61, a communication interface 62, a memory 63, and a communication bus 64, where the processor 61, the communication interface 62, and the memory 63 complete mutual communication through the communication bus 64,
a memory 63 for storing a computer program;
the processor 61 is configured to implement the following steps when executing the program stored in the memory 63:
obtaining a non-light source pattern layer and a light pattern layer corresponding to a decoration scheme of a target scene, wherein the number of the light pattern layers is N, and the light pattern layers are in one-to-one correspondence with N groups of light sources in the decoration scheme; superposing the light-free layer and the lamplight layer to obtain an initial decoration effect picture of the decoration scheme, and displaying the initial decoration effect picture; obtaining an adjustment value set for the lighting layer, and adjusting the brightness and the color of the lighting layer, wherein the adjustment value comprises a brightness multiplication value and a color superposition value; superposing the light-free layer and the adjusted lamplight layer to obtain a middle decoration effect picture of the decoration scheme, and displaying the middle decoration effect picture; and adjusting the brightness and the color of N groups of lamp sources in the decoration scheme according to the adjustment value, performing off-line rendering on the decoration scheme after adjustment, and outputting a final decoration effect diagram.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a storage medium is further provided, where instructions are stored, and when the instructions are executed on a computer, the instructions cause the computer to execute the decoration effect map generating method in any one of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product including instructions, which when run on a computer, cause the computer to execute the decoration effect map generating method according to any one of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A decoration effect map generation method is characterized by comprising the following steps:
obtaining a non-light source pattern layer and a light pattern layer corresponding to a decoration scheme of a target scene, wherein the number of the light pattern layers is N, and the light pattern layers are in one-to-one correspondence with N groups of light sources in the decoration scheme;
superposing the light-free layer and the lamplight layer to obtain an initial decoration effect picture of the decoration scheme, and displaying the initial decoration effect picture;
obtaining an adjustment value set for the lighting layer, and adjusting the brightness and the color of the lighting layer, wherein the adjustment value comprises a brightness multiplication value and a color superposition value;
superposing the light-free layer and the adjusted lamplight layer to obtain a middle decoration effect picture of the decoration scheme, and displaying the middle decoration effect picture; and the number of the first and second groups,
and adjusting the brightness and the color of N groups of light sources in the decoration scheme according to the adjustment value, performing off-line rendering on the decoration scheme after adjustment, and outputting a final decoration effect diagram.
2. The method of claim 1, further comprising, prior to performing the method:
acquiring a decoration scheme of a target scene, wherein lamp sources in the target scene are grouped in the decoration scheme;
calling an offline rendering engine to analyze the decoration scheme, and acquiring the lamp source grouping condition in the decoration scheme;
calling an offline rendering engine to perform offline rendering on the decoration scheme according to the lamp source grouping condition, and outputting a light-source-free layer and a lamp layer corresponding to each group of lamp sources;
compressing the light-free layer and the lamplight layer into layer data of a target system, and uploading the layer data to a cloud server for storage;
the obtaining of the light source-free image layer and the lamplight image layer corresponding to the decoration scheme of the target scene comprises the following steps:
and downloading and decompressing the layer data from the cloud server to obtain the light-source-free layer and the lamplight layer corresponding to the decoration scheme of the target scene.
3. The method of claim 2, wherein the invoking of the offline rendering engine performs offline rendering of the decoration scheme according to the light source grouping condition, comprising:
and acquiring a first resolution of the decoration scheme, and calling an offline rendering engine to perform offline rendering on the decoration scheme at the first resolution according to the light source grouping condition.
4. The method of claim 1, wherein the overlaying the light-free layer and the lighting layer to obtain an initial decoration effect map of the decoration scheme comprises:
superposing the light-free layer and the lamplight layer according to a linear attenuation mode to obtain an initial decoration effect graph of the decoration scheme;
the step of superposing the light-free layer and the adjusted light layer to obtain a middle decoration effect map of the decoration scheme includes:
and superposing the light-free layer and the adjusted lamplight layer according to a linear dimming mode to obtain a middle decoration effect diagram of the decoration scheme.
5. The method according to claim 1, wherein the obtaining of the adjustment value set for the light layer to adjust the brightness and the color of the light layer comprises:
displaying the lamplight layer, hiding the light-free layer, and prompting a user to set adjustment values for the brightness and the color of the lamplight layer;
and acquiring adjustment values set aiming at the brightness and the color of the lamplight layer, and adjusting the brightness and the color of the lamplight layer.
6. The method of claim 1, wherein the off-line rendering of the decoration scheme after the adjustment and outputting of the final decoration effect map comprises:
and acquiring a second resolution of the decoration scheme, performing off-line rendering on the adjusted decoration scheme at the second resolution, and outputting a final decoration effect graph.
7. The method of claim 1, wherein adjusting the brightness and color of the N groups of light sources in the finishing recipe according to the adjustment values comprises:
monitoring whether the operation of adjusting the brightness and the color of the adjusted lamplight layer again exists in a preset time period;
and if the operation of adjusting the brightness and the color of the adjusted lamplight layer again does not exist, adjusting the brightness and the color of N groups of lamp sources in the decoration scheme according to the adjustment value.
8. A finishing effect map generating apparatus, comprising:
the layer acquisition module is used for acquiring a non-light source layer and a light layer corresponding to a decoration scheme of a target scene, wherein the number of the light layers is N, and the light layers are in one-to-one correspondence with N groups of light sources in the decoration scheme;
the layer overlapping first module is used for overlapping the light-free layer and the lamplight layer to obtain an initial decoration effect picture of the decoration scheme and displaying the initial decoration effect picture;
the brightness and color adjusting module is used for acquiring an adjusting value set aiming at the lamplight layer and adjusting the brightness and the color of the lamplight layer, wherein the adjusting value comprises a brightness multiplication value and a color superposition value;
the layer superposition second module is used for superposing the light-free layer and the adjusted lamplight layer to obtain a middle decoration effect picture of the decoration scheme and displaying the middle decoration effect picture; and the number of the first and second groups,
and the effect map generation module is used for adjusting the brightness and the color of the N groups of lamp sources in the decoration scheme according to the adjustment value, performing off-line rendering on the decoration scheme after adjustment and outputting a final decoration effect map.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 7 when executing a program stored on a memory.
10. A storage medium on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110851194.6A 2021-07-27 2021-07-27 Decoration effect graph generation method and device, electronic equipment and storage medium Pending CN113554746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110851194.6A CN113554746A (en) 2021-07-27 2021-07-27 Decoration effect graph generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110851194.6A CN113554746A (en) 2021-07-27 2021-07-27 Decoration effect graph generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113554746A true CN113554746A (en) 2021-10-26

Family

ID=78104561

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110851194.6A Pending CN113554746A (en) 2021-07-27 2021-07-27 Decoration effect graph generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113554746A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226644A (en) * 2008-02-18 2008-07-23 朱东晖 Method for tracing shade and shadow of space two-dimension image
GB201204872D0 (en) * 2012-03-20 2012-05-02 Lightmap Ltd Point and click lighting for image based lighting surfaces
CN103761760A (en) * 2014-01-07 2014-04-30 珠海宜高科技有限公司 Method for manufacturing multi-view indoor design effect picture
CN104268924A (en) * 2014-09-19 2015-01-07 新维畅想数字科技(北京)有限公司 Method for extracting stele inscription digital rubbing based on three-dimensional data scanning
CN109215114A (en) * 2018-08-21 2019-01-15 苏州蜗牛数字科技股份有限公司 The method for drafting of game original painting
CN109829966A (en) * 2019-02-28 2019-05-31 深圳市瑞云科技有限公司 A kind of method of efficient cloud rendering
CN110363839A (en) * 2019-06-19 2019-10-22 深圳市彬讯科技有限公司 Model rendering method, apparatus, computer equipment and storage medium
CN110738626A (en) * 2019-10-24 2020-01-31 广东三维家信息科技有限公司 Rendering graph optimization method and device and electronic equipment
CN111429566A (en) * 2020-03-20 2020-07-17 广东三维家信息科技有限公司 Reconstruction method and device of virtual home decoration scene and electronic equipment
CN111696187A (en) * 2020-04-26 2020-09-22 杭州群核信息技术有限公司 Illumination design system based on effect diagram
CN111696188A (en) * 2020-04-26 2020-09-22 杭州群核信息技术有限公司 Rendering graph rapid illumination editing method and device and rendering method

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226644A (en) * 2008-02-18 2008-07-23 朱东晖 Method for tracing shade and shadow of space two-dimension image
GB201204872D0 (en) * 2012-03-20 2012-05-02 Lightmap Ltd Point and click lighting for image based lighting surfaces
CN103761760A (en) * 2014-01-07 2014-04-30 珠海宜高科技有限公司 Method for manufacturing multi-view indoor design effect picture
CN104268924A (en) * 2014-09-19 2015-01-07 新维畅想数字科技(北京)有限公司 Method for extracting stele inscription digital rubbing based on three-dimensional data scanning
CN109215114A (en) * 2018-08-21 2019-01-15 苏州蜗牛数字科技股份有限公司 The method for drafting of game original painting
CN109829966A (en) * 2019-02-28 2019-05-31 深圳市瑞云科技有限公司 A kind of method of efficient cloud rendering
CN110363839A (en) * 2019-06-19 2019-10-22 深圳市彬讯科技有限公司 Model rendering method, apparatus, computer equipment and storage medium
CN110738626A (en) * 2019-10-24 2020-01-31 广东三维家信息科技有限公司 Rendering graph optimization method and device and electronic equipment
CN111429566A (en) * 2020-03-20 2020-07-17 广东三维家信息科技有限公司 Reconstruction method and device of virtual home decoration scene and electronic equipment
CN111696187A (en) * 2020-04-26 2020-09-22 杭州群核信息技术有限公司 Illumination design system based on effect diagram
CN111696188A (en) * 2020-04-26 2020-09-22 杭州群核信息技术有限公司 Rendering graph rapid illumination editing method and device and rendering method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张龙;: "基于sketchup与enscape技术的室内店铺展示设计应用分析", 现代电子技术, no. 03, 1 February 2020 (2020-02-01) *

Similar Documents

Publication Publication Date Title
US10839615B2 (en) Systems and methods for generating and intelligently distributing forms of extended reality content
CN110032361B (en) Experiment simulation method, experiment simulation device, electronic equipment and computer readable storage medium
CN113808231B (en) Information processing method and device, image rendering method and device, and electronic device
CN104918112A (en) Camera resource application method and device
CN109840201B (en) UI test method, device, electronic equipment and computer readable storage medium
CN108363574B (en) Front-end customization method and device based on SDK, terminal equipment and storage medium
CN113554746A (en) Decoration effect graph generation method and device, electronic equipment and storage medium
CN114429418A (en) Method and device for generating stylized image, electronic equipment and storage medium
CN115775310A (en) Data processing method and device, electronic equipment and storage medium
CN112181329B (en) Data display method and device
TWM642706U (en) Surrounding scene generation system
CN115908191A (en) Filter parameter acquisition method and device
CN115018968A (en) Image rendering method and device, storage medium and electronic equipment
CN116991513A (en) Configuration file generation method, device, electronic equipment, medium and program product
CN117581268A (en) Rendering visual representations of luminaires by reusing light values
CN113779655A (en) Generation method and device of distribution box system diagram and electronic equipment
US10650611B1 (en) Systems and methods for graphical programming
CN108595455B (en) Spatial data coordinate conversion method and device
CN113066166A (en) Image processing method and device and electronic equipment
CN111597476A (en) Image processing method and device
CN105824608A (en) Processing method and apparatus of processing object, and plug-in generation method and apparatus
CN114332335A (en) Lamplight processing method, device, equipment and medium of three-dimensional enhanced model
US20230393827A1 (en) Application management method and system for terminal
CN114494494A (en) Image illumination parameter adjusting method and device, storage medium and electronic equipment
CN114490345A (en) Debugging method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination