WO2022141888A1 - Home decoration material moving method and apparatus, and computer device and storage medium - Google Patents

Home decoration material moving method and apparatus, and computer device and storage medium Download PDF

Info

Publication number
WO2022141888A1
WO2022141888A1 PCT/CN2021/084733 CN2021084733W WO2022141888A1 WO 2022141888 A1 WO2022141888 A1 WO 2022141888A1 CN 2021084733 W CN2021084733 W CN 2021084733W WO 2022141888 A1 WO2022141888 A1 WO 2022141888A1
Authority
WO
WIPO (PCT)
Prior art keywords
moving
mouse
materials
house type
home improvement
Prior art date
Application number
PCT/CN2021/084733
Other languages
French (fr)
Chinese (zh)
Inventor
宋璐
黄治
喻培
陈静
唐睿
Original Assignee
杭州群核信息技术有限公司
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 杭州群核信息技术有限公司 filed Critical 杭州群核信息技术有限公司
Publication of WO2022141888A1 publication Critical patent/WO2022141888A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/005General purpose rendering architectures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2200/00Indexing scheme for image data processing or generation, in general
    • G06T2200/08Indexing scheme for image data processing or generation, in general involving all processing steps from image acquisition to 3D model generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/04Architectural design, interior design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2219/00Indexing scheme for manipulating 3D models or images for computer graphics
    • G06T2219/20Indexing scheme for editing of 3D models
    • G06T2219/2016Rotation, translation, scaling

