Lighting arrangement plan generation, device, computer equipment and readable storage medium

By providing a light layout solution generation method in Rhino three-dimensional modeling software, the cumbersome manual operation problems caused by the lack of special lighting layout tools are solved, and a more efficient and convenient lighting design and editing process is achieved.

CN118862203BActive Publication Date: 2025-03-18ZHEJIANG HUAWEI INTELLIGENT BUILDING TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410890248.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2025-03-18
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

In the prior art, Rhino three-dimensional modeling software lacks special lighting arrangement tools, which leads lighting designers to manually arrange lights in three-dimensional models, especially in large scenes or complex buildings, which are cumbersome and prone to omissions.

Method used

Provide a method for generating a lighting layout scheme. By adding light objects to the design components of the three-dimensional model and configuring lighting attribute information, determining the graphic design unit, obtaining the position layout instructions of the lighting objects, and generating a three-dimensional lighting design scheme.

Benefits of technology

It significantly reduces the work burden of operators, improves the efficiency of lighting layout and editing, and provides Rhino users with a more efficient and convenient lighting processing solution, especially when dealing with complex 3D models and scene renderings.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862203B_ABST
    Figure CN118862203B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of three-dimensional models, and in particular to a method for generating a lighting layout scheme, a device, a computer device and a readable storage medium. The method comprises: adding a lighting object to a design component of a three-dimensional model according to lighting design requirements, and configuring lighting attribute information for the lighting object; determining a graphic design unit from the three-dimensional model according to the lighting attribute information; obtaining a position layout instruction of the lighting object; and generating a three-dimensional lighting design scheme according to the position layout instruction of the lighting object and the graphic design unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of three-dimensional models, and in particular to a lighting layout scheme generation, device, computer equipment and readable storage medium. Background Art

[0002] Lighting arrangement in the lighting design industry mainly involves comprehensive consideration and planning of lighting types, lighting methods and layouts to achieve the desired lighting effects and atmosphere. Currently, the lighting design industry generally uses manual arrangement to arrange lights in three-dimensional models.

[0003] Rhino is a 3D modeling software that allows users to quickly create high-quality 3D geometric models. The software also supports a variety of extension plug-ins to achieve more functions.

[0004] Although Rhino is a powerful 3D modeling software, it does not provide dedicated lighting arrangement tools or plug-ins for lighting design. This requires lighting designers to manually arrange lights in 3D models when working on the Rhino platform. Especially when it is necessary to arrange lights in large scenes or complex buildings, the operation often becomes repetitive and cumbersome. Therefore, it is urgently needed to be improved. Summary of the invention

[0005] Based on this, it is necessary to provide a lighting layout plan generation, device, computer equipment and readable storage medium that can optimize the lighting design and layout process of designers in response to the above technical problems.

[0006] In a first aspect, the present application provides a method for generating a lighting layout plan, comprising:

[0007] According to lighting design requirements, add lighting objects to the design components of the 3D model and configure lighting attribute information for the lighting objects;

[0008] Determine graphic design units from the three-dimensional model based on the light attribute information;

[0009] Get the position layout instructions of the light object;

[0010] Generate a three-dimensional lighting design plan based on the position layout instructions and graphic design units of the lighting objects.

[0011] In one embodiment, the light attribute information includes a projection form of the light; if the projection form of the light is a rectangular projection, configuring the light attribute information according to the light object and determining the graphic design unit from the three-dimensional model includes:

[0012] Extract basic contour line information of basic rectangular plane in the three-dimensional model according to the light attribute information;

[0013] The basic contour information is used as a graphic design unit in the three-dimensional model.

[0014] In one embodiment, generating a three-dimensional lighting design scheme according to the position layout instructions of the lighting object and the graphic design unit includes:

[0015] According to the position layout instruction of the light object, the target corner point is selected from the corner points in the basic contour line information;

[0016] A three-dimensional lighting design scheme is generated based on the target corner points and the connection information between the corner points in the basic contour line information.

[0017] In one embodiment, extracting basic contour line information of a basic rectangular plane in a three-dimensional model according to light attribute information includes:

[0018] Use Surface parameters to extract the basic rectangular plane in the 3D model;

[0019] Convert the basic rectangular plane into a Brep object;

[0020] Extract the boundary line of the Brep object and obtain the basic contour line information of the basic rectangular plane in the 3D model.

[0021] In one embodiment, a three-dimensional lighting design scheme is generated in a three-dimensional model according to the target corner point and the connection information between each corner point in the basic contour line information, including:

