CN107153463B - Tree flower pruning VR simulation method and device - Google Patents

Tree flower pruning VR simulation method and device Download PDF

Info

Publication number
CN107153463B
CN107153463B CN201710447153.4A CN201710447153A CN107153463B CN 107153463 B CN107153463 B CN 107153463B CN 201710447153 A CN201710447153 A CN 201710447153A CN 107153463 B CN107153463 B CN 107153463B
Authority
CN
China
Prior art keywords
user
scene
tree
image data
head
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
CN201710447153.4A
Other languages
Chinese (zh)
Other versions
CN107153463A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201710447153.4A priority Critical patent/CN107153463B/en
Publication of CN107153463A publication Critical patent/CN107153463A/en
Application granted granted Critical
Publication of CN107153463B publication Critical patent/CN107153463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/012Head tracking input arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/014Hand-worn input/output arrangements, e.g. data gloves
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics

Abstract

The invention provides a VR simulation method and a VR simulation device for tree pruning; the method is executed by a server, and the server is respectively connected with a head-mounted display, a single-hand controller and a positioning base station; the method comprises the following steps: generating an experience scene of tree flower digging; acquiring the position relation between a user wearing the head-mounted display and a wall in an experience scene according to the position information of the head-mounted display; acquiring the movement speed of the arm of the user according to the position information of the single-hand controller; transmitting the position relation and the movement speed to a preset tree flower effect model, and outputting image data of the tree flower effect; wherein, the tree flower effect model is established according to the fluid dynamics principle; and playing the image data. The method and the system can simulate the process and the scene of the tree flower realistically through the VR technology, so that the user can stand at the angle of a performer to experience the process of the tree flower realistically, and the experience effect of the user on the tree flower beating skill is improved.

Description

