CN110322257B - Virtual article issuing method and device based on 3D scene - Google Patents

Virtual article issuing method and device based on 3D scene Download PDF

Info

Publication number
CN110322257B
CN110322257B CN201810264601.1A CN201810264601A CN110322257B CN 110322257 B CN110322257 B CN 110322257B CN 201810264601 A CN201810264601 A CN 201810264601A CN 110322257 B CN110322257 B CN 110322257B
Authority
CN
China
Prior art keywords
moving object
projection
moving
screen
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.)
Active
Application number
CN201810264601.1A
Other languages
Chinese (zh)
Other versions
CN110322257A (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.)
SuningCom Co ltd
Original Assignee
SuningCom 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 SuningCom Co ltd filed Critical SuningCom Co ltd
Priority to CN201810264601.1A priority Critical patent/CN110322257B/en
Publication of CN110322257A publication Critical patent/CN110322257A/en
Application granted granted Critical
Publication of CN110322257B publication Critical patent/CN110322257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0209Incentive being awarded or redeemed in connection with the playing of a video game
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality

Abstract

The embodiment of the invention provides a virtual article issuing method and a virtual article issuing device based on a 3D scene, which comprise the following steps: s1 generating a moving path from the current position to a random position of the moving object in the 3D scene, and moving the moving object along the moving path; s2, generating a new moving path with the destination of new random position if detecting the projected target of the moving object in the moving process of the moving object along the moving path; s3, the moving object moves along the new moving path and is in the shielding click function until reaching the new random position, and when reaching the new random position, the new random position is designated as the current position; s4 repeatedly executing steps S1 to S3 until a preset end condition is satisfied, and simultaneously recording data; s5 issues the randomly generated virtual item when the recorded data satisfies the preset virtual item issuance condition. The invention can effectively attract consumers in a mode of rewarding virtual articles through games so as to achieve the aim of sale.

Description