[0022] Obtaining configuration information of a light, the configuration information including at least one of flipping a light direction, light brightness, and light color;

[0023] A three-dimensional lighting design scheme is generated according to the configuration information, target corner points and the connection information between each corner point in the basic contour line information.

[0024] In one embodiment, the method further comprises:

[0025] Get lighting modification instructions;

[0026] Parse the lighting modification instruction, select the target modification object from each lighting object, and determine the modification information corresponding to the target modification object;

[0027] Modify the configuration information of the target modification object according to the modification information corresponding to the target modification object.

[0028] In a second aspect, the present application further provides a lighting layout scheme generating device, comprising:

[0029] The component definition module is used to add light objects to the design components of the 3D model according to the light design requirements and configure light attribute information for the light objects;

[0030] A design definition module, configured to configure light attribute information according to light objects and determine graphic design units from the three-dimensional model;

[0031] An instruction acquisition module is used to obtain the position layout instructions of the lighting object;

[0032] The scheme generation module is used to generate a three-dimensional lighting design scheme in a three-dimensional model according to the position layout instructions and graphic design units of the lighting objects.

[0033] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0034] According to lighting design requirements, add lighting objects to the design components of the 3D model and configure lighting attribute information for the lighting objects;

[0035] Determine graphic design units from the three-dimensional model based on the light attribute information;

[0036] Get the position layout instructions of the light object;

[0037] Generate a three-dimensional lighting design plan based on the position layout instructions and graphic design units of the lighting objects.

[0038] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0039] According to lighting design requirements, add lighting objects to the design components of the 3D model and configure lighting attribute information for the lighting objects;

[0040] Determine graphic design units from the three-dimensional model based on the light attribute information;

[0041] Get the position layout instructions of the light object;

[0042] Generate a three-dimensional lighting design plan based on the position layout instructions and graphic design units of the lighting objects.

[0043] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0044] According to lighting design requirements, add lighting objects to the design components of the 3D model and configure lighting attribute information for the lighting objects;

[0045] Determine graphic design units from the three-dimensional model based on the light attribute information;

[0046] Get the position layout instructions of the light object;

[0047] Generate a three-dimensional lighting design plan based on the position layout instructions and graphic design units of the lighting objects.

[0048] The above-mentioned lighting layout plan generation, device, computer equipment and readable storage medium significantly reduce the workload of operators through automated and batch operations on 3D models, improve the efficiency of lighting layout and editing, and provide Rhino users with a more efficient and convenient lighting processing solution. This makes the processing process simpler when dealing with complex 3D models and scene renderings, and when a large number of lights need to be processed. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0050] Figure 1 A schematic diagram of a process of generating a lighting layout plan in one embodiment;

[0051] Figure 2 A schematic diagram of a flow chart of a step of determining a graphic design unit in a three-dimensional model in one embodiment;

[0052] Figure 3 A schematic diagram of a flow chart of steps for modifying configuration information of a target modification object in one embodiment;

[0053] Figure 4 A schematic diagram of a structure of steps for modifying configuration information of a target modification object in one embodiment;

[0054] Figure 5 It is a structural block diagram of a lighting arrangement scheme generating device in one embodiment;

[0055] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0057] At present, the manual arrangement of lights in 3D models does have some obvious defects. The following is a detailed analysis of these defects: Manual operations are repeated, which easily leads to omissions in lighting arrangement: Manually arranging lights in 3D models, especially when it is necessary to arrange them in large scenes or inside complex buildings, often becomes repetitive and cumbersome. This repetitiveness not only reduces work efficiency, but also easily leads to omissions in the arrangement process, such as missing the lighting arrangement of certain areas or inaccurate arrangement positions.

[0058] Once the number of lights changes, there will be a problem of re-arrangement: During the design process, the number and position of lights often need to be adjusted according to design requirements. Each change in the number of lights means that the operator may need to start the arrangement again, which is not only time-consuming, but also easily interrupts the design process.

[0059] Subsequent modification of lighting parameters can only be done one by one, which increases the burden on operators: when the parameters of the arranged lights (such as brightness, color temperature, illumination range, etc.) need to be adjusted, operators usually need to select and modify each light one by one. When there are a large number of lights, this one-by-one modification method is extremely inefficient and prone to errors.