Tree flower pruning VR simulation method and device
Technical Field
The invention relates to the technical field of virtual reality, in particular to a VR simulation method and device for tree pruning.
Background
The tree flower is a local traditional folk culture activity of a local traditional spring town of Zhangkou family county, Yu county, Hebei province, and is a social fire with characteristic ancient and special festivals; the step of making the tree flower is that molten iron is splashed onto the ancient city wall to form ten thousand sparks, so that the tree flower is called as a tree crown with luxuriant leaves.
Tourists or tree flower fans can watch tree flower playing performances on the watching and learning platform, but ordinary tourists cannot experience the tree flower playing process due to the fact that tree flower playing difficulty is high and danger is high.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for VR simulation for tree-flower training, so as to simulate a tree-flower training process and a scene realistically through a VR technology, so that a user can stand at the perspective of a performer to experience the tree-flower training process personally on the scene, and the experience effect of the user on the tree-flower training technique is improved.
In a first aspect, an embodiment of the present invention provides a tree flower pruning VR simulation method, where the method is executed by a server, and the server is connected to a head-mounted display, a one-handed controller, and a positioning base station, respectively; the positioning base station is respectively connected with the head-mounted display and the single-hand controller and is used for acquiring the position information of the head-mounted display and the single-hand controller; the method comprises the following steps: generating an experience scene of tree flower digging; the experience scene at least comprises a wall body for reflecting the splashed molten iron; acquiring the position relation between a user wearing the head-mounted display and a wall in an experience scene according to the position information of the head-mounted display; acquiring the movement speed of the arm of the user according to the position information of the single-hand controller; transmitting the position relation and the movement speed to a preset tree flower effect model, and outputting image data of the tree flower effect; wherein, the tree flower effect model is established according to the fluid dynamics principle; and playing the image data.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where the step of generating a tree flower experience scene includes: acquiring image data of a tree flower experience scene through an external 3D camera device; performing image splicing processing on the image data to generate a VR experience scene for tree flower printing; or; drawing an experience scene schematic diagram of the tree flower by adopting 3D modeling software; rendering the experience scene schematic diagram to generate the VR experience scene with tree flowers.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of obtaining a location relationship between a user wearing the head mounted display and a wall in an experience scene according to location information of the head mounted display includes: determining the position information of a user wearing the head-mounted display through the position information of the head-mounted display acquired by the positioning base station; calculating the vertical distance between the user and a wall in the experience scene according to the position information; calculating the relative distance between the user and the edge of the wall body; the relative distance is the length from the intersection point of a vertical connecting line of the user and the wall body to the edge of the wall body; the wall edge includes a left side edge, a right side edge, a bottom edge, or an upper edge of the wall.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the step of obtaining the movement speed of the arm of the user according to the position information of the one-handed controller includes: and acquiring the arm swinging movement speed of the single-hand controller held by the user through a position sensing device arranged on the single-hand controller.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the step of transmitting the position relationship and the movement speed to a preset tree flower effect model and outputting image data of a tree flower effect includes: calculating to obtain the initial speed and direction of the molten iron for simulating the tree-making flower throwing from the user according to the movement speed; calculating to obtain a first motion state of the molten iron when the molten iron moves to the wall according to the position relation, the initial velocity and direction and the fluid dynamics principle; according to the first motion state, calculating to obtain a second motion state of the molten iron reflected after the molten iron impacts the wall body; calculating to obtain a movement track after the molten iron is reflected according to the second movement state; and generating image data with the tree flower effect according to the motion trail.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where the method further includes: when a first instruction is received, generating a scene image of the molten iron block; when a signal that a user puts a simulated iron block into a simulated smelting furnace is received, playing image data of the iron block melted in the smelting furnace; when a second instruction is received, generating a scene image of the poured molten iron so as to receive a signal that a user pours the simulated molten iron into the simulated molten iron cylinder; and when a third instruction is received, executing the VR simulation method for the tree flower.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the method further includes: intercepting image data of a user for making tree flowers; wherein the image data comprises photos or videos; and storing the image data and transmitting the image data to a terminal or printing equipment of a user.
In a second aspect, an embodiment of the present invention provides a VR simulation apparatus for tree pruning, where the apparatus is disposed in a server, and the server is connected to a head-mounted display, a one-handed controller, and a positioning base station, respectively; the positioning base station is respectively connected with the head-mounted display and the single-hand controller and is used for acquiring the position information of the head-mounted display and the single-hand controller; the device includes: the scene generation module is used for generating an experience scene of the tree flower; the experience scene at least comprises a wall body for reflecting the splashed molten iron; the position relation acquisition module is used for acquiring the position relation between a user wearing the head-mounted display and a wall in an experience scene according to the position information of the head-mounted display; the motion speed acquisition module is used for acquiring the motion speed of the arm of the user according to the position information of the single-hand controller; the image data output module is used for transmitting the position relation and the movement speed to a preset tree flower effect model and outputting image data with the tree flower effect; wherein, the tree flower effect model is established according to the fluid dynamics principle; and the playing module is used for playing the image data.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the scene generation module includes: the system comprises a first scene generation unit, a second scene generation unit and a third scene generation unit, wherein the first scene generation unit is used for acquiring image data of an experience scene of tree flower pruning through an external 3D camera device; performing image splicing processing on the image data to generate a VR experience scene for tree flower printing; or; the second scene generation unit is used for drawing an experience scene schematic diagram of the tree flower by adopting 3D modeling software; rendering the experience scene schematic diagram to generate the VR experience scene with tree flowers.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the position relationship obtaining module includes: the position information determining unit is used for determining the position information of the user wearing the head-mounted display through the position information of the head-mounted display acquired by the positioning base station; the relative position calculating unit is used for calculating the vertical distance between the user and a wall in the experience scene according to the position information; a relative distance calculation unit for calculating a relative distance between the user and the edge of the wall; the relative distance is the length from the intersection point of a vertical connecting line of the user and the wall body to the edge of the wall body; the wall edge includes a left side edge, a right side edge, a bottom edge, or an upper edge of the wall.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a tree flower pruning VR simulation method and device, wherein the method is executed by a server which is respectively connected with a head-mounted display, a single-hand controller and a positioning base station, and the position relation between a user wearing the head-mounted display and a wall in an experience scene can be obtained through the position information of the head-mounted display; the movement speed of the arm of the user can be obtained through the position information of the single-hand controller; the position relation and the movement speed are transmitted to a preset tree flower effect model, and image data of the tree flower effect can be output. The mode can simulate the process and the scene of making the tree flower vividly through the VR technology, so that a user can stand at the angle of a performer and experience the process of making the tree flower personally on the scene, and the experience effect of the user on the tree flower making technology is improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a first VR simulation method for tree pruning according to an embodiment of the present invention;
fig. 2 is a flowchart of a second VR simulation method for tree pruning according to an embodiment of the present invention;
fig. 3 is an interaction flowchart of a VR experiencing method for making trees according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a VR simulation apparatus for tree pruning according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In view of the problem that tourists or tree flower fans cannot really experience the tree flower making process, the embodiment of the invention provides a Virtual Reality (VR) simulation method and device for tree flower making; the technology can be applied to the process that tourists experience and watch the tree flower through VR technology, and can also be applied to the process that a tree flower technician practices the tree flower skill through VR technology, and the technology can be realized by adopting related software or hardware, and is described by the embodiment below.
To facilitate understanding of the embodiment, a detailed description will be given to a VR simulation method for tree pruning disclosed in the embodiment of the present invention.
The first embodiment is as follows:
referring to fig. 1, a flow chart of a first VR simulation method for making a tree flower is shown; the method is executed by a server, and the server is respectively connected with a head-mounted display, a single-hand controller and a positioning base station; the positioning base station is respectively connected with the head-mounted display and the single-hand controller and is used for acquiring the position information of the head-mounted display and the single-hand controller; in practical implementation, the positioning base station may be integrated with the server, or may be separately disposed.
The method comprises the following steps:
step S102, generating an experience scene of tree flower digging; the experience scene at least comprises a wall body for reflecting the splashed molten iron;
in the experience scene of the tree flower simulated by adopting the VR technology, at least a wall body for spreading molten iron should be included, and preferably, the wall body can be simulated as an ancient city wall; the experience scene can also comprise a performance platform, a stage, other environment backgrounds and the like.
Step S104, acquiring the position relation between the user wearing the head-mounted display and a wall in an experience scene according to the position information of the head-mounted display;
step S106, acquiring the movement speed of the arm of the user according to the position information of the single-hand controller;
step S108, transmitting the position relation and the movement speed to a preset tree flower effect model, and outputting image data of the tree flower effect; wherein, the tree flower effect model is established according to the fluid dynamics principle;
step S110, the image data is played.
In the actual operation of the tree pruning, the position relation between the operator and the wall, the speed and direction of the arm swing of the operator and the like all influence the effect of the spark; therefore, when the VR technology is adopted to simulate the spark effect of the tree flower, the position relation between the user and the wall body and the movement speed of the user for swinging the arm need to be combined; the motion speed may be vector data, including speed magnitude and speed direction; the movement speed may be a set of data, including vector data of a plurality of movement speeds collected within a preset time period when the user swings an arm, so as to reflect a variation relationship of the movement speed of the user during the process of swinging the arm.
Because the molten iron belongs to the fluid and is pushed by the arm of a technician through the wooden spoon, the molten iron flies out of the wooden spoon, and the shape and the effect of sparks generated by the action on the wall body follow the fluid dynamics principle; the basic axiom of fluid dynamics is the conservation law, in particular conservation of mass, momentum and energy. The fluid is also assumed to obey the "continuity assumption". Fluids are composed of molecules that collide with each other and also with solids. However, the assumption of continuity considers that the fluid is continuous rather than discrete. Thus, properties such as density, pressure, temperature, and velocity are all considered to be well defined at infinitesimal points and to be continuously variable from one point to another. If the fluid is dense enough, it can be a continuum, the momentum equation of newtonian fluid is "navier-stokes equation", which is a nonlinear differential equation, and the stress describing the flow of fluid is linearly dependent on velocity and pressure. In addition to the mass, momentum, and energy conservation equations, there are thermodynamic equations of state that make pressure a function of other thermodynamic variables of the fluid.
The VR simulation method for tree pruning is executed by servers respectively connected with a head-mounted display, a single-hand controller and a positioning base station, and the position relation between a user wearing the head-mounted display and a wall in an experience scene can be acquired through the position information of the head-mounted display; the movement speed of the arm of the user can be obtained through the position information of the single-hand controller; the position relation and the movement speed are transmitted to a preset tree flower effect model, and image data of the tree flower effect can be output. The mode can simulate the process and the scene of making the tree flower vividly through the VR technology, so that a user can stand at the angle of a performer and experience the process of making the tree flower personally on the scene, and the experience effect of the user on the tree flower making technology is improved.
Example two:
referring to fig. 2, a flow chart of a second VR simulation method for making a tree flower is shown; the method is implemented on the basis of the VR simulation method for the tree flower, which is provided by the first embodiment, and comprises the following steps:
step S202, acquiring image data of a tree flower experience scene through an external 3D camera device; performing image splicing processing on the image data to generate a VR experience scene for tree flower printing;
3D images under each visual angle of a real tree flower shooting scene can be obtained through 3D camera devices such as a binocular camera, and 360-degree all-around tree flower shooting VR experience scenes can be generated through 3D image processing technologies such as image splicing and conversion. In the mode, the experience scene is more vivid through the experience scene obtained by processing the real tree flower shooting scene photo.
This step S202 can also be implemented by: drawing an experience scene schematic diagram of the tree flower by adopting 3D modeling software; rendering the experience scene schematic diagram to generate the VR experience scene with tree flowers. In the mode, the experience scenes generated by processing such as drawing, rendering, tracking and the like through the 3D modeling software can be obtained in different forms and under different atmospheres, so that the experience scenes are more diversified.
Step S204, determining the position information of the user wearing the head-mounted display through the position information of the head-mounted display acquired by the positioning base station; in practical implementation, a laser sensor or a photosensitive sensor may be disposed in the positioning base station to obtain position information of the head-mounted display;
step S206, calculating the vertical distance between the user and the wall in the experience scene according to the position information; calculating the relative distance between the user and the edge of the wall body; the relative distance is the length from the intersection point of a vertical connecting line of the user and the wall body to the edge of the wall body; the wall edge includes a left side edge, a right side edge, a bottom edge, or an upper edge of the wall.
In a three-dimensional experience scene, in order to obtain a more accurate position relationship between a user and a wall, the vertical distance between the user and the plane of the wall and the relative distance between the user and each edge of the wall need to be confirmed, and then the position of the user can be positioned at a point, so that a final spark effect is output according to the position relationship between the point and the plane of the wall.
Step S208, acquiring the arm swinging movement speed of the single-hand controller held by the user through a position sensing device arranged on the single-hand controller; the position sensing device can be a positioning module electrically connected with a positioning machine, and the arm swinging movement speed can be calculated and obtained by acquiring a plurality of position information of the arm and time information corresponding to the plurality of position information; it can be understood that a speed sensor can be directly arranged on the single-hand controller to directly acquire the arm swinging movement speed.
Step S210, calculating to obtain the initial speed and direction of the molten iron for simulating the tree flower throwing from the user according to the movement speed;
step S212, calculating and obtaining a first motion state when the molten iron moves to the wall according to the position relation, the initial speed and direction and the fluid dynamics principle;
in practical implementation, an operation formula can be established according to the fluid dynamics principle, input parameters of the operation formula are position relation, initial speed and direction, and an output result is a first motion state when molten iron moves to a wall; the first motion state includes distribution positions and ranges of molten iron, motion speeds at various positions, and the like.
Step S214, calculating and obtaining a second motion state of the molten iron reflected after the molten iron impacts the wall according to the first motion state; calculating to obtain a movement track after the molten iron is reflected according to the second movement state;
in step S214, an operation formula may be established according to the fluid dynamics principle, the first motion state and the second motion state are respectively input, and the motion trajectory after water reflection is finally output.
And S216, generating image data with the tree flower effect according to the motion trail.
Step S218, intercepting image data of a user for making tree flowers; wherein the image data comprises photos or videos;
step S220, saving the image data and sending the image data to the terminal or the printing device of the user.
According to the VR simulation method for tree flower pruning, provided by the embodiment of the invention, tree flower pruning scenes with vivid scenes or diversified scenes can be generated through a 3D camera device or 3D modeling software; the accurate position relation between the user and the wall body can be obtained by calculating the position information of the head-mounted display; according to the fluid dynamics principle and the obtained parameters such as the position relation, the initial speed, the direction and the like, the movement track of the molten iron after reflection can be calculated, and image data with the tree flower effect can be generated; the mode can simulate the process and the scene of making the tree flower vividly through the VR technology, so that a user can stand at the angle of a performer and experience the process of making the tree flower personally on the scene, and the experience effect of the user on the tree flower making technology is improved.
Example three:
referring to fig. 3, an interaction flow diagram of a method for tree flower VR experience is shown; the method is implemented on the basis of the VR simulation method for tree pruning provided in the first embodiment or the second embodiment, and an execution subject of the method includes a user wearing a head-mounted display and a one-handed controller, and a server; the method comprises the following steps:
step S302, a user sends a first instruction to a server through a single-hand controller;
step S304, the server generates a scene image of the molten iron block, and sends the scene image to the head-mounted display for display so as to be watched by a user;
s306, a user puts the simulated iron blocks in the scene into a simulated furnace and sends corresponding signals to the server;
step S308, after receiving a signal that the user puts the simulated iron block into the simulated smelting furnace, the server plays the image data of the iron block melted in the smelting furnace through the head-mounted display so as to be watched by the user;
step S310, the user sends a second instruction to the server through the single-hand controller;
step S312, the server generates a scene image for pouring out molten iron and sends the scene image to the head-mounted display for displaying;
step S314, the user pours the molten iron after the melting simulated in the scene into the simulated molten iron cylinder and sends a corresponding signal to the server;
step S316, after receiving a signal that the user puts the simulated iron block into the simulated furnace, the server plays the image data of the iron block melted in the furnace through the head-mounted display for the user to watch;
step S318, the user sends a third instruction to the server through the single-hand controller;
step S320, the server generates a tree flower experience scene;
step S322, the server obtains the position relation between the user wearing the head-mounted display and the wall in the experience scene according to the position information of the head-mounted display; acquiring the movement speed of the arm of the user according to the position information of the single-hand controller; transmitting the position relation and the movement speed to a preset tree flower effect model, and outputting image data of the tree flower effect;
in step S324, the server plays the image data through the head mounted display for the user to view.
According to the VR simulation method for the tree flower, provided by the embodiment of the invention, a user can realize interaction with a server through a head-mounted display and a single-hand controller, and can really experience, watch or learn a complete tree flower making process, including processes of scrap iron melting, molten iron furnace lifting, molten iron splashing and the like, so that the user can realistically simulate the tree flower making process and scene through a VR technology, the user can stand at the angle of a performer to personally test the tree flower making process in the scene, and the experience effect of the user on the tree flower making skills is improved.
Example four:
corresponding to the above method embodiment, refer to fig. 4, which is a schematic structural diagram of a VR simulation apparatus for tree pruning, the apparatus is disposed in a server, and the server is connected to a head-mounted display, a one-handed controller, and a positioning base station respectively; the positioning base station is respectively connected with the head-mounted display and the single-hand controller and is used for acquiring the position information of the head-mounted display and the single-hand controller; the device comprises:
the scene generation module 40 is used for generating an experience scene of tree flower digging; the experience scene at least comprises a wall body for reflecting the splashed molten iron;
a position relation obtaining module 41, configured to obtain, according to the position information of the head-mounted display, a position relation between a user wearing the head-mounted display and a wall in an experience scene;
a movement speed obtaining module 42, configured to obtain a movement speed of an arm of the user according to the position information of the one-handed controller;
the image data output module 43 is configured to transmit the position relationship and the movement speed to a preset tree flower effect model, and output image data with the tree flower effect; wherein, the tree flower effect model is established according to the fluid dynamics principle;
and a playing module 44, configured to play the image data.
Further, the scene generation module includes: the system comprises a first scene generation unit, a second scene generation unit and a third scene generation unit, wherein the first scene generation unit is used for acquiring image data of an experience scene of tree flower pruning through an external 3D camera device; performing image splicing processing on the image data to generate a VR experience scene for tree flower printing; or; the second scene generation unit is used for drawing an experience scene schematic diagram of the tree flower by adopting 3D modeling software; rendering the experience scene schematic diagram to generate the VR experience scene with tree flowers.
Further, the position relationship obtaining module includes: the position information determining unit is used for determining the position information of the user wearing the head-mounted display through the position information of the head-mounted display acquired by the positioning base station; the relative position calculating unit is used for calculating the vertical distance between the user and a wall in the experience scene according to the position information; a relative distance calculation unit for calculating a relative distance between the user and the edge of the wall; the relative distance is the length from the intersection point of a vertical connecting line of the user and the wall body to the edge of the wall body; the wall edge includes a left side edge, a right side edge, a bottom edge, or an upper edge of the wall.
The computer program product of the tree flower VR simulation method and apparatus provided in the embodiments of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiments, and specific implementation may refer to the method embodiments, and will not be described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A VR simulation method for tree pruning is characterized in that the method is executed by a server, and the server is respectively connected with a head-mounted display, a single-hand controller and a positioning base station; the positioning base station is respectively connected with the head-mounted display and the single-hand controller and is used for acquiring the position information of the head-mounted display and the single-hand controller; the method comprises the following steps:
generating an experience scene of tree flower digging; the experience scene at least comprises a wall body for reflecting the splashed molten iron;
acquiring the position relation between a user wearing the head-mounted display and the wall in the experience scene according to the position information of the head-mounted display;
acquiring the movement speed of the user arm according to the position information of the single-hand controller;
transmitting the position relation and the movement speed to a preset tree flower effect model, and outputting image data of the tree flower effect; the tree-making flower effect model is established according to the fluid dynamics principle;
playing the image data;
the step of transmitting the position relation and the movement speed to a preset tree flower effect model and outputting image data of the tree flower effect comprises the following steps:
calculating to obtain the initial speed and direction of the molten iron for simulating the tree-making flowers thrown from the user according to the movement speed;
calculating and obtaining a first motion state of the molten iron when the molten iron moves to the wall according to the position relation, the initial speed and direction and the fluid dynamics principle;
according to the first motion state, calculating to obtain a second motion state of the molten iron reflected after the molten iron impacts the wall body;
calculating and obtaining the movement track of the molten iron after the molten iron is reflected according to the second movement state;
and generating the image data with the tree flower effect according to the motion trail.
2. The method of claim 1, wherein the step of generating a tree flower experience scene comprises:
acquiring image data of a tree flower experience scene through an external 3D camera device; performing image splicing processing on the image data to generate a VR experience scene for making trees;
or;
drawing an experience scene schematic diagram of the tree flower by adopting 3D modeling software; rendering the experience scene schematic diagram to generate the tree flower VR experience scene.
3. The method according to claim 1, wherein the step of obtaining the position relationship between the user wearing the head-mounted display and the wall in the experience scene according to the position information of the head-mounted display comprises:
determining the position information of a user wearing the head-mounted display through the position information of the head-mounted display acquired by the positioning base station;
calculating the vertical distance between the user and the wall in the experience scene according to the position information;
calculating the relative distance between the user and the edge of the wall body; the relative distance is the length from the intersection point of the vertical connecting line of the user and the wall body to the edge of the wall body; the wall edge comprises a left side edge, a right side edge, a bottom edge or an upper edge of the wall.
4. The method of claim 1, wherein the step of obtaining the movement speed of the user's arm according to the position information of the one-handed controller comprises: and acquiring the arm swinging movement speed of the single-hand controller held by the hand of the user through a position sensing device arranged on the single-hand controller.
5. The method of claim 1, further comprising:
when a first instruction is received, generating a scene image of the molten iron block; when a signal that the user puts the simulated iron block into the simulated smelting furnace is received, playing image data of the iron block melted in the smelting furnace;
when a second instruction is received, generating a scene image of the poured molten iron so as to receive a signal that the user pours the simulated molten iron into the simulated molten iron cylinder;
when receiving the third instruction, executing the VR simulation method of any of claims 1-4.
6. The method of claim 1, further comprising:
intercepting image data of the user for making tree flowers; wherein the image data comprises a photograph or video;
and storing the image data, and sending the image data to a terminal or printing equipment of the user.
7. A VR simulation device for tree pruning is characterized in that the device is arranged on a server, and the server is respectively connected with a head-mounted display, a single-hand controller and a positioning base station; the positioning base station is respectively connected with the head-mounted display and the single-hand controller and is used for acquiring the position information of the head-mounted display and the single-hand controller; the device comprises:
the scene generation module is used for generating an experience scene of the tree flower; the experience scene at least comprises a wall body for reflecting the splashed molten iron;
the position relation obtaining module is used for obtaining the position relation between a user wearing the head-mounted display and the wall in the experience scene according to the position information of the head-mounted display;
the movement speed acquisition module is used for acquiring the movement speed of the user arm according to the position information of the single-hand controller;
the image data output module is used for transmitting the position relation and the movement speed to a preset tree flower effect model and outputting image data with the tree flower effect; the tree-making flower effect model is established according to the fluid dynamics principle;
the playing module is used for playing the image data;
the image data output module is further configured to:
calculating to obtain the initial speed and direction of the molten iron for simulating the tree-making flowers thrown from the user according to the movement speed;
calculating and obtaining a first motion state of the molten iron when the molten iron moves to the wall according to the position relation, the initial speed and direction and the fluid dynamics principle;
according to the first motion state, calculating to obtain a second motion state of the molten iron reflected after the molten iron impacts the wall body;
calculating and obtaining the movement track of the molten iron after the molten iron is reflected according to the second movement state;
and generating the image data with the tree flower effect according to the motion trail.
8. The apparatus of claim 7, wherein the scene generation module comprises:
the system comprises a first scene generation unit, a second scene generation unit and a third scene generation unit, wherein the first scene generation unit is used for acquiring image data of an experience scene of tree flower pruning through an external 3D camera device; performing image splicing processing on the image data to generate a VR experience scene for making trees; or;
the second scene generation unit is used for drawing an experience scene schematic diagram of the tree flower by adopting 3D modeling software; rendering the experience scene schematic diagram to generate the tree flower VR experience scene.
9. The apparatus according to claim 7, wherein the positional relationship obtaining module includes:
a position information determining unit, configured to determine, through the position information of the head-mounted display acquired by the positioning base station, position information of a user wearing the head-mounted display;
the relative position calculating unit is used for calculating the vertical distance between the user and the wall in the experience scene according to the position information;
a relative distance calculation unit for calculating a relative distance between the user and an edge of the wall; the relative distance is the length from the intersection point of the vertical connecting line of the user and the wall body to the edge of the wall body; the wall edge comprises a left side edge, a right side edge, a bottom edge or an upper edge of the wall.
CN201710447153.4A 2017-06-14 2017-06-14 Tree flower pruning VR simulation method and device Active CN107153463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710447153.4A CN107153463B (en) 2017-06-14 2017-06-14 Tree flower pruning VR simulation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710447153.4A CN107153463B (en) 2017-06-14 2017-06-14 Tree flower pruning VR simulation method and device

