Information Processing Method, Apparatus, and Computer Device

By creating and using hand bone models in the UE4 engine, the problem of player hands and objects in the virtual environment cannot fit, achieving a more realistic virtual reality experience.

CN114712857BActive Publication Date: 2025-06-13SHENZHEN REALIS MULTIMEDIA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210337765.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-16
Publication Date
2025-06-13
Estimated Expiration
2040-09-16

AI Technical Summary

Technical Problem

In the virtual environment of the UE4 engine, the player's hands and objects cannot be fully fitted when picking objects, resulting in a misstep.

Method used

Create left-handed and right-handed bone models in the UE4 engine and add slots to the wrist node. When the player picks up an item, the AttachToComponent function and the SetVisibility function are called to hide the player's real hand and display the corresponding skeleton model to achieve the fit between the hand and the object.

Benefits of technology

By displaying a skeleton model that fits perfectly with virtual items, the problem that the player's hands cannot fit with objects is solved, and the visual effect of the virtual reality experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114712857B_ABST
    Figure CN114712857B_ABST
Patent Text Reader

Abstract

The present invention relates to an information processing method, apparatus, computer device, and storage medium. The method includes: creating a left hand bone model and a right hand bone model on a virtual item in the UE4 engine; adding a first slot to a first wrist node of the left hand bone model and adding a second slot to a second wrist node of the right hand bone model; when a player picks up the virtual item with the left hand, passing the first slot into the AttachToComponent function, calling the pick-up event of the UE4 engine to output that the player picks up the virtual item with the left hand, and calling the SetVisibility function of the UE4 engine to hide the player's left hand and display the left hand bone model; when a player picks up the virtual item with the right hand, passing the second slot into the AttachToComponent function, calling the pick-up event of the UE4 engine to output that the player picks up the virtual item with the right hand, and calling the SetVisibility function of the UE4 engine to hide the player's right hand and display the right hand bone model. The above method can make the player's hand fit better with the object when picking up the object in the virtual environment of the UE4 engine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of virtual reality, and particularly to an information processing method, apparatus, computer device, and storage medium. Background Art

[0002] UE4 is a 3A next-generation game engine developed by Epic Games in the United States. It has powerful rendering effects and adopts a physical material system, making it one of the most favorite engines among developers. The graphics effects of UE4 fully reach the level of 3A games, with powerful lighting and physical rendering effects. The blueprint system of UE4 enables game planners to also edit code, and the availability of various official plugins allows developers not to write third-party plugins by themselves and worry about compatibility interface problems. More importantly, for virtual reality games, UE4 provides good support for gamepads and VR controllers.

[0003] In the application of virtual reality, it is relatively common to pick up a certain Actor (item) in the game scene with the hand. If, when picking up the Actor, only the Socket of the hand bone is simply adjusted to adjust the position where the ActorAttach (attachment) is attached to the hand, there will be a problem of the Actor not fitting perfectly in the hand, showing a flaw. Summary of the Invention

[0004] The purpose of the present invention is to overcome the deficiencies of the prior art, and provide an information processing method, apparatus, computer device, and storage medium for picking up virtual items in the UE4 engine, which can make the player's hand fit the object more closely when picking up an object in the virtual environment of the UE4 engine.

[0005] To solve at least one of the above technical problems, an embodiment of the present invention provides an information processing method for picking up virtual items in the UE4 engine. The method includes:

[0006] Create a left hand bone model and a right hand bone model on the virtual item in the UE4 engine;

[0007] Add a first slot to the first wrist node of the left hand bone model, and add a second slot to the second wrist node of the right hand bone model;

[0008] When the player picks up the virtual item with the left hand, pass the first slot into the AttachToComponent function, call the pick-up event of the UE4 engine to output that the player picks up the virtual item with the left hand, and call the SetVisibility function of the UE4 engine to hide the player's left hand and display the left hand bone model;

[0009] When the player picks up the virtual item with the right hand, the second slot is passed into the AttachToComponent function, the pick-up event of the UE4 engine is called to output that the player picks up the virtual item with the right hand, and the SetVisibility function of the UE4 engine is called to hide the right hand of the player and display the right hand bone model.

[0010] In one embodiment, after calling the SetVisibility function of the UE4 engine to hide the left hand of the player and display the left hand bone model, it further includes:

[0011] When the player drops the virtual item, the drop event of the UE4 engine is called to output that the player drops the virtual item with the left hand, and the SetVisibility function of the UE4 engine is called to display the left hand of the player and hide the left hand bone model.