Definitions

  • the prompt information includes alignment prompt information in 3D space, that is, the method for moving home improvement materials further includes an alignment prompt function in 3D space, so as to facilitate the user to align the materials, such as two materials in the same adsorption plane
  • the front alignment, centroid alignment, back alignment, etc. to facilitate the placement of the same type of material, such as two bedside tables, two wall lamps, etc.
  • the realization process of the effect of keeping the material near big and far small during the moving process is as follows: determining the 3D coordinates of the position selected by the mouse, and in the process of moving the material by the mouse, the movement of the mouse is decomposed into the horizontal direction and the vertical direction.
  • the bounding box of the material moves with the mouse when moving horizontally.
  • the mouse only indicates the moving direction.
  • the vertical direction means moving at a constant speed in the world coordinate system along the direction the camera is looking at. Adjust the depth information of the mouse and the bounding box, so that during the movement of the material, the material bounding box will automatically show the state of near big and far small according to different positions.
  • the material can be realized.
  • the processor when the processor executes the computer program, the processor further implements the following steps: automatically generating a layer for the material placed on the floor plan of the house type projection and adjusting the layer according to the material moving instruction.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Computer Hardware Design (AREA)
  • Computer Graphics (AREA)
  • Architecture (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Civil Engineering (AREA)
  • Structural Engineering (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • Processing Or Creating Images (AREA)

Abstract

Provided are a home decoration material moving method and apparatus, and a computer device and a storage medium, which belong to the field of home decoration designs. The method comprises: acquiring a house type projection plane graph including a designed home decoration material (S101), wherein the house type projection plane graph includes three-dimensional structure information of a house type; receiving a material moving instruction (S102); and on the basis of auxiliary information corresponding to a material state, prompt information and the three-dimensional structure information of the house type, adjusting a design by means of moving the designed home decoration material according to the material moving instruction, so as to obtain a home decoration design result (S103). Moving a 2D material and a 3D material in a two-dimensional plane improves the design efficiency and the design effect of a home decoration layout, and brings an excellent operation experience for a user.

Description

一种家装素材移动方法、装置、计算机设备和存储介质A method, device, computer equipment and storage medium for moving home improvement materials 技术领域technical field
本发明属家装设计和计算机辅助设计的交叉领域,还涉及图形图像技术领域,具体涉及一种家装素材移动方法、装置、计算机设备和存储介质。The invention belongs to the cross field of home improvement design and computer-aided design, and also relates to the technical field of graphics and images, in particular to a method, device, computer equipment and storage medium for moving home improvement materials.
背景技术Background technique
家装设计一般包含硬装、定制和软装几个部分,而现在精装修交付是社会发展的大趋势,业主收房之后已经是经过开发商统一硬装的房屋,只需对其进行软装和部分硬装辅助搭配陈设即可完成家装设计,而这一部分是最能够体现房屋主人性格和喜好的部分。Home decoration design generally includes hard decoration, customization and soft decoration. Now fine decoration delivery is a major trend of social development. After the owner has acquired the house, it is already a house that has been uniformly decorated by the developer, and only needs to be soft and furnished. Part of the hard decoration can be supplemented with furnishings to complete the home decoration design, and this part is the part that can best reflect the personality and preferences of the owner of the house.
随着人们生活水平的提高,对软装设计的个性化需求愈加明显,人们通常通过专业的软装设计师、家居卖场的门店导购,或自己简单搭配来确定自己喜欢的风格和色系,以及特定的软装单品,然后才去进行软装的购置和摆场。家装设计的现状有两种主流方式,一种是3D形式,如3D Max,酷家乐,三维家,躺平设计家等。这种方式利用家装素材的三维模型在可视化工具中的示意摆放来作为主要设计过程,设计过程中的效果无法直接作为交付结果,需要经过较长时间的渲染等待得到效果图。另一种是2D形式,如美间,PS,PPT等。这种形式利用家装素材的图片在一个平面画布中进行拼图搭配,设计过程中呈现的效果就是最终的交付效果,直观简单,但需要较强的空间想象能力并且花费较长时间对图片进行透视关系、大小等调整。With the improvement of people's living standards, the personalized demand for soft decoration design has become more and more obvious. People usually determine their favorite styles and colors through professional soft decoration designers, shopping guides in home stores, or simple matching by themselves, and Specific soft outfit items, and then go to the purchase and placement of soft outfits. There are two mainstream methods for the current situation of home decoration design, one is 3D form, such as 3D Max, Kujiale, 3D home, and flat design home. This method uses the schematic placement of the 3D model of the home improvement material in the visualization tool as the main design process. The effect in the design process cannot be directly used as the delivery result, and it takes a long time to render and wait for the rendering. The other is 2D form, such as Meijian, PS, PPT, etc. This form uses pictures of home improvement materials to make puzzles on a flat canvas. The effect presented in the design process is the final delivery effect, which is intuitive and simple, but requires strong spatial imagination and takes a long time to make perspective relationships between pictures. , size, etc.
发明内容SUMMARY OF THE INVENTION
鉴于上述,本发明的目的是提供了一种家装素材移动方法、装置、计算机设备和存储介质,通过二维平面内对2D素材和3D素材进行移动,提升家装布局的设计效率和设计效果,带给用户极致的操作体验。In view of the above, the purpose of the present invention is to provide a method, device, computer equipment and storage medium for moving home decoration materials, which can improve the design efficiency and design effect of home decoration layout by moving 2D materials and 3D materials in a two-dimensional plane. Give users the ultimate operating experience.
第一方面,本发明实施例提供了一种家装素材移动方法,包括以下步骤:In a first aspect, an embodiment of the present invention provides a method for moving home improvement materials, including the following steps:
获取包含有已设计有家装素材的户型投影平面图,所述户型投影平面图包含户型的三维结构信息;Acquiring a floor plan of a house type that includes materials that have been designed for home decoration, where the floor plan of the house type projection includes three-dimensional structure information of the house type;
接收素材移动指令;Receive material movement instructions;
基于素材状态对应的辅助信息、提示信息以及户型的三维结构信息,辅助根据素材移动指令对已设计的家装素材进行移动来调整设计,得到家装设计结果。Based on the auxiliary information, prompt information and the three-dimensional structure information of the house type corresponding to the material state, the designed home decoration material is moved according to the material movement instruction to adjust the design, and the home decoration design result is obtained.
第二方面,本发明实施例提供了一种家装素材移动装置,包括:In a second aspect, an embodiment of the present invention provides a device for moving home improvement materials, including:
获取模块,获取包含有已设计有家装素材的户型投影平面图,所述户型投影平面图包含户型的三维结构信息;an acquisition module, which acquires a floor plan of a house type that includes materials for home decoration that have been designed, and the floor plan of the house type projection includes the three-dimensional structure information of the house type;
接收模块,接收素材移动指令;The receiving module receives the material movement instruction;
移动模块,基于素材状态对应的辅助信息、提示信息以及户型的三维结构信息,辅助根据素材移动指令对已设计的家装素材进行移动。The moving module, based on the auxiliary information corresponding to the material state, the prompt information and the three-dimensional structure information of the house type, assists in moving the designed home decoration material according to the material moving instruction.
第三方面,本发明实施例提供了一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上执行的计算机程序,所述处理器执行所述计算机程序时实现第一方面所述的家装素材移动方法的步骤。In a third aspect, an embodiment of the present invention provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, when the processor executes the computer program The steps of implementing the method for moving home improvement materials described in the first aspect.
第四方面,本发明实施例提供了一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理执行时实现第一方面所述的家装素材移动方法的步骤。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is processed and executed, the steps of the method for moving home improvement materials described in the first aspect are implemented. .
与现有技术相比,本发明具有的有益效果至少包括:Compared with the prior art, the beneficial effects of the present invention at least include:
本发明实施例提供的一种家装素材移动方法、装置、计算机设备和存储介质,基于素材状态对应的辅助信息、提示信息以及户型的三维结构信息,辅助对已设计的家装素材进行移动来调整设计,该辅助信息和提示信息的存在会提升家装布局的设计效率,带给用户极致的操作体验,提升设计效果。A method, device, computer equipment, and storage medium for moving home improvement materials provided by the embodiments of the present invention assist in moving the designed home improvement materials to adjust the design based on auxiliary information, prompt information corresponding to the material state, and three-dimensional structure information of the house type. , the existence of the auxiliary information and prompt information will improve the design efficiency of the home decoration layout, bring users the ultimate operating experience, and improve the design effect.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图做简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动前提下,还可以根据这些附图获得其他附图。In order to illustrate the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative efforts.
图1是本发明一实施例提供的家装素材移动方法的流程图;1 is a flowchart of a method for moving home improvement materials provided by an embodiment of the present invention;
图2是本发明一实施例提供的成像房间区域信息示意图;2 is a schematic diagram of imaging room area information provided by an embodiment of the present invention;
图3是本发明一实施例提供的显示控制点的户型投影平面图;FIG. 3 is a projected plan view of a house type showing control points according to an embodiment of the present invention;
图4是本发明一实施例提供的素材状态对应的辅助信息和的示意图;4 is a schematic diagram of auxiliary information sum corresponding to a material state provided by an embodiment of the present invention;
图5是本发明一实施例提供的素材的对齐参照线示意图;5 is a schematic diagram of an alignment reference line of a material provided by an embodiment of the present invention;
图6是本发明一实施例提供的素材的齐参照面示意图;FIG. 6 is a schematic view of an aligned reference plane of a material provided by an embodiment of the present invention;
图7是本发明一实施例提供的素材的移动的空间范围提示示意图;FIG. 7 is a schematic diagram of prompting a spatial range of material movement provided by an embodiment of the present invention;
图8是本发明一实施例提供的素材呈现近大远小的效果示意图;FIG. 8 is a schematic diagram showing the effect that the material provided by an embodiment of the present invention presents a near-large and far-small effect;
图9是本发明一实施例提供的家装素材移动装置的结构示意图;9 is a schematic structural diagram of a home improvement material moving device provided by an embodiment of the present invention;
图10是本发明另一实施例提供的家装素材移动装置的结构示意图;10 is a schematic structural diagram of a home improvement material moving device provided by another embodiment of the present invention;
图11是本发明一实施例提供的计算机设备的结构示意图。FIG. 11 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例对本发明进行进一步的详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不限定本发明的保护范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, and do not limit the protection scope of the present invention.
为了提升家装设计的效率和效果,本发明实施例提供了一种家装素材移动方法、装置、计算机设备和存储介质,具体可以应用到家装领域,实现在2.5维度的户型投影平面图上移动家装素材以调整设计。下面针对每部分进行详细说明。In order to improve the efficiency and effect of home decoration design, the embodiments of the present invention provide a method, device, computer equipment and storage medium for moving home decoration materials, which can be specifically applied to the field of home decoration to realize moving home decoration materials on a 2.5-dimensional house type projection plan to achieve Adjust the design. Each section is described in detail below.
实施例1Example 1
实施例1提供了一种家装素材调整方法。如图1所示,实施例提供家装素材移动方法包括以下步骤:Embodiment 1 provides a method for adjusting home improvement materials. As shown in FIG. 1 , the embodiment provides a method for moving home improvement materials, including the following steps:
S101,获取包含有已设计有家装素材的户型投影平面图,所述户型投影平面图包含户型的三维结构信息。S101: Acquire a floor plan projection plan of a house type that includes materials that have been designed for home decoration, where the floor plan projection plan of the house type includes three-dimensional structure information of the house type.
户型投影平面图由平面家装背景图生成。将家装素材放置到户型投影平面图上即获得含有已设计有家装素材的户型投影平面图。The floor plan of the house type projection is generated from the background image of the flat home decoration. Place the home improvement material on the floor plan of the house type to obtain the floor plan of the house type that has been designed with the home decoration material.
其中,平面家装背景图是用户家装平面设计的基准图。平面家装背景图的选择有很多,可以是带软装的完整渲染图、不带软装的空场景渲染图、实拍照片或白板,白板即空白背景。Among them, the background image of the flat home decoration is the reference diagram of the flat design of the user's home decoration. There are many choices for the background picture of flat home decoration, which can be a complete rendering with soft decoration, an empty scene rendering without soft decoration, a real photo or a whiteboard. A whiteboard is a blank background.
本发明提供的家装素材移动方法是一种3D或者2.5D的设计方法,因此,户型的三维信息是设计过程非常重要的辅助信息,在进行设计之前需要先获得户型的三维结构信息,然后基于该三维信息进行家装布局调整。The method for moving home decoration materials provided by the present invention is a 3D or 2.5D design method. Therefore, the three-dimensional information of the house type is very important auxiliary information in the design process. Before designing, it is necessary to obtain the three-dimensional structure information of the house type. 3D information for home decoration layout adjustment.
当平面家装背景图为渲染图时,解析渲染图后根据渲染参数获得相机参数和光场信息,并构建相机矩阵;基于渲染图和相机矩阵计算获得渲染图的三维模型,即得到户型的三维结构信息;根据户型的三维结构信息构建户型投影平面图,其中,投影平面图包括地面投影平面(简称地面)、墙面投影平面(简称墙面)以及顶面投影平面(简称顶面)至少一种。When the background image of the flat home decoration is a rendering image, after parsing the rendering image, the camera parameters and light field information are obtained according to the rendering parameters, and the camera matrix is constructed; the 3D model of the rendering image is obtained by calculating the rendering image and the camera matrix, that is, the 3D structure information of the house type is obtained. Constructing a floor plan projection plan according to the three-dimensional structure information of the floor plan, wherein the projection plan view includes at least one of a ground projection plane (referred to as the ground), a wall projection plane (referred to as a wall) and a top projection plane (referred to as the top surface).
当平面家装背景图为实拍照片时,预设相机参数,即以相机位置作为世界坐标系原点,且世界坐标系和相机坐标系重合,对实拍照片做边缘检测,结合墙顶地互相垂直的假设,恢复户型三维结构信息,然后依据户型的三维结构信息构建户型投影平面图。When the background picture of the flat home decoration is a real photo, the camera parameters are preset, that is, the camera position is used as the origin of the world coordinate system, and the world coordinate system and the camera coordinate system are coincident, and the edge detection is performed on the real photo, and the top of the wall is perpendicular to each other. The assumption is that the three-dimensional structure information of the house type is restored, and then the projected floor plan of the house type is constructed according to the three-dimensional structure information of the house type.
在一种实施方式中,根据户型的三维结构信息构建户型投影平面图包括:基于户型的三维结构信息得到表示墙体连接处的所有角点(corner)信息和所有墙体(wall)信息;其中,角点信息用坐标表示,墙体信息采用连接墙体的两个角点坐标、墙体厚度以及墙体高度描述。In an implementation manner, constructing a floor plan of a house type projection according to the three-dimensional structure information of the house type includes: obtaining all corner (corner) information and all wall (wall) information indicating a wall connection based on the three-dimensional structure information of the house type; wherein, The corner information is represented by coordinates, and the wall information is described by the coordinates of two corner points connecting the wall, the thickness of the wall and the height of the wall.
根据角点信息和墙体信息构建户型平面图后,根据相机参数对户型平面图做投影,得到户型投影平面图。具体过程为:首先,根据角点坐标和墙体信息连接对应角点生成墙体线条,得到户型平面图;然后,根据相机位置和相机看向的方向的近平面裁剪距离,获得相机看向的方向点位的平面坐标后,根据相机看向的点位的平面坐标判断并确定相机看向的点位位于平面户型图的房间区域;最后,筛选确定组成房间区域的有效角点,基于有效角点、墙体厚度、墙体高度以及相机参数生成墙面投影平面、地面投影平面以及顶面投影平面,形成房间区域的户型投影平面图。After building the floor plan according to the corner point information and the wall information, project the floor plan according to the camera parameters to obtain the floor plan of the floor plan. The specific process is: first, connect the corresponding corner points to generate wall lines according to the corner coordinates and wall information, and obtain the floor plan of the house; then, according to the camera position and the near-plane clipping distance of the direction the camera is looking at, obtain the direction the camera is looking at After the plane coordinates of the point, judge and determine that the point the camera is looking at is located in the room area of the floor plan according to the plane coordinates of the point the camera is looking at; finally, filter and determine the effective corners that make up the room area, based on the effective corners , wall thickness, wall height and camera parameters to generate the wall projection plane, the ground projection plane and the top projection plane to form the floor plan of the room area.
在实施例中,在获得房间区域的有效角点后,依据有效角点连接形成户型骨架,依据墙体厚度,沿户型骨架向内和向外生成与户型骨架平行的线条作为墙内线和墙外线,确定墙内线的交点并以该交点作为目标角点,同时获得二维坐标(x,y),依据相机高度和楼层高度确定目标角点的z坐标,得到目标角点的三维坐标(x,y,z),依据目标角点的三维坐标确定空间连线,采用由相机参数确定的相机视椎对空间连线进行截断来生成新控制点,以处于相机视椎内的目标角点为原控制点,依据新控制点和原控制点生成墙面投影平面、地面投影平面以及顶面投影平面,形成房间区域的户型投影平面图。In the embodiment, after obtaining the effective corner points of the room area, the apartment frame is formed according to the connection of the effective corner points, and according to the thickness of the wall, lines parallel to the apartment frame are generated inwardly and outwardly along the apartment frame as the inner wall line and the outer wall line. , determine the intersection of the lines in the wall and use the intersection as the target corner, obtain the two-dimensional coordinates (x, y) at the same time, determine the z-coordinate of the target corner according to the camera height and floor height, and obtain the three-dimensional coordinates of the target corner (x, y) y, z), determine the space connection line according to the three-dimensional coordinates of the target corner point, use the camera view cone determined by the camera parameters to truncate the space connection line to generate a new control point, and take the target corner point in the camera view cone as the original. Control point, according to the new control point and the original control point to generate the wall projection plane, the ground projection plane and the top projection plane to form the floor plan of the room area.
实施例中,相机看向的方向点位是指相机看向的方向的裁剪平面,即成像视锥的近平面,和相机看向的方向的交点。由于房间区域是一个封闭区域,将房间区域内处于墙体之间的角点和户型其他房间的角点作为冗余点剔除,剩下的角点为组成房间区域的有效角点。如图2所示,旁边没有圆点的符号×表示的角点为相机所在房间的冗余点,剩下的旁边有圆点的符号×用于组成墙体,为有效角点。剔除冗余点之后,利用墙体的厚度信息,沿着垂直于墙体的方向分别增减1/2的墙体厚度,得到墙内线和墙外线,并以墙内线的交点为目标角点,即图2中的圆点部分,它们是描述相机所在房间墙内线构成的多边形的最小点集。In the embodiment, the point in the direction the camera looks at refers to the clipping plane of the direction in which the camera looks, that is, the intersection of the near plane of the imaging viewing cone and the direction in which the camera looks. Since the room area is a closed area, the corner points between the walls in the room area and the corner points of other rooms of the apartment type are removed as redundant points, and the remaining corner points are the effective corner points that constitute the room area. As shown in Figure 2, the corners represented by the symbol × without dots are redundant points in the room where the camera is located, and the remaining symbols × with dots next to them are used to form walls and are valid corners. After eliminating the redundant points, use the thickness information of the wall to increase or decrease the thickness of the wall by 1/2 along the direction perpendicular to the wall to obtain the inner wall line and the outer wall line, and take the intersection of the inner wall line as the target corner point, That is, the dots in Figure 2, they are the smallest set of points that describe the polygons formed by the lines in the wall of the room where the camera is located.
实施例中,最终用于形成的投影平面图的目标角点(图2中的圆点)实际上是所有墙内线的交点,但因为房间是不规则的,无法区分墙内线和墙外线,因此需要进行线条识别来确定墙内线的交点,具体过程包括:In the embodiment, the target corner point (the circle point in Fig. 2 ) of the final projected plan view is actually the intersection point of all the inner wall lines, but because the room is irregular, it is impossible to distinguish the inner wall line and the outer wall line, so it is necessary to Line recognition is performed to determine the intersection of lines within the wall. The specific process includes:
对墙内线和墙外线进行延伸实现交点连接处的闭合生成交点,同时剔除交点处的出头线段,然后查找相机看向的方向点位的平面坐标所在的闭合区域方法获得墙内线即墙内线的交点作为目标角点。Extend the line inside the wall and the line outside the wall to realize the closure of the intersection connection to generate the intersection, and at the same time remove the outgoing line segment at the intersection, and then find the closed area where the plane coordinates of the point in the direction the camera is looking at. as the target corner.
实施例中,应用相机视锥可以实现室内区域的透视投影和正交投影,当实现透视投影时,采用的相机视锥为椎台对目标角点的空间连接截断,椎台与空间连接的交点为新控制点;当实现正交投影时,采用的相机视锥为立方体对目标角点的空间连接截断。In the embodiment, the perspective projection and orthogonal projection of the indoor area can be realized by using the camera view cone. When the perspective projection is realized, the camera view cone used is the truncation of the spatial connection of the vertebral frustum to the target corner, and the intersection of the vertebral frustum and the spatial connection. is the new control point; when the orthographic projection is realized, the camera view cone used is the spatial connection truncation of the cube to the target corner.
实施例中,依次对新控制点和原控制点进行连接,生成墙面投影平面,然后,将墙体的所有上控制点连接形成顶面投影平面,将墙体的所有下控制点连接形成底面投影平面,形成房间区域的户型投影平面图。In the embodiment, the new control point and the original control point are connected in sequence to generate the wall projection plane, then all the upper control points of the wall are connected to form the top projection plane, and all the lower control points of the wall are connected to form the bottom surface. Projection plane, which forms the projected floor plan of the room area.
本发明中将投影平面称为吸附面,表示能够根据素材的配置属性吸附家装素材到相应面上。为了更好地描述吸附面,设定平面的角点为控制点,依据控制点来描述吸附面。实施例中吸附面用顺时针连接的控制点表示,以一个List来描述渲染图的户型结构的可见投影平面,每个可见投影平面以不少于3个控制点描述。特别地,当某一投影平面被画面(也就是视锥范围)截断时,控制点要相应地调整到画面内,并视情况增加。例如,如图3所示的左数第一面墙A被视锥截掉一个角,则描述左数第一面墙的控制点将由4个会变成5个,此外最后整个画面中4个角点也被作为控制点加入对应的投影平面,保证整个画面被所有投影平面完全覆盖,如图3中的左上角、右上角、右下角,但投影平面可在画面中重合,如凹凸墙背后的平面如图3中B部分。In the present invention, the projection plane is called the adsorption surface, which means that the home improvement material can be adsorbed to the corresponding surface according to the configuration property of the material. In order to better describe the adsorption surface, the corner points of the plane are set as control points, and the adsorption surface is described according to the control points. In the embodiment, the adsorption surface is represented by the control points connected clockwise, and a List is used to describe the visible projection plane of the house type structure of the rendering image, and each visible projection plane is described by no less than 3 control points. In particular, when a certain projection plane is cut off by the picture (that is, the viewing cone range), the control points should be adjusted accordingly to the picture, and increased as needed. For example, as shown in Figure 3, the first wall A from the left is truncated by a corner of the view cone, then the control points describing the first wall from the left will be changed from 4 to 5. In addition, there are 4 control points in the last whole picture. The corner points are also added to the corresponding projection planes as control points to ensure that the entire picture is completely covered by all projection planes, such as the upper left corner, upper right corner, and lower right corner in Figure 3, but the projection planes can be overlapped in the picture, such as behind the bump wall The plane is shown in Part B of Figure 3.
当平面家装背景图为白板时,需要预定义一系列的渲染图作为白板的三维结构信息的输入,依据户型的三维结构信息构建户型投影平面图;但工具展示层面为空白,即RGB=(255,255,255),或用户定义的其他值。其中一种典型的情况是,选取相机正视正前方,且视野中只有一面墙的局部的情况,这种情况下所有家装素材都以铺贴类型放置在同一平面上,兼容了纯2D设计的情况。When the background image of the flat home decoration is a whiteboard, a series of rendering images need to be predefined as the input of the three-dimensional structure information of the whiteboard, and the projected floor plan of the house type is constructed according to the three-dimensional structure information of the house type; but the tool display level is blank, that is, RGB=(255, 255, 255), or other user-defined value. One of the typical cases is to select the case where the camera is looking straight ahead, and there is only a part of a wall in the field of view. In this case, all the home improvement materials are placed on the same plane in a tiled type, which is compatible with pure 2D design. .
实施例中,家装素材按照设置方式定义了两种素材类型,分别为放置类型和铺贴类型。其中,放置类型是指能够直接摆放的素材,如沙发,床,桌子等,进一步细分,放置类型包括放置在地上、挂置在墙上以及吊置在顶上。铺贴类型是指能够铺贴设置的素材,如地毯、挂画、窗帘等,进一步细分,铺贴类型包括铺置在地面和贴置在墙面。In the embodiment, the home improvement material defines two material types according to the setting method, namely the placement type and the paving type. Among them, the placement type refers to materials that can be placed directly, such as sofas, beds, tables, etc., and is further subdivided. The placement types include placing on the ground, hanging on the wall, and hanging on the top. The type of paving refers to the materials that can be paved, such as carpets, paintings, curtains, etc., and is further subdivided. The types of paving include paving on the ground and pasting on the wall.
家装素材按照维度同样也定义了两种素材类型,分别为三维(3D)素材和二维(2D)素材,即本发明提供的家装素材移动方法同时支持在3D素材和2D素材的移动调整,在画布中被操作的素材元素均为图片,背景是一个大贴图作为背景图层,每个素材元素都是一个小图片,由一个单独的图层承载。Home improvement materials also define two types of materials according to dimensions, namely three-dimensional (3D) materials and two-dimensional (2D) materials. The manipulated material elements in the canvas are all pictures, the background is a large texture as the background layer, and each material element is a small picture, which is carried by a separate layer.
为了方便在移动过程中对3D素材和2D素材的调整,为3D素材和2D素材设置描述标识。In order to facilitate the adjustment of the 3D material and the 2D material during the moving process, a description flag is set for the 3D material and the 2D material.
设置3D素材的调整描述标识为包含坐标系的立体包围盒,包括上平面、下平面、左平面、右平面、前平面和后平面。对于2D素材,描述其物理尺寸的包围盒是缺失的,但是本发明中仍然沿用3D素材包围盒的坐标形式,根据2D素材类别的经验观察赋予其默认高度值,即Bounding Box中的z值,令y值为0,x值根据2D图片的长高比和Bounding Box的z值等比例计算得到。假设z的默认高度值为2000mm,对应素材的像 素高度为400px,素材的真实像素宽度为600px,则依据等比例计算得到z值为3000mm。在得到x,y,z值之后,将笛卡尔坐标系的原点设置在2D素材的形心位置,则获得Bounding Box的4个顶点坐标分别为{点1(-x/2,0,z/2),点2(-x/2,0,-z/2),点3(x/2,0,-z/2),点4(x/2,0,z/2)}。Set the adjustment description of the 3D material as a solid bounding box containing the coordinate system, including the upper plane, the lower plane, the left plane, the right plane, the front plane, and the back plane. For 2D material, the bounding box describing its physical size is missing, but in the present invention, the coordinate form of the bounding box of 3D material is still used. Let the y value be 0, and the x value is calculated according to the ratio of the aspect ratio of the 2D image and the z value of the Bounding Box. Assuming that the default height of z is 2000mm, the pixel height of the corresponding material is 400px, and the real pixel width of the material is 600px, then the z value is 3000mm according to the proportional calculation. After obtaining the x, y, z values, set the origin of the Cartesian coordinate system at the centroid of the 2D material, then the coordinates of the four vertices of the Bounding Box are {point 1(-x/2,0,z/ 2), point 2(-x/2,0,-z/2), point 3(x/2,0,-z/2), point 4(x/2,0,z/2)}.
至此,2D素材和3D素材有了同样完备的描述标识,不同的是3D素材的Bounding Box是一个立方体,而2D素材的Bounding Box是一个平面(特殊的,厚度为0的立方体)。So far, 2D material and 3D material have the same complete description and identification, the difference is that the Bounding Box of 3D material is a cube, while the Bounding Box of 2D material is a plane (a special cube with a thickness of 0).
在户型投影平面图上放置家装素材时,通过鼠标拖动素材到户型投影平面图上来放置素材,或者点击按钮,素材预览图可以吸附在鼠标上,此时再点击户型投影平面图可以放置素材。另外,拖动或点击按钮初始瞬间,鼠标定位在素材预览图的中心处。When placing the home decoration material on the floor plan of the house type projection, drag the material to the floor plan of the house type projection to place the material, or click the button, the preview of the material can be attached to the mouse, and then click the floor plan of the house type projection to place the material. In addition, at the initial moment of dragging or clicking the button, the mouse is positioned at the center of the preview image of the material.
为了更好地实现设计,为每类素材配置一个默认吸附面,素材和吸附面之间维持一定的默认绑定关系,设置在户型投影平面图内的所有素材均放置对应吸附面上且维持一定的绑定关系。其中,对于放置在地面和铺置在地面的地面素材,定义其默认吸附面为户型投影平面图中的地面;对于吊置在顶面的顶面素材,定义其默认吸附面为户型投影平面图中的顶面;对于挂置在墙面和贴置在墙面的墙面素材,定义其默认吸附面为户型投影平面图中的墙面。In order to better realize the design, a default adsorption surface is configured for each type of material. A certain default binding relationship is maintained between the material and the adsorption surface. All materials set in the floor plan of the floor plan are placed on the corresponding adsorption surface and maintain a certain binding relationship. Among them, for the ground materials placed on the ground and laid on the ground, the default adsorption surface is defined as the ground in the floor plan of the floor plan; for the top surface material suspended on the top surface, the default adsorption surface is defined as the floor in the floor plan of the floor plan. Top surface; for the wall materials hung on the wall and attached to the wall, the default adsorption surface is defined as the wall in the floor plan of the floor plan.
S102,接收素材移动指令。S102, receiving a material movement instruction.
家装设计指定是指将家装素材设计在户型投影平面的各种操作指令,包括素材放置、素材移动、素材缩放、素材旋转、素材替换、渲染以及生成提案等。本发明中,主要涉及素材移动指令。Designation of home decoration design refers to various operation instructions for designing home decoration materials on the floor plan projection plane, including material placement, material movement, material scaling, material rotation, material replacement, rendering, and generating proposals. In the present invention, it mainly relates to the material movement instruction.
S103,基于素材状态对应的辅助信息、提示信息以及户型的三维结构信息,辅助根据素材移动指令对已设计的家装素材进行移动来调整设计,得到家装设计结果。S103 , based on the auxiliary information corresponding to the material state, the prompt information, and the three-dimensional structure information of the house type, assist in moving the designed home decoration material according to the material movement instruction to adjust the design, and obtain a home decoration design result.
对家装素材进行移动主要是用来调整布局,为了提升调整的速度和准确性,实施例提供的素材移动方法中,设定了素材状态对应的辅助信息、提示信息等,来辅助素材移动,以方便用户操作素材实现家装的自定义设计。Moving the home improvement material is mainly used to adjust the layout. In order to improve the speed and accuracy of the adjustment, in the material moving method provided by the embodiment, auxiliary information, prompt information, etc. corresponding to the material state are set to assist the material movement, and It is convenient for users to operate the material to realize the custom design of home decoration.
依据素材状态定义素材对应的辅助信息,如图4所示,具体包括:未选中状态,无辅助信息,即素材处于未选中状态时,仅显示素材预览图;选中状态,辅助信息包括选中框、高度辅助箭头、高度辅助线,即素材处于选中状态时,显示素材预览图、选中框、高度辅助箭头、高度辅助线;移动状态,辅助信息包括选中框、吸附面高亮、高度辅助箭头和高度辅助线,即素材处于移动状态时,显示素材预览图、选中框、吸附面高亮,当移动高度时还显示高度辅助箭头和高度辅助线。根据素材状态对应的辅助信息来辅助对已放置素材进行移动,实现自定义设计。The auxiliary information corresponding to the material is defined according to the material state, as shown in Figure 4, which specifically includes: unselected state, no auxiliary information, that is, when the material is in the unselected state, only the preview image of the material is displayed; in the selected state, the auxiliary information includes the check box, Height auxiliary arrow, height auxiliary line, that is, when the material is in the selected state, the material preview, check box, height auxiliary arrow, and height auxiliary line are displayed; in the moving state, auxiliary information includes check box, adsorption surface highlight, height auxiliary arrow and height Auxiliary line, that is, when the material is in the moving state, the preview of the material, the check box, and the highlight of the adsorption surface are displayed, and the height auxiliary arrow and height auxiliary line are also displayed when the height is moved. According to the auxiliary information corresponding to the state of the material, the placed material can be moved to realize the custom design.
对于平面设计来说,对齐是非常有必要的存在,用户可以根据辅助线迅速调整两 个素材的对齐关系。同样本发明的设计过程也支持辅助线提醒,在画布的水平方向,提醒两个素材的下边缘对齐,水平居中对齐,上边缘对齐;在画布的竖直方向,提醒两个素材的左边缘,垂直居中对齐,右边缘对齐等。For graphic design, alignment is very necessary, and the user can quickly adjust the alignment of the two materials according to the auxiliary lines. Similarly, the design process of the present invention also supports auxiliary line reminders, in the horizontal direction of the canvas, reminding the bottom edge of the two materials to align, horizontal center alignment, and top edge alignment; in the vertical direction of the canvas, reminding the left edge of the two materials, Vertical center alignment, right edge alignment, etc.
在一个实施方式中,所述提示信息包括3D空间的对齐提示信息,即家装素材移动方法还包括3D空间的对齐提示功能,以方便用户对素材的对齐操作,如同一吸附面内的两个素材的前面对齐,形心对齐,后面对齐等,以此方便同一类型素材的摆放,如两个床头柜,两个壁灯等。In one embodiment, the prompt information includes alignment prompt information in 3D space, that is, the method for moving home improvement materials further includes an alignment prompt function in 3D space, so as to facilitate the user to align the materials, such as two materials in the same adsorption plane The front alignment, centroid alignment, back alignment, etc., to facilitate the placement of the same type of material, such as two bedside tables, two wall lamps, etc.
其中,所述对齐提示功能包括平面对齐提示和空间对齐提示;当启用对齐提示功能时,针对平面对齐提示,为素材生成选中框的外接矩形的4条边线和2条中心线作为对齐参照线,素材移动过程中,通过显示对齐参照线提醒用户对齐操作;针对空间对齐提示,为素材生成包围盒的外接立方体的6个面和3个中心面作为对齐参照面,素材移动过程中,通过显示对齐参照面提醒用户对齐操作。Wherein, the alignment prompt function includes a plane alignment prompt and a space alignment prompt; when the alignment prompt function is enabled, for the plane alignment prompt, the 4 edge lines and 2 center lines of the circumscribed rectangle of the selected box are generated for the material as alignment reference lines, During the material movement, the alignment reference line is displayed to remind the user of the alignment operation; for the spatial alignment prompt, the 6 faces and 3 center faces of the circumscribed cube of the bounding box are generated for the material as the alignment reference planes. During the material movement, the alignment is displayed by displaying the alignment The reference surface reminds the user of the alignment operation.
实际操作中,用户选择开启对齐提示功能,并选择平面对齐提示或空间对齐提示,当选择平面对齐提示时,素材在移动过程中,以素材选中框外接矩形的4条边线以及2条中心线为对齐参照线,当两个素材的任意1条参照线在屏幕坐标系上移动到相同的x轴或y轴时,即显示对齐参照线,如图5;当选择空间对齐提示时,素材在移动过程中,以素材包围盒的外接立方体的6个面以及3个中心面为对齐参照面,如图6,当两个素材的任意1个参照面在相机坐标系移动到相同的U轴、V轴或W轴时,即显示对齐参照面;当用户选择关闭开启对齐提示功能时,移动过程中不显示任何对齐参照线或对齐参照面。In the actual operation, the user chooses to enable the alignment prompt function, and selects the plane alignment prompt or the space alignment prompt. When the plane alignment prompt is selected, during the moving process of the material, the 4 edge lines and 2 center lines of the circumscribed rectangle of the material selection box are used as Align reference line, when any one reference line of the two materials moves to the same x-axis or y-axis on the screen coordinate system, the alignment reference line is displayed, as shown in Figure 5; when the space alignment prompt is selected, the material is moving During the process, the 6 faces and 3 center faces of the circumscribed cube of the material bounding box are used as the alignment reference planes, as shown in Figure 6, when any one reference plane of the two materials moves to the same U axis, V axis in the camera coordinate system. Axis or W axis, the alignment reference plane is displayed; when the user chooses to turn off the alignment prompt function, no alignment reference line or alignment reference plane is displayed during the movement.
在设计过程中,为了让用户更清晰地感受到素材和空间的相对关系,但又同时具有较高的创作自由度。在一个实施方式中,还包括定义移动空间范围提供功能,即所述提示信息包括移动空间范围提示信息,依据素材所在位置生成与素材所在位置对应的空间范围提示信息。如对于地面素材,将可视范围内的地面进行延展,素材可在延展后的地面随意移动,但当素材完全移出空间外后,素材预览图和选中框变成半透明、穿透的墙面高亮并辅以文案提示,如“素材已经移动到空间外,建议切换放置位置”,如图7,当素材重新移入空间内时,素材预览图和选中框恢复正常状态且穿透的墙面高亮消失。另外,此状态仅在移动过程中显示,素材放置后状态均恢复正常。In the design process, in order to let users feel the relative relationship between materials and space more clearly, but at the same time have a high degree of creative freedom. In one embodiment, it also includes defining a moving space range providing function, that is, the prompt information includes moving space range prompt information, and generates spatial range prompt information corresponding to the location of the material according to the location of the material. For example, for the ground material, extend the ground within the visible range, and the material can be moved freely on the ground after the extension, but when the material is completely moved out of the space, the material preview and selection box will become translucent, penetrating walls Highlight and supplement with text prompts, such as "The material has been moved out of the space, it is recommended to switch the placement position", as shown in Figure 7, when the material is moved back into the space, the material preview and the selected box return to normal and penetrate the wall The highlight disappears. In addition, this state is only displayed during the moving process, and the state returns to normal after the material is placed.
其中,素材所在位置的确认方式一:将素材的包围盒投影到其吸附面得到一个矩形,计算该矩形和吸附面的交集,如果交集等于该矩形则位于空间内,如果交集小于该矩形则正在穿透空间,如果交集为空则完全位于空间外。确认方式二:将素材的包围盒投影到其吸附面得到一个矩形,判断矩形的四个顶点所处的位置,若处于吸附面内的顶点数为4则素材位于空间内,处于吸附面内的顶点数小于4但大于0,则素材正 在穿透,若处于吸附面内的顶点数为0,即所有顶点位于吸附面外则素材位于空间外。Among them, the first method of confirming the location of the material: project the bounding box of the material to its adsorption surface to obtain a rectangle, calculate the intersection of the rectangle and the adsorption surface, if the intersection is equal to the rectangle, it is located in the space, if the intersection is smaller than the rectangle, it is in the Penetrates the space, and if the intersection is empty is completely outside the space. Confirmation method 2: Project the bounding box of the material onto its adsorption surface to obtain a rectangle, and determine the positions of the four vertices of the rectangle. If the number of vertices is less than 4 but greater than 0, the material is penetrating. If the number of vertices in the adsorption surface is 0, that is, if all vertices are located outside the adsorption surface, the material is located outside the space.
由于型投影平面图是一个投影平面,为了使得设计结果图实现符合真实世界观测结果的近大远小的呈现效果。需要调整放置素材呈现近大远小的透视效果。在传统的2D设计中,用户通常要靠自己的空间想象能力手动去缩放每个素材的大小,以达到近大远小的效果。这种手动调节方式效率低、准确性差、效果也差。Since the type projection plan is a projection plane, in order to make the design result map realize the presentation effect of near big and far small in line with the real world observation results. You need to adjust the placement of the material to show the perspective effect of near, large and far. In traditional 2D design, users usually rely on their own spatial imagination to manually scale the size of each material to achieve the effect of near big and far small. This manual adjustment method has low efficiency, poor accuracy and poor effect.
为了解决手动调节方式效率低、准确性差、效果也差的问题,本发明家装素材移动方法还包括:对3D素材自动调节尺寸以实现近大远小效果,包括:基于素材的包围盒和相机参数,在给定素材预览图在户型投影平面中位置之后,通过计算得到素材包围盒的8个顶点在户型投影平面中的2D坐标,实现对3D素材的调整。In order to solve the problems of low efficiency, poor accuracy and poor effect of the manual adjustment method, the method for moving home decoration materials of the present invention further includes: automatically adjusting the size of the 3D materials to achieve the effect of near big and far small, including: material-based bounding box and camera parameters , after the position of the material preview image in the house type projection plane is given, the 2D coordinates of the 8 vertices of the material bounding box in the house type projection plane are obtained by calculating, so as to realize the adjustment of the 3D material.
在其中一个实施方式中,对3D素材自动调节尺寸过程为:计算包围盒的形心所在的平行于户型投影平面图的平面,将素材预览图贴在包围盒的形心处,则素材预览图的显示高度h=bbox.z+a*bbox.y,其中,系数a根据素材所在吸附面的法线在平行于户型投影平面图方向上的投影确定,bbox.z是包围盒投影到于户型投影平面图后,后平面高度的像素尺寸,bbox.y是将包围盒的上平面或下平面展开到与后平面平行时的像素尺寸,a*bbox.y表示包围盒的上平面或下平面在户型投影平面图中像素尺寸;素材预览图的显示宽度根据素材预览图的高宽比等比例计算得到,以此来保证素材预览图和包围盒的一致性,在确定素材预览图的显示高度和宽度之后,再根据相机参数即可以确定包围盒的8个顶点在户型投影平面中的2D坐标,进而实现对3D素材的调整。如图8中的吊灯,这样在画面中的不同位置,包围盒会根据物理尺寸实现近大远小的视觉效果,3D素材一起变大变小。In one embodiment, the process of automatically adjusting the size of the 3D material is: calculating the plane parallel to the floor plan of the floor plan where the centroid of the bounding box is located, and pasting the material preview image at the centroid of the bounding box, then the Display height h=bbox.z+a*bbox.y, in which the coefficient a is determined according to the projection of the normal of the adsorption surface where the material is located in the direction parallel to the floor plan of the floor plan, and bbox.z is the projection of the bounding box to the floor plan of the floor plan. After, the pixel size of the height of the back plane, bbox.y is the pixel size when the upper or lower plane of the bounding box is expanded to be parallel to the back plane, a*bbox.y represents the upper or lower plane of the bounding box projected on the house The pixel size in the plan view; the display width of the material preview is calculated according to the aspect ratio of the material preview to ensure the consistency of the material preview and the bounding box. After determining the display height and width of the material preview, Then, according to the camera parameters, the 2D coordinates of the 8 vertices of the bounding box in the house type projection plane can be determined, and then the adjustment of the 3D material can be realized. As shown in the chandelier in Figure 8, at different positions in the picture, the bounding box will achieve the visual effect of near, large and far small according to the physical size, and the 3D material will become larger and smaller together.
对于2D素材,bbox.y=0,bbox.x由bbox.z和素材预览图的高宽比计算得到,所以包围盒和素材预览图在户型投影平面图中也是完全匹配的状态,如图8中的沙发。For 2D materials, bbox.y=0, bbox.x is calculated from bbox.z and the aspect ratio of the material preview, so the bounding box and the material preview are also completely matched in the floor plan of the floor plan, as shown in Figure 8 sofa.
本发明提供的家装素材移动方法还包括:对已经放置在户型投影平面的素材进行移动时,素材在移动过程中保持近大远小的效果。The method for moving home improvement materials provided by the present invention further includes: when moving the materials that have been placed on the floor plan projection plane, the materials keep the effect of being near big and far small during the moving process.
在其中一种实施方式中,素材在移动过程中保持近大远小的效果的实现过程可以为:确定鼠标选中位置的3D坐标,绑定鼠标选中位置与素材的相对位置不变,通过鼠标移动素材过程中,依据相机参数更新鼠标的3D坐标和2D坐标,依据鼠标的新2D坐标更新素材包围盒的8个顶点的2D坐标,进而实现素材在移动过程中保持近大远小的效果。In one of the embodiments, the realization process of the effect of keeping the material near big and far small during the moving process can be as follows: determine the 3D coordinates of the position selected by the mouse, bind the relative position of the selected position of the mouse and the material to remain unchanged, and move the mouse by moving the mouse. During the material process, the 3D coordinates and 2D coordinates of the mouse are updated according to the camera parameters, and the 2D coordinates of the 8 vertices of the material bounding box are updated according to the new 2D coordinates of the mouse, so as to achieve the effect of keeping the material near large and far small during the moving process.
实施例中,确定鼠标的3D坐标的方式为:将鼠标选择素材时,将素材包围盒中心的深度作为鼠标点击位置的深度,基于鼠标点击位置的深度和鼠标点击位置在户型投影平面图中的2D坐标,利用相机矩阵的逆矩阵做变换处理,得到鼠标点击位置的3D坐标。In the embodiment, the method of determining the 3D coordinates of the mouse is: when the mouse selects a material, the depth of the center of the material bounding box is used as the depth of the mouse click position, and the 2D position in the floor plan of the house type projection is based on the depth of the mouse click position and the mouse click position. Coordinates, use the inverse matrix of the camera matrix to do transformation processing to obtain the 3D coordinates of the mouse click position.
实施例中,采用鼠标选择素材时,针对当前素材非透明像素部分,仅支撑鼠标选中当前素材,针对当前素材透明像素部分,支撑穿透当前素材透明像素部分选中后面素材。In the embodiment, when selecting a material with a mouse, for the non-transparent pixel portion of the current material, only the mouse is supported to select the current material, and for the transparent pixel portion of the current material, the transparent pixel portion of the current material is supported to select the following material.
在其中一种实施方式中,素材在移动过程中保持近大远小的效果的实现过程为:确定鼠标选中位置的3D坐标,通过鼠标移动素材过程中,鼠标的移动分解为水平方向和竖直方向两个方向的移动,水平方向移动时素材包围盒跟随鼠标移动,竖直方向移动时鼠标仅指示移动的方向,竖直方向上表示沿着相机看向的方向在世界坐标系中匀速移动,调整鼠标和包围盒的深度信息,这样在素材移动过程中,素材包围盒会根据不同的位置自动呈现近大远小的状态,根据素材预览图与包围盒投影尺寸的正相关关系,能够实现素材预览图的近大远小的状态。In one of the embodiments, the realization process of the effect of keeping the material near big and far small during the moving process is as follows: determining the 3D coordinates of the position selected by the mouse, and in the process of moving the material by the mouse, the movement of the mouse is decomposed into the horizontal direction and the vertical direction. When moving in two directions, the bounding box of the material moves with the mouse when moving horizontally. When moving vertically, the mouse only indicates the moving direction. The vertical direction means moving at a constant speed in the world coordinate system along the direction the camera is looking at. Adjust the depth information of the mouse and the bounding box, so that during the movement of the material, the material bounding box will automatically show the state of near big and far small according to different positions. According to the positive correlation between the material preview image and the projected size of the bounding box, the material can be realized. The state of the near-large and far-small preview images.
通过鼠标移动素材过程中,针对顶面素材,鼠标拖动向上移动时,顶面素材沿顶面移动到近处,被鼠标拖动向下移动时,素材沿顶面移动到远处。针对地面素材,被鼠标拖动向上移动时,地面素材沿地面移动到远处,被鼠标拖动向下移动时,素材沿地面移动到近处,且竖直方向的分解沿着相机看向的方向在世界坐标系中匀速移动,调整深度信息和对应的3D坐标,进而获得包围盒的2D坐标和素材预览图的2D坐标,实现近大远小的效果。只有左右移动时,鼠标和素材的相对位置会保持不变,涉及到上下移动时,由于只指定了移动方向,移动速度是匀速的,所以素材的移动是自然的,可以精确控制的。In the process of moving the material with the mouse, for the top material, when the mouse is dragged upward, the top material moves to the near side along the top surface, and when the mouse is dragged and moved downward, the material moves along the top surface to the far side. For ground material, when it is dragged upward by the mouse, the ground material moves far along the ground, and when it is dragged and moved downward by the mouse, the material moves near the ground, and the vertical decomposition is along the direction of the camera. The direction moves at a constant speed in the world coordinate system, adjust the depth information and the corresponding 3D coordinates, and then obtain the 2D coordinates of the bounding box and the 2D coordinates of the material preview image to achieve the effect of near big and far small. Only when moving left and right, the relative position of the mouse and the material will remain unchanged. When it comes to moving up and down, since only the moving direction is specified, the moving speed is uniform, so the movement of the material is natural and can be precisely controlled.
为了方便通过鼠标控制素材移动,本发明的家装素材移动方法还包括:定义鼠标移动和素材移动的对应关系,依据对应关系通过鼠标控制素材移动,即当鼠标按住素材时,素材跟随鼠标移动,对应关系如下:In order to conveniently control the movement of the material through the mouse, the method for moving the home improvement material of the present invention further includes: defining a corresponding relationship between the movement of the mouse and the movement of the material, and controlling the movement of the material through the mouse according to the corresponding relationship, that is, when the mouse is pressed down on the material, the material moves with the mouse, The corresponding relationship is as follows:
(a)对于地面素材,在鼠标按住素材的任意位置基础上,当鼠标向上移动时,素材均在地面朝着远离相机的方向移动,素材变小,当鼠标向下移动时则相反;当鼠标向左移动时,素材均在地面向左移动,素材大小不变,当鼠标有向右移动时则相反。(a) For ground material, on the basis of holding down the mouse at any position of the material, when the mouse moves up, the material moves away from the camera on the ground, and the material becomes smaller; when the mouse moves down, the opposite is true; When the mouse moves to the left, the material moves to the left on the ground, and the size of the material remains unchanged. When the mouse moves to the right, the opposite is true.
(b)对于顶面素材,在鼠标按住素材的任意位置基础上,当鼠标向上移动时,素材均在顶面朝着靠近相机的方向移动,素材变大,当鼠标有向下移动时则相反;当鼠标向左移动时,素材均在顶面向左移动,素材大小不变,当鼠标向右移动时则相反。(b) For the top surface material, on the basis of pressing the mouse on any position of the material, when the mouse moves up, the material moves on the top surface toward the direction close to the camera, and the material becomes larger, and when the mouse moves downward, the On the contrary; when the mouse is moved to the left, the material moves to the left on the top side, and the size of the material remains unchanged, and the opposite is true when the mouse is moved to the right.
(c)对于墙面素材,在鼠标按住素材的任意位置基础上,当鼠标向上移动时,素材均在墙面向上移动,素材大小不变,当鼠标向下移动时则相反;当鼠标向左移动时,若墙面平行于屏幕,则素材均在墙面向左移动,素材大小不变,若墙面与屏幕夹角为锐角时,则素材均在墙面朝着靠近相机的方向移动,素材变大,若墙面与屏幕夹角为钝角时,则素材均在墙面朝着远离相机的方向移动,素材变小,当鼠标向右移动时则相反。(c) For wall material, on the basis of holding down the mouse at any position of the material, when the mouse moves up, the material moves up on the wall, and the size of the material remains unchanged, but the opposite is true when the mouse moves down; When moving to the left, if the wall is parallel to the screen, the material moves to the left on the wall, and the size of the material remains unchanged. If the angle between the wall and the screen is an acute angle, the material moves on the wall toward the camera. , the material becomes larger. If the angle between the wall and the screen is an obtuse angle, the material moves on the wall away from the camera, and the material becomes smaller. When the mouse moves to the right, the opposite is true.
(d)对于地面素材和顶面素材,定义高度辅助箭头和高度辅助线来支持脱离吸附面一定的高度,位置如图4所示,当鼠标按住高度辅助箭头向上移动时,吸附面高亮,素材脱离吸附面朝着顶面垂直移动,直到素材包围盒的上平面中心和顶面相交时停止移动;当鼠标按住高度辅助箭头向下移动时,吸附面高亮,素材脱离吸附面朝着地面垂直移动,直到素材包围盒的下平面中心和地面相交时则停止移动;对于脱离吸附面的地面素材和顶面素材,在处于选中状态或移动状态时会显示呈现虚线表示的高度辅助线来显示素材脱离吸附面的高度。(d) For the ground material and top surface material, define the height auxiliary arrow and height auxiliary line to support a certain height from the adsorption surface. The position is shown in Figure 4. When the mouse moves up by pressing the height auxiliary arrow, the adsorption surface is highlighted. , the material detaches from the adsorption surface and moves vertically toward the top surface until the center of the upper plane of the material bounding box intersects with the top surface and stops moving; when the mouse is pressed and the height auxiliary arrow moves down, the adsorption surface is highlighted, and the material detaches from the adsorption surface toward the top surface. Move vertically to the ground until the center of the lower plane of the material bounding box intersects the ground, and then stop moving; for the ground material and top material that are detached from the adsorption surface, the height guide line represented by a dotted line will be displayed when it is selected or moved. to display the height of the material from the snapping surface.
上述方案中提供了通过鼠标移动素材,但是通过依靠鼠标移动素材仅能实现粗略位置调整,而无法达到位置精细调整的效果,为此,本发明家装素材移动方法还包括:依据键盘与素材的调整规则,通过键盘精细调整素材位置。The above solution provides moving the material through the mouse, but only the rough position adjustment can be achieved by relying on the mouse to move the material, but the effect of fine adjustment of the position cannot be achieved. Therefore, the method for moving the home improvement material of the present invention also includes: according to the adjustment of the keyboard and the material Rules, fine-tune the material position via the keyboard.
其中,键盘与素材的调整规则包括:对于铺贴类素材,铺贴状态下的移动自由度包括两个维度,与键盘的上下左右键相对应,通过操作键盘的上下左右键实现对铺贴类素材的移动调整;对于放置类素材,约束离地高度后,放置状态下的移动自由度也仅包含两个维度,包括前后维度和左右维度,这与键盘的上下左右键相对应,通过操作键盘的上下左右键实现对放置类素材的移动调整。Among them, the adjustment rules of the keyboard and the material include: for the paving material, the freedom of movement in the paving state includes two dimensions, which correspond to the up, down, left, and right keys of the keyboard. Material movement adjustment; for placed materials, after the height from the ground is constrained, the freedom of movement in the placed state only includes two dimensions, including the front and rear dimensions and the left and right dimensions, which correspond to the up, down, left, and right keys of the keyboard. By operating the keyboard The up, down, left, and right keys can adjust the movement of the placed material.
实施例中,设定每次敲击键盘对应的单位移动距离,例如设定单位移动距离为100mm,则每敲击一次左键盘,素材会左移世界坐标系下的10cm。In the embodiment, the unit movement distance corresponding to each keystroke on the keyboard is set, for example, if the unit movement distance is set to 100mm, then each time the left keyboard is clicked, the material will move to the left by 10cm in the world coordinate system.
为了实现真实效果,使处于同一位置的多个素材会呈现遮挡关系。本发明的家装素材移动方法还包括:为放置到户型投影平面图的素材自动生成图层和依据素材移动指令调整图层,具体地,依据素材包围盒的深度信息生成图层深度,依据深度补偿值对图层深度进行调整,以调整图层位置。In order to achieve a realistic effect, multiple materials in the same position will show an occlusion relationship. The method for moving home improvement materials of the present invention further comprises: automatically generating a layer for the materials placed on the floor plan of the house type projection and adjusting the layer according to the material moving instruction, specifically, generating the layer depth according to the depth information of the material bounding box, and according to the depth compensation value Make adjustments to the layer depth to adjust the layer position.
本发明中将所有3D素材都拍扁到其中心深度的一个平面上,进而将所有3D素材退化为2D素材预览图,基于此,可以利用素材包围盒形心的深度信息加上一个深度补偿值进行图层的排序,即距离相机最远的在最下面图层,离相机越近,在越上面的图层,以实现近处素材遮挡远处素材。当移动或添加素材时,其深度实时变化,图层也随之调整,进而自动实现合理的遮挡关系。In the present invention, all 3D materials are flattened to a plane with a central depth, and then all 3D materials are degraded into 2D material preview images. Based on this, the depth information of the center of the material bounding box can be used to add a depth compensation value Sort the layers, that is, the layer farthest from the camera is on the bottom layer, and the layer closer to the camera is on the upper layer, so that the near material can block the distant material. When moving or adding material, its depth changes in real time, and the layers are adjusted accordingly to automatically achieve a reasonable occlusion relationship.
对于添加进户型投影平面图的3D素材,其深度补偿值的方向相机看向的方向,大小为bbox.y/2,即素材包围盒后平面的深度,这样桌上的摆件,沙发上的抱枕,床上的抱枕毯子等都会位于上面图层,符合观测结果。For the 3D material added to the floor plan of the house type projection, the direction of the depth compensation value is the direction the camera is looking at, and the size is bbox.y/2, which is the depth of the back plane of the material's bounding box, so that the ornaments on the table, the pillows on the sofa, The pillows, blankets, etc. on the bed will be on the upper layer, which is consistent with the observation results.
对于图层的调整,和纯平面设计一样,为图层定义置顶、置底、上移一层、下移一层等操作。由图层的自动生成过程可知,图层定义是依赖于素材深度计算的。对于软装素材图层深度的有效取值范围为(-∞,1],其中房间内的视锥可见范围为[-1,1],1表示近(near)平面,-1表示远(far)平面。但由于素材可超出房间边界移动到外面 去,所以深度值可小于-1。For layer adjustment, as with pure graphic design, define operations such as top, bottom, move up, move down, etc. for layers. It can be seen from the automatic generation process of the layer that the layer definition depends on the depth calculation of the material. The valid value range for the depth of the soft-covered material layer is (-∞, 1], where the visible range of the viewing cone in the room is [-1, 1], 1 means the near plane, -1 means the far (far) ) plane. However, the depth value can be less than -1 because the material can move outside the bounds of the room.
针对图层调整,设定调整的精度值,依据精度值和对需要调整素材的深度做补偿运算获得补偿后的深度值,依据补偿后的深度值调整素材位置。For layer adjustment, set the adjustment precision value, perform compensation operation on the precision value and the depth of the material to be adjusted to obtain the compensated depth value, and adjust the material position according to the compensated depth value.
实施例,可以定义调整的精度值eps为计算机可识别的最小精度值,如1e-6。那么选中素材上移一层时,将原先所有素材的深度值排序,找到在选中素材上面一层的素材的深度a,调整深度补偿值,令要调整素材的深度值为a+eps即可,下移一层同理。置顶的话是找到所有素材深度最大的一个值b,令要调整素材的深度值为b+eps即可,置底同理。In an embodiment, the adjusted precision value eps may be defined as the minimum precision value recognizable by the computer, such as 1e-6. Then, when the selected material is moved up one layer, sort the depth values of all the original materials, find the depth a of the material one layer above the selected material, adjust the depth compensation value, and set the depth value of the material to be adjusted to a+eps. The same is true for moving down a layer. If you set it to the top, find the value b with the largest depth of all the materials, and set the depth value of the material to be adjusted to b+eps. The same is true for the bottom.
在其中一个实施方式中,本发明家装素材移动方法还包括:对家装平面设计结果进行渲染生成渲染图并输出。In one embodiment, the method for moving home improvement materials of the present invention further includes: rendering the home improvement graphic design result to generate a rendering and outputting the result.
由于设计过程无论是户型投影平面图还是素材全部由3D信息来辅助计算,所以非常容易转换为3D模型进行离线渲染,获得更真实的光影效果。Since the design process, whether it is the floor plan of the house type projection or the material, is all assisted by 3D information, it is very easy to convert it into a 3D model for offline rendering to obtain a more realistic light and shadow effect.
最基础的情况是,在获得户型投影平面图的三维户型模型和3D素材的三维模型后,组成场景三维模型,对三维场景模型进行渲染,得到家装设计结果的渲染图。The most basic situation is that after obtaining the 3D house type model of the floor plan of the house type projection and the 3D model of the 3D material, a 3D scene model is formed, and the 3D scene model is rendered to obtain a rendering of the home improvement design result.
当素材为2D素材时,因为不具有三维模型,所以渲染时采用以下三种方式:方式一是可以容忍一定程度的不一致,采用图搜技术用图片搜索最相似的模型来渲染;方式二是根据2D素材的轮廓构建一个平板模型,2D素材作为纹理贴在表面来渲染;方式三种是渲染时先暂时移出所有2D素材,得到3D素材的渲染场景图后,计算其深度图,将2D素材根据深度信息放置其中被遮挡部分裁剪。When the material is a 2D material, because there is no 3D model, the following three methods are used for rendering: the first method is to tolerate a certain degree of inconsistency, and the image search technology is used to search for the most similar model to render; the second method is based on The outline of the 2D material builds a flat model, and the 2D material is pasted on the surface as a texture for rendering; the three methods are to temporarily remove all the 2D material during rendering, and after obtaining the rendered scene graph of the 3D material, calculate its depth map, and use the 2D material according to The depth information is placed where the occluded part is cropped.
在其中一个实施方式中,本发明家装素材移动方法还包括:基于家装设计结果生成设计提案并输出。In one embodiment, the method for moving home decoration materials of the present invention further includes: generating and outputting a design proposal based on the home decoration design result.
当用户完成每个空间的设计后,还需要生成一个完整的提案来构成整个设计方案。除了空间设计外,完整的提案还包括封面、封底、目录、风格解析、材质解析、色彩解析等部分,而这些内容属于纯2D设计的范畴,可以采用上文提到的纯白色背景来实现,即所有素材贴在同一面正视的墙上。也可以由用户自主上传图片作为提案的其中一页或多页,每个空间的设计都作为一页,由此构成一个完整的可分享可传播可汇报的提案。When the user completes the design of each space, it is also necessary to generate a complete proposal to constitute the entire design scheme. In addition to space design, the complete proposal also includes cover, back cover, catalog, style analysis, material analysis, color analysis, etc. These contents belong to the category of pure 2D design, which can be realized by using the pure white background mentioned above. That is, all materials are posted on the same wall facing the same side. Users can also upload pictures as one or more pages of the proposal, and each space is designed as a page, thus forming a complete proposal that can be shared, disseminated and reported.
本发明实施例提供的家装素材移动方法,对背景图不限制,可以为渲染图、白板或者实景拍摄照片,应用兼容性更强,方便用户家装设计,当使用实景拍摄照片作为背景进行设计,能够达到实景设计的效果。The method for moving home decoration materials provided by the embodiment of the present invention does not limit the background image, and can take photos for renderings, whiteboards, or real scenes, with stronger application compatibility, which is convenient for users to design home decoration. To achieve the effect of real-life design.
本发明实施例提供的家装素材移动方法,通过为素材依据素材状态设定辅助信息、定义鼠标移动和素材移动的对应关系、定义3D素材实现近大远小的效果的自动调节尺寸方法、提供对齐提示功能、移动空间范围提供功能等,实现了对素材的移动调整, 简化了家装设计的难度,降低了设计软件的使用门槛,提升家装布局的设计效率,带给用户极致的操作体验,提升设计效果。The method for moving home decoration materials provided by the embodiment of the present invention provides an automatic size adjustment method for realizing the effect of near big and far small for 3D materials by setting auxiliary information for materials according to the material state, defining the corresponding relationship between mouse movement and material movement, and providing alignment The prompt function, the function of providing the scope of the mobile space, etc., realize the mobile adjustment of materials, simplify the difficulty of home decoration design, lower the threshold for the use of design software, improve the design efficiency of home decoration layout, bring users the ultimate operating experience, and improve the design. Effect.
本发明实施例提供的家装素材移动方法,利用3D信息辅助设计过程,使得设计人员的工作效率大幅度提高,同时完美兼容2D和3D素材,解决了2D素材信息确实和3D素材获取成本高的问题。The method for moving home decoration materials provided by the embodiments of the present invention uses 3D information to assist the design process, so that the work efficiency of designers is greatly improved, and at the same time, it is perfectly compatible with 2D and 3D materials, and solves the problem of high cost of 2D material information and 3D material acquisition. .
本发明实施例提供的家装素材移动方法,家装平面设计结果可对接渲染,获得更加真实的光影效果,同时还可以生成提案以提供给用户。In the method for moving home decoration materials provided by the embodiments of the present invention, the results of the home decoration graphic design can be docked and rendered, so as to obtain more realistic light and shadow effects, and at the same time, proposals can be generated to provide to users.
实施例2Example 2
实施例2提供了一种家装素材移动装置。如图9所示,实施例提供的家装素材移动装置900,包括:Embodiment 2 provides a device for moving home improvement materials. As shown in FIG. 9, the home improvement material moving device 900 provided by the embodiment includes:
获取模块901,获取包含有已设计有家装素材的户型投影平面图,所述户型投影平面图包含户型的三维结构信息;The obtaining module 901 obtains a floor plan of a house type that contains materials for home decoration, where the floor plan of the house type projection includes three-dimensional structure information of the house type;
接收模块902,接收素材移动指令;A receiving module 902, receiving a material movement instruction;
移动模块903,基于素材状态对应的辅助信息、提示信息以及户型的三维结构信息,辅助根据素材移动指令对已设计的家装素材进行移动来调整设计,得到家装设计结果。The moving module 903, based on the auxiliary information corresponding to the material state, the prompt information and the three-dimensional structure information of the house type, assists in adjusting the design by moving the designed home decoration materials according to the material movement instruction, and obtains the home decoration design result.
在其中一个实施方式中,如图10所示,家装素材调整装置900还包括:In one embodiment, as shown in FIG. 10 , the device 900 for adjusting materials for home improvement further includes:
渲染模块1001,对家装平面设计结果进行渲染,以获得渲染图;The rendering module 1001 renders the results of the home decoration graphic design to obtain a rendering;
提案生成模块1002,基于家装平面设计结果生成提案。The proposal generation module 1002 generates proposals based on the home improvement graphic design results.
需要说明的是,实施例2提供的家装素材移动装置在进行家装素材移动时,应以上述各功能模块的划分进行举例说明,可以根据需要将上述功能分配由不同的功能模块完成,即在终端或服务器的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,实施例2提供的家装素材移动装置与家装素材移动方法实施例属于同一构思,其具体实现过程详见家装素材移动方法实施例,这里不再赘述。It should be noted that when the home improvement material moving device provided in Embodiment 2 moves home improvement materials, the division of the above-mentioned functional modules should be used as an example for illustration, and the above-mentioned functions can be allocated to different functional modules as needed. Or the internal structure of the server is divided into different functional modules to complete all or part of the functions described above. In addition, the home improvement material moving device provided in Embodiment 2 and the home improvement material moving method embodiment belong to the same concept, and the specific implementation process thereof is detailed in the home improvement material moving method embodiment, which will not be repeated here.
实施例3Example 3
实施例3提供了计算机设备,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图11所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种图像展示方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以 是外接的键盘、触控板或鼠标等。本领域技术人员可以理解,图11中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Embodiment 3 provides a computer device, and provides a computer device, the computer device may be a terminal, and its internal structure diagram may be as shown in FIG. 11 . The computer equipment includes a processor, memory, a network interface, a display screen, and an input device connected by a system bus. Among them, 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, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements an image presentation method. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse. Those skilled in the art can understand that the structure shown in FIG. 11 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
在其中一个实施方式中,提供了一种计算机设备,包括存储器、处理器以及存储在机存储器中并可在处理器上执行的计算机程序,处理器执行计算机程序时实现权利实施例1所述的家装素材移动方法的步骤,即实现如下步骤:In one of the embodiments, a computer device is provided, including a memory, a processor, and a computer program stored in the machine memory and executable on the processor, and the processor implements the method described in claim 1 when the processor executes the computer program. The steps of the method for moving home improvement materials include the following steps:
获取包含有已设计有家装素材的户型投影平面图,所述户型投影平面图包含户型的三维结构信息;Acquiring a floor plan of a house type that includes materials that have been designed for home decoration, where the floor plan of the house type projection includes three-dimensional structure information of the house type;
接收素材移动指令;Receive material movement instructions;
基于素材状态对应的辅助信息、提示信息以及户型的三维结构信息,辅助根据素材移动指令对已设计的家装素材进行移动来调整设计,得到家装设计结果。Based on the auxiliary information, prompt information and the three-dimensional structure information of the house type corresponding to the material state, the designed home decoration material is moved according to the material movement instruction to adjust the design, and the home decoration design result is obtained.
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:对3D素材自动调节尺寸以实现近大远小效果。In one of the embodiments, when the processor executes the computer program, the following step is further implemented: automatically adjust the size of the 3D material to achieve the effect of near large and far small.
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:对素材进行移动时,素材在移动过程中保持近大远小的效果,同时还保持鼠标和素材预览图的相对位置不发生变化。In one embodiment, when the processor executes the computer program, the processor further implements the following steps: when moving the material, the material maintains the effect of near-large and far-small during the moving process, and also keeps the relative position of the mouse and the material preview image from occurring. Variety.
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:依据定义的鼠标移动和素材移动的对应关系通过鼠标控制素材移动。In one embodiment, the processor further implements the following steps when executing the computer program: controlling the movement of the material through the mouse according to the defined correspondence between the movement of the mouse and the movement of the material.
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:依据键盘与素材的调整规则,通过键盘精细移动素材,以调整素材位置。In one embodiment, when the processor executes the computer program, the following steps are further implemented: according to the adjustment rules of the keyboard and the material, the material is moved finely through the keyboard to adjust the position of the material.
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:为放置到户型投影平面图的素材自动生成图层和依据素材移动指令调整图层。In one embodiment, when the processor executes the computer program, the processor further implements the following steps: automatically generating a layer for the material placed on the floor plan of the house type projection and adjusting the layer according to the material moving instruction.
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:对家装平面设计结果进行渲染生成渲染图并输出。In one of the embodiments, when the processor executes the computer program, the processor further implements the following steps: rendering the home improvement graphic design result to generate a rendering and outputting the rendering.
在其中一个实施方式中,处理器执行计算机程序时还实现如下步骤:基于家装平面设计结果生成设计提案并输出。In one of the embodiments, when the processor executes the computer program, the following steps are further implemented: generating and outputting a design proposal based on the home improvement graphic design result.
实施例4Example 4
实施例4还提供了一种计算机可读存储介质,例如包括至少一条指令的存储器,上述至少一条指令可由终端中的处理器执行以完成实施例1中家装素材移动的步骤。Embodiment 4 also provides a computer-readable storage medium, such as a memory including at least one instruction, the at least one instruction can be executed by a processor in the terminal to complete the step of moving home improvement materials in Embodiment 1.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流 程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In the medium, when the computer program is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上所述的具体实施方式对本发明的技术方案和有益效果进行了详细说明,应理解的是以上所述仅为本发明的最优选实施例,并不用于限制本发明,凡在本发明的原则范围内所做的任何修改、补充和等同替换等,均应包含在本发明的保护范围之内。The above-mentioned specific embodiments describe in detail the technical solutions and beneficial effects of the present invention. It should be understood that the above-mentioned embodiments are only the most preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, additions and equivalent replacements made within the scope shall be included within the protection scope of the present invention.

