CN110264568A - A kind of three dimensional virtual models exchange method and device - Google Patents

A kind of three dimensional virtual models exchange method and device Download PDF

Info

Publication number
CN110264568A
CN110264568A CN201910544524.XA CN201910544524A CN110264568A CN 110264568 A CN110264568 A CN 110264568A CN 201910544524 A CN201910544524 A CN 201910544524A CN 110264568 A CN110264568 A CN 110264568A
Authority
CN
China
Prior art keywords
dimensional
virtual models
distance data
dimensional virtual
real world
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910544524.XA
Other languages
Chinese (zh)
Other versions
CN110264568B (en
Inventor
李广超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910544524.XA priority Critical patent/CN110264568B/en
Publication of CN110264568A publication Critical patent/CN110264568A/en
Application granted granted Critical
Publication of CN110264568B publication Critical patent/CN110264568B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Geometry (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a kind of three dimensional virtual models exchange method and devices, applied to the terminal device that interactive interface can be presented, which comprises obtain the depth data of realistic space predeterminable area, and construct virtual three dimensional space according to the depth data;Three dimensional virtual models are constructed in the virtual three dimensional space;Obtain the second distance data in first distance data and the virtual three dimensional space in the predeterminable area between real world object and the camera of the terminal device between the three dimensional virtual models and the camera;According to the first distance data and the second distance data, the hiding relation of the real world object Yu the three dimensional virtual models is determined.The interaction between real world object and three dimensional virtual models can be presented on the screen without player's touch control terminal device screen using the embodiment of the present invention, get rid of the limitation of screen.

Description

A kind of three dimensional virtual models exchange method and device
Technical field
The present invention relates to human-computer interaction technique fields, more particularly to a kind of three dimensional virtual models exchange method and one kind three Tie up dummy model interactive device.
Background technique
With the development of artificial intelligence, there is extensive application AR (Augmented Reality, augmented reality) skill The AR game of art.AR is one kind position of calculating image and angle and skill for adding respective image, video, 3D model in real time Art, target are that virtual world is covered in real world and interacted on the screen, and people is made to obtain more deep vision body It tests.
Dummy object is incident upon in screen, then by current most AR game by camera detection physical world Player is by completing the interaction with dummy object to the operation of screen, it is seen then that still passes through with the interaction of dummy object at present Player's Touch Screen is reached, and does not get rid of the limitation of screen actually.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind A kind of three dimensional virtual models exchange method and a kind of corresponding three dimensional virtual models interactive device to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of three dimensional virtual models exchange methods, and being applied to can The terminal device of interactive interface is presented, which comprises
The depth data of realistic space predeterminable area is obtained, and virtual three dimensional space is constructed according to the depth data;
Three dimensional virtual models are constructed in the virtual three dimensional space;
The first distance data in the predeterminable area between real world object and the camera of the terminal device are obtained, with And the second distance data in the virtual three dimensional space between the three dimensional virtual models and the camera;
According to the first distance data and the second distance data, the real world object and the three-dimensional are determined The hiding relation of model.
Preferably, after the step of three dimensional virtual models are constructed in the virtual three dimensional space, further includes:
First position coordinate of the camera in the virtual three dimensional space is recorded, and, the three-dimensional mould Second position coordinate of the type in the virtual three dimensional space.
Preferably, first obtained in the predeterminable area between real world object and the camera of the terminal device Second distance data in range data and the virtual three dimensional space between the three dimensional virtual models and the camera The step of, comprising:
When recognizing the real world object into the pre-set space, according to the predeterminable area and described three-dimensional empty The mapping relations in quasi- space, determine the third place coordinate of the real world object in the virtual three dimensional space;
Based on the first position coordinate and the third place coordinate, calculate the real world object and the camera it Between first distance data;
Based on the first position coordinate and the second position coordinate, the three dimensional virtual models and the camera shooting are calculated Second distance data between head.
Preferably, described according to the first distance data and the second distance data, determine the real world object with The step of hiding relation of the three dimensional virtual models, comprising:
When the first distance data are less than the second distance data, determine that the real world object blocks the three-dimensional Dummy model.
Preferably, described according to the first distance data and the second distance data, determine the real world object with The step of hiding relation of the three dimensional virtual models, comprising:
When the first distance data are greater than the second distance data, it is described to determine that the three dimensional virtual models block Real world object.
Preferably, described according to the first distance data and the second distance data, determine the real world object with The step of hiding relation of the three dimensional virtual models, comprising:
When the first distance data are equal to the second distance data, the object type of the three dimensional virtual models is determined Type;
The hiding relation of the real world object Yu the three dimensional virtual models is determined according to the object type;
Operation of the real world object to the three dimensional virtual models is responded, the three dimensional virtual models execution and institute are controlled State the corresponding movement of operation.
Preferably, the operation in the response real world object to the three dimensional virtual models controls described three-dimensional empty Analog model execute with the step of the operation corresponding movement after, further includes:
If the movement is that the three dimensional virtual models are mobile, the three dimensional virtual models are reacquired in the three-dimensional Second position coordinate in Virtual Space.
The embodiment of the invention also discloses a kind of three dimensional virtual models interactive devices, applied to the end that interactive interface can be presented End equipment, described device include:
Virtual three dimensional space constructs module, for obtaining the depth data of realistic space predeterminable area, and according to the depth Degree is according to building virtual three dimensional space;
Three dimensional virtual models construct module, for constructing three dimensional virtual models in the virtual three dimensional space;
Range data obtains module, for obtaining the camera of real world object and the terminal device in the predeterminable area Between first distance data and the virtual three dimensional space between the three dimensional virtual models and the camera Two range data;
Hiding relation determining module, described in determining according to the first distance data and the second distance data The hiding relation of real world object and the three dimensional virtual models.
The embodiment of the invention also discloses a kind of electronic equipment, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that the electronic equipment executes one or more method as described above.
The embodiment of the invention also discloses one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that the processor executes one or more method as described above.
The embodiment of the present invention includes following advantages:
The embodiment of the present invention can obtain the depth data of realistic space predeterminable area, and root in the scenes such as AR game Virtual three dimensional space is constructed according to depth data, after constructing three dimensional virtual models in virtual three dimensional space, is obtained in predeterminable area In first distance data and virtual three dimensional space between real world object and the camera of terminal device three dimensional virtual models with Second distance data between camera, to determine real world object and three according to first distance data and second distance data The hiding relation for tieing up dummy model can be presented real world object without player's touch control terminal device screen on the screen and three-dimensional is empty Interaction between analog model gets rid of the limitation of screen.
The embodiment of the present invention calculates the distance between real world object, camera and three dimensional virtual models data, according to distance Data determine the hiding relation of real world object and three dimensional virtual models, and when first distance data are equal to second distance data When, it is believed that it is very close with three-dimensional virtual object in real world object, it can permit three dimensional virtual models response player exercises Acted, meet the rule of real physical world so that three dimensional virtual models that there are senses is stronger, player can be allowed to feel three-dimensional Dummy model more " true " is present in except screen, brings stronger game feeling of immersion and substitutes into sense.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of three dimensional virtual models exchange method embodiment 1 of the invention;
Fig. 2 is a kind of step flow chart of three dimensional virtual models exchange method embodiment 2 of the invention;
Fig. 3 is a kind of schematic diagram of three-dimensional coordinate system of the invention;
Fig. 4 a- Fig. 4 d is the schematic diagram of a kind of player's hand and three dimensional virtual models of the invention;
Fig. 5 is a kind of structural block diagram of three dimensional virtual models interactive device embodiment of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of three dimensional virtual models exchange method embodiment 1 of the invention is shown, is had Body may include steps of:
Step 101, the depth data of realistic space predeterminable area is obtained, and three-dimensional is constructed according to the depth data Space.
In the concrete realization, the embodiment of the present invention is applied to present in the terminal device of interactive interface, such as mobile phone, flat Plate computer, game machine, virtual reality glasses etc..The equipment that opens a terminal enters specified application, such as when AR game, obtains The depth data of realistic space predeterminable area.
Wherein, realistic space predeterminable area refers to the region that can be taken by the camera of terminal device, depth Data refer to that by camera on terminal device or the acquisition of other sensing elements, subject is opposite in shooting area In the depth location information of camera, virtual three dimensional space can be constructed based on depth data, by throwing virtual three dimensional space It is put on terminal device screen, region captured by camera can be showed on terminal device screen.
Step 102, three dimensional virtual models are constructed in the virtual three dimensional space.
The embodiment of the present invention in the virtual three dimensional space constructed, further construct corresponding three dimensional virtual models ( Referred to as dummy object or AR object).For example, enemy, room can be constructed in virtual three dimensional space when entering AR game Between, the three dimensional virtual models that can be interacted with player such as Teddy bear.
Step 103, obtain in the predeterminable area between real world object and the camera of the terminal device first away from From the second distance data in data and the virtual three dimensional space between the three dimensional virtual models and the camera.
In embodiments of the present invention, when recognizing real world object, for example, object for being held of player's hand or player etc. into The region for having entered camera shooting, will acquire the distance between real world object, camera and three dimensional virtual models data.Specifically , range data includes first distance data and the three dimensional virtual models between real world object and the camera of terminal device Second distance data between camera.
Step 104, according to the first distance data and the second distance data, determine the real world object with it is described The hiding relation of three dimensional virtual models.
It is appreciated that if regardless of the screening between identical, real world object and three dimensional virtual models is all presented in any condition Gear relationship, and the rule of real physical world is not met, therefore, the embodiment of the present invention is calculating real world object and three-dimensional void After the range data of analog model and camera, real world object and three-dimensional in virtual three dimensional space will be determined according to range data Model hiding relation, such as hiding relation between real world object and three dimensional virtual models or real world object block three-dimensional void Analog model or three dimensional virtual models block real world object, or both and do not block mutually.
It should be noted that being, the hiding relation of real world object and three dimensional virtual models is needed in camera, real world object and three Tie up between dummy model on the same straight line or in predetermined angle, i.e., for the visual angle of camera, real world object and It is blocked completely between three dimensional virtual models or when partial occlusion, corresponding hiding relation could be presented, otherwise do not met equally true The rule of real physical world.
Using the embodiment of the present invention, the depth data of realistic space predeterminable area can be obtained in the scenes such as AR game, And virtual three dimensional space is constructed according to depth data, after constructing three dimensional virtual models in virtual three dimensional space, obtain preset areas Three-dimensional mould in first distance data and virtual three dimensional space in domain between real world object and the camera of terminal device Second distance data between type and camera, to determine real world object according to first distance data and second distance data With the hiding relation of three dimensional virtual models, real world object and three can be presented on the screen without player's touch control terminal device screen The interaction between dummy model is tieed up, the limitation of screen is got rid of.
Referring to Fig. 2, a kind of step flow chart of three dimensional virtual models exchange method embodiment 2 of the invention is shown, is had Body may include steps of:
Step 201, the depth data of realistic space predeterminable area is obtained, and three-dimensional is constructed according to the depth data Space.
In embodiments of the present invention, the camera for the equipment that opens a terminal and after starting AR mode, can be obtained by camera The depth data of enchashment real space predeterminable area that is to say the depth data in region captured by camera, and pass through depth number According to building virtual three dimensional space, virtual three dimensional space is invested on terminal device screen, thus on terminal device screen The region of camera shooting can be showed.
Step 202, three dimensional virtual models are constructed in the virtual three dimensional space.
After starting AR mode, three dimensional virtual models can be implemented in virtual three dimensional space, so that in terminal device Screen inside the region of camera shooting and the combination of three dimensional virtual models is presented, the AR game for obtaining half virtual half reality is drawn Face.
In embodiments of the present invention, after based on depth data building virtual three dimensional space, the three-dimensional can be directed to Three-dimensional coordinate system is established in space in real time, and records three-dimensional after virtual three dimensional space in three dimensional virtual models building Position coordinates of the model in three-dimensional coordinate system.It in one preferred embodiment of the invention, can be with after the step 202 Including following sub-step:
First position coordinate of the camera in the virtual three dimensional space is recorded, and, the three-dimensional mould Second position coordinate of the type in the virtual three dimensional space.
Specifically, point centered on the position of camera of the embodiment of the present invention, establishing in virtual three dimensional space has X Axis, Y-axis, the three-dimensional coordinate system of Z axis, position coordinates (X0, Y0, Z0) of the recording camera in virtual three dimensional space, with And position coordinates (X2, Y2, Z2) of the record three dimensional virtual models in virtual three dimensional space, it is specifically referred to shown in Fig. 3 The schematic diagram of three-dimensional coordinate system.It, can be with according to the position coordinates of camera, three dimensional virtual models in virtual three dimensional space Range data is calculated for subsequent.
Step 203, obtain in the predeterminable area between real world object and the camera of the terminal device first away from From the second distance data in data and the virtual three dimensional space between the three dimensional virtual models and the camera.
In a particular application, if recognize real world object enter camera shooting region when, will acquire real object Body is in virtual three dimensional space position coordinates, to further calculate the first distance between real world object and camera, and it is three-dimensional Second distance between dummy model and camera.
In one preferred embodiment of the invention, the step 203 may include following sub-step:
When recognizing the real world object into the pre-set space, according to the predeterminable area and described three-dimensional empty The mapping relations in quasi- space, determine the third place coordinate of the real world object in the virtual three dimensional space;
Based on the first position coordinate and the third place coordinate, calculate the real world object and the camera it Between first distance data;
Based on the first position coordinate and the second position coordinate, the three dimensional virtual models and the camera shooting are calculated Second distance data between head.
Below for ease of description, a kind of example using player's hand as real world object, certain embodiment of the present invention is simultaneously It is not limited to this.
When recognize player's hand enter camera shooting region after, obtain player's hand in three-dimensional coordinate system Position coordinates (X1, Y1, Z1), be then based on the position coordinates (X2, Y2, Z2) of the three dimensional virtual models formerly recorded, and The position coordinates (X0, Y0, Z0) of camera, calculate corresponding range data.
Wherein, the position coordinates of player's hand are determined according to the mapping relations of shooting area and virtual three dimensional space. Specifically, the embodiment of the present invention needs to be related to the conversion of multiple coordinate systems, when the marker for operating three dimensional virtual models (such as player's hand) when realistic space such as translates or rotates at the movement, to enable three dimensional virtual models to keep therewith It moves synchronously, reaches interaction effect, it is thus necessary to determine that the transition matrix of marker coordinate system to camera coordinate, according to transition matrix It is able to carry out the conversion of marker coordinate system to camera coordinate system, and in order to realize virtual three dimensional space and camera shooting area The alignment in domain needs to carry out camera and is demarcated to obtain camera parameter, is able to carry out camera according to camera parameter and sits Mark system arrives the conversion of Softcam coordinate system (three-dimensional coordinate system).In specific implementation, using arGetTransMat letter The position coordinates of the available marker of number in the camera coordinate system, if it is desired to determining camera in marker coordinate system Position coordinates can be used arMatrixInverse function and invert transition matrix.By the conversion between coordinate system, So that player's hand, camera and three dimensional virtual models alignment, realize the fusion of virtual scene.
Camera, player's hand, three dimensional virtual models all have certain volume in practice, for ease of calculation distance Data usually take the central point of camera, player's hand, three dimensional virtual models to calculate.
Specifically, it (is not necessarily water at a distance from camera central point that S1 (first distance data), which is hand central point, Flat distance);S2 (second distance data) is three dimensional virtual models central point at a distance from camera central point;(first is vertical by H1 Range data) be hand central point Yu camera central point vertical range;H2 (the second vertical range data) is three-dimensional The vertical range of model center point and camera central point.
Step 204, when the first distance data are less than the second distance data, determine that the real world object blocks The three dimensional virtual models.
For camera visual angle, the object closer apart from camera should block the object remoter apart from camera, because This should be then reality if first distance data are less than second distance data, that is, real world object relatively close to camera Object blocks three dimensional virtual models.In addition, if the first vertical range data illustrate player's hand less than the second vertical range data Clan three dimensional virtual models and camera composition cubical area in, at this time player's hand can to three dimensional virtual models into Row blocks.
Referring to Fig. 4 a, from left to right respectively mobile phone, player's hand, Teddy bear (three dimensional virtual models).Referring to Fig. 4 b, if S1 < S2 then judges that hand and camera distance are less than three dimensional virtual models at a distance from camera, allows three-dimensional mould at this time Type is placed in player's hand rear;Again and as H1 < H2, then judge that player's hand falls in three dimensional virtual models and camera forms Cubical area in, player's hand can block three dimensional virtual models at this time.
Step 205, when the first distance data are greater than the second distance data, the three dimensional virtual models are determined Block the real world object.
For camera visual angle, the object closer apart from camera should block the object remoter apart from camera, because This, if first distance data are greater than second distance data, that is, three dimensional virtual models should be then relatively close to camera Three dimensional virtual models block real world object.In addition, if the first vertical range data are greater than the second vertical range data, illustrate three Dimension dummy model is fallen in the cubical area of player's hand and camera composition, and three dimensional virtual models can be with player's hand at this time To blocking.
Referring to Fig. 4 c, if S1 > S2, judge hand and camera distance be greater than three dimensional virtual models and camera away from From allowing three dimensional virtual models to be placed in front of player hand at this time;Again and as H1 > H2, then judge that three dimensional virtual models fall in object for appreciation In the cubical area of family's hand and camera composition, three dimensional virtual models can be blocked player's hand at this time.
Step 206, when the first distance data are equal to the second distance data, the three dimensional virtual models are determined Object type;
Step 207, the hiding relation of the real world object Yu the three dimensional virtual models is determined according to the object type;
Step 208, operation of the real world object to the three dimensional virtual models is responded, the three dimensional virtual models are controlled Execute movement corresponding with the operation.
For camera visual angle, if the-range data is equal to second distance data, illustrate that real world object and three-dimensional are empty Analog model is identical at a distance from camera, illustrates that three dimensional virtual models and player's hand are very close, both at this time block pass System can be further determining according to the type of three dimensional virtual models, such as, it is assumed that three dimensional virtual models are a bead, player's hand Bead can be held in hand by portion, if three dimensional virtual models are a caverns, player's hand can be swallowed up in cavern, when So in addition to the above, it can also be that player's hand is covered in the situations such as three dimensional virtual models, the embodiment of the present invention is to this Without being limited.
Three dimensional virtual models can be acted by responding the operation of player's hand at this time.If at this time first vertically away from It is equal to the second vertical range data from data, can also further illustrates that three dimensional virtual models and the center of player's hand connect very much Close or overlapping.
Referring to Fig. 4 d, when S1 ≈ S2 while H1 ≈ H2, then judge that player's hand and three dimensional virtual models are close, Player's hand can interact three dimensional virtual models at this time, such as clicking operation, sliding interface and to three-dimensional mould Type pull mobile etc., the interaction of realization player's hand and three dimensional virtual models.
In one preferred embodiment of the invention, the three dimensional virtual models in virtual three dimensional space are moved by player Afterwards, can also include the following steps:
If the movement is that the three dimensional virtual models are mobile, the three dimensional virtual models are reacquired in the three-dimensional Second position coordinate in Virtual Space.
It should be noted that carrying out dragging movement to three dimensional virtual models, three dimensional virtual models will be changed in three-dimensional Position under space needs to recalculate at this time three dimensional virtual models in the position coordinates of three-dimensional coordinate system.
In summary, the embodiment of the present invention realizes the interactive process of hand and three dimensional virtual models (AR object) are as follows:
1, it is directed to camera shooting area, obtains the depth data of camera shooting area, and is constructed according to depth data Virtual three dimensional space then constructs AR object in virtual three dimensional space, and calculates AR object (taking central point) and (take with camera Central point) distance S1, vertical range H1;
2, after player's hand enters virtual three dimensional space, player's hand (taking central point) is calculated at a distance from camera S2, vertical range H2;
3, based on the judgement for distance, the result shown in virtual three dimensional space is respectively as follows:
3.1, when S1 < S2, AR object is placed in player's hand rear, i.e., available player's hand blocks AR object;
3.2, when S1 > S1, player's hand is placed in AR object rear, AR object can block player's hand;
3.3, when S1 ≈ S2 while H1 ≈ H2, in response to player exercises, player's hand can be generated with AR object Interaction, such as click, slide, pull etc..
It should be noted that the correlated judgment of range data is allowed in examples detailed above certain error range it It is interior.
Using the embodiment of the present invention, the distance between real world object, camera and three dimensional virtual models data are calculated, according to Range data determines the hiding relation of real world object and three dimensional virtual models, and when first distance data are equal to second distance number According to when, it is believed that it is very close with three-dimensional virtual object in real world object, can permit three dimensional virtual models response player behaviour Acted, meet the rule of real physical world so that three dimensional virtual models that there are senses is stronger, player can be allowed to feel three Dimension dummy model more " true " is present in except screen, brings stronger game feeling of immersion and substitutes into sense.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 5, a kind of structural block diagram of three dimensional virtual models interactive device embodiment of the invention is shown, is applied to The terminal device that interactive interface can be presented, can specifically include following module:
Virtual three dimensional space constructs module 301, for obtaining the depth data of realistic space predeterminable area, and according to described Depth data constructs virtual three dimensional space;
Three dimensional virtual models construct module 302, for constructing three dimensional virtual models in the virtual three dimensional space;
Range data obtains module 303, for obtaining taking the photograph for real world object and the terminal device in the predeterminable area As between head first distance data and the virtual three dimensional space between the three dimensional virtual models and the camera Second distance data;
Hiding relation determining module 304, for determining institute according to the first distance data and the second distance data State the hiding relation of real world object Yu the three dimensional virtual models.
In one preferred embodiment of the invention, described device further include:
Position coordinates logging modle is sat for recording first position of the camera in the virtual three dimensional space Mark, and, second position coordinate of the three dimensional virtual models in the virtual three dimensional space.
In one preferred embodiment of the invention, the range data obtains module 303, comprising:
The third place coordinate acquisition submodule, for when recognizing the real world object into the pre-set space, According to the mapping relations of the predeterminable area and the virtual three dimensional space, determine that the real world object is empty in the three-dimensional Between in the third place coordinate;
First distance data computational submodule, for being based on the first position coordinate and the third place coordinate, meter Calculate the first distance data between the real world object and the camera;
Second distance data computational submodule, for being based on the first position coordinate and the second position coordinate, meter Calculate the second distance data between the three dimensional virtual models and the camera.
In one preferred embodiment of the invention, the hiding relation determining module 304, comprising:
First hiding relation determines submodule, for based on when the first distance data are less than the second distance data When, determine that the real world object blocks the three dimensional virtual models.
In one preferred embodiment of the invention, the hiding relation determining module 304, comprising:
Second hiding relation determines submodule, is used for when the first distance data are greater than the second distance data, Determine that the three dimensional virtual models block the real world object.
In one preferred embodiment of the invention, the hiding relation determining module 304, comprising:
Third hiding relation determines submodule, is used for when the first distance data are equal to the second distance data, Determine the object type of the three dimensional virtual models;;
Third hiding relation determines submodule, for determining the real world object and the three-dimensional according to the object type The hiding relation of dummy model;
It responds submodule and controls the three-dimensional for responding operation of the real world object to the three dimensional virtual models Dummy model executes movement corresponding with the operation.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
The embodiment of the invention also provides a kind of electronic equipment, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors When, so that the electronic equipment executes method described in the embodiment of the present invention.
The embodiment of the invention also provides one or more machine readable medias, are stored thereon with instruction, when by one or When multiple processors execute, so that the processor executes method described in the embodiment of the present invention.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of three dimensional virtual models exchange method provided by the present invention and a kind of three dimensional virtual models interaction dress It sets, is described in detail, used herein a specific example illustrates the principle and implementation of the invention, above The explanation of embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for the general skill of this field Art personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this Description should not be construed as limiting the invention.

Claims (10)

1. a kind of three dimensional virtual models exchange method, applied to the terminal device that interactive interface can be presented, which is characterized in that described Method includes:
The depth data of realistic space predeterminable area is obtained, and virtual three dimensional space is constructed according to the depth data;
Three dimensional virtual models are constructed in the virtual three dimensional space;
Obtain the first distance data in the predeterminable area between real world object and the camera of the terminal device, Yi Jisuo State the second distance data in virtual three dimensional space between the three dimensional virtual models and the camera;
According to the first distance data and the second distance data, the real world object and the three dimensional virtual models are determined Hiding relation.
2. the method according to claim 1, wherein constructing three dimensional virtual models in the virtual three dimensional space The step of after, further includes:
First position coordinate of the camera in the virtual three dimensional space is recorded, and, the three dimensional virtual models exist Second position coordinate in the virtual three dimensional space.
3. according to the method described in claim 2, it is characterized in that, it is described obtain in the predeterminable area real world object with it is described The three dimensional virtual models and institute in first distance data and the virtual three dimensional space between the camera of terminal device The step of stating the second distance data between camera, comprising:
It is empty according to the predeterminable area and the three-dimensional when recognizing the real world object into the pre-set space Between mapping relations, determine the third place coordinate of the real world object in the virtual three dimensional space;
Based on the first position coordinate and the third place coordinate, calculate between the real world object and the camera First distance data;
Based on the first position coordinate and the second position coordinate, calculate the three dimensional virtual models and the camera it Between second distance data.
4. according to the method described in claim 3, it is characterized in that, it is described according to the first distance data and described second away from From data, the step of determining the hiding relation of the real world object and the three dimensional virtual models, comprising:
When the first distance data are less than the second distance data, determine that the real world object blocks the three-dimensional Model.
5. according to the method described in claim 3, it is characterized in that, it is described according to the first distance data and described second away from From data, the step of determining the hiding relation of the real world object and the three dimensional virtual models, comprising:
When the first distance data are greater than the second distance data, determine that the three dimensional virtual models block the reality Object.
6. according to the method described in claim 3, it is characterized in that, it is described according to the first distance data and described second away from From data, the step of determining the hiding relation of the real world object and the three dimensional virtual models, comprising:
When the first distance data are equal to the second distance data, the object type of the three dimensional virtual models is determined;
The hiding relation of the real world object Yu the three dimensional virtual models is determined according to the object type;
Operation of the real world object to the three dimensional virtual models is responded, the three dimensional virtual models is controlled and executes and the behaviour Make corresponding movement.
7. according to the method described in claim 6, it is characterized in that, in the response real world object to the three-dimensional The operation of model, control the three dimensional virtual models execute with the step of the operation corresponding movement after, further includes:
If the movement is that the three dimensional virtual models are mobile, the three dimensional virtual models are reacquired in the three-dimensional Second position coordinate in space.
8. a kind of three dimensional virtual models interactive device, applied to the terminal device that interactive interface can be presented, which is characterized in that described Device includes:
Virtual three dimensional space constructs module, for obtaining the depth data of realistic space predeterminable area, and according to the depth number According to building virtual three dimensional space;
Three dimensional virtual models construct module, for constructing three dimensional virtual models in the virtual three dimensional space;
Range data obtains module, for obtaining in the predeterminable area between real world object and the camera of the terminal device First distance data and the virtual three dimensional space between the three dimensional virtual models and the camera second away from From data;
Hiding relation determining module, for determining the reality according to the first distance data and the second distance data The hiding relation of object and the three dimensional virtual models.
9. a kind of electronic equipment characterized by comprising
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, when being executed by one or more of processors, are made The methods for obtaining the one or more that the electronic equipment is executed as described in claim 1-7.
10. one or more machine readable medias, are stored thereon with instruction, when executed by one or more processors, so that The processor executes one or more methods as described in claim 1-7.
CN201910544524.XA 2019-06-21 2019-06-21 Three-dimensional virtual model interaction method and device Active CN110264568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910544524.XA CN110264568B (en) 2019-06-21 2019-06-21 Three-dimensional virtual model interaction method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910544524.XA CN110264568B (en) 2019-06-21 2019-06-21 Three-dimensional virtual model interaction method and device

Publications (2)

Publication Number Publication Date
CN110264568A true CN110264568A (en) 2019-09-20
CN110264568B CN110264568B (en) 2023-07-25

Family

ID=67920390

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910544524.XA Active CN110264568B (en) 2019-06-21 2019-06-21 Three-dimensional virtual model interaction method and device

Country Status (1)

Country Link
CN (1) CN110264568B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112316425A (en) * 2020-11-13 2021-02-05 网易(杭州)网络有限公司 Picture rendering method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180068488A1 (en) * 2015-03-30 2018-03-08 Capcom Co., Ltd. Method of generating virtual three-dimensional space, video system, method of controlling video system, and non-transitory computer readable storage medium
CN108830940A (en) * 2018-06-19 2018-11-16 广东虚拟现实科技有限公司 Hiding relation processing method, device, terminal device and storage medium
CN109471521A (en) * 2018-09-05 2019-03-15 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Virtual and real shielding interaction method and system in AR environment
CN109754471A (en) * 2019-01-10 2019-05-14 网易(杭州)网络有限公司 Image processing method and device, storage medium, electronic equipment in augmented reality

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180068488A1 (en) * 2015-03-30 2018-03-08 Capcom Co., Ltd. Method of generating virtual three-dimensional space, video system, method of controlling video system, and non-transitory computer readable storage medium
CN108830940A (en) * 2018-06-19 2018-11-16 广东虚拟现实科技有限公司 Hiding relation processing method, device, terminal device and storage medium
CN109471521A (en) * 2018-09-05 2019-03-15 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Virtual and real shielding interaction method and system in AR environment
CN109754471A (en) * 2019-01-10 2019-05-14 网易(杭州)网络有限公司 Image processing method and device, storage medium, electronic equipment in augmented reality

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112316425A (en) * 2020-11-13 2021-02-05 网易(杭州)网络有限公司 Picture rendering method and device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110264568B (en) 2023-07-25

Similar Documents

Publication Publication Date Title
TWI567659B (en) Theme-based augmentation of photorepresentative view
CN104781849B (en) Monocular vision positions the fast initialization with building figure (SLAM) simultaneously
CA2906207C (en) Hud object design and display method
CN106066701B (en) A kind of AR and VR data processing equipment and method
CN105094335B (en) Situation extracting method, object positioning method and its system
CN206961066U (en) A kind of virtual reality interactive device
WO2022205760A1 (en) Three-dimensional human body reconstruction method and apparatus, and device and storage medium
CN106980368A (en) A kind of view-based access control model calculating and the virtual reality interactive device of Inertial Measurement Unit
CN103649872A (en) Input device, information processing system, information processing device and information processing method
CN109840500A (en) A kind of 3 D human body posture information detection method and device
TW201835723A (en) Graphic processing method and device, virtual reality system, computer storage medium
CN109471521A (en) Virtual and real shielding interaction method and system in AR environment
AU2013224660A1 (en) Automated frame of reference calibration for augmented reality
CN105657406A (en) Three-dimensional observation perspective selecting method and apparatus
CN104536579A (en) Interactive three-dimensional scenery and digital image high-speed fusing processing system and method
CN109829937A (en) It is detected using blocking and tracks three dimensional object
CN106648098A (en) User-defined scene AR projection method and system
CN106980378B (en) Virtual display method and system
CN104134235A (en) Real space and virtual space fusion method and real space and virtual space fusion system
CN106371579B (en) Control the method, apparatus and virtual reality interactive system of virtual reality interaction controller deformation flexible
KR102199772B1 (en) Method for providing 3D modeling data
CN110264568A (en) A kind of three dimensional virtual models exchange method and device
CN107376341A (en) It is a kind of for the data processing method of game paddle, device and game paddle
JP6695997B2 (en) Information processing equipment
CN109407824A (en) Manikin moves synchronously method and apparatus

Legal Events

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