[0012] In one embodiment, after calling the SetVisibility function of the UE4 engine to hide the right hand of the player and display the right hand bone model, it further includes:

[0013] When the player drops the virtual item, the drop event of the UE4 engine is called to output that the player drops the virtual item with the right hand, and the SetVisibility function of the UE4 engine is called to display the right hand of the player and hide the right hand bone model.

[0014] In one embodiment, after calling the SetVisibility function of the UE4 engine to hide the left hand of the player and display the left hand bone model, it further includes:

[0015] Create a first boolean variable, which is used to adjust the positional relationship between the left hand and the virtual item;

[0016] If the output value of the first boolean variable is true, display the left hand of the player and the left hand bone model.

[0017] In one embodiment, after displaying the left hand of the player and the left hand bone model, it further includes:

[0018] When the player runs, adjust the position and rotation of the first slot so that the left hand of the player and the left hand bone model coincide.

[0019] In one embodiment, after calling the SetVisibility function of the UE4 engine to hide the right hand of the player and display the right hand bone model, it further includes:

[0020] Create a second boolean variable, which is used to adjust the positional relationship between the right hand and the virtual item;

[0021] If the output value of the first boolean variable is true, display the right hand of the player and the right hand bone model.

[0022] In one embodiment, after displaying the right hand of the player and the right hand bone model, it further includes:

[0023] When the player is running, adjust the position and rotation of the second slot so that the right hand of the player and the right hand bone model coincide.

[0024] This application also provides an information processing device for picking up virtual items in a UE4 engine. The device includes:

[0025] A creation module, which is used to create a left hand bone model and a right hand bone model on the virtual item of the UE4 engine;

[0026] An addition module, which is used to add a first slot to the first wrist node of the left hand bone model and add a second slot to the second wrist node of the right hand bone model;

[0027] A first picking module, which is used to, when the player picks up the virtual item with the left hand, pass the first slot into the AttachToComponent function, call the picking event of the UE4 engine to output that the player picks up the virtual item with the left hand, and call the SetVisibility function of the UE4 engine to hide the left hand of the player and display the left hand bone model;

[0028] A second picking module, which is used to, when the player picks up the virtual item with the right hand, pass the second slot into the AttachToComponent function, call the picking event of the UE4 engine to output that the player picks up the virtual item with the right hand, and call the SetVisibility function of the UE4 engine to hide the right hand of the player and display the right hand bone model.

[0029] In addition, an embodiment of the present invention also provides a computer device, which includes: a memory, a processor, and an application program stored on the memory and executable on the processor. When the processor executes the application program, it implements the steps of the method in any of the above embodiments.

[0030] In addition, an embodiment of the present invention also provides a computer-readable storage medium, on which an application program is stored. When the application program is executed by a processor, it implements the steps of the method in any of the above embodiments.

[0031] In an embodiment of the present invention, by implementing the above method, a left - hand bone model and a right - hand bone model are created on a virtual item in the UE4 engine; a first slot is added to a first wrist node of the left - hand bone model, and a second slot is added to a second wrist node of the right - hand bone model; when a player picks up the virtual item with the left hand, the first slot is passed into the AttachToComponent function, the pick - up event of the UE4 engine is called to output that the player picks up the virtual item with the left hand, and the SetVisibility function of the UE4 engine is called to hide the left hand of the player and display the left - hand bone model; when a player picks up the virtual item with the right hand, the second slot is passed into the AttachToComponent function, the pick - up event of the UE4 engine is called to output that the player picks up the virtual item with the right hand, and the SetVisibility function of the UE4 engine is called to hide the right hand of the player and display the right - hand bone model. Therefore, whether the player picks up the virtual item with the left hand or the right hand, a perfect fit between the left - hand bone model or the right - hand bone model and the virtual item can be demonstrated, thus achieving a visual fit between the player's hand and the virtual object. Description of the Drawings

[0032] Figure 1 is a schematic flowchart of an information - processing method for picking up a virtual item in the UE4 engine in an embodiment of the present invention;

[0033] Figure 2 is a schematic structural diagram of a virtual item and a left - hand bone model or a right - hand bone model in an embodiment of the present invention;

[0034] Figure 3 is a schematic structural diagram of an information - processing device for picking up a virtual item in the UE4 engine in an embodiment of the present invention;