Claims (15)

  1. 一种家装素材移动方法,其特征在于,包括以下步骤:A method for moving home improvement materials, comprising the following steps:
    获取包含有已设计有家装素材的户型投影平面图,所述户型投影平面图包含户型的三维结构信息;Acquiring a floor plan of a house type that includes materials that have been designed for home decoration, where the floor plan of the house type projection includes three-dimensional structure information of the house type;
    接收素材移动指令;Receive material movement instructions;
    基于素材状态对应的辅助信息、提示信息以及户型的三维结构信息,辅助根据素材移动指令对已设计的家装素材进行移动来调整设计,得到家装设计结果。Based on the auxiliary information, prompt information and the three-dimensional structure information of the house type corresponding to the material state, the designed home decoration material is moved according to the material movement instruction to adjust the design, and the home decoration design result is obtained.
  2. 如权利要求1所述的家装素材移动方法,其特征在于,依据素材状态定义素材对应的辅助信息,具体包括:The method for moving home improvement materials according to claim 1, wherein the auxiliary information corresponding to the materials is defined according to the state of the materials, which specifically includes:
    未选中状态,无辅助信息,即素材处于未选中状态时,仅显示素材预览图;In the unselected state, there is no auxiliary information, that is, when the material is in the unselected state, only the preview image of the material is displayed;
    选中状态,辅助信息包括选中框、高度辅助箭头、高度辅助线,即素材处于选中状态时,显示素材预览图、选中框、高度辅助箭头、高度辅助线;In the selected state, the auxiliary information includes the check box, the height auxiliary arrow, and the height guide line, that is, when the material is in the selected state, the material preview, the check box, the height auxiliary arrow, and the height guide line are displayed;
    移动状态,辅助信息包括选中框、吸附面高亮、高度辅助箭头和高度辅助线,即素材处于移动状态时,显示素材预览图、选中框、吸附面高亮,当移动高度时还显示高度辅助箭头和高度辅助线。In the moving state, the auxiliary information includes the check box, the highlight of the suction surface, the height auxiliary arrow and the height guide line, that is, when the material is in the moving state, the preview of the material, the check box, and the highlight of the suction surface are displayed, and the height assistant is also displayed when the height is moved. Arrows and height guides.
  3. 如权利要求1所述的家装素材移动方法,其特征在于,所述提示信息包括3D空间的对齐提示信息,即家装素材移动方法还包括3D空间的对齐提示功能,所述对齐提示功能包括平面对齐提示和空间对齐提示;当启用对齐提示功能时,针对平面对齐提示,为素材生成选中框的外接矩形的4条边线和2条中心线作为对齐参照线,素材移动过程中,通过显示对齐参照线提醒用户对齐操作;针对空间对齐提示,为素材生成包围盒的外接立方体的6个面和3个中心面作为对齐参照面,素材移动过程中,通过显示对齐参照面提醒用户对齐操作。The method for moving home improvement materials according to claim 1, wherein the prompt information includes alignment prompt information in 3D space, that is, the method for moving home improvement materials further includes an alignment prompt function in 3D space, and the alignment prompt function includes plane alignment Prompts and space alignment prompts; when the alignment prompt function is enabled, for the plane alignment prompt, the 4 edges and 2 center lines of the bounding rectangle of the selected box are generated for the material as alignment reference lines. During the material movement, the alignment reference lines are displayed by displaying the alignment reference lines. Remind the user for the alignment operation; for the spatial alignment prompt, the 6 faces and 3 central faces of the circumscribed cube of the bounding box are generated for the material as the alignment reference planes. During the material movement, the alignment reference plane is displayed to remind the user of the alignment operation.
  4. 如权利要求1所述的家装素材移动方法,其特征在于,所述提示信息包括移动空间范围提示信息,依据素材所在位置生成与素材所在位置对应的空间范围提示信息。The method for moving home improvement materials according to claim 1, wherein the prompt information includes moving space range prompt information, and the space range prompt information corresponding to the location of the material is generated according to the location of the material.
  5. 如权利要求4所述的家装素材移动方法,其特征在于,素材所在位置的确认方式一:将素材的包围盒投影到其吸附面得到一个矩形,计算该矩形和吸附面的交集,如果交集等于该矩形则位于空间内,如果交集小于该矩形则正在穿透空间,如果交集为空则完全位于空间外;The method for moving home improvement materials according to claim 4, wherein the first method of confirming the location of the material is: project the bounding box of the material to its adsorption surface to obtain a rectangle, and calculate the intersection of the rectangle and the adsorption surface, if the intersection is equal to The rectangle is located in the space, if the intersection is smaller than the rectangle, it is penetrating the space, and if the intersection is empty, it is completely outside the space;
    确认方式二:将素材的包围盒投影到其吸附面得到一个矩形,判断矩形的四个顶点所处的位置,若处于吸附面内的顶点数为4则素材位于空间内,处于吸附面内的顶点数小于4但大于0,则素材正在穿透,若处于吸附面内的顶点数为0,即所有顶点位于吸附面外则素材位于空间外。Confirmation method 2: Project the bounding box of the material onto its adsorption surface to obtain a rectangle, and determine the positions of the four vertices of the rectangle. If the number of vertices is less than 4 but greater than 0, the material is penetrating. If the number of vertices in the adsorption surface is 0, that is, if all vertices are located outside the adsorption surface, the material is located outside the space.
  6. 如权利要求1所述的家装素材移动方法,其特征在于,还包括:对3D素材自动调节尺寸以实现近大远小效果,包括:基于素材的包围盒和相机参数,在给定素材预览图在户型投影平面中位置之后,通过计算得到素材包围盒的8个顶点在户型投影平面中的2D坐标,实现对3D素材的调整。The method for moving home improvement materials according to claim 1, further comprising: automatically adjusting the size of the 3D materials to achieve a near-large and far-small effect, comprising: based on the bounding box and camera parameters of the materials, in a given material preview image After the position in the house type projection plane, the 2D coordinates of the 8 vertices of the material bounding box in the house type projection plane are obtained by calculating, so as to realize the adjustment of the 3D material.
  7. 如权利要求1所述的家装素材移动方法,其特征在于,还包括:对素材进行移动时,素材在移动过程中保持近大远小的效果实现过程包括两种,分别为:The method for moving home improvement materials according to claim 1, further comprising: when the materials are moved, the realization process of the effect of keeping the materials near large and far small during the moving process includes two processes, respectively:
    实现过程一:确定鼠标选中位置的3D坐标,绑定鼠标选中位置与素材的相对位置不变,通过鼠标移动素材过程中,依据相机参数更新鼠标的3D坐标和2D坐标,依据鼠标的新2D坐标更新素材包围盒的8个顶点的2D坐标,进而实现素材在移动过程中保持近大远小的效果;Implementation process 1: Determine the 3D coordinates of the selected position of the mouse, and bind the relative position of the selected position of the mouse to the material. During the process of moving the material with the mouse, the 3D coordinates and 2D coordinates of the mouse are updated according to the camera parameters, according to the new 2D coordinates of the mouse. Update the 2D coordinates of the 8 vertices of the material bounding box, so as to achieve the effect of keeping the material near big and far small during the moving process;
    实现过程二:确定鼠标选中位置的3D坐标,通过鼠标移动素材过程中,鼠标的移动分解为水平方向和竖直方向两个方向的移动,水平方向移动时素材包围盒跟随鼠标移动,竖直方向移动时鼠标仅指示移动的方向,竖直方向上沿着相机看向的方向在世界坐标系中匀速移动,调整鼠标和包围盒的深度信息,这样在素材移动过程中,素材包围盒会根据不同的位置自动呈现近大远小的状态,根据素材预览图与包围盒投影尺寸的正相关关系,能够实现素材预览图的近大远小的状态。Implementation process 2: Determine the 3D coordinates of the position selected by the mouse. During the process of moving the material with the mouse, the movement of the mouse is decomposed into horizontal and vertical movements. When the horizontal direction moves, the material bounding box moves with the mouse, and the vertical direction When moving, the mouse only indicates the moving direction, and the vertical direction moves along the direction of the camera at a constant speed in the world coordinate system. Adjust the depth information of the mouse and the bounding box, so that during the material movement, the material bounding box will change according to different According to the positive correlation between the preview image of the material and the projected size of the bounding box, the state of the preview image of the material can be realized.
  8. 如权利要求7所述的家装素材移动方法,其特征在于,确定鼠标的3D坐标的方式为:将鼠标选择素材时,将素材包围盒中心的深度作为鼠标点击位置的深度,基于鼠标点击位置的深度和鼠标点击位置在户型投影平面图中的2D坐标,利用相机矩阵的逆矩阵做变换处理,得到鼠标点击位置的3D坐标。The method for moving home improvement materials according to claim 7, wherein the method of determining the 3D coordinates of the mouse is: when the mouse selects the material, the depth of the center of the material bounding box is used as the depth of the mouse click position, and the The 2D coordinates of the depth and the mouse click position in the floor plan of the floor plan are transformed by the inverse matrix of the camera matrix to obtain the 3D coordinates of the mouse click position.
  9. 如权利要求1所述的家装素材移动方法,其特征在于,还包括:定义鼠标移动和素材移动的对应关系,依据对应关系通过鼠标控制素材移动。The method for moving home improvement materials according to claim 1, further comprising: defining a correspondence between mouse movement and material movement, and controlling material movement through the mouse according to the correspondence.
  10. 如权利要求1所述的家装素材移动方法,其特征在于,还包括:依据键盘与素材的调整规则,通过键盘精细移动素材,以调整素材位置。The method for moving home improvement materials according to claim 1, further comprising: according to the adjustment rules of the keyboard and the materials, finely moving the materials through the keyboard to adjust the position of the materials.
  11. 如权利要求1所述的家装素材移动方法,其特征在于,还包括:为放置到户型投影平面图的素材自动生成图层和依据素材移动指令调整图层,具体依据素材包围盒的深度信息生成图层深度,依据深度补偿值对图层深度进行调整,以调整图层位置。The method for moving home improvement materials according to claim 1, further comprising: automatically generating a layer for the materials placed on the floor plan of the house type projection and adjusting the layers according to the material movement instruction, specifically generating a map according to the depth information of the material bounding box Layer depth, adjust the layer depth according to the depth compensation value to adjust the layer position.
  12. 如权利要求1~11任一项所述的家装素材移动方法,其特征在于,还包括:对家装设计结果进行渲染生成渲染图并输出;The method for moving home improvement materials according to any one of claims 1 to 11, further comprising: rendering a home improvement design result to generate a rendering and outputting;
    基于家装设计结果生成设计提案并输出。Generate and output design proposals based on home improvement design results.
  13. 一种家装素材移动装置,其特征在于,包括:A device for moving home improvement materials, comprising:
    获取模块,获取包含有已设计有家装素材的户型投影平面图,所述户型投影平面图包含户型的三维结构信息;an acquisition module, which acquires a floor plan of a house type that includes materials for home decoration that have been designed, and the floor plan of the house type projection includes the three-dimensional structure information of the house type;
    接收模块,接收素材移动指令;Receiving module, receiving material movement instructions;
    移动模块,基于素材状态对应的辅助信息、提示信息以及户型的三维结构信息,辅助根据素材移动指令对已设计的家装素材进行移动。The moving module, based on the auxiliary information corresponding to the material state, the prompt information and the three-dimensional structure information of the house type, assists in moving the designed home decoration material according to the material moving instruction.
  14. 一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上执行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1~12任一项所述的家装素材移动方法的步骤。A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the computer program, claims 1 to 12 are implemented The steps of any one of the methods for moving home improvement materials.
  15. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理执行时实现权利要求1~12任一项所述的家装素材移动方法的步骤。A computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is processed and executed, the steps of the method for moving home improvement materials according to any one of claims 1 to 12 are implemented.