Virtual article issuing method and device based on 3D scene
Technical Field
The invention relates to the field of computers, in particular to a virtual article issuing method and device based on a 3D scene.
Background
Virtual items such as virtual red packs, credits, or electronic vouchers are a means of merchants to attract consumers for sale, and may attract consumers by way of game awards for virtual items for the purpose of selling goods or services. The game scene model is used as an important component of game engine design and is mainly used for establishing a series of scenes in a game, including generating a path in the game and setting scenes, buildings, terrain and the like in the game scene. It is obvious that the path of the scene is the most important, and it determines the route traveled by the game character (moving object), and thus determines the attributes of the position, size, etc. of the elements such as buildings, obstacles, and nearby scenes beside the path.
However, most paths in the current game scene model are manually preset, so that the game scene is solidified to a certain extent, and the user experience is poor due to lack of freshness, so that the current game scene model cannot effectively attract consumers.
Disclosure of Invention
In order to effectively attract consumers in a mode of rewarding virtual articles through games so as to achieve the purpose of sales, the embodiment of the invention provides a virtual article issuing method and device based on a 3D scene. The technical scheme is as follows:
in a first aspect, the present invention provides a virtual article issuing method based on a 3D scene, applied to a terminal having a camera and a screen, the method including the steps of:
s1, generating a moving path from the current position to a random position of a moving object in the 3D scene, and enabling the moving object to move along the moving path at a first speed;
s2, generating a new moving path if the detected projected point of the moving object is detected during the moving of the moving object along the moving path, wherein the destination of the new moving path is a new random position;
s3, enabling the moving object to move along the new moving path at a second speed and to be in a shielding click function until the new random position is reached, and designating the new random position as a current position when the new random position is reached;
s4, repeatedly executing the steps S1 to S3 until a preset end condition is met, and simultaneously recording data in a time period from when the projection is detected to be in the point for the first time to when the preset end condition is met, wherein the data comprises path data of the moving path and click data of the projection;
and S5, judging whether the recorded data meets the preset virtual article issuing condition, and if so, issuing the randomly generated virtual article.
In some embodiments, the 3D scene is a scene constructed using a virtual sphere centered at the position of the camera.
In some embodiments, the generating a moving path from the current position to a random position of the moving object in the 3D scene in step S1 includes:
when the moving object moves to the current position as a path destination, detecting that the projection of the moving object is displayed on a screen, and randomly generating a random projection position on the screen;
determining the random position of the moving object at the intersection of a projection ray emitted from the position of the camera to the random projection position and the spherical surface of the virtual sphere;
generating a moving path from the current position to the random position.
In some embodiments, step S2 specifically includes:
determining a corresponding projection position on the screen when the projection of the moving object is in the point, and determining an intersection point of a projection ray emitted from the position of the camera to the corresponding projection position and the spherical surface of the virtual sphere as the corresponding position of the moving object;
randomly generating a new random projection position on the screen;
determining the intersection point of the projection ray emitted to the new random projection position from the position of the camera and the spherical surface of the virtual sphere as a new random position;
generating a new movement path from the corresponding location to the new random location.
In some embodiments, the terminal further has a gyroscope, the method further comprising:
if the attitude of the terminal changes, so that the projection of the moving object is not displayed on the screen, acquiring attitude change information of the terminal through the gyroscope; and
and according to the attitude change information, instructing to rotate the terminal so as to display the projection of the moving object on the screen.
In some embodiments, the screen further displays augmented reality AR function icons, the method further comprising:
and after the augmented reality AR function icon is triggered, starting the camera, and taking a real scene acquired by the camera in real time as the background of the screen, so that the projection of the moving object on the screen is displayed on the background.
In some embodiments, said issuing a randomly generated virtual item in step S4 includes:
initiating a virtual article issuing request carrying the data to a lottery server by the terminal;
the lottery server randomly draws lottery tickets in a pre-configured ticket pool according to the data and returns the lottery tickets;
and displaying the lottery ticket on the virtual article display page.
In some embodiments, the lottery server randomly drawing lottery tickets in a preconfigured ticket pool based on the data comprises the steps of:
matching the data with predefined lottery criteria;
and determining the lottery ticket according to the matching result and the randomly generated random number.
In a second aspect, the present invention provides a virtual article issuing apparatus based on a 3D scene, applied to a terminal having a camera and a screen, the apparatus including:
a generation module for generating a movement path from a current position of a moving object to a random position in a 3D scene;
a moving module for moving the moving object along the moving path at a first speed;
a detection module for detecting whether the projection of the moving object is in a point;
the generating module is further configured to generate a new moving path if it is detected that the projected target of the moving object is located in the projected target of the moving object during the moving of the moving object along the moving path, where the destination of the new moving path is a new random position;
the moving module is further configured to enable the moving object to move along the new moving path at a second speed and to be in a shielding click function until the new random position is reached;
a specifying module, configured to specify the new random position as a current position when the new random position is reached;
the repeated execution module is used for repeatedly executing the steps in the generation module, the moving module, the detection module and the designation module until a preset end condition is met;
the recording module is used for recording data in a time period from when the projection is detected to be in the point to when the preset end condition is met for the first time, wherein the data comprises path data of the moving path and click data of the projection;
the judging module is used for judging whether the recorded data meet preset virtual article issuing conditions or not;
and the issuing module is used for issuing the randomly generated virtual article when the virtual article is satisfied.
In some embodiments, the 3D scene is a scene constructed using a virtual sphere centered at the position of the camera.
In some embodiments, the generating module is specifically configured to:
when the moving object moves to the current position as a path destination, detecting that the projection of the moving object is displayed on a screen, and randomly generating a random projection position on the screen;
determining a random position of the moving object at an intersection of a projection ray emitted from the position of the camera to the random projection position and the spherical surface of the virtual sphere;
generating a moving path from the current position to the random position.
In some embodiments, the generating module is further specifically configured to:
determining a corresponding projection position on the screen when the projection of the moving object is in the point, and determining an intersection point of a projection ray emitted from the position of the camera to the corresponding projection position and the spherical surface of the virtual sphere as the corresponding position of the moving object;
randomly generating a new random projection position on the screen;
determining the intersection point of the projection ray emitted from the position of the camera to the new random projection position and the spherical surface of the virtual sphere as a new random position;
generating a new movement path from the corresponding location to the new random location.
In some embodiments, the terminal further has a gyroscope, the apparatus further comprising:
the acquisition module is used for acquiring attitude change information of the terminal through the gyroscope if the attitude of the terminal changes so that the projection of the moving object is not displayed on the screen;
and the indicating module is used for indicating the terminal to rotate according to the attitude change information so as to display the projection of the moving object on the screen.
In some embodiments, the device further comprises an augmented reality module, wherein an augmented reality AR function icon corresponding to the augmented reality module is displayed on the screen;
the augmented reality module is configured to start the camera after the augmented reality AR function icon is triggered, and use a real scene acquired by the camera in real time as a background of the screen, so that the setting module displays a projection of the moving object on the screen on the background.
In some embodiments, the issuing module specifically includes:
the request submodule is used for initiating a virtual article issuing request carrying the data to a lottery server by the terminal so that the lottery server randomly draws lottery tickets in a pre-configured ticket pool according to the data and returns the lottery tickets;
and the display sub-module is used for displaying the lottery ticket on a virtual article display page on the terminal.
The embodiment of the invention provides a virtual article issuing method and a virtual article issuing device based on a 3D scene, wherein the method is applied to a terminal with a camera and a screen and comprises the following steps: s1, generating a moving path from the current position to a random position of the moving object in the 3D scene, and moving the moving object along the moving path at a first speed; s2, generating a new moving path if the detected projected point of the moving object is detected during the moving of the moving object along the moving path, wherein the destination of the new moving path is a new random position; s3, enabling the moving object to move along the new moving path at a second speed and to be in a shielding click function until the new random position is reached, and designating the new random position as a current position when the new random position is reached; s4, repeatedly executing the steps S1 to S3 until a preset end condition is met, and simultaneously recording data in a time period from when the projection is detected to be in the point for the first time to when the preset end condition is met, wherein the data comprises path data of the moving path and click data of the projection; and S5, judging whether the recorded data meets the preset virtual article issuing condition, and if so, issuing the randomly generated virtual article. The method provided by the embodiment of the invention can enrich the entertainment experience scene of the terminal user and improve the user experience by randomly generating the movement path of the movement of the game role in the game scene; in addition, whether the data recorded in the game process meets the preset virtual article issuing conditions or not is judged, and when the data meets the preset virtual article issuing conditions, the randomly generated virtual articles are issued, so that the consumers are attracted by effectively rewarding the virtual articles through the game, and the aim of selling is fulfilled.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a virtual article issuing method based on a 3D scene provided by the present invention;
FIG. 2 is a schematic diagram of a projection of a moving object on a virtual sphere on a screen according to the present invention;
fig. 3a is a schematic projection of a year animal from a current position ready to run to a destination.
FIG. 3b is a schematic view of a projection of a beast arriving at a destination and preparing to run to the next destination;
FIG. 3c is a schematic view of a position and direction indicating arrow provided by an embodiment of the present invention;
fig. 4 is a block diagram of a virtual article issuing device based on a 3D scene according to the present invention;
fig. 5 is a block diagram of the structure of the issuing module provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The embodiment of the invention provides a virtual article issuing method based on a 3D scene, which is applied to a terminal with a camera and a screen, so that a moving object in the 3D scene in the terminal can move along a random path, the entertainment experience scene of a terminal user is enriched, the user experience is improved, and consumers are attracted effectively in a mode of rewarding virtual articles through a game, so that the aim of sale is fulfilled. The terminal is preferably a smartphone, but the terminal may also be another terminal with a camera and a screen besides the smartphone, such as a personal digital assistant, a tablet computer, a wearable device, and the like.
Referring to fig. 1, an embodiment of the present invention provides a virtual article issuing method based on a 3D scene, which is applied to a terminal having a camera and a screen, and the method may include:
in step S1, a moving path from a current position to a random position of a moving object in a 3D scene is generated, and the moving object is caused to move along the moving path at a first speed.
In the embodiment of the present invention, the 3D scene is a scene constructed by using a virtual sphere with the position of the camera as the center of sphere, and the 3D scene may be a game scene; the moving object may be a game character such as an animal model or a character model in a game scene.
The moving object can move on the spherical surface of the virtual sphere, and the screen of the terminal performs projection display on the moving object. In an embodiment of the present invention, an initial position of the moving object on the spherical surface of the virtual sphere may be set such that when the moving object is located at the initial position, the projection of the moving object on the screen is displayed at the designated projection position, wherein the designated projection position is preferably designated as a middle position on the screen.
In the embodiment of the present invention, the current position of the moving object may be a random position obtained based on a randomly generated current random projection position, or may be an initial position corresponding to a current time as an initial time; in addition, the projection position of the moving object on the screen may be expressed as a two-dimensional coordinate on the screen.
Specifically, the process of generating a moving path from the current position of the moving object to the random position in the 3D scene may include:
a. when the mobile object moves to the current position as a route destination, detecting that the projection of the mobile object is displayed on a screen, and randomly generating a random projection position on the screen.
Wherein the route destination is a destination of a previously generated movement route.
The randomly generated random projection locations on the screen may be random points on the two-dimensional screen that conform to a predetermined functional distribution, including, but not limited to, a normal distribution and a poisson distribution.
The distance between the randomly generated random projection position on the screen and the corresponding projection position of the current position of the moving object on the screen needs to be within a preset distance range.
The generation process of the random projection positions is not limited by the invention.
b. And determining the intersection point of a projection ray emitted from the position of the camera to the random projection position and the spherical surface of the virtual sphere as the random position of the moving object.
Specifically, a projection ray is emitted from the position of the camera (i.e. the center of the virtual sphere) to a random projection position on the screen, and an intersection point of the projection ray and the spherical surface of the virtual sphere is determined as the random position of the moving object in the virtual sphere, wherein the random position is used for indicating the position of the moving object in the virtual sphere at the next moment.
It is understood that when the moving object is located at the initial position on the virtual sphere, the designated projection position of the moving object on the screen is located at an intersection of a projection ray emitted from the position of the camera to the initial position and the screen.
c. Generating a moving path from the current position to the random position.
In one embodiment of the present invention, the moving path may be a straight path, and the length of the straight path may be calculated according to the current position of the moving object and the random position of the moving object in combination with a space two-point distance formula.
In other embodiments of the present invention, the moving path may also be a curved path, and the length of the curved path may be calculated according to the current position of the moving object, the random position of the moving object, the position of the camera, and the radius length of the virtual sphere, and by combining the calculation formula of the arc length between two points of the sphere.
It should be noted that, during the moving process of the moving object along the moving path from the current position to the random position at the first speed, the projection of the moving object displayed on the screen moves synchronously, and only when the moving object moves along the moving path to the random position, the projection of the moving object is correspondingly displayed on the random projection position.
FIG. 2 is a schematic view of the projection of a moving object on a virtual sphere on a screen according to the present invention, as shown in FIG. 2, a mesh region on the virtual sphere is a visible range of the screen projected on the virtual sphereArea of projection at the current time tkDetecting that the moving object reaches the current position X as the destination along the generated moving pathkThe projection of the moving object is displayed on the current projection position Y of the screenk(wherein the current projection position YkFrom the position C of the camera to the current position XkEmitted projection ray LkAt the intersection with the screen), a random projection position Y is randomly generated on the screenk+1And further transmitting a projection ray L from the position of the camera to the random projection positionk+1And projecting the ray Lk+1X at the intersection point with the spherical surface of the virtual spherek+1As moving object at the next instant tk+1At random positions.
Step S2, generating a new moving path if the detected projected point of the moving object is detected while the moving object moves along the moving path, wherein the destination of the new moving path is a new random position.
Specifically, the process may include:
a. and determining a corresponding projection position on a screen when the projection of the moving object is in the point, and determining the intersection point of the projection ray emitted from the position of the camera to the corresponding projection position and the spherical surface of the virtual sphere as the corresponding position of the moving object.
b. A new random projection location is randomly generated on the screen.
The new random projection positions randomly generated on the screen may be random points on the two-dimensional screen, which conform to a preset function distribution, where the preset function distribution includes, but is not limited to, a normal distribution and a poisson distribution.
The distance between the new random projection position and the current projection position of the moving object is within a preset distance range.
c. And determining the intersection point of the projection ray emitted to the new random projection position from the position of the camera and the spherical surface of the virtual sphere as a new random position.
d. Generating a new movement path from the corresponding location to the new random location.
The new moving path may be a straight path or an arc path.
If the projected point of the moving object is not detected when the moving object moves to the random position as the path destination along the moving path, that is, the user does not interact with the terminal, the random position is designated as the current position, and step S1 is executed in a loop until the game scene page is closed, and the process is ended.
And step S3, moving the moving object along the new moving path at a second speed and in a shielded click function until the new random position is reached, and designating the new random position as a current position when the new random position is reached.
Wherein the second speed exceeds the first speed, the second speed is preferably set to be 3 times the first speed.
The shielding click function means that the moving object does not function when in the state of shielding click function, namely, the projection of the moving object in the user point is shown, and the shielding click function is released when the moving object reaches a new random position.
And step S4, repeatedly executing steps S1 to S3 until a preset end condition is satisfied, and simultaneously recording data including path data of the movement path and click data of the projection in a period from when the projection is first detected to when the preset end condition is satisfied.
Wherein the projected click data includes projected click times, hit times in successful points, and click time.
Wherein the preset ending condition is a game success or a game failure determined by the game rule, wherein the game success is set when the number of successful hits on the projection image of the moving object reaches a preset number within a preset game timing time, otherwise the game failure is set, wherein each time the game is timed when the projection of the moving object is detected for the first time, the preset game timing time may be set to 10 s.
Step S5, determining whether the recorded data satisfies preset virtual article issuing conditions, and if so, issuing a randomly generated virtual article.
The virtual article can be an electronic pricing voucher such as a red envelope, a voucher, a discount coupon and the like or an electronic coupon directly displaying the reward amount.
Specifically, the process of issuing the randomly generated virtual item may include:
initiating a virtual article issuing request carrying the data to a lottery server by the terminal;
the lottery server randomly draws lottery tickets in a pre-configured ticket pool according to the data and returns the lottery tickets;
and displaying the lottery ticket on the virtual article display page.
Wherein the lottery ticket may be determined by the lottery server matching the data with a predefined lottery criterion and based on a matching result and a randomly generated random number.
In order to further enrich the user entertainment experience scene and improve the user experience, in the embodiment of the invention, if the screen also displays the augmented reality AR function icon, the camera can be started after the augmented reality AR function icon is triggered, and the real scene acquired by the camera in real time is used as the background of the screen, so that the projection of the moving object on the screen is displayed on the background.
In addition, since the projection of the moving object is always displayed on the screen of the terminal for the terminal without or without the gyroscope being turned on, and the projection of the moving object may not be displayed on the screen of the terminal for the terminal with and without the gyroscope being turned on due to the movement or rotation of the terminal, based on this, when the terminal has the gyroscope, the method provided by the embodiment of the present invention may further include:
in the moving process of the moving object, if the posture of the terminal changes, and the projection of the moving object is not displayed on a screen, acquiring posture change information of the terminal through a gyroscope; and
and according to the attitude change information, instructing the rotating terminal to enable the projection of the moving object to be displayed on the screen.
Specifically, a position direction indicator, which may be represented by an arrow, may be generated according to the posture change information to instruct the rotation of the terminal to cause the projection of the moving object to be displayed on the screen.
Taking a beast as a moving object for example, fig. 3a is a schematic projection view of the beast from a current position to be ready to run to a destination, fig. 3b is a schematic projection view of the beast arriving at the destination and ready to run to a next destination, and fig. 3c is a schematic view of a position direction indication arrow provided by an embodiment of the present invention.
The virtual article issuing method based on the 3D scene is applied to the terminal with the camera and the screen, and the method can enrich the entertainment experience scene of the terminal user and improve the user experience by randomly generating the moving path of the movement of the game role in the game scene; in addition, whether the data recorded in the game process meets the preset virtual article issuing conditions or not is judged, and when the data meets the preset virtual article issuing conditions, the randomly generated virtual articles are issued, so that the consumers are attracted by effectively rewarding the virtual articles through the game, and the aim of selling is fulfilled.
Referring to fig. 4, an embodiment of the present invention provides a virtual article issuing apparatus based on a 3D scene, which operates in a terminal having a camera and a screen, and includes:
a generating module 401, configured to generate a moving path from a current position of a moving object to a random position in a 3D scene;
a moving module 402 for moving the moving object along the moving path at a first speed;
a detection module 403 for detecting whether the projection of the moving object is pointed;
the generating module 401 is further configured to generate a new moving path if it is detected that the projected target of the moving object is located in the projected target of the moving object during the moving process of the moving object along the moving path, where the destination of the new moving path is a new random position;
the moving module 402 is further configured to move the moving object along the new moving path at a second speed, and is in a shielded click function until the new random position is reached;
a designating module 404, configured to designate the new random location as a current location when the new random location is reached;
a repeated execution module 405, configured to repeatedly execute the steps in the generation module 401, the moving module 402, the detection module 403, and the specification module 404 until a preset end condition is met;
a recording module 406, configured to record data in a time period from when the projection is detected to be in the spot for the first time to when the preset end condition is met, where the data includes path data of the moving path and click data of the projection;
the judging module 407 is configured to judge whether the recorded data meets a preset virtual article issuing condition;
an issuing module 408 for issuing the randomly generated virtual item when satisfied.
Further, the 3D scene is a scene constructed using a virtual sphere with the position of the camera as the center of the sphere.
Further, the generating module 401 is specifically configured to:
when the moving object moves to the current position as a path destination, detecting that the projection of the moving object is displayed on a screen, and randomly generating a random projection position on the screen;
determining the random position of the moving object at the intersection of a projection ray emitted from the position of the camera to the random projection position and the spherical surface of the virtual sphere;
generating a moving path from the current position to the random position.
Further, the generating module 401 is specifically further configured to:
determining a corresponding projection position on the screen when the projection of the moving object is in the point, and determining an intersection point of a projection ray emitted from the position of the camera to the corresponding projection position and the spherical surface of the virtual sphere as the corresponding position of the moving object;
randomly generating a new random projection position on the screen;
determining the intersection point of the projection ray emitted to the new random projection position from the position of the camera and the spherical surface of the virtual sphere as a new random position;
generating a new movement path from the corresponding location to the new random location.
Further, the terminal also has a gyroscope, and the apparatus further includes:
an obtaining module 409, configured to obtain posture change information of the terminal through the gyroscope if the posture of the terminal changes so that the projection of the moving object is not displayed on the screen;
an indicating module 410, configured to instruct, according to the posture change information, to rotate the terminal so that the projection of the moving object is displayed on the screen.
Further, the device further comprises an augmented reality module 411, wherein an augmented reality AR function icon corresponding to the augmented reality module 411 is displayed on the screen;
the augmented reality module 411 is configured to start the camera after the augmented reality AR function icon is triggered, and use a real scene acquired by the camera in real time as a background of the screen, so that the setting module displays a projection of the moving object on the screen on the background.
As shown in fig. 5, further, the issuing module 408 specifically includes:
a request submodule 4081, configured to initiate, by the terminal, a virtual article issuance request carrying the data to a lottery server, so that the lottery server randomly draws lottery tickets in a preconfigured ticket pool according to the data, and returns the lottery tickets;
a displaying sub-module 4082, configured to display the lottery ticket on a virtual article displaying page on the terminal.
The virtual article issuing device based on the 3D scene provided by the embodiment of the invention runs on a terminal with a camera and a screen, and the device randomly generates a moving path for the movement of a game role in a game scene, so that the entertainment experience scene of a terminal user can be enriched, and the user experience is improved; in addition, whether the data recorded in the game process meets the preset virtual article issuing conditions or not is judged, and when the data meets the preset virtual article issuing conditions, the randomly generated virtual articles are issued, so that the consumers are attracted by effectively rewarding the virtual articles through the game, and the aim of selling is fulfilled.
All the above-mentioned optional technical solutions may be combined arbitrarily to form the optional embodiments of the present invention, and are not described herein again.
It should be noted that: in the virtual article issuing device based on the 3D scene provided in the foregoing embodiment, when the virtual article issuing method based on the 3D scene is executed, only the division of the functional devices is taken as an example, and in practical applications, the function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules, so as to complete all or part of the functions described above. In addition, the virtual article issuing device based on the 3D scene provided in the above embodiment and the virtual article issuing method based on the 3D scene belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiment and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent replacements, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A virtual article issuing method based on a 3D scene is applied to a terminal with a camera and a screen, and is characterized by comprising the following steps:
s1, generating a moving path from a current position to a random position of a moving object in a 3D scene, and moving the moving object along the moving path at a first speed, wherein the 3D scene is a scene constructed by using a virtual sphere with a position of the camera as a center of sphere;
s2, generating a new moving path if detecting the projected point of the moving object during the moving of the moving object along the moving path, wherein the destination of the new moving path is a new random position;
s3, enabling the moving object to move along the new moving path at a second speed and to be in a shielding click function until the new random position is reached, and designating the new random position as a current position when the new random position is reached;
s4, repeatedly executing the steps S1 to S3 until a preset end condition is met, and simultaneously recording data in a time period from when the projection is detected to be in the point for the first time to when the preset end condition is met, wherein the data comprises path data of the moving path and click data of the projection;
s5, judging whether the recorded data meet the preset virtual article issuing conditions, and if so, issuing randomly generated virtual articles;
wherein, step S2 includes:
and determining a corresponding projection position on the screen when the projection of the moving object is in the point, and determining the intersection point of the projection ray emitted from the position of the camera to the corresponding projection position and the spherical surface of the virtual sphere as the corresponding position of the moving object.
2. The method of claim 1, wherein the generating a moving path from the current position to a random position of the moving object in the 3D scene in step S1 comprises:
when the moving object moves to the current position as a path destination, detecting that the projection of the moving object is displayed on a screen, and randomly generating a random projection position on the screen;
determining the random position of the moving object at the intersection of a projection ray emitted from the position of the camera to the random projection position and the spherical surface of the virtual sphere;
generating a moving path from the current position to the random position.
3. The method according to claim 1, wherein step S2 specifically comprises:
randomly generating a new random projection position on the screen;
determining the intersection point of the projection ray emitted to the new random projection position from the position of the camera and the spherical surface of the virtual sphere as a new random position;
generating a new movement path from the corresponding location to the new random location.
4. The method of claim 1, wherein the terminal further has a gyroscope, the method further comprising:
if the attitude of the terminal changes, so that the projection of the moving object is not displayed on the screen, acquiring attitude change information of the terminal through the gyroscope; and
and according to the attitude change information, instructing to rotate the terminal so as to display the projection of the moving object on the screen.
5. The method of claim 1, wherein the screen further displays Augmented Reality (AR) function icons, the method further comprising:
and after the augmented reality AR function icon is triggered, starting the camera, and taking a real scene acquired by the camera in real time as the background of the screen, so that the projection of the moving object on the screen is displayed on the background.
6. The method according to any one of claims 1 to 5, wherein said issuing a randomly generated virtual item in step S4 comprises:
the terminal sends a virtual article issuing request carrying the data to the lottery drawing server;
the lottery server randomly draws lottery tickets in a pre-configured ticket pool according to the data and returns the lottery tickets;
and displaying the lottery ticket on a virtual article display page on the terminal.
7. The method of claim 6, wherein said lottery server randomly drawing lottery tickets in a preconfigured ticket pool based on said data comprises the steps of:
matching the data with predefined lottery criteria;
and determining the lottery ticket according to the matching result and the randomly generated random number.
8. A virtual article issuing device based on a 3D scene, which is operated on a terminal with a camera and a screen, is characterized by comprising:
a generation module, configured to generate a moving path from a current position of a moving object to a random position in a 3D scene, where the 3D scene is a scene constructed by using a virtual sphere whose center is the position of the camera;
a moving module for moving the moving object along the moving path at a first speed;
the detection module is used for detecting whether the projection of the moving object is pointed or not, wherein the corresponding projection position on the screen when the projection of the moving object is pointed is determined, and the intersection point of the projection ray emitted from the position of the camera to the corresponding projection position and the spherical surface of the virtual sphere is determined as the corresponding position of the moving object;
the generating module is further configured to generate a new moving path if it is detected that the projected target of the moving object is located in the projected target of the moving object during the moving of the moving object along the moving path, where the destination of the new moving path is a new random position;
the moving module is further configured to enable the moving object to move along the new moving path at a second speed and to be in a shielding click function until the new random position is reached;
a specifying module, configured to specify the new random position as a current position when the new random position is reached;
the repeated execution module is used for repeatedly executing the steps in the generation module, the moving module, the detection module and the designation module until a preset end condition is met;
the recording module is used for recording data in a time period from when the projection is detected to be in the point to when the preset end condition is met for the first time, wherein the data comprises path data of the moving path and click data of the projection;
the judging module is used for judging whether the recorded data meet preset virtual article issuing conditions or not;
and the issuing module is used for issuing the randomly generated virtual article when the virtual article is satisfied.
9. The apparatus of claim 8, wherein the terminal further has a gyroscope, the apparatus further comprising:
the acquisition module is used for acquiring attitude change information of the terminal through the gyroscope if the attitude of the terminal changes so that the projection of the moving object is not displayed on the screen;
and the indicating module is used for indicating the terminal to rotate according to the attitude change information so as to display the projection of the moving object on the screen.
10. The apparatus according to claim 8, further comprising an augmented reality module, wherein an augmented reality AR function icon corresponding to the augmented reality module is displayed on the screen;
the augmented reality module is configured to start the camera after the augmented reality AR function icon is triggered, use a real scene acquired by the camera in real time as a background of the screen, and display a projection of the moving object on the screen on the background.
11. The apparatus according to any one of claims 8 to 10, wherein the issuing module specifically includes:
the request submodule is used for initiating a virtual article issuing request carrying the data to a lottery server by the terminal so that the lottery server randomly draws lottery tickets in a pre-configured ticket pool according to the data and returns the lottery tickets;
and the display sub-module is used for displaying the lottery ticket on a virtual article display page on the terminal.
CN201810264601.1A 2018-03-28 2018-03-28 Virtual article issuing method and device based on 3D scene Active CN110322257B (en)

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 CN110322257A (en) 2019-10-11
CN110322257B true 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106693290A (en) * 2016-12-07 2017-05-24 浙江理工大学 Spinning virtual-wandering system and virtual wandering achievement method
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150042640A1 (en) * 2013-08-07 2015-02-12 Cherif Atia Algreatly Floating 3d image in midair
CN105867428B (en) * 2016-05-18 2017-07-11 南京航空航天大学 Multi-robot system order switching method based on mode multiple views geometry of doing more physical exercises
CN106821297B (en) * 2016-12-31 2018-05-29 安徽三联交通应用技术股份有限公司 A kind of portable dynamic vision testing method that equipment is shown based on head

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107274491A (en) * 2016-04-09 2017-10-20 大连七界合创科技有限公司 A kind of spatial manipulation Virtual Realization method of three-dimensional scenic
CN106693290A (en) * 2016-12-07 2017-05-24 浙江理工大学 Spinning virtual-wandering system and virtual wandering achievement method
CN109917910A (en) * 2019-02-19 2019-06-21 腾讯科技(深圳)有限公司 Display methods, device, equipment and the storage medium of line style technical ability