[0060] There is currently no professional lighting arrangement solution in the Rhino platform, and its functions are not perfect: Although Rhino is a powerful 3D modeling software, it does not provide special lighting arrangement tools or plug-ins for lighting design. This makes lighting designers lack professional support and efficient workflow when working on the Rhino platform.

[0061] In order to solve the above technical problems, in an exemplary embodiment, Figure 2 As shown, a method for generating a lighting layout plan is provided. Taking the method applied to a computer device as an example, the method includes the following steps 101 to 104. Among them:

[0062] Step 101, according to lighting design requirements, add lighting objects in the design components of the three-dimensional model, and configure lighting attribute information for the lighting objects.

[0063] Specifically, in Rhino and Grasshopper, lighting design does require adding light objects and configuring their light property information. In Grasshopper, this is usually done by dragging components onto the canvas and connecting the corresponding input parameters. If you need to create a custom light class or have more fine-grained control over light properties, you may need to write a custom C# or Python script component.

[0064] The light property information is the LightStyle property. Regarding the LightStyle property, this may refer to the property of the light type or light effect, which determines how the light casts light and how the light is distributed. However, in Rhinocommon (Rhino's .NET SDK), there is no property directly named LightStyle. Instead, the type and behavior of lights are usually controlled by different properties, such as light source type (point light, parallel light, spotlight, etc.), color, brightness, spot size, etc.

[0065] Step 102, determining a graphic design unit from the three-dimensional model according to the light attribute information.

[0066] The graphic design unit in the three-dimensional model is the design basis for constructing various objects. Specifically, according to the light attribute information, a matching graphic design unit is selected.

[0067] Step 103, obtaining the position layout instruction of the light object.

[0068] Specifically, the designer or user needs to provide specific instructions about where the light objects (such as lamps) should be placed. These instructions may include the coordinates, direction, angle, etc. of the lamp to ensure that the light can illuminate the scene in the expected way. These instructions can be obtained in a variety of ways, such as through user input, selection from preset templates, or automatically generated according to specific design rules.

[0069] Step 104, generating a three-dimensional lighting design plan according to the position layout instructions of the lighting objects and the graphic design unit.

[0070] First, an accurate three-dimensional scene model is required, which can be created by modeling software or obtained by 3D scanning and other technologies. According to the position layout instructions obtained in step 103, the light objects are placed at the specified positions in the three-dimensional scene and their directions and angles are adjusted. Appropriate properties such as color, brightness, illumination range, etc. are set for each light object to ensure that the lighting effect meets the design requirements. The scene is rendered using a three-dimensional rendering engine to preview the lighting effect. This can help designers check whether the lighting design meets expectations and make necessary adjustments. Once the lighting design achieves the expected effect, it can be exported as a file or image.

[0071] In the above-mentioned lighting layout scheme generation method, through the automation and batch operation of the 3D model, the workload of the operator is significantly reduced, the efficiency of lighting arrangement and editing is improved, and a more efficient and convenient lighting processing solution is provided for Rhino users. This has extremely high practical value when dealing with complex 3D models and scene renderings, and when a large number of lights need to be processed.

[0072] In an exemplary embodiment, Figure 2 As shown, the light attribute information includes the projection form of the light; if the projection form of the light is a rectangular projection, the light attribute information is configured according to the light object, and the graphic design unit is determined from the three-dimensional model, including:

[0073] Step 201: extract basic contour line information of a basic rectangular plane in a three-dimensional model according to light attribute information.

[0074] Specifically, the basic rectangular plane in the three-dimensional model is extracted using Surface parameters; the basic rectangular plane is converted into a Brep object; the boundary line of the Brep object is extracted to obtain the basic contour line information of the basic rectangular plane in the three-dimensional model.

[0075] For example, Rhinocommon provides the Surface.ToBrep() method, which can convert a Surface object to a Brep (Boundary Representation) object. Brep is a more complex geometric representation that contains the boundary information of the surface. Once you have a Brep object, you can use

[0076] Brep.DuplicateEdgeCurves() method is used to extract its boundary curves (i.e. contour lines). This method returns an array of curves. For a rectangular plane, there are usually four curves (four edges). For a rectangle, the four corners can be determined by finding the endpoints of each edge curve. But a simpler method is to use the tools provided by Rhinocommon to directly analyze the corner points of Brep.

[0077] Specifically, you can use the Curve.PointAtEnd and Curve.PointAtStart methods to get the start and end points of each curve. If you want to use a more advanced method to find corner points, you can use the function of Rhino's Discontinuity operator, which can analyze discontinuities on a curve or surface, which usually correspond to corner points. However, using the Discontinuity operator directly in C# code may not be straightforward because it is usually used through the Grasshopper component. In the code, you may need to implement similar logic yourself, or use other functions provided by Rhinocommon to find corner points. A simple way is to iterate over all the edges of Brep and record their endpoints, then remove the duplicate points, and what remains are the corner points.

[0078] Step 202: Use the basic contour information as a graphic design unit in the three-dimensional model.

[0079] Specifically, a three-dimensional lighting design scheme is generated according to the position layout instruction of the lighting object and the graphic design unit, including: selecting a target corner point from each corner point in the basic contour line information according to the position layout instruction of the lighting object; and generating a three-dimensional lighting design scheme according to the connection information between the target corner point and each corner point in the basic contour line information.

[0080] As an example, Rhinocommon (Rhino's C# SDK) is used to generate a light based on the corners and edges of a rectangular plane, and adjust the properties of the light based on the input parameters: The four corners and four contour lines have been extracted from the rectangular plane (as described above). Now, this information will be used to set the base point and size of the light. Next, a light object will be created using the base point and size information, and its properties will be set based on the input parameters. Finally, when the user clicks iRun in the input terminal and changes the value to True, the light will be generated in Rhino.

[0081] In this embodiment, arranging lights in Rhino is usually a manual and time-consuming process. The present invention greatly simplifies this process by picking up rectangular planes in the Rhino model through Grasshopper and automatically generating lights using C# programming. This not only avoids repeated manual operations, but also ensures the accuracy and consistency of the lighting arrangement.

[0082] In one embodiment, a three-dimensional lighting design scheme is generated in a three-dimensional model according to the target corner point and the line information between each corner point in the basic contour line information, including obtaining the configuration information of the light, the configuration information including flipping at least one of the light direction, the light brightness and the light color; and generating the three-dimensional lighting design scheme according to the configuration information, the target corner point and the line information between each corner point in the basic contour line information.

[0083] For example, there is already a C# script or component that can generate lights in Rhino, and this script or component has input ports to receive user parameters.

[0084] csharp

[0085] / / Assuming you already have a RectangleLight class, or are using a light class in Rhino

[0086] public class RectangleLight

[0087] {

[0088] public Point3d BasePoint{get;set;}

[0089] public Vector3d Direction{get;set;}

[0090] public double Length{get;set;}

[0091] public double Width{get;set;}

[0092] public bool Flip{get;set;}

[0093] public double Intensity{get;set;}

[0094] public System.Drawing.Color Color{get;set;}

[0095] / / Assume there is a method for adding lights to a Rhino model

[0096] public void AddToRhinoModel()

[0097] {

[0098] / / Implement code to add lights to the Rhino model

[0099] }

[0100] }

[0101] / / In the main logic part of the script or component

[0102] public void Main(bool iRun,bool iFlip,double iIntensity,System.Drawing.Color iColor)

[0103] {

[0104] / / The previous code may have calculated the base point, length, width and other information of the rectangle

[0105] / / ...(previous code omitted)

[0106] / / Create a light object and set basic properties

[0107] RectangleLight light=new RectangleLight

[0108] {

[0109] BasePoint = basePoint, / / previously calculated base point

[0110] Length = length, / / previously calculated length

[0111] Width = width, / / previously calculated width

[0112] Direction = Vector3d.ZAxis, / / Assume that the light direction is the Z axis direction, you can adjust it as needed

[0113] Flip=iFlip, / / Whether to flip the light direction

[0114] Intensity = iIntensity, / / light brightness

[0115] Color=iColor / / Light color

[0116] };

[0117] / / If the user clicks iRun and it is set to True, generate the light

[0118] if(iRun)

[0119] {

[0120] light.AddToRhinoModel(); / / Call the method of the light object to add it to the Rhino model

[0121] }

[0122] }

[0123] In this example, RectangleLight is a hypothetical light class. You may need to use a specific light class in Rhino or implement one yourself according to the actual situation. The AddToRhinoModel method is a placeholder that represents the logic of adding the light to the Rhino model. You need to implement it according to the Rhino API.

[0124] In an exemplary embodiment, Figure 3 As shown, the method also includes:

[0125] Step 301, obtaining a lighting modification instruction.

[0126] In this step, the system listens for or receives instructions from the user to modify the lighting. This instruction can come from the user interface (UI) operation, such as the user clicking a button, or through some form of input (such as keyboard shortcuts, voice recognition commands, etc.) to explicitly indicate that they want to modify the lighting settings.

[0127] Step 302: parse the light modification instruction, select a target modification object from each light object, and determine modification information corresponding to the target modification object.

[0128] Once the modification instruction is received, the system needs to parse the instruction. The parsing process includes: Identify the target light object: determine which light object or group of light objects the user wants to modify. This may require identification through identifiers, names, numbers or other features in the instruction. Extract modification information: extract the specific modification content that the user wants to make from the instruction, such as changing the brightness, color, direction, switch status, etc. of the light.

[0129] Step 303: modify the configuration information of the target modification object according to the modification information corresponding to the target modification object.

[0130] After parsing the instruction and determining the target light object and the corresponding modification information, the system will actually modify the configuration of the target light object. This may involve the following operations:

[0131] Adjust properties: According to the extracted modification information, directly modify the properties of the light object, such as brightness value, color code, etc. Apply effects: If the modification involves changes in lighting effects (such as dynamic effects, flashing frequency, etc.), the system needs to apply these effects to the light object. Update status: After the modification is completed, update the status of the light object to ensure that other parts of the system or external control devices can perceive these changes. Feedback to the user: After the modification is completed, it may be necessary to feedback the modification results to the user through the user interface or other means so that the user can confirm whether the modification is executed correctly.

[0132] For example, Figure 4 As shown, pick up the light object and pass its GUID to the input terminal iLightID: This step is usually completed in the user interface. The user selects the light object to be modified by some method (such as clicking) and passes its GUID to the input terminal iLightID of the script or component.

[0133] Use the RhinoDoc.ActiveDoc.Objects.FindId method to get the LightObject instance based on the GUID:

[0134] csharp

[0135] Guid lightGuid = new Guid(iLightID); / / Assume iLightID is the string representation of the GUID

[0136] RhinoObject rhinoObject=RhinoDoc.ActiveDoc.Objects.FindId(lightGuid);

[0137] if(rhinoObject==null||!(rhinoObject is LightObject))

[0138] {

[0139] / / The light object was not found or the object is not a light type

[0140] return;

[0141] }

[0142] LightObject lightObject=(LightObject)rhinoObject;

[0143] Modify light properties:

[0144] After obtaining the LightObject instance, you can modify its properties. However, please note that the LightObject itself does not directly expose all light geometry and property settings. You may need to obtain the light's geometry information first and then modify it. The following code is a hypothetical example because the specific property settings may depend on the specific type of light (such as point light, rectangular light, etc.).

[0145] csharp

[0146] / / Assume that LightObject has an interface that can access and modify its light geometry properties

[0147] if(lightObject.LightGeometry!=null)

[0148] {

[0149] / / Set the light brightness

[0150] lightObject.LightGeometry.Intensity=iIntensity;

[0151] / / If the light type is a rectangular light, you can also set properties such as length and width

[0152] / / Here you need to check the actual type of LightGeometry and set the properties after conversion

[0153] if(lightObject.LightGeometry is RectangularLightGeometryrectangularLight)

[0154] {

[0155] rectangularLight.Length=iLightLength;

[0156] rectangularLight.Width=iLightWidth;

[0157] }

[0158] / / Set the light color

[0159] lightObject.LightGeometry.Color=iColor;

[0160] }

[0161] After modifying light properties, there are usually no extra steps required to "apply" these changes, as they are made directly to the object in the Rhino document. However, if you work in the user interface, you may need to refresh the interface to display the updated light effects.

[0162] Finally, when the user clicks on the iRun input and sets its Boolean value to True, the above modification code will be executed. This is usually done in an event handler or command.

[0163] This process ensures that the lighting system can respond to user needs and dynamically adjust the lighting configuration to meet different scenarios or user needs. In actual applications, this process may vary depending on the characteristics and requirements of the specific lighting control system or platform.

[0164] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0165] Based on the same inventive concept, the embodiment of the present application also provides a lighting arrangement scheme generating device for implementing the lighting arrangement scheme generating method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more lighting arrangement scheme generating device embodiments provided below can refer to the limitations of the lighting arrangement scheme generating method above, and will not be repeated here.

[0166] In an exemplary embodiment, Figure 5 As shown, a lighting layout scheme generating device is provided, comprising:

[0167] The component definition module 11 is used to add a light object to the design component of the three-dimensional model according to the light design requirements, and configure light attribute information for the light object;

[0168] A design definition module 12, configured to configure light attribute information according to the light object and determine the graphic design unit from the three-dimensional model;

[0169] The instruction acquisition module 13 is used to acquire the position layout instruction of the lighting object;

[0170] The scheme generating module 14 is used to generate a three-dimensional lighting design scheme in a three-dimensional model according to the position layout instructions and graphic design units of the lighting objects.

[0171] Each module in the above-mentioned lighting arrangement scheme generating device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0172] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for generating a lighting layout plan is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0173] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0174] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0175] According to lighting design requirements, add lighting objects to the design components of the 3D model and configure lighting attribute information for the lighting objects;