PCT/CN2021/084733 2020-12-31 2021-03-31 Home decoration material moving method and apparatus, and computer device and storage medium WO2022141888A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011631495.XA CN112765706B (en) 2020-12-31 2020-12-31 Home decoration material moving method and device, computer equipment and storage medium
CN202011631495.X 2020-12-31

Publications (1)

Publication Number Publication Date
WO2022141888A1 true WO2022141888A1 (en) 2022-07-07

Family

ID=75699601

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084733 WO2022141888A1 (en) 2020-12-31 2021-03-31 Home decoration material moving method and apparatus, and computer device and storage medium

Country Status (2)

Country Link
CN (1) CN112765706B (en)
WO (1) WO2022141888A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116680793A (en) * 2023-08-03 2023-09-01 贝壳找房(北京)科技有限公司 Wall data processing method, component creation method, electronic device and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113591193A (en) * 2021-08-05 2021-11-02 广东三维家信息科技有限公司 Graph position adjusting method and device, electronic equipment and storage medium
CN114327174A (en) * 2021-12-31 2022-04-12 北京有竹居网络技术有限公司 Virtual reality scene display method and cursor three-dimensional display method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130127841A1 (en) * 2011-11-18 2013-05-23 Samsung Electronics Co., Ltd. Three-dimensional (3d) image display method and apparatus for 3d imaging and displaying contents according to start or end of operation
CN106202672A (en) * 2016-06-28 2016-12-07 浙江数联云集团有限公司 The method generating three-dimensional panorama interior design plan based on number connection platform
CN107742319A (en) * 2017-10-27 2018-02-27 北京小米移动软件有限公司 Model data processing method and processing device
US10528684B1 (en) * 2017-12-04 2020-01-07 Synopsys, Inc. TCAD design template for fast prototyping of 2D and 3D CMOS image sensors
CN111369664A (en) * 2020-02-10 2020-07-03 北京城市网邻信息技术有限公司 Method, device, equipment and storage medium for displaying house type scene
CN111428301A (en) * 2020-03-27 2020-07-17 杭州群核信息技术有限公司 Automatic design method between sample plates of customer restaurant
CN111985022A (en) * 2020-06-23 2020-11-24 北京城市网邻信息技术有限公司 Processing method and device for on-line decoration, electronic equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104268922B (en) * 2014-09-03 2017-06-06 广州博冠信息科技有限公司 A kind of image rendering method and image rendering device
CN104794758B (en) * 2015-04-17 2017-10-03 青岛海信医疗设备股份有限公司 A kind of method of cutting out of 3-D view
CN111833243B (en) * 2020-09-20 2020-12-01 武汉中科通达高新技术股份有限公司 Data display method, mobile terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130127841A1 (en) * 2011-11-18 2013-05-23 Samsung Electronics Co., Ltd. Three-dimensional (3d) image display method and apparatus for 3d imaging and displaying contents according to start or end of operation
CN106202672A (en) * 2016-06-28 2016-12-07 浙江数联云集团有限公司 The method generating three-dimensional panorama interior design plan based on number connection platform
CN107742319A (en) * 2017-10-27 2018-02-27 北京小米移动软件有限公司 Model data processing method and processing device
US10528684B1 (en) * 2017-12-04 2020-01-07 Synopsys, Inc. TCAD design template for fast prototyping of 2D and 3D CMOS image sensors
CN111369664A (en) * 2020-02-10 2020-07-03 北京城市网邻信息技术有限公司 Method, device, equipment and storage medium for displaying house type scene
CN111428301A (en) * 2020-03-27 2020-07-17 杭州群核信息技术有限公司 Automatic design method between sample plates of customer restaurant
CN111985022A (en) * 2020-06-23 2020-11-24 北京城市网邻信息技术有限公司 Processing method and device for on-line decoration, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116680793A (en) * 2023-08-03 2023-09-01 贝壳找房(北京)科技有限公司 Wall data processing method, component creation method, electronic device and storage medium
CN116680793B (en) * 2023-08-03 2023-10-20 贝壳找房(北京)科技有限公司 Wall data processing method, component creation method, electronic device and storage medium