Also Published As

Publication number Publication date
CN110322257A (en) 2019-10-11

Similar Documents

Publication Publication Date Title
JP6258497B2 (en) Augmented reality device
US10771704B2 (en) Method of displaying wide-angle image, image display system, and information processing apparatus
JP6905154B2 (en) Verification of player's real-world position using in-game activities
CN110019600B (en) Map processing method, map processing device and storage medium
US10362436B2 (en) Information processing system, information processing apparatus, storage medium having stored therein information processing program, and information processing method
US20130178257A1 (en) System and method for interacting with virtual objects in augmented realities
US20140015858A1 (en) Augmented reality system
US20160285963A1 (en) Information processing system, server system, information processing apparatus, storage medium having stored therein information processing program, and information processing method
US20130229406A1 (en) Controlling images at mobile devices using sensors
US8663014B2 (en) Apparatus and method with physical location check-in that triggers a status change in a virtual game
CN112330819B (en) Interaction method and device based on virtual article and storage medium
JP6455040B2 (en) Store attracting support system, server device, program and method
JP2021021987A (en) Moving image application program, moving image display method, moving image distribution system, and information processing apparatus
WO2015195413A1 (en) Systems and methods for presenting information associated with a three-dimensional location on a two-dimensional display
KR20160099753A (en) Sightseeing information provide and partnership marketing connection using game
US20200413145A1 (en) Video distribution system, video distribution method, information processing device, video distribution program, and video viewing program
CN110322257B (en) Virtual article issuing method and device based on 3D scene
US20230162433A1 (en) Information processing system, information processing method, and information processing program
JP7293329B1 (en) Information processing device, information processing method, and program
WO2019170835A1 (en) Advertising in augmented reality
CN110314377B (en) Method and device for randomly generating object moving path in three-dimensional space
TWI799337B (en) Method and computer-readable storage medium for providing a virtual element for display in a parallel reality experience
JP6903806B1 (en) Programs, information processing methods, information processing devices, and systems
US20240096030A1 (en) Interactive augmented reality trophy system
CN109417651A (en) Challenge is generated using the mating application program of location-based game

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