[0176] Determine graphic design units from the three-dimensional model based on the light attribute information;

[0177] Get the position layout instructions of the light object;

[0178] Generate a three-dimensional lighting design plan based on the position layout instructions and graphic design units of the lighting objects.

[0179] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0180] According to lighting design requirements, add lighting objects to the design components of the 3D model and configure lighting attribute information for the lighting objects;

[0181] Determine graphic design units from the three-dimensional model based on the light attribute information;

[0182] Get the position layout instructions of the light object;

[0183] Generate a three-dimensional lighting design plan based on the position layout instructions and graphic design units of the lighting objects.

[0184] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0185] According to lighting design requirements, add lighting objects to the design components of the 3D model and configure lighting attribute information for the lighting objects;

[0186] Determine graphic design units from the three-dimensional model based on the light attribute information;

[0187] Get the position layout instructions of the light object;

[0188] Generate a three-dimensional lighting design plan based on the position layout instructions and graphic design units of the lighting objects.

[0189] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0190] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0191] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for generating a lighting layout plan, characterized in that: The method comprises: According to lighting design requirements, add lighting objects in the design components of the three-dimensional model, and configure lighting attribute information for the lighting objects; Determining a graphic design unit from the three-dimensional model according to the light attribute information; Obtaining a position layout instruction for the light object; Generate a three-dimensional lighting design plan according to the position layout instruction of the lighting object and the graphic design unit; The light attribute information includes a projection form of the light; if the projection form of the light is a rectangular projection, then configuring the light attribute information according to the light object and determining the graphic design unit from the three-dimensional model includes: Extracting basic contour line information of a basic rectangular plane in the three-dimensional model according to the light attribute information; Using the basic contour information as a graphic design unit in the three-dimensional model; The step of generating a three-dimensional lighting design scheme according to the position layout instruction of the lighting object and the graphic design unit includes: According to the position layout instruction of the light object, a target corner point is selected from each corner point in the basic contour line information; A three-dimensional lighting design scheme is generated according to the target corner point and the connection information between each corner point in the basic contour line information.