[0035] Figure 4 is a schematic structural diagram of the composition of a computer device in an embodiment of the present invention. Detailed Embodiments

[0036] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without making creative efforts belong to the scope of protection of the present invention.

[0037] An embodiment of the present invention provides an information - processing method for picking up a virtual item in the UE4 engine, as Figure 1As shown, the information processing method for picking up virtual items in the UE4 engine includes the following steps:

[0038] S102, creating a left hand skeleton model and a right hand skeleton model on the virtual item of the UE4 engine.

[0039] In this embodiment, a virtual item is created on the UE4 engine, and a left hand skeleton model and a right hand skeleton model are created at the same time. Specifically, the virtual item picked up is an Actor. Two static models are created on the Actor, namely a left hand (leftHandMesh) skeleton model and a right hand (rightHandMesh) skeleton model. The left hand (leftHandMesh) skeleton model and the right hand (rightHandMesh) skeleton model can be skeleton models of the hand posture that the virtual item perfectly fits created by the artist. For example, Figure 2 As shown in the figure, the virtual item picked up is a claw hammer, and the artist needs to create a skeletal model of the hand holding the claw hammer, and then the R&D personnel will convert it into a static model in UE4. At the same time, by adjusting the position of leftHandMesh and rightHandMesh, it can fit the Actor perfectly.

[0040] S104, adding a first slot to the first wrist node of the left hand skeleton model, and adding a second slot to the second wrist node of the right hand skeleton model.

[0041] In this embodiment, a first slot is added to the first wrist node of the left hand skeleton model, and a second slot is added to the second wrist node of the right hand skeleton model. Specifically, a socket is added to the wrist nodes (wrist_l) and (wrist_r) of the skeleton models of the left and right hands of the player, respectively. Socket means: a point is placed on a certain part of an object, and this point will move with the object. This point is the socket, and then another object is attached to this socket point of the object, and the other object will also move with the object. The first slot and the second slot are named Socket_l and Socket_r, respectively.

[0042] S106, when the player picks up the virtual item with his left hand, the first slot is passed to the AttachToComponent function, the pick-up event of the UE4 engine is called to output that the player picks up the virtual item with his left hand, and the SetVisibility function of the UE4 engine is called to hide the left hand of the player and display the left hand skeleton model.

[0043] In this embodiment, when the player picks up a virtual item, the AttachToComponent function of the UE4 engine is called, and the Socket on the hand of the corresponding virtual item to be picked up is passed into this function. Specifically, when it is necessary to pick up a virtual item, the pickup event (OnPickupEvent) is called, and parameters are passed out to determine that the bone model (HandMesh) of the hand for picking up is the left hand bone model and the enumeration of the left hand. According to these two parameters, the SetVisibility function of the UE4 engine is called to hide the player's real left hand and display the fake left hand that perfectly fits the corresponding virtual item Actor, that is, to display the left hand bone model. Therefore, the visual fit between the player's left hand and the virtual object can be achieved.

[0044] In one embodiment, after S106, it further includes: creating a first boolean variable, where the first boolean variable is used to adjust the positional relationship between the left hand and the virtual item; if the output value of the first boolean variable is true, the left hand of the player and the left hand bone model are displayed.

[0045] Preferably, after displaying the left hand of the player and the left hand bone model, it further includes: when the player is running, adjusting the position and rotation of the first socket so that the left hand of the player and the left hand bone model coincide.

[0046] Specifically, a bool variable IsAdjustSocket is created to adjust the positional relationship between the virtual item and the left hand. If this value is true, when the player picks up the virtual item, both the real left hand and the fake left hand on the item, that is, the left hand bone model, are displayed. Then, during running, by adjusting the position and rotation of the first socket, the real left hand and the left hand bone model on the virtual item are roughly coincident. At this time, the effect is that when picking up the virtual item, the fake left hand and the real left hand on the virtual item have the same position and rotation, that is, the virtual item and the real left hand are perfectly fitted. At this time, if the player's real left hand is hidden, there will be no feeling of being exposed. So at this time, IsAdjustSocket is set to false again and run again, and the effect of the virtual item and the left hand being perfectly fitted when picking up can be obtained.

[0047] In one embodiment, after S106, it further includes: when the player drops the virtual item, the drop event of the UE4 engine is called to output that the player drops the virtual item with the left hand, and the SetVisibility function of the UE4 engine is called to display the left hand of the player and hide the left hand bone model.

