Disclosure of Invention
Aiming at the defects in the prior art, the invention provides the display method and the display device for the decoration of the virtual house, which realize the virtual decoration display of the house to be decorated, thereby effectively improving the user experience and improving the efficiency from the design scheme to the confirmation scheme.
In order to achieve the purpose, the invention provides the following technical scheme:
in one aspect, the invention provides a display method of virtual house decoration, comprising the following steps:
acquiring a virtual article model required by house decoration;
acquiring a plane house type diagram of a house to be decorated, and generating a three-dimensional model of the house according to the plane house type diagram;
according to a demand instruction input by a user, the three-dimensional model is decorated by combining the virtual article model;
and converting the three-dimensional model after decoration into a VR scene model, and displaying the VR scene model in VR wearable equipment.
Further, the display method further comprises the following steps:
continuously scanning the local target of the house to be decorated and displaying the local target of the house to be decorated;
and according to a demand instruction input by a user, the displayed local target is decorated by combining the virtual article model.
Further, the virtual object model includes: and the two-dimensional code is used for storing commodity information of the actual goods corresponding to the virtual goods model.
Further, the combining the virtual item model on the three-dimensional model includes:
adding the virtual item model on the three-dimensional model;
and/or, deleting the virtual item model on the three-dimensional model;
and/or, replacing the virtual item model on the three-dimensional model;
and/or, moving the virtual object model on the three-dimensional model;
and/or scaling the virtual item model on the three-dimensional model.
Further, the combining the virtual object model on the displayed local target includes:
adding the virtual item model on the three-dimensional model;
and/or, deleting the virtual item model on the displayed local target;
and/or, replacing the virtual item model on the displayed local target;
and/or, moving the virtual object model over the displayed local target;
and/or scaling the virtual item model on the displayed local target.
On the other hand, the invention also provides a display device for virtual house decoration, which comprises:
the system comprises an acquisition unit, a storage unit and a display unit, wherein the acquisition unit is used for acquiring a virtual article model required by house decoration;
the modeling unit is used for acquiring a plane house type diagram of the house to be decorated and generating a three-dimensional model of the house according to the plane house type diagram;
the decoration unit is used for combining the virtual article model on the three-dimensional model according to a demand instruction input by a user to realize decoration on the three-dimensional model;
and the VR display unit is used for converting the three-dimensional model after decoration into a VR scene model and displaying the VR scene model in VR wearable equipment.
Further, the display device further comprises:
the scanning display unit is used for continuously scanning the local target of the house to be decorated and displaying the local target of the house to be decorated;
and the AR display unit is used for combining the virtual article model on the displayed local target according to a demand instruction input by a user to finish the local target.
Further, the virtual object model includes: and the two-dimensional code is used for storing commodity information of the actual goods corresponding to the virtual goods model.
In another aspect, the present invention further provides an electronic device, including: a processor, a memory, and a bus; wherein,
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory so as to execute the virtual house decoration display method.
In another aspect, the present invention further provides a non-transitory computer-readable storage medium, which stores computer instructions for causing the computer to execute the virtual house decoration displaying method.
According to the technical scheme, the display method and the display device for the virtual house decoration can enable a user to select the decoration style, the decoration part and the like according to the VR scene, and can preview the corresponding virtual decoration, so that the user experience is effectively improved; through establishing the corresponding relation between the VR scene model and the three-dimensional model, VR scenes at different visual angles can be updated in real time, and the fidelity and the immersion sense of VR virtual decoration are improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following embodiments of the invention provide a display method and a display device for virtual house decoration.
Referring to fig. 1, a method for displaying a virtual house decoration according to a first embodiment of the present invention specifically includes the following steps:
s101: acquiring a virtual article model required by house decoration;
in specific implementation, according to building materials and furniture required by house decoration, 3D modeling software is adopted to respectively generate virtual article models corresponding to the building materials and the furniture, and the virtual article models can truly represent the actual shapes, colors, sizes and materials of the actual building materials and the actual furniture.
The 3D modeling software can be SketchUp, Sweet Home 3D or 3 Dmax.
S102: acquiring a plane house type diagram of a house to be decorated, and generating a three-dimensional model of the house according to the plane house type diagram;
in specific implementation, the planar house layout of the house to be decorated can be obtained by uploading the picture of the planar house layout of the house to be decorated or inputting specific parameter data of the planar house layout to be decorated, after the two-dimensional planar house layout is obtained, the height of the planar house layout is increased and the planar house layout is converted into a three-dimensional house layout, so that a three-dimensional model of the house to be decorated is generated.
S103: according to a demand instruction input by a user, the three-dimensional model is decorated by combining the virtual article model;
in specific implementation, after a three-dimensional model of a house to be decorated is obtained, the virtual article model is added to the three-dimensional model; and/or, deleting the virtual item model on the three-dimensional model; and/or, replacing the virtual item model on the three-dimensional model; and/or, moving the virtual object model on the three-dimensional model; and/or scaling the virtual item model on the three-dimensional model; the building material virtual article model and the furniture virtual article model are classified according to style, material, color, shape, surface texture and the like, a user can place the building materials and the furniture in a room by simply dragging, the placement position, size and direction can be freely adjusted, the whole decoration effect is finally seen, and the decoration of the three-dimensional model is realized.
Meanwhile, reference and guidance can be provided for an owner through the decoration style templates designed by professional designers, the professional decoration designers design various decoration style templates and provide one-key style transformation, and the actual effect can be correspondingly adjusted in size and furniture proportion along with the house types of the owner.
S104: and converting the three-dimensional model after decoration into a VR scene model, and displaying the VR scene model in VR wearable equipment.
When the method is specifically implemented, the three-dimensional model is scaled in a certain proportion, so that a VR scene model can be obtained, and the VR scene model can be mapped to VR wearable equipment for a user to check. Of course, in the preferred embodiment of the present invention, scaling may not be performed, and the ratio of the three-dimensional model to the VR scene model is 1:1, so that the VR scene model is more convenient for the user to view, and the fidelity and immersion of the VR scene model are improved.
As can be seen from the above description, in the embodiment, by applying various models for containing virtual articles to a three-dimensional house, a more intuitive experience is provided, and an owner can freely place various virtual building materials and furniture models in a virtual environment, and can freely customize materials of the building materials, and the size and color of furniture to adapt to the layout of the house environment, so that the same selection of decoration styles, selection of decoration parts, and the like is realized, and corresponding virtual decoration previews can be performed, thereby effectively improving the user experience; through establishing the corresponding relation between the VR scene model and the three-dimensional model, VR scenes at different visual angles can be updated in real time, and the fidelity and the immersion sense of VR virtual decoration are improved.
On the basis of the above embodiment, the virtual house decoration exhibition party further includes:
s201: continuously scanning the local target of the house to be decorated and displaying the local target of the house to be decorated;
during specific implementation, the local target of the house to be decorated is scanned through the camera, so that the local target displays the local target of the house to be decorated on the display screen. Namely, the local target of the house to be decorated is displayed in an AR mode.
S202: and according to a demand instruction input by a user, the displayed local target is decorated by combining the virtual article model.
When the method is implemented, adding the virtual object model on a local target; and/or, deleting the virtual item model on the displayed local target; and/or, replacing the virtual item model on the displayed local target; and/or, moving the virtual object model over the displayed local target; and/or zooming the virtual object model on the displayed local object, classifying the building material virtual object model and the furniture virtual object model according to style, material, color, shape, surface texture and the like, placing the building material and the furniture on the displayed local object in a simple dragging mode by a user, freely adjusting the placing position, size and direction, seeing the overall decoration effect in an AR mode, and decorating the three-dimensional model.
As can be seen from the above description, applying the virtual commodity model to the actual house by means of AR provides a more intuitive experience.
Further, in the above-described embodiment, the virtual article model includes: and the two-dimensional code is used for storing commodity information of the actual goods corresponding to the virtual goods model.
In the step, during modeling, commodity information can be recorded in modes of building materials, furniture commodity two-dimensional codes and the like, and basic data are prepared for subsequent retrieval. When the user is satisfied with commodity effects such as certain building materials or furniture, can press virtual article for a long time, look over article and correspond commodity information through the two-dimensional code on the virtual article model, include: the brand, the commodity model, the selling price, the purchasing channel and the like can be connected with an e-commerce entrance, so that one-key order-placing purchase is realized.
Through setting up the two-dimensional code on virtual article model, record commodity information when modeling true building materials and furniture, the link that the virtual experience of user corresponds with real article under the line on the routing line, through virtual experience, let the user convenient, directly perceived, free dress is repaiied certainly, builds the decorative effect that more accords with user's aesthetic.
An embodiment of the present invention provides a display device for virtual house decoration, referring to fig. 2, the device specifically includes:
an obtaining unit 10, configured to obtain a virtual object model required for house decoration;
the modeling unit 20 is used for acquiring a planar house layout of a house to be decorated and generating a three-dimensional model of the house according to the planar house layout;
the decoration unit 30 is used for combining the virtual article model on the three-dimensional model according to a demand instruction input by a user to decorate the three-dimensional model;
and the VR display unit 40 is used for converting the decorated three-dimensional model into a VR scene model and displaying the VR scene model in VR wearable equipment.
The display device further comprises:
a scanning display unit 50 for continuously scanning the local target of the house to be finished and displaying the local target of the house to be finished;
and the AR display unit 60 is used for combining the displayed local target with the virtual article model according to a demand instruction input by the user to finish the local target.
The virtual item model includes: and the two-dimensional code is used for storing commodity information of the actual goods corresponding to the virtual goods model.
According to the technical scheme, the display device for virtual house decoration realizes the selection of decoration styles, decoration parts and the like, and can perform corresponding virtual decoration preview, so that the user experience is effectively improved; through establishing the corresponding relation between the VR scene model and the three-dimensional model, VR scenes at different visual angles can be updated in real time, and the fidelity and the immersion sense of VR virtual decoration are improved.
An embodiment of the present invention provides an electronic device, and referring to fig. 3, the electronic device may include: a processor 11, a memory 12, a bus 13, and a computer program stored on the memory 12 and executable on the processor 11;
the processor 11 and the memory 12 complete mutual communication through the bus 13;
when the processor 11 executes the computer program, the method provided by the foregoing method embodiments is implemented, for example, including: acquiring a virtual article model required by house decoration; acquiring a plane house type diagram of a house to be decorated, and generating a three-dimensional model of the house according to the plane house type diagram; according to a demand instruction input by a user, the three-dimensional model is decorated by combining the virtual article model; and converting the three-dimensional model after decoration into a VR scene model, and displaying the VR scene model in VR wearable equipment.
A fourth embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method provided by the foregoing method embodiments, and includes: acquiring a virtual article model required by house decoration; acquiring a plane house type diagram of a house to be decorated, and generating a three-dimensional model of the house according to the plane house type diagram; according to a demand instruction input by a user, the three-dimensional model is decorated by combining the virtual article model; and converting the three-dimensional model after decoration into a VR scene model, and displaying the VR scene model in VR wearable equipment.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means/systems for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. The terms "upper", "lower", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.