CN110322257A - Virtual objects distribution method and device based on 3D scene - Google Patents
Virtual objects distribution method and device based on 3D scene Download PDFInfo
- Publication number
- CN110322257A CN110322257A CN201810264601.1A CN201810264601A CN110322257A CN 110322257 A CN110322257 A CN 110322257A CN 201810264601 A CN201810264601 A CN 201810264601A CN 110322257 A CN110322257 A CN 110322257A
- Authority
- CN
- China
- Prior art keywords
- mobile object
- projection
- screen
- movement routine
- module
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000003190 augmentative effect Effects 0.000 claims description 18
- 238000001514 detection method Methods 0.000 claims description 7
- 230000001960 triggered effect Effects 0.000 claims description 6
- 230000002708 enhancing effect Effects 0.000 claims description 3
- 230000006870 function Effects 0.000 description 16
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 5
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000010171 animal model Methods 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000005295 random walk Methods 0.000 description 1
- 238000007711 solidification Methods 0.000 description 1
- 230000008023 solidification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0209—Incentive being awarded or redeemed in connection with the playing of a video game
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Development Economics (AREA)
- Accounting & Taxation (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Finance (AREA)
- Entrepreneurship & Innovation (AREA)
- Computer Graphics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Game Theory and Decision Science (AREA)
- Software Systems (AREA)
- Economics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the present invention provides a kind of virtual objects distribution method and device based on 3D scene, comprising steps of S1 generates the movement routine of the current location by mobile object to random site in 3D scene, and mobile object is enabled to move along movement routine;For S2 during mobile object is moved along movement routine, if detecting, the projection of mobile object in point, is generated the new movement routine that destination is new random site;S3 enables mobile object move along new movement routine, and in shielding click function, until reaching new random site, and when reaching new random site, new random site is appointed as current location;S4 repeats step S1 to step S3, until default termination condition is satisfied, and records data simultaneously;S5 when the data of record meet preset virtual objects provide condition when, provide the virtual objects being randomly generated.The present invention effectively can attract consumer by way of game reward virtual objects, to reach the purpose of sale.
Description
Technical field
The present invention relates to computer field, in particular to a kind of virtual objects distribution method and device based on 3D scene.
Background technique
The such as virtual red packet of virtual objects, integral or electronics coupons etc. are a kind of sale hands that businessman attracts consumer
Section, can attract consumer by way of game reward virtual objects, to reach the purpose of merchandising or service.Its
In, the important component that scene of game model is designed as game engine is mainly used for establishing a series of scenes in game,
Including generating the path in game, scenery, building, landform in setting scene of game etc..Obvious scenario path therein
Mostly important, it determines the route of game role (mobile object) walking, and thus determines the building beside path, barrier
Hinder and the attributes such as the position of the elements such as neighbouring scenery, size.
However, the path in current game scene model mostly uses greatly artificial preset mode, make to a certain extent
The scene solidification for obtaining game, lacks feeling of freshness, causes user experience bad, therefore can not effectively attract consumer.
Summary of the invention
In order to effectively attract consumer by way of game reward virtual objects, to reach the mesh of sale
, the embodiment of the invention provides a kind of virtual objects distribution methods and device based on 3D scene.Technical solution is as follows:
In a first aspect, the present invention provides a kind of virtual objects distribution method based on 3D scene, be applied to have camera and
The terminal of screen, the method includes the steps:
S1, the current location by mobile object is generated in 3D scene to the movement routine of random site, and enable the shifting
Animal body is moved with First Speed along the movement routine;
S2, during the mobile object is moved along the movement routine, if detecting the throwing of the mobile object
Shadow in point, is then generated new movement routine, and the destination of the new movement routine is new random site;
S3, it enables the mobile object move with second speed along the new movement routine, and is in shielding click function,
Until reach the new random site, and when reaching the new random site, the new random site is appointed as
Current location;
S4, step S1 to step S3 is repeated, until default termination condition is satisfied, and is detecting institute for the first time simultaneously
It states projection and is recorded data in the period in point when the default termination condition is satisfied, the data include the shifting
The path data in dynamic path and the click data of the projection;
S5, judge whether the data of record meet preset virtual objects and provide condition, when meeting, provide random
The virtual objects of generation.
In some embodiments, the 3D scene is to utilize a virtual sphere using the position of the camera as the centre of sphere and structure
The scene built.
In some embodiments, in step sl it is described generated in 3D scene by the mobile object current location extremely
The movement routine of random site includes:
When the mobile object is moved to the current location as path destination, the mobile object is detected
Projection Display on the screen, then generates an accidental projection position at random on the screen;
Determine the projection ray and the virtual sphere emitted from the position of the camera to the accidental projection position
The point of intersection of spherical surface is the random site of the mobile object;
It generates by the current location to the movement routine of the random site.
In some embodiments, step S2 is specifically included:
Correspondence projected position when determining the projection of the mobile object by point on the screen, and determine by described
The point of intersection of projection ray and the virtual sphere spherical surface that the position of camera emits to the corresponding projected position is the shifting
The corresponding position of animal body;
Generate new accidental projection position at random on the screen;
Determine the projection ray and the virtual ball emitted from the position of the camera to the new accidental projection position
The point of intersection of body spherical surface is new random site;
It generates by the corresponding position to the new movement routine of the new random site.
In some embodiments, the terminal also has gyroscope, the method also includes:
If the posture of the terminal changes, so that the projection of the mobile object is not shown on the screen, then
The attitudes vibration information of the terminal is obtained by the gyroscope;And
According to the attitudes vibration information, instruction rotates the terminal so that the Projection Display of the mobile object is described
On screen.
In some embodiments, the screen also shows augmented reality AR icon, the method also includes:
After the augmented reality AR icon is triggered, start the camera, and the camera is collected in real time
Background of the reality scene as the screen so that the Projection Display of the mobile object on the screen is in the background
On.
In some embodiments, the virtual objects being randomly generated of providing include: in step s 4
It is requested from the terminal to the virtual objects granting that lottery service device initiates to carry the data;
The lottery service device randomly selects lottery ticket in the certificate pond of pre-configuration according to the data, and returns;
The lottery ticket is shown in the virtual objects displayed page.
In some embodiments, the lottery service device randomly selects prize in the certificate pond of pre-configuration according to the data
Certificate comprising steps of
The data are matched with prize drawing criterion predetermined;
According to matching result and the random number being randomly generated, the lottery ticket is determined.
Second aspect, the present invention provide a kind of virtual objects dispensing apparatus based on 3D scene, be applied to have camera and
The terminal of screen, described device include:
Generation module, in 3D scene generate by mobile object current location to random site movement routine;
Mobile module is moved with First Speed along the movement routine for the mobile object;
Detection module, for whether detecting the projection of the mobile object by point;
The generation module is also used to during the mobile object is moved along the movement routine, if detecting
The projection of the mobile object in point, is then generated new movement routine, the destination of the new movement routine be it is new with
It sets seat in the plane;
The mobile module is also used to that the mobile object is enabled to move with second speed along the new movement routine, and
In shielding click function, until reaching the new random site;
Specified module, for when reaching the new random site, the new random site to be appointed as present bit
It sets;
Module is repeated, for repeating the generation module, the mobile module, the detection module and described
Step in specified module, until default termination condition is satisfied;
Logging modle, for detect for the first time the projection by point when the default termination condition is satisfied
Data are recorded in period, the data include the path data of the movement routine and the click data of the projection;
Judgment module provides condition for judging whether the data of record meet preset virtual objects;
Module is provided, for when meeting, providing the virtual objects being randomly generated.
In some embodiments, the 3D scene is to utilize a virtual sphere using the position of the camera as the centre of sphere and structure
The scene built.
In some embodiments, the generation module is specifically used for:
When the mobile object is moved to the current location as path destination, the mobile object is detected
Projection Display on the screen, then generates an accidental projection position at random on the screen;
Determine the projection ray and the virtual sphere emitted from the position of the camera to the accidental projection position
The point of intersection of spherical surface is the random site of the mobile object;
It generates by the current location to the movement routine of the random site.
In some embodiments, the generation module is specifically also used to:
Correspondence projected position when determining the projection of the mobile object by point on the screen, and determine by described
The point of intersection of projection ray and the virtual sphere spherical surface that the position of camera emits to the corresponding projected position is the shifting
The corresponding position of animal body;
Generate new accidental projection position at random on the screen;
Determine the projection ray and the virtual ball emitted from the position of the camera to the new accidental projection position
The point of intersection of body spherical surface is new random site;
It generates by the corresponding position to the new movement routine of the new random site.
In some embodiments, the terminal also has gyroscope, described device further include:
Module is obtained, if the posture for the terminal changes, so that the projection of the mobile object is not shown in
On the screen, then the attitudes vibration information of the terminal is obtained by the gyroscope;
Indicating module, for according to the attitudes vibration information, instruction rotates the terminal so that the mobile object
Projection Display is on the screen.
In some embodiments, described device further includes augmented reality module, the corresponding enhancing of the augmented reality module
Real AR icon is shown on the screen;
The augmented reality module, for starting the camera after the augmented reality AR icon is triggered, and
Using the camera, collected reality scene is as the background of the screen in real time, so that the setting module is by the motive objects
The Projection Display of body on the screen is in the background.
In some embodiments, the granting module specifically includes:
Submodule is requested, for carrying the virtual objects granting of the data from the terminal to the initiation of lottery service device
Request, so that the lottery service device randomly selects lottery ticket in the certificate pond of pre-configuration according to the data, and returns;
It shows submodule, shows the lottery ticket for virtual objects displayed page on the terminal.
The embodiment of the invention provides a kind of virtual objects distribution method and device based on 3D scene, this method is applied to
Terminal with camera and screen, comprising steps of S1, in 3D scene generating the current location by the mobile object to random
The movement routine of position, and the mobile object is enabled to move with First Speed along the movement routine;S2, in the mobile object
During moving along the movement routine, if detecting, the projection of the mobile object in point, is generated new mobile road
Diameter, the destination of the new movement routine are new random site;S3, enable the mobile object with second speed along described new
Movement routine it is mobile, and in shielding click function, until reach the new random site, and reach it is described it is new with
When seat in the plane is set, the new random site is appointed as current location;S4, step S1 to step S3 is repeated, until default
Termination condition is satisfied, and simultaneously detect for the first time the projection by point when the default termination condition is satisfied
Data are recorded in period, the data include the path data of the movement routine and the click data of the projection;S5, sentence
Whether the data of disconnected record, which meet preset virtual objects granting condition, is provided the virtual object being randomly generated when meeting
Product.Method provided in an embodiment of the present invention, can by generating the mobile movement routine of the game role in scene of game at random
Abundant terminal user's recreation experience scene, improves user experience;In addition, by judging the data recorded in game process
Whether meet preset virtual objects granting condition and provides the virtual objects being randomly generated, and then effectively pass through when meeting
The mode of game reward virtual objects attracts consumer, to reach the purpose of sale.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of flow chart of virtual objects distribution method based on 3D scene provided by the invention;
Fig. 2 is the perspective view of mobile object on the screen in virtual sphere provided by the invention;
Fig. 3 a is that year beast prepares to run to the perspective view of destination from current location.
Fig. 3 b is that year beast arrives at the destination and prepares to run to the perspective view of next destination;
Fig. 3 c is the schematic diagram of locality arrow provided in an embodiment of the present invention;
Fig. 4 is a kind of structural block diagram of virtual objects dispensing apparatus based on 3D scene provided by the invention;
Fig. 5 is the structural block diagram provided by the invention for providing module.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached in the embodiment of the present invention
Figure, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this
Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides the virtual objects distribution method based on 3D scene, applied to the end with camera and screen
End is moved with realizing in the 3D scene in terminal mobile object along random walk, and then abundant terminal user's recreation experience
Scene improves user experience, and then effectively attracts consumer by way of game reward virtual objects, to reach sale
Purpose.Wherein, terminal is preferably smart phone, but terminal be also possible to except smart phone with camera and screen
Other terminals, such as personal digital assistant, tablet computer, wearable device etc., the specific terminal of the present invention is without limitation.
Shown in referring to Fig.1, the embodiment of the invention provides a kind of virtual objects distribution methods based on 3D scene, are applied to
Terminal with camera and screen, this method may include:
Step S1 generates the current location by mobile object to the movement routine of random site in 3D scene, and enables institute
Mobile object is stated to move with First Speed along the movement routine.
In embodiments of the present invention, 3D scene is to utilize the virtual sphere using the position of the camera as the centre of sphere and construct
Scene, which can be scene of game;Mobile object can be animal model or person model in scene of game
Equal game roles.
Wherein, enable mobile object that can move on the spherical surface of virtual sphere, and by the screen of terminal to mobile object into
Row Projection Display.In embodiments of the present invention, initial position of the mobile object on the spherical surface of virtual sphere can be set, so that
When mobile object is located at initial position, the Projection Display of mobile object on the screen is in specified projected position, wherein specified projection
Position is preferably appointed as the middle position on screen.
In embodiments of the present invention, the current location of mobile object can be based on the current accidental projection position generated at random
Random site obtained from setting is also possible to the initial position corresponding when current time is initial time;In addition, motive objects
The projected position of body on the screen can be expressed as a two-dimensional coordinate on screen.
It can by the process of movement routine of current location to the random site of mobile object specifically, being generated in 3D scene
To include:
A, when mobile object is moved to the current location as path destination, the throwing of the mobile object is detected
Shadow is displayed on the screen, then generates an accidental projection position at random on the screen.
Wherein, path destination is the destination for the movement routine being previously generated.
The accidental projection position generated at random on the screen can be meet on two-dimensional screen preset function distribution with
Machine point, preset function distribution include being not limited to normal distribution and Poisson distribution.
The accidental projection position being randomly generated on the screen and the corresponding projection on the screen of the current location of mobile object
The distance between position need to meet within the scope of pre-determined distance.
The present invention is not limited the generating process of accidental projection position.
B, the projection ray and the virtual ball emitted from the position of the camera to the accidental projection position is determined
The point of intersection of body spherical surface is the random site of the mobile object.
Specifically, one projection of accidental projection position transmitting from the position (i.e. the centre of sphere of virtual sphere) of camera on screen
The point of intersection of projection ray and virtual sphere spherical surface is determined as mobile object in the random site of virtual sphere by ray, should be with
Seat in the plane, which is set, is used to indicate mobile object subsequent time in the location of virtual sphere.
It is understood that mobile object is on the screen when mobile object is located at initial position in virtual sphere
Specified projected position is located at the point of intersection of the projection ray from the position of camera to initial position and screen that emit from.
C, it generates by the current location to the movement routine of the random site.
In one embodiment of the invention, movement routine can be thread path always, and the length of the straight line path can be with
According to the current location of mobile object in conjunction with the random site of mobile object space distance between two points formula and be calculated.
In other embodiments of the invention, movement routine can also be a radian path, and the length in the radian path can
With according to the radius length of the random site of the current location of mobile object, mobile object, the position of camera and virtual sphere simultaneously
It is calculated in conjunction with sphere point-to-point transmission arc length calculation formula.
It is worth noting that, mobile object is moved with First Speed edge by the movement routine of current location to random site
In dynamic process, moved to Projective Synchronization that mobile object is displayed on the screen, only in mobile object along movement routine
When being moved to random site, the projection for showing mobile object can be just corresponded on accidental projection position.
Fig. 2 is the perspective view of mobile object on the screen in virtual sphere provided by the invention, as shown in Fig. 2,
Mesh-like area in virtual sphere is that screen visual range is projected in the visual range view field in virtual sphere, when current
Carve tk, detect that mobile object reaches current location X as a purpose along movement routine has been generatedkWhen, the projection of mobile object
The Current projection position Y being displayed on the screenk(wherein Current projection position YkPositioned at from the position C of camera to current location XkHair
The projection ray L penetratedkWith the point of intersection of screen), an accidental projection position Y will be generated at random on the screenk+1, and then by phase
The position of machine emits a projection ray L to accidental projection positionk+1, and by projection ray Lk+1With the point of intersection of virtual sphere spherical surface
Xk+1As mobile object in next moment tk+1The random site at place.
Step S2, during the mobile object is moved along the movement routine, if detecting the mobile object
Projection in point, then generated new movement routine, the destination of the new movement routine is new random site.
Specifically, the process may include:
A, correspondence projected position when determining the projection of the mobile object by point on the screen, and determine by the phase
The point of intersection of projection ray and the virtual sphere spherical surface that the position of machine emits to the corresponding projected position is the movement
The corresponding position of object.
B, new accidental projection position is generated at random on the screen.
Wherein, the new accidental projection position generated at random on the screen can be meets preset function on two-dimensional screen
The random point of distribution, preset function distribution include being not limited to normal distribution and Poisson distribution.
The distance between new Current projection position of accidental projection position and mobile object is within the scope of pre-determined distance.
C, the projection ray emitted from the position of the camera to the new accidental projection position and described virtual is determined
The point of intersection of sphere spherical surface is new random site.
D, it generates by the corresponding position to the new movement routine of the new random site.
Wherein, new movement routine can be thread path always, can also be a radian path.
It should be noted that if being moved to along movement routine the random site as path destination in the mobile object
When, the projection of the mobile object is still not detected by point, i.e., user does not interact with terminal, then specifies random site
It for current location, and recycles and executes step S1, until the scene of game page is closed, terminate.
Step S3 enables the mobile object move with second speed along the new movement routine, and clicks in shielding
Function refers to the new random site until reach the new random site, and when reaching the new random site
It is set to current location.
Wherein, second speed is more than First Speed, preferably sets 3 times that second speed is First Speed.
When shielding click function refers to that mobile object is in the state of shielding click function, that is, indicate motive objects in user's point
It does not work when the projection of body, when mobile object reaches new random site, releases shielding click function.
Step S4 repeats step S1 to step S3, until default termination condition is satisfied, and detects simultaneously for the first time
Data are recorded in the period in point when the default termination condition is satisfied to the projection, the data include institute
State the path data of movement routine and the click data of the projection.
Wherein, the click data of projection include projection number of clicks, successfully point in number and click the time.
Wherein, presetting termination condition is the game success determined by game rule or failure game, wherein being set in default
When successfully hitting the number of mobile object projected image in game timing and reaching preset times, game success, otherwise game
Failure, wherein each game to start timing when detecting the projection of mobile object for the first time by point, presets game timing
It can be set as 10s.
Step S5, judges whether the data of record meet preset virtual objects and provide condition, when meeting, provides
The virtual objects being randomly generated.
Wherein, virtual objects can be the electronic price computings such as red packet, coupons, coupons voucher or to directly display bonus
The electronic ticket of volume.
Specifically, the process for providing the virtual objects being randomly generated may include:
It is requested from the terminal to the virtual objects granting that lottery service device initiates to carry the data;
The lottery service device randomly selects lottery ticket in the certificate pond of pre-configuration according to the data, and returns;
The lottery ticket is shown in the virtual objects displayed page.
Wherein it is possible to the data are matched with prize drawing criterion predetermined by the lottery service device, and
According to matching result and the random number being randomly generated, to determine the lottery ticket.
Scene is experienced in order to further enrich consumer entertainment, user experience is improved, in embodiments of the present invention, if screen is also
Augmented reality AR icon is shown, camera can be started, and camera is real after augmented reality AR icon is triggered
When background as screen of collected reality scene so that the Projection Display of mobile object on the screen is in background.
In addition, the projection of mobile object can be shown in end always due to the terminal for not having or not opening gyroscope
On the screen at end, and the terminal for having and opening gyroscope, may due to terminal movement or rotation and to move
The projection of object is not shown on the screen of terminal, therefore is based on this, and when terminal has gyroscope, the embodiment of the present invention is provided
Method can also include:
In the moving process of the mobile object, if the posture of terminal changes, so that the projection of mobile object is not
When being displayed on the screen, then the attitudes vibration information of terminal is obtained by gyroscope;And
According to attitudes vibration information, instruction rotation terminal so that the Projection Display of mobile object on the screen.
Specifically, locality indicator can be generated according to attitudes vibration information, to indicate rotation terminal so that mobile
The Projection Display of object is on the screen, wherein the locality indicator can be indicated with an arrow.
Example is carried out using year beast as mobile object, Fig. 3 a is that year beast prepares to run to the projection of destination from current location
Schematic diagram, Fig. 3 b are that year beast arrives at the destination and prepare to run to the perspective view of next destination, and Fig. 3 c is of the invention real
The schematic diagram of the locality arrow of example offer is provided.
A kind of virtual objects distribution method based on 3D scene provided in an embodiment of the present invention is applied to have camera and screen
The terminal of curtain, this method can enrich terminal use by generating the mobile movement routine of the game role in scene of game at random
Family recreation experience scene, improves user experience;In addition, pre- by judging whether the data recorded in game process meet
If virtual objects provide condition and provide the virtual objects being randomly generated when meeting, and then it is effectively empty by game reward
Intend the mode of article to attract consumer, to reach the purpose of sale.
Referring to shown in Fig. 4, the embodiment of the invention provides a kind of virtual objects dispensing apparatus based on 3D scene, run on
Terminal with camera and screen, the device include:
Generation module 401, for generating current location to the mobile road of random site by mobile object in 3D scene
Diameter;
Mobile module 402 is moved with First Speed along the movement routine for the mobile object;
Detection module 403, for whether detecting the projection of the mobile object by point;
The generation module 401 is also used to during the mobile object is moved along the movement routine, if detection
Projection to the mobile object in point, is then generated new movement routine, and the destination of the new movement routine is new
Random site;
The mobile module 402 is also used to that the mobile object is enabled to move with second speed along the new movement routine,
And in shielding click function, until reaching the new random site;
Specified module 404, for when reaching the new random site, the new random site to be appointed as currently
Position;
Module 405 is repeated, for repeating the generation module 401, the mobile module 402, the detection
Step in module 403 and the specified module 404, until default termination condition is satisfied;
Logging modle 406, for detecting that described project is satisfied in point up to the default termination condition for the first time
When period in record data, the data include the path data of the movement routine and the click data of the projection;
Judgment module 407 provides condition for judging whether the data of record meet preset virtual objects;
Module 408 is provided, for when meeting, providing the virtual objects being randomly generated.
Further, the 3D scene is the field for utilizing the virtual sphere using the position of the camera as the centre of sphere and constructing
Scape.
Further, the generation module 401 is specifically used for:
When the mobile object is moved to the current location as path destination, the mobile object is detected
Projection Display on the screen, then generates an accidental projection position at random on the screen;
Determine the projection ray and the virtual sphere emitted from the position of the camera to the accidental projection position
The point of intersection of spherical surface is the random site of the mobile object;
It generates by the current location to the movement routine of the random site.
Further, the generation module 401 is specifically also used to:
Correspondence projected position when determining the projection of the mobile object by point on the screen, and determine by described
The point of intersection of projection ray and the virtual sphere spherical surface that the position of camera emits to the corresponding projected position is the shifting
The corresponding position of animal body;
Generate new accidental projection position at random on the screen;
Determine the projection ray and the virtual ball emitted from the position of the camera to the new accidental projection position
The point of intersection of body spherical surface is new random site;
It generates by the corresponding position to the new movement routine of the new random site.
Further, the terminal also has gyroscope, described device further include:
Module 409 is obtained, if the posture for the terminal changes, so that the projection of the mobile object is not shown
On the screen, then the attitudes vibration information of the terminal is obtained by the gyroscope;
Indicating module 410, for according to the attitudes vibration information, instruction to rotate the terminal so that the mobile object
Projection Display on the screen.
Further, described device further includes augmented reality module 411, the corresponding enhancing of the augmented reality module 411
Real AR icon is shown on the screen;
The augmented reality module 411, for starting the phase after the augmented reality AR icon is triggered
Machine, and collected reality scene is as the background of the screen in real time using the camera, so that the setting module will be described
The Projection Display of mobile object on the screen is in the background.
Referring to Figure 5, further, the granting module 408 specifically includes:
Submodule 4081 is requested, for carrying the virtual objects of the data from the terminal to the initiation of lottery service device
Request is provided, so that the lottery service device randomly selects lottery ticket in the certificate pond of pre-configuration according to the data, and is returned;
It shows submodule 4082, shows the lottery ticket for virtual objects displayed page on the terminal.
A kind of virtual objects dispensing apparatus based on 3D scene provided in an embodiment of the present invention, runs on camera and screen
The terminal of curtain, the device can enrich terminal use by generating the mobile movement routine of the game role in scene of game at random
Family recreation experience scene, improves user experience;In addition, pre- by judging whether the data recorded in game process meet
If virtual objects provide condition and provide the virtual objects being randomly generated when meeting, and then it is effectively empty by game reward
Intend the mode of article to attract consumer, to reach the purpose of sale.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
It should be understood that provided by the above embodiment executed based on the virtual objects dispensing apparatus of 3D scene based on 3D
It, can be with only with the division progress of above-mentioned each function device for example, in practical application when the virtual objects distribution method of scene
Above-mentioned function distribution is completed by different functional modules as needed, i.e., the internal structure of device is divided into different function
Energy module, to complete all or part of the functions described above.In addition, provided by the above embodiment based on the virtual of 3D scene
Article dispensing apparatus and the virtual objects distribution method embodiment based on 3D scene belong to same design, and specific implementation process is detailed
See embodiment of the method, which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely a prefered embodiment of the invention, is not intended to limit the invention, all in the spirit and principles in the present invention
Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (12)
1. a kind of virtual objects distribution method based on 3D scene, applied to the terminal with camera and screen, which is characterized in that
The method includes the steps:
S1, the current location by mobile object is generated in 3D scene to the movement routine of random site, and enable the motive objects
Body is moved with First Speed along the movement routine;
S2, during the mobile object is moved along the movement routine, if detecting the projection quilt of the mobile object
In point, then new movement routine is generated, the destination of the new movement routine is new random site;
S3, it enables the mobile object move with second speed along the new movement routine, and clicks functional shielding in shielding
Click function, until reach the new random site, and when reaching the new random site, by the new random order
It sets and is appointed as current location;
S4, step S1 to step S3 is repeated, until default termination condition is satisfied, and is detecting the throwing for the first time simultaneously
Shadow is recorded data in the period in point when the default termination condition is satisfied, the data include the mobile road
The click data of the path data of diameter and the projection;
S5, judge whether the data of record meet preset virtual objects and provide condition, when meeting, granting is randomly generated
Virtual objects.
2. the method according to claim 1, wherein the 3D scene is to utilize using the position of the camera as ball
One virtual sphere of the heart and the scene constructed.
3. according to the method described in claim 2, it is characterized in that, described in step sl generate in 3D scene by the shifting
The movement routine of the current location of animal body to random site includes:
When the mobile object is moved to the current location as path destination, the projection of the mobile object is detected
It is displayed on the screen, then generates an accidental projection position at random on the screen;
Determine the projection ray emitted from the position of the camera to the accidental projection position and the virtual sphere spherical surface
Point of intersection be the mobile object random site;
It generates by the current location to the movement routine of the random site.
4. according to the method described in claim 2, it is characterized in that, step S2 is specifically included:
Correspondence projected position when determining the projection of the mobile object by point on the screen, and determine by the camera
The point of intersection of projection ray and the virtual sphere spherical surface that emits to the corresponding projected position of position be the motive objects
The corresponding position of body;
Generate new accidental projection position at random on the screen;
Determine the projection ray emitted from the position of the camera to the new accidental projection position and the virtual sphere ball
The point of intersection in face is new random site;
It generates by the corresponding position to the new movement routine of the new random site.
5. the method according to claim 1, wherein the terminal also has gyroscope, the method also includes:
If the posture of the terminal changes, so that the projection of the mobile object is not shown on the screen, then pass through
The gyroscope obtains the attitudes vibration information of the terminal;And
According to the attitudes vibration information, instruction rotates the terminal so that the Projection Display of the mobile object is in the screen
On.
6. the method according to claim 1, wherein the screen also shows augmented reality AR icon,
The method also includes:
After the augmented reality AR icon is triggered, start the camera, and the camera is collected existing in real time
Background of the real field scape as the screen, so that the Projection Display of the mobile object on the screen is in the background.
7. according to claim 1 to method described in 6 any one, which is characterized in that the granting is random in step s 4 produces
Raw virtual objects include:
It is requested from the terminal to the virtual objects granting that lottery service device initiates to carry the data;
The lottery service device randomly selects lottery ticket in the certificate pond of pre-configuration according to the data, and returns;
Virtual objects displayed page on the terminal shows the lottery ticket.
8. the method according to the description of claim 7 is characterized in that the lottery service device is being pre-configured according to the data
Certificate pond in randomly select lottery ticket comprising steps of
The data are matched with prize drawing criterion predetermined;
According to matching result and the random number being randomly generated, the lottery ticket is determined.
9. a kind of virtual objects dispensing apparatus based on 3D scene, runs on the terminal with camera and screen, which is characterized in that
Described device includes:
Generation module, in 3D scene generate by mobile object current location to random site movement routine;
Mobile module is moved with First Speed along the movement routine for the mobile object;
Detection module, for whether detecting the projection of the mobile object by point;
The generation module is also used to during the mobile object is moved along the movement routine, if detecting described
The projection of mobile object in point, is then generated new movement routine, and the destination of the new movement routine is new random order
It sets;
The mobile module is also used to that the mobile object is enabled to be moved with second speed along the new movement routine, and is in
Functional shielding click function is clicked in shielding, until reaching the new random site;
Specified module, for when reaching the new random site, the new random site to be appointed as current location;
Module is repeated, for repeating the generation module, the mobile module, the detection module and described specified
Step in module, until default termination condition is satisfied;
Logging modle, for detecting described project by the time in point when the default termination condition is satisfied for the first time
Data are recorded in section, the data include the path data of the movement routine and the click data of the projection;
Judgment module provides condition for judging whether the data of record meet preset virtual objects;
Module is provided, for when meeting, providing the virtual objects being randomly generated.
10. device according to claim 9, which is characterized in that the terminal also has gyroscope, and described device is also wrapped
It includes:
Obtain module, if the posture for the terminal changes so that the projection of the mobile object be not shown in it is described
On screen, then the attitudes vibration information of the terminal is obtained by the gyroscope;
Indicating module, for indicating to rotate the terminal projection so that the mobile object according to the attitudes vibration information
Display is on the screen.
11. device according to claim 9, which is characterized in that described device further includes augmented reality module, the enhancing
The corresponding augmented reality AR icon of reality module is shown on the screen;
The augmented reality module, for after the augmented reality AR icon is triggered, starting the camera, and by institute
Camera background of the collected reality scene as the screen in real time is stated, so that the setting module exists the mobile object
Projection Display on the screen is in the background.
12. according to device described in claim 9 to 11 any one, which is characterized in that the granting module specifically includes:
Submodule is requested, for being asked from the terminal to the virtual objects granting that lottery service device initiates to carry the data
It asks, so that the lottery service device randomly selects lottery ticket in the certificate pond of pre-configuration according to the data, and returns;
It shows submodule, shows the lottery ticket for virtual objects displayed page on the terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810264601.1A CN110322257B (en) | 2018-03-28 | 2018-03-28 | Virtual article issuing method and device based on 3D scene |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810264601.1A CN110322257B (en) | 2018-03-28 | 2018-03-28 | Virtual article issuing method and device based on 3D scene |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110322257A true CN110322257A (en) | 2019-10-11 |
CN110322257B CN110322257B (en) | 2022-06-07 |
Family
ID=68110010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810264601.1A Active CN110322257B (en) | 2018-03-28 | 2018-03-28 | Virtual article issuing method and device based on 3D scene |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110322257B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150042640A1 (en) * | 2013-08-07 | 2015-02-12 | Cherif Atia Algreatly | Floating 3d image in midair |
CN105867428A (en) * | 2016-05-18 | 2016-08-17 | 南京航空航天大学 | Formation changing method for multi-robot system on basis of multiple movement models and multi-view geometry |
CN106693290A (en) * | 2016-12-07 | 2017-05-24 | 浙江理工大学 | Spinning virtual-wandering system and virtual wandering achievement method |
CN106821297A (en) * | 2016-12-31 | 2017-06-13 | 安徽三联交通应用技术股份有限公司 | A kind of portable dynamic vision testing method based on the aobvious equipment of head |
CN107274491A (en) * | 2016-04-09 | 2017-10-20 | 大连七界合创科技有限公司 | A kind of spatial manipulation Virtual Realization method of three-dimensional scenic |
CN109917910A (en) * | 2019-02-19 | 2019-06-21 | 腾讯科技(深圳)有限公司 | Display methods, device, equipment and the storage medium of line style technical ability |
-
2018
- 2018-03-28 CN CN201810264601.1A patent/CN110322257B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150042640A1 (en) * | 2013-08-07 | 2015-02-12 | Cherif Atia Algreatly | Floating 3d image in midair |
CN107274491A (en) * | 2016-04-09 | 2017-10-20 | 大连七界合创科技有限公司 | A kind of spatial manipulation Virtual Realization method of three-dimensional scenic |
CN105867428A (en) * | 2016-05-18 | 2016-08-17 | 南京航空航天大学 | Formation changing method for multi-robot system on basis of multiple movement models and multi-view geometry |
CN106693290A (en) * | 2016-12-07 | 2017-05-24 | 浙江理工大学 | Spinning virtual-wandering system and virtual wandering achievement method |
CN106821297A (en) * | 2016-12-31 | 2017-06-13 | 安徽三联交通应用技术股份有限公司 | A kind of portable dynamic vision testing method based on the aobvious equipment of head |
CN109917910A (en) * | 2019-02-19 | 2019-06-21 | 腾讯科技(深圳)有限公司 | Display methods, device, equipment and the storage medium of line style technical ability |
Non-Patent Citations (2)
Title |
---|
CHUNMEI DUAN: "3D Point Cloud Optimization Based on a Random Walk Model Using SBA", 《2013 SEVENTH INTERNATIONAL CONFERENCE ON IMAGE AND GRAPHICS》 * |
王丽君 等: "三维空间物体任意移动算法研究", 《信息技术》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110322257B (en) | 2022-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109314801B (en) | Method for browsing game world, game cloud system and method for previewing game world | |
CN107096221B (en) | System and method for providing time-shifted intelligent synchronized gaming video | |
CN109901894B (en) | Progress bar image generation method and device and storage medium | |
CN102171640B (en) | Signal conditioning package, information processing method, information recording carrier and program | |
KR20190028737A (en) | Method and system for accessing previously stored game play through video recording running on a game cloud system | |
CN103530495A (en) | Augmented reality simulation continuum | |
CN107392888A (en) | A kind of distance test method and system based on Unity engines | |
CN112862935A (en) | Game character motion processing method and device, storage medium and computer equipment | |
CN103164612B (en) | Zone-based positioning for virtual worlds | |
CN107370831B (en) | Multiusers interaction realization method and system based on MR aobvious equipment | |
CN109254650A (en) | A kind of man-machine interaction method and device | |
US9235924B2 (en) | Cubify brush operation for virtual worlds | |
CN106604014A (en) | VR film watching multi-person interaction method and VR film watching multi-person interaction system based on mobile terminals | |
CN109314802A (en) | Game based on position in game is carried out with application | |
CN106331832A (en) | Information display method and information display device | |
CN110898430B (en) | Sound source positioning method and device, storage medium and electronic device | |
CN111265861A (en) | Display method and device of virtual prop, storage medium and electronic device | |
WO2023066005A1 (en) | Method and apparatus for constructing virtual scenario, and electronic device, medium and product | |
CN110322257A (en) | Virtual objects distribution method and device based on 3D scene | |
CN108983954A (en) | Data processing method, device and system based on virtual reality | |
JP2018161435A (en) | Game program, method and information processor | |
JP2018161436A (en) | Game program, method and information processor | |
CN110314377B (en) | Method and device for randomly generating object moving path in three-dimensional space | |
CN109417651B (en) | Generating challenges using location-based gaming companion applications | |
WO2023030106A1 (en) | Object display method and apparatus, electronic device, and storage medium |
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 |