Publications (2)

Publication Number Publication Date
CN107153463A CN107153463A (en) 2017-09-12
CN107153463B true CN107153463B (en) 2020-06-02

Family

ID=59795794

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710447153.4A Active CN107153463B (en) 2017-06-14 2017-06-14 Tree flower pruning VR simulation method and device

Country Status (1)

Country Link
CN (1) CN107153463B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103081730A (en) * 2013-02-05 2013-05-08 青岛农业大学 Hydraulic transmission type fruit tree flower thinning machine based on machine vision and flower thinning method
CN203120538U (en) * 2013-02-05 2013-08-14 青岛农业大学 Hydraulic driven fruit tree flower thinning machine based on machine vision
CN103473386A (en) * 2013-06-20 2013-12-25 国家电网公司 Method for determining downburst wind profile of horizontal movement
CN205156759U (en) * 2015-11-17 2016-04-13 合肥探奥自动化有限公司 A developments molding display device for simulating fireworks effect of blooming
CN106066690A (en) * 2016-05-27 2016-11-02 北京派得伟业科技发展有限公司 Simulation rice transplanting method and apparatus based on body-sensing technology
CN106621312A (en) * 2016-12-30 2017-05-10 深圳游视虚拟现实技术有限公司 Simulated gunnery method and system based on virtual reality

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103081730A (en) * 2013-02-05 2013-05-08 青岛农业大学 Hydraulic transmission type fruit tree flower thinning machine based on machine vision and flower thinning method
CN203120538U (en) * 2013-02-05 2013-08-14 青岛农业大学 Hydraulic driven fruit tree flower thinning machine based on machine vision
CN103473386A (en) * 2013-06-20 2013-12-25 国家电网公司 Method for determining downburst wind profile of horizontal movement
CN205156759U (en) * 2015-11-17 2016-04-13 合肥探奥自动化有限公司 A developments molding display device for simulating fireworks effect of blooming
CN106066690A (en) * 2016-05-27 2016-11-02 北京派得伟业科技发展有限公司 Simulation rice transplanting method and apparatus based on body-sensing technology
CN106621312A (en) * 2016-12-30 2017-05-10 深圳游视虚拟现实技术有限公司 Simulated gunnery method and system based on virtual reality

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"暖泉古镇旅游:古堡望"打树花"";肖依斐;《中国品牌》;20151108(第11期);第1段 *