[0048] Specifically, when the player drops the virtual object, the drop event (OnDropEvent) is also called, and the above-mentioned left hand bone model and the enumeration of the left hand need to be passed in as two parameters. Similarly, by calling the SetVisibility function of the UE4 engine, the player's real left hand is displayed, and the corresponding fake left hand that perfectly fits the Actor is hidden, that is, the left hand bone model is hidden. Therefore, the visual effect when the player drops the virtual item is improved by displaying the real left hand and hiding the left hand bone model.

[0049] S108. When the player picks up the virtual item with the right hand, the second socket is passed into the AttachToComponent function, and the pick-up event of the UE4 engine is called to output that the player picks up the virtual item with the right hand, and the SetVisibility function of the UE4 engine is called to hide the right hand of the player and display the right hand bone model.

[0050] In this embodiment, when the player picks up the virtual item, the AttachToComponent function of the UE4 engine is called, and the Socket on the hand of the corresponding virtual item to be picked up is passed into this function. Specifically, when the virtual item needs to be picked up, the pick-up event (OnPickupEvent) is called, and parameters are passed out to determine that the bone model (HandMesh) of the hand for picking up is the right hand bone model and the enumeration of the right hand. According to these two parameters, the SetVisibility function of the UE4 engine is called to hide the player's real right hand and display the corresponding fake right hand that perfectly fits the virtual item Actor, that is, to display the right hand bone model. Therefore, the fitting of the player's left hand and the virtual object can be achieved visually.

[0051] In one embodiment, after S108, it further includes: creating a second boolean variable, and the second boolean variable is used to adjust the positional relationship between the right hand and the virtual item; if the output value of the first boolean variable is true, the right hand and the right hand bone model of the player are displayed.

[0052] Preferably, after displaying the right hand and the right hand bone model of the player, it further includes: when the player is running, adjusting the position and rotation of the second socket so that the right hand and the right hand bone model of the player coincide.

[0053] Specifically, a bool variable IsAdjustSocket is created to adjust the positional relationship between the virtual item and the right hand. If this value is true, when the player picks up the virtual item, both the real right hand and the fake right hand on the virtual item, that is, the right hand bone model, are displayed. Then during operation, by adjusting the position and rotation of the second slot, the real right hand and the right hand bone model on the virtual item are roughly coincident. At this time, the effect is that when picking up the virtual item, the positions and rotations of the fake right hand on the virtual item and the real right hand are the same, that is, the virtual item and the real right hand are perfectly fitted. At this time, if the player's real right hand is hidden, there will be no feeling of being exposed. So at this time, set IsAdjustSocket to false again and run again to obtain the effect that the virtual item and the right hand are perfectly fitted when picking up.

[0054] In one embodiment, after S108, it further includes: when the player drops the virtual item, call the drop event of the UE4 engine to output that the player drops the virtual item with the right hand, and call the SetVisibility function of the UE4 engine to display the player's right hand and hide the right hand bone model.

[0055] Specifically, when the player drops the virtual object, the drop event (OndropEvent) is also called, and the above two parameters, namely the right hand bone model and the enumeration of the right hand, also need to be passed in. Similarly, by calling the SetVisibility function of the UE4 engine, the player's real right hand is displayed, and the corresponding fake right hand that is perfectly fitted to the Actor, that is, the right hand bone model, is hidden. Therefore, the visual effect when the player drops the virtual item is improved by the way of displaying the real right hand and hiding the right hand bone model.

[0056] By implementing the above method, a left - hand bone model and a right - hand bone model are created on the virtual item in the UE4 engine; a first slot is added to the first wrist node of the left - hand bone model, and a second slot is added to the second wrist node of the right - hand bone model; when the player picks up the virtual item with the left hand, the first slot is passed into the AttachToComponent function, the pick - up event of the UE4 engine is called to output that the player picks up the virtual item with the left hand, and the SetVisibility function of the UE4 engine is called to hide the left hand of the player and display the left - hand bone model; when the player picks up the virtual item with the right hand, the second slot is passed into the AttachToComponent function, the pick - up event of the UE4 engine is called to output that the player picks up the virtual item with the right hand, and the SetVisibility function of the UE4 engine is called to hide the right hand of the player and display the right - hand bone model. Therefore, whether the player picks up the virtual item with the left hand or the right hand, the perfect fit between the left - hand bone model or the right - hand bone model and the virtual item can be shown, thus achieving the visual fit between the player's hand and the virtual object.