Also Published As

Publication number Publication date
CN112765706A (en) 2021-05-07
CN112765706B (en) 2024-02-20

Similar Documents

Publication Publication Date Title
WO2022141888A1 (en) Home decoration material moving method and apparatus, and computer device and storage medium
WO2022141887A1 (en) Home decoration plan automatic design method and apparatus, computer device, and storage medium
US7346408B2 (en) Two-dimensional graphics for incorporating on three-dimensional objects
CN104751520B (en) Computer method, apparatus, and medium for displaying theme environment
WO2021244119A1 (en) Method for assisting two-dimensional home decoration design
JP5299173B2 (en) Image processing apparatus, image processing method, and program
CN108460840A (en) The methods of exhibiting and displaying device of virtual house decoration
US10013506B2 (en) Annotating real-world objects
Tolba et al. A projective drawing system
JP4748980B2 (en) System and method for annotating 3D electronic documents
US20140225894A1 (en) 3d-rendering method and device for logical window
CN115049811B (en) Editing method, system and storage medium for digital twin virtual three-dimensional scene
WO2022141886A1 (en) Home decoration material adjustment method and apparatus, and computer device and storage medium
US11967030B2 (en) Method, device and computer program product for manipulating virtual bounding volumes
Sinenko et al. Automation of visualization process for organizational and technological design solutions
US11074747B2 (en) Computer-aided techniques for designing detailed three-dimensional objects
Criminisi et al. Bringing pictorial space to life: computer techniques for the analysis of paintings
Limberger et al. Mixed-projection treemaps: A novel approach mixing 2d and 2.5 d treemaps
WO2017061954A1 (en) Method and system for an online space planning tool
CN116310041A (en) Rendering method and device of internal structure effect, electronic equipment and storage medium
CN112668085B (en) Automatic design method and device for home decoration plane, computer equipment and storage medium
TW201412094A (en) Device for generating a depth map
JPH07234949A (en) Method and system for supporting preparation of perspective drawing
CN109808406A (en) The online method for mounting of painting and calligraphy pieces, system and storage medium
CN110310375B (en) Method and system for editing object in panoramic image and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21912658

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21912658

Country of ref document: EP

Kind code of ref document: A1