Also Published As

Publication number Publication date
CN107153463A (en) 2017-09-12

Similar Documents

Publication Publication Date Title
CN107168532B (en) Virtual synchronous display method and system based on augmented reality
CN105373224B (en) A kind of mixed reality games system based on general fit calculation and method
EP3882870B1 (en) Method and device for image display, storage medium and electronic device
CN102171726B (en) Information processing device, information processing method, program, and information storage medium
JP2018109984A5 (en)
TW202113759A (en) Three-dimensional scene engineering simulation and real scene fusion system and method
US20090179892A1 (en) Image viewer, image displaying method and information storage medium
CN104536579A (en) Interactive three-dimensional scenery and digital image high-speed fusing processing system and method
CN105913364A (en) Virtual reality technology-based prisoner post-release education simulation method
CN102076388A (en) Portable type game device and method for controlling portable type game device
US8797360B2 (en) Image display device, method for controlling image display device, and information storage medium
CN112598769B (en) Special effect rendering method, device, electronic equipment and computer readable storage medium
CN105894584A (en) Method and device used for interaction with real environment in three-dimensional immersion type environment
CN110211222B (en) AR immersion type tour guide method and device, storage medium and terminal equipment
KR20110110379A (en) Card game system using camera
KR20180013892A (en) Reactive animation for virtual reality
JP2015156131A (en) Information processing apparatus and information processing method
CN111508033A (en) Camera parameter determination method, image processing method, storage medium, and electronic apparatus
KR102199772B1 (en) Method for providing 3D modeling data
KR20200145698A (en) Method and terminal unit for providing 3d assembling puzzle based on augmented reality
CN107153463B (en) Tree flower pruning VR simulation method and device
KR101770188B1 (en) Method for providing mixed reality experience space and system thereof
CN113268626B (en) Data processing method, device, electronic equipment and storage medium
CN108416255B (en) System and method for capturing real-time facial expression animation of character based on three-dimensional animation
CN115550563A (en) Video processing method, video processing device, computer equipment 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