[0057] In one embodiment, the present invention further provides an information processing device for picking up virtual items in the UE4 engine. As Figure 3 shown, the device includes:

[0058] A creation module 12, configured to create a left - hand bone model and a right - hand bone model on the virtual item in the UE4 engine;

[0059] An adding module 14, configured to add a first slot to the first wrist node of the left - hand bone model and a second slot to the second wrist node of the right - hand bone model;

[0060] A first pick - up module 16, configured to, when the player picks up the virtual item with the left hand, pass the first slot into the AttachToComponent function, call the pick - up event of the UE4 engine to output that the player picks up the virtual item with the left hand, and call the SetVisibility function of the UE4 engine to hide the left hand of the player and display the left - hand bone model;

[0061] A second pick - up module 18, configured to, when the player picks up the virtual item with the right hand, pass the second slot into the AttachToComponent function, call the pick - up event of the UE4 engine to output that the player picks up the virtual item with the right hand, and call the SetVisibility function of the UE4 engine to hide the right hand of the player and display the right - hand bone model.

[0062] For the specific limitations of an information processing device for picking up virtual items in the UE4 engine, reference can be made to the limitations of an information processing method for picking up virtual items in the UE4 engine in the above text, which will not be elaborated here. Each module in the above information processing device for picking up virtual items in the UE4 engine can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so as to facilitate the processor to call and execute the operations corresponding to the above modules.

[0063] A computer-readable storage medium provided by an embodiment of the present invention has an application program stored thereon. When the program is executed by a processor, it implements an information processing method for picking up virtual items in the UE4 engine in any one of the above embodiments. Among them, the computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic cards, or optical cards. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (such as a computer, mobile phone), and can be a read-only memory, a magnetic disk, or an optical disk, etc.

[0064] An embodiment of the present invention also provides a computer application program that runs on a computer and is used to execute an information processing method for picking up virtual items in the UE4 engine in any one of the above embodiments.

[0065] In addition, Figure 4 is a schematic diagram of the structural composition of the computer device in the embodiment of the present invention.

[0066] An embodiment of the present invention also provides a computer device, as Figure 4 shown. The computer device includes devices such as a processor 402, a memory 403, an input unit 404, and a display unit 405. Those skilled in the art can understand, Figure 4The device structure components shown do not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 403 can be used to store the application program 401 and each functional module. The processor 402 runs the application program 401 stored in the memory 403, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both an internal memory and an external memory. The internal memory can include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory can include a hard disk, a floppy disk, a ZIP disk, a USB flash drive, a magnetic tape, etc. The memory disclosed in the present invention includes but is not limited to these types of memories. The memory disclosed in the present invention is only an example and not a limitation.

