Disclosure of Invention
Because the existing method has the problems, the embodiment of the invention provides a three-dimensional space model jump processing method and a three-dimensional space model jump processing device.
In a first aspect, an embodiment of the present invention provides a three-dimensional spatial model jump processing method, including:
acquiring the relative position relation of each three-dimensional space submodel, and determining a target area in each three-dimensional space submodel according to the relative position relation;
setting a skip label in each target area, wherein the skip label comprises a target sub-model;
and if the jumping label is judged and known to be triggered, jumping to the target sub-model for checking.
Optionally, the setting of the skip label in each target area specifically includes:
and if the windows and/or doors containing the current three-dimensional space submodels in the target area are judged and obtained, setting jump labels on the windows and/or doors in each target area.
Optionally, the setting of the skip label in each target area specifically includes:
and if the window or the door which does not contain the current three-dimensional space sub-model in the target area is judged and known, setting a skip label at the preset position of the current interface.
Optionally, if it is determined that the skip tag is triggered, skipping to the target sub-model for checking specifically includes:
and if the click area of the click operation is judged to be in the target area provided with the jump label according to the click operation of the user, jumping to the target sub-model for checking.
In a second aspect, an embodiment of the present invention further provides a three-dimensional spatial model jump processing apparatus, including:
the region determining module is used for acquiring the relative position relationship of each three-dimensional space submodel and determining a target region in each three-dimensional space submodel according to the relative position relationship;
the label setting module is used for setting a skip label in each target area, wherein the skip label comprises a target sub-model;
and the model skipping module is used for skipping to the target sub-model for checking if the skipping tag is triggered by judgment.
Optionally, the tag setting module is specifically configured to set a skip tag on a window and/or a door in each target area if it is determined that the window and/or the door in the target area includes the current three-dimensional space sub-model.
Optionally, the tag setting module is specifically configured to set a skip tag at a preset position of the current interface if it is determined that the window or door in the target area does not include the current three-dimensional space sub-model.
Optionally, the model skipping module is specifically configured to skip to the target sub-model for viewing if it is determined according to the click operation of the user that the click area of the click operation is within the target area provided with the skipping tag.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, which when called by the processor are capable of performing the above-described methods.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium storing a computer program, which causes the computer to execute the above method.
According to the technical scheme, the target area is determined according to the relative position relation of the three-dimensional space submodels, the jump tags are arranged in the target areas, and when the jump tags are triggered, the target submodels are jumped to, so that friendly jumping among the submodels is achieved, and the house-looking experience is closer to that of a field.
Detailed Description
The following further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Before the content provided by the present invention is described in detail, the meaning of "VR (virtual reality) watch room" is given.
Different from the house-watching concepts that the house-watching of the current popular pictures, videos, panoramic houses and the like cannot provide depth information and real perception, the 'VR house-watching' means that a house source three-dimensional scene is really restored by utilizing a VR technology, and immersive house-watching experience in a free mode is provided for consumers, so that the users can experience the real house-watching scene without going out. For example, by opening a VR house source on the APP, depth information including the size, orientation, distance, etc. of the real space of the house can be obtained by touching the screen anywhere. In the aspect of restoring a house source three-dimensional scene, a house can be scanned and shot in multiple points and multiple angles to obtain complete three-dimensional point cloud data, longitude and latitude data and a multi-exposure high-definition color picture, and all data and picture textures are mapped onto a three-dimensional model through three-dimensional reconstruction technologies such as automatic modeling, intelligent cavity filling, full-automatic data extraction and HDR optimization in the later period to obtain a real house space seen by a final user.
Fig. 1 shows a schematic flow chart of a three-dimensional space model jump processing method provided in this embodiment, including:
s101, obtaining the relative position relation of each three-dimensional space submodel, and determining a target area in each three-dimensional space submodel according to the relative position relation.
Wherein the relative position relationship is a position relationship between every two submodels, for example, a position relationship between a current house submodel and a gymnasium model, or a position relationship between a current house submodel and a cafe libra model, and so on.
The target area is an area which is mapped to the current submodel according to different standing positions and the position of the other submodel relative to the current submodel.
S102, setting jump labels in each target area, wherein the jump labels comprise target sub-models.
And the skip label is a label which can skip the sub-model after being triggered by the user.
S103, if the skip tag is triggered, skipping to the target sub-model for checking.
Specifically, when using the function of VR watching a house, a user is often not satisfied to know only the information inside the house, but also to know more other information, such as the situation of a public area. Public areas include cell environments, rooftop conditions, cafes, gyms, and the like. In order to solve the above problem, the present embodiment implements the correlation between multiple spatial submodels, so that the submodels can be transferred to each other to meet the user's requirement. Specifically, when a three-dimensional space model is manufactured, a plurality of three-dimensional space submodels in different places are manufactured, and the relative position relationship of each submodel is recorded; and (4) making labels at the places where different submodels are mutually associated, and clicking the labels to realize the jump between the three-dimensional space submodels.
According to the method, the target area is determined according to the relative position relation of the three-dimensional space submodels, the jump tags are arranged in the target areas, the target submodels are jumped to when the jump tags are triggered, friendly jumping among the submodels is achieved, and the house-looking experience is more approximate to that of on-site.
Further, on the basis of the above method embodiment, S102 specifically includes:
and if the windows and/or doors containing the current three-dimensional space submodels in the target area are judged and obtained, setting jump labels on the windows and/or doors in each target area.
And if the window or the door which does not contain the current three-dimensional space sub-model in the target area is judged and known, setting a skip label at the preset position of the current interface.
For example, if a cafe in a public area can be seen through a window of a current house, a label is set on a window of a sub-model of the current house to record a cafe sub-model, and the cafe can be viewed by clicking the label.
If the balcony in the public area cannot be seen through all windows and doors of the current house, a skip label is arranged at a preset position of the current interface, and the balcony can be checked by clicking the skip label. The preset position can be the lower right corner of the interface or other positions which do not influence the viewing of the three-dimensional space model.
By minimizing one three-dimensional space sub-model in another three-dimensional space sub-model, the user is made more free to jump between three dimensions.
Further, on the basis of the above method embodiment, the S103 specifically includes:
and if the click area of the click operation is judged to be in the target area provided with the jump label according to the click operation of the user, jumping to the target sub-model for checking.
Specifically, when the user looked over in house in three-dimensional space model, see window department and show that there is the cafe, then click the cafe of window department, jump to the cafe sub-model of coffee automatically and look over, when according with the user and look over the room psychology, more convenience of customers.
Fig. 2 shows a schematic structural diagram of a three-dimensional space model jump processing device provided in this embodiment, where the device includes: a region determination module 201, a label setting module 202, and a model hopping module 203, wherein:
the region determining module 201 is configured to obtain a relative position relationship between the three-dimensional space submodels, and determine a target region in each three-dimensional space submodel according to the relative position relationship;
the label setting module 202 is configured to set a skip label in each target area, where the skip label includes a target sub-model;
and the model skipping module 203 is used for skipping to the target sub-model for checking if the skipping tag is triggered.
Specifically, the region determining module 201 obtains a relative position relationship of each three-dimensional space submodel, and determines a target region in each three-dimensional space submodel according to the relative position relationship; the label setting module 202 sets a skip label in each target area, wherein the skip label comprises a target sub-model; and if the model skipping module 203 judges that the skipping tag is triggered, skipping to the target sub-model for checking.
According to the method, the target area is determined according to the relative position relation of the three-dimensional space submodels, the jump tags are arranged in the target areas, the target submodels are jumped to when the jump tags are triggered, friendly jumping among the submodels is achieved, and the house-looking experience is more approximate to that of on-site.
Further, on the basis of the above device embodiment, the tag setting module 202 is specifically configured to set a skip tag on a window and/or a door in each target area if it is determined and known that the window and/or the door in the target area include the current three-dimensional space sub-model.
Further, on the basis of the above device embodiment, the tag setting module 202 is specifically configured to set a skip tag at a preset position of the current interface if it is determined that the window or door in the target area does not include the current three-dimensional space sub-model.
Further, on the basis of the above device embodiment, the model skipping module 203 is specifically configured to skip to the target sub-model for viewing if it is determined according to the click operation of the user that the click area of the click operation is within the target area provided with the skipping tag.
The three-dimensional spatial model jump processing apparatus described in this embodiment may be used to execute the above method embodiments, and the principle and technical effect are similar, which are not described herein again.
Referring to fig. 3, the electronic device includes: a processor (processor)301, a memory (memory)302, and a bus 303;
wherein,
the processor 301 and the memory 302 complete communication with each other through the bus 303;
the processor 301 is configured to call program instructions in the memory 302 to perform the methods provided by the above-described method embodiments.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods provided by the above-described method embodiments.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
It should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.