2. The method according to claim 1, characterized in that The step of extracting basic contour line information of a basic rectangular plane in the three-dimensional model according to the light attribute information includes: Using Surface parameters, extracting a basic rectangular plane in the three-dimensional model; Convert the basic rectangular plane into a Brep object; The boundary line of the Brep object is extracted to obtain basic contour line information of the basic rectangular plane in the three-dimensional model.

3. The method according to claim 2, characterized in that The step of generating a three-dimensional lighting design scheme in the three-dimensional model according to the target corner point and the connection information between each corner point in the basic contour line information includes: Acquire configuration information of the light, wherein the configuration information includes at least one of flipping the light direction, the light brightness, and the light color; A three-dimensional lighting design scheme is generated according to the configuration information, the target corner points and the connection information between the corner points in the basic contour line information.

4. The method according to claim 1, characterized in that: The method further comprises: Get lighting modification instructions; Parsing the lighting modification instruction, selecting a target modification object from each lighting object, and determining modification information corresponding to the target modification object; The configuration information of the target modification object is modified according to the modification information corresponding to the target modification object.

5. The device for generating a lighting arrangement scheme according to claim 1, characterized in that: The device comprises: A component definition module is used to add a light object to the design component of the three-dimensional model according to the light design requirements, and configure light attribute information for the light object; A design definition module, configured to determine a graphic design unit from the three-dimensional model according to the light attribute information configured by the light object; An instruction acquisition module, used to acquire the position layout instruction of the light object; The scheme generating module is used to generate a three-dimensional lighting design scheme in the three-dimensional model according to the position layout instruction of the lighting object and the graphic design unit.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Three-dimensional scene light configuration method and device, electronic equipment and storage medium

    CN114581591A

  • Indoor lamp automatic arranging method

    JP2020047268A