[0067] The input unit 404 is used to receive the input of signals and receive the keywords input by the user. The input unit 404 can include a touch panel and other input devices. The touch panel can collect the touch operations of the user on or near it (such as the operations of the user using any suitable object or accessory such as a finger, a stylus, etc. on or near the touch panel), and drive the corresponding connection device according to a preset program; the other input devices can include but are not limited to one or more of a physical keyboard, function keys (such as play control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc. The display unit 405 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 405 can be in the form of a liquid crystal display, an organic light-emitting diode, etc. The processor 402 is the control center of the terminal device, connects various parts of the entire device using various interfaces and lines, and executes various functions and processes data by running or executing the software programs and / or modules stored in the memory 403, and calling the data stored in the memory.

[0068] As an embodiment, the computer device includes: one or more processors 402, a memory 403, one or more application programs 401, wherein the one or more application programs 401 are stored in the memory 403 and are configured to be executed by the one or more processors 402, and the one or more application programs 401 are configured to execute the information processing method for picking up virtual items in a UE4 engine in any one of the above embodiments.

[0069] In addition, the above has introduced in detail a method, device, computer device and storage medium for processing information of picking up virtual items in a UE4 engine provided by an embodiment of the present invention. Specific examples should have been used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention. At the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. An information processing method for picking up virtual items in the UE4 engine, characterized in that, the method includes: Create two static models on the virtual item to be picked up, namely the left - hand bone model and the right - hand bone model. The left - hand bone model and the right - hand bone model are bone models of the hand posture perfectly fitted to the virtual item created by the artist; Add a first slot to the first wrist node of the left - hand bone model and a second slot to the second wrist node of the right - hand bone model; When the player picks up the virtual item with the left hand, pass the first slot into the AttachToComponent function, call the pick - up event of the UE4 engine to output that the player picks up the virtual item with the left hand, and call the SetVisibility function of the UE4 engine to hide the player's left hand and display the left - hand bone model; When the player picks up the virtual item with the right hand, pass the second slot into the AttachToComponent function, call the pick - up event of the UE4 engine to output that the player picks up the virtual item with the right hand, and call the SetVisibility function of the UE4 engine to hide the player's right hand and display the right - hand bone model; After calling the SetVisibility function of the UE4 engine to hide the player's left hand and display the left - hand bone model, it further includes: Create a first boolean variable, which is used to adjust the position relationship between the left hand and the virtual item; If the output value of the first boolean variable is true, display the player's left hand and the left - hand bone model; After displaying the player's left hand and the left - hand bone model, it further includes: When the player is running, adjust the position and control the rotation of the first slot so that the player's left hand and the left - hand bone model coincide; After calling the SetVisibility function of the UE4 engine to hide the player's right hand and display the right - hand bone model, it further includes: Create a second boolean variable, which is used to adjust the position relationship between the right hand and the virtual item; If the output value of the second boolean variable is true, display the player's right hand and the right - hand bone model; After displaying the player's right hand and the right - hand bone model, it further includes: When the player is running, adjust the position and control the rotation of the second slot so that the player's right hand and the right - hand bone model coincide.

2. The method according to claim 1, characterized in that, After calling the SetVisibility function of the UE4 engine to hide the player's left hand and display the left - hand bone model, it further includes: When the player drops the virtual item, the drop event of the UE4 engine is called to output that the player drops the virtual item with the left hand, and the SetVisibility function of the UE4 engine is called to display the left hand of the player and hide the left hand bone model.

3. The method according to claim 1, characterized in that, after calling the SetVisibility function of the UE4 engine to hide the right hand of the player and display the right hand bone model, it further includes: When the player drops the virtual item, the drop event of the UE4 engine is called to output that the player drops the virtual item with the right hand, and the SetVisibility function of the UE4 engine is called to display the right hand of the player and hide the right hand bone model.

4. An information processing device for picking up virtual items in a UE4 engine, characterized in that, the device includes: a creation module for creating a left hand bone model and a right hand bone model on the virtual item of the UE4 engine; the left hand bone model and the right hand bone model are bone models of the posture of the hand perfectly fitting the virtual item created by the art; an addition module for adding a first slot to the first wrist node of the left hand bone model and adding a second slot to the second wrist node of the right hand bone model; a first picking module for when the player picks up the virtual item with the left hand, passing the first slot into the AttachToComponent function, calling the picking event of the UE4 engine to output that the player picks up the virtual item with the left hand, and calling the SetVisibility function of the UE4 engine to hide the left hand of the player and display the left hand bone model; a second picking module for when the player picks up the virtual item with the right hand, passing the second slot into the AttachToComponent function, calling the picking event of the UE4 engine to output that the player picks up the virtual item with the right hand, and calling the SetVisibility function of the UE4 engine to hide the right hand of the player and display the right hand bone model; after calling the SetVisibility function of the UE4 engine to hide the left hand of the player and display the left hand bone model, it further includes: creating a first boolean variable, and the first boolean variable is used to adjust the positional relationship between the left hand and the virtual item; if the output value of the first boolean variable is true, display the left hand of the player and the left hand bone model; after displaying the left hand of the player and the left hand bone model, it further includes: when the player runs, adjust the position and control the rotation of the first slot so that the left hand of the player and the left hand bone model coincide; after calling the SetVisibility function of the UE4 engine to hide the right hand of the player and display the right hand bone model, it further includes: Create a second boolean variable, which is used to adjust the positional relationship between the right hand and the virtual item; If the output value of the second boolean variable is true, display the right hand of the player and the right hand bone model; After displaying the right hand of the player and the right hand bone model, it further includes: When the player is running, adjust the position and control the rotation of the second slot so that the right hand of the player and the right hand bone model coincide.

5. A computer device, including a memory, a processor, and an application program stored on the memory and executable on the processor, wherein, When the processor executes the application program, it implements the steps of the method according to any one of claims 1 to 3.

6. A computer-readable storage medium, on which an application program is stored, wherein, When the application program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method for developing gaming programs compatible with a computerized gaming operating system and apparatus

    AU2008200148A1

  • A virtual fire-fighting experience method based on VR technology

    CN109144273A