Information processing method and information processing device

By performing depth detection based on ray paths in a virtual environment and generating control instructions to control the movement of the target virtual object, the problem of inaccurate movement of the virtual object is solved and high-precision movement detection and control is achieved.

CN115430148BActive Publication Date: 2025-09-19LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211017271.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-23
Publication Date
2025-09-19
Estimated Expiration
2042-08-23

AI Technical Summary

Technical Problem

In virtual digital scenes, existing technologies have difficulty in effectively detecting and controlling the movement of target virtual objects, especially during collisions and interactions with obstacles, resulting in inaccurate movement or penetration.

Method used

By detecting the distance between the target virtual object and the reference object, a control instruction is generated to control the movement of the target virtual object, and the depth detection is performed using the ray path to achieve precise movement control of the target virtual object.

Benefits of technology

The detection accuracy of the movement of target virtual objects in the virtual environment is improved. It is applicable to a variety of scenarios, including gravity simulation and ultra-thin model detection, covering a variety of movement scenarios and avoiding penetration phenomena.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115430148B_ABST
    Figure CN115430148B_ABST
Patent Text Reader

Abstract

The present application discloses an information processing method, comprising: responding to a movement operation of a target virtual object in a virtual environment, performing distance detection based on a target path between the target virtual object and a reference object to obtain a detection result; and generating a control instruction based on the detection result to control the movement of the target virtual object. The present application also discloses an information processing device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to, but is not limited to, the field of information technology, and in particular to an information processing method and an information processing device. Background Art

[0002] With the development of society and the advancement of science and technology, the Internet has become a part of most people's work and life. As a result, virtual digital scenes have emerged as a new form of the Internet. It is a fusion of the virtual world and the real world, and an augmented reality of the real world, thus satisfying the immersive experience of the majority of users.

[0003] When interactions such as movement occur in a virtual digital scene, collisions are inevitable. To this end, the present application provides a method for detecting the movement of a target virtual object in a virtual environment. Summary of the Invention

[0004] The embodiments of the present application are intended to provide an information processing method and an information processing device.

[0005] The technical solution of this application is achieved as follows:

[0006] An information processing method, the method comprising:

[0007] In response to a movement operation of a target virtual object in the virtual environment, performing distance detection on a reference object based on a target path based on the target virtual object to obtain a detection result;

[0008] Based on the detection result, a control instruction is generated to control the target virtual object to move.

[0009] An information processing device, comprising:

[0010] a processing module, configured to respond to a movement operation of a target virtual object in the virtual environment, and perform distance detection on a reference object based on a target path based on the target virtual object to obtain a detection result;

[0011] The processing module is used to generate a control instruction based on the detection result to control the target virtual object to move.

[0012] An electronic device, comprising: a processor, a memory, and a communication bus;

[0013] The communication bus is used to realize the communication connection between the processor and the memory;

[0014] The processor is used to execute the information processing program stored in the memory to implement the steps of the above-mentioned information processing method.

[0015] A computer storage medium stores one or more programs, wherein the one or more programs can be executed by one or more processors to implement the steps of the above-mentioned information processing method.

[0016] The information processing method and information processing device provided in the embodiments of the present application respond to a movement operation of a target virtual object in a virtual environment, perform distance detection on a reference object based on a target path based on the target virtual object, and obtain a detection result; based on the detection result, generate a control instruction to control the movement of the target virtual object; that is, perform depth detection based on the target path between the target virtual object and the reference object to obtain a distance detection result between the target virtual object and the reference object, and generate a control instruction based on the distance detection result to flexibly control the movement of the target virtual object, thereby achieving the purpose of detecting the movement of the target virtual object in the virtual environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 1 ;

[0018] Figure 2 A schematic diagram of determining a target path provided in an embodiment of the present application;

[0019] Figure 3 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 2 ;

[0020] Figure 4 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 3 ;

[0021] Figure 5 A schematic diagram of a depth detection scenario provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of an information processing method provided in an embodiment of the present application Figure 4 ;

[0023] Figure 7 A schematic diagram of a mobile scenario 1 provided in an embodiment of the present application;

[0024] Figure 8 A schematic diagram of a second mobile scenario provided in an embodiment of the present application;

[0025] Figure 9 A schematic diagram of a mobile scenario 3 provided in an embodiment of the present application;

[0026] Figure 10A schematic diagram of a free-fall function curve provided in an embodiment of the present application;

[0027] Figure 11 A schematic diagram of an oblique front ultra-thin model detection provided in an embodiment of the present application;

[0028] Figure 12 A schematic diagram of a screen without targeted detection provided in an embodiment of the present application;

[0029] Figure 13 A schematic diagram of a screen for targeted detection provided in an embodiment of the present application;

[0030] Figure 14 A schematic structural diagram of an information processing device provided in an embodiment of the present application;

[0031] Figure 15 A schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0032] Figure 16 A schematic structural diagram of a wearable device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0033] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.

[0035] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0036] The embodiment of the present application provides an information processing method, which is applied to electronic equipment, referring to Figure 1 As shown, the method includes the following steps:

[0037] Step 101 : In response to a movement operation of a target virtual object in a virtual environment, a distance detection is performed on a reference object based on a target path based on the target virtual object to obtain a detection result.

[0038] In the embodiments of this application, a virtual environment is a virtual environment displayed or provided when an application is running on an electronic device. A virtual environment can be a simulation of the real world, a three-dimensional environment that is partially simulated and partially fictional, or a purely fictional three-dimensional environment. Virtual environments include, but are not limited to, high-dimensional virtual environments such as three-dimensional and four-dimensional virtual environments. While this embodiment of the application illustrates a three-dimensional virtual environment, this is not intended to be limiting.

[0039] In an embodiment of the present application, the application is an application that supports a virtual environment, and the virtual environment includes virtual objects. Optionally, the application supports an application for a three-dimensional virtual environment. The application can be any one of a military simulation application, a shooting application, a virtual reality (VR) application, and an augmented reality (AR) application. Optionally, the application can also be a stand-alone application, such as a stand-alone three-dimensional (3D) game program; or it can be a network-connected application, which is not specifically limited by the present application.

[0040] In the embodiments of the present application, a virtual object refers to an movable object in a virtual environment. The movable object can be at least one of a virtual character, a virtual animation, and an animated character. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional model created using animation skeletal technology. Each virtual object has its own shape and volume in the three-dimensional virtual environment and occupies a portion of the space within the three-dimensional virtual environment.

[0041] In the embodiment of the present application, the reference object includes but is not limited to a virtual reference object. For example, the reference object may also be a physical object in a real environment.

[0042] In practical applications, electronic devices may be mobile terminal devices such as mobile phones, tablet computers, laptop computers, personal digital assistants (PDAs), cameras, wearable devices, smart bracelets, smart watches, vehicle-mounted devices, e-book readers, and electronic game consoles; electronic devices may also be fixed terminal devices such as desktop computers.

[0043] In the embodiment of the present application, the target path includes but is not limited to the ray path from the target virtual object to the reference object. In some embodiments, the ray from the target virtual object to the reference object can be obtained in the following manner: first, an irregular object model, such as a character model, is enclosed in a cuboid using a bounding box, and the length, width, and height of the cuboid are obtained. Wherein, the length is represented by width, the width is represented by wide, and the height is represented by height. From several points specified by the cuboid, the coordinates of the points of the character model are calculated using the three-dimensional length of the model and the current model position. For example, for the character model, see Figure 2 As shown, the coordinates of the following points can be obtained: center point: (x, y, z), vertex 1: (-wide / 2+x, height / 2+y, width / 2+z), vertex 2: (x, height / 2+y, width / 2+z), vertex 3: (wide / 2+x, height / 2+y, width / 2+z), vertex 4: (-wide / 2+x, y, width / 2+z), vertex 5: (wide / 2+x, y, width / 2+z). Vertices 1 to 5 can be regarded as multiple key points on the surface of the character model.

[0044] Secondly, assume that the direction vector v1 of vertex 1 is: (0,0,1), the direction vector v2 of vertex 2 is: (0,-1,0), the direction vector v3 of vertex 3 is: (0,0,1), the direction vector v4 of vertex 4 is: (-wide / 2,0,width / 2), and the direction vector v5 of vertex 5 is: (wide / 2,0,width / 2).

[0045] Finally, the corresponding ray is obtained based on the obtained vertex and the corresponding direction vector.

[0046] In the embodiment of the present application, the distance detection is performed on the reference object based on the target path based on the target virtual object, thereby achieving the purpose of depth detection based on the target path such as rays, and then obtaining the detection result.

[0047] Step 102: Based on the detection result, generate a control instruction to control the target virtual object to move.

[0048] In an embodiment of the present application, depth detection is performed according to the target path to obtain a distance detection result between the target virtual object and the reference object, and based on the distance detection result, a control instruction is generated to flexibly control the movement of the target virtual object.

[0049] The information processing method provided in the embodiment of the present application responds to the movement operation of the target virtual object in the virtual environment, performs distance detection on the reference object based on the target path based on the target virtual object, and obtains a detection result; based on the detection result, generates a control instruction to control the movement of the target virtual object; that is, performs depth detection based on the target path between the target virtual object and the reference object to obtain the distance detection result between the target virtual object and the reference object, and generates a control instruction based on the distance detection result to flexibly control the movement of the target virtual object, thereby achieving the purpose of detecting the movement of the target virtual object in the virtual environment.

[0050] In other embodiments of the present application, the electronic device may further perform the following steps: based on a reference point located in the virtual environment, obtain a picture of the target virtual object moving in response to a control instruction and output the picture for display.

[0051] Here, the reference point can be the position of the image acquisition model in the virtual environment. The output display image can be the observation angle when observing the target virtual object in the virtual environment from the first-person perspective or the third-person perspective. The perspective can be regarded as the angle when observing the target virtual object through the image acquisition model in the virtual environment. It can be understood that in addition to the first-person perspective and the third-person perspective, the perspective also includes other perspectives, such as a bird's-eye view. When a bird's-eye view is adopted, the image acquisition model can be located above the head of the target virtual object, observing the virtual environment from an aerial bird's-eye view. The image acquisition model may not be displayed in the virtual environment, that is, the image acquisition model is not displayed on the user interface.

[0052] In some embodiments, the image acquisition model can automatically follow a target virtual object in a virtual environment. Specifically, when the target virtual object changes position in the virtual environment, the image acquisition model simultaneously follows the target virtual object's position in the virtual environment, and the image acquisition model always remains within a preset distance range of the target virtual object in the virtual environment. During the automatic following process, the relative positions of the image acquisition model and the target virtual object do not change.

[0053] In other embodiments of the present application, in step 101, the distance detection is performed on the reference object based on the target path based on the target virtual object to obtain the detection result, which can be obtained by Figure 3 The steps shown achieve:

[0054] Step 201: Obtain a first intersection point between a first target path corresponding to a first vertex of a target virtual object under a movement operation and a reference object.

[0055] Here, the first vertex is the key point of the target virtual object.

[0056] Step 202: Determine whether the distance between the first vertex and the corresponding first intersection point meets a preset condition, and obtain a detection result.

[0057] In an embodiment of the present application, in the process of performing distance detection on the reference object based on the target path based on the target virtual object, the distance between the first vertex and the corresponding first intersection is used as the basis for depth detection, and it is determined whether the distance between the first vertex and the corresponding first intersection meets the preset conditions to obtain the detection result.

[0058] In other embodiments of the present application, step 201, obtaining the first intersection point of the first target path corresponding to the first vertex of the target virtual object under the action of the movement operation and the reference object, can be performed as follows: Figure 4 The steps shown achieve:

[0059] Step 301: Under the action of the move operation, the target virtual object rotates, and a second direction vector of a second target path corresponding to a second vertex of the target virtual object before the rotation of the target virtual object is obtained.

[0060] Step 302: Determine a first direction vector of the first target path corresponding to the first vertex of the rotated target virtual object based on the second direction vector of the second target path corresponding to the second vertex and the rotation change of the target virtual object.

[0061] Here, combined Figure 2 and Figure 5 As shown, taking the first vertex including vertex 1, vertex 2, vertex 3, vertex 4, and vertex 5 as an example, the first target path corresponding to the first vertex includes ray 1 corresponding to vertex 1, ray 2 corresponding to vertex 2, ray 3 corresponding to vertex 3, ray 4 corresponding to vertex 4, and ray 5 corresponding to vertex 5.

[0062] Furthermore, the electronic device uses a synchronized frame rate to calculate the new vectors of each ray after rotation based on the radian angle of the image acquisition model. The radian conversion angle is: deg = angle / 180 * π. Based on the calculated angle, five new vertices are obtained, and the direction vectors corresponding to the new vertices are calculated using the following formula:

[0063] Vertex 1 new vector V1: (v1.x*cos(deg)-v1.z*sin(deg),v1.y,v1.z*cos(deg)+v1.x*sin(deg));

[0064] New vector V2 of vertex 2: (v2.x*cos(deg)-v2.z*sin(deg),v2.y,v2.z*cos(deg)+v2.x*sin(deg));

[0065] New vector V3 of vertex 3: (v3.x*cos(deg)-v3.z*sin(deg),v3.y,v3.z*cos(deg)+v3.x*sin(deg));

[0066] New vector V4 of vertex 4: (v4.x*cos(deg)-v4.z*sin(deg),v4.y,v4.z*cos(deg)+v4.x*sin(deg));

[0067] Vertex 5 new vector V5: (v5.x*cos(deg)-v5.z*sin(deg),v5.y,v5.z*cos(deg)+v5.x*sin(deg));

[0068] Step 303: Based on the first vertex and the first direction vector of the corresponding first target path, determine a first intersection point where the first target path corresponding to the first vertex passes through the reference object.

[0069] In the embodiment of this application, Figure 2 and Figure 5 As shown, the electronic device uses a synchronous frame rate method to derive new rays through new vertices and vectors, and performs depth detection on the reference object based on the target virtual object. Figure 5 As shown, ray 1: penetrates the two intersection points A1 and A2; ray 2: penetrates the two intersection points B1 and B2; ray 3: penetrates the two intersection points C1 and C2; ray 4: penetrates the two intersection points D1 and D2; ray 5: penetrates the two intersection points E1 and E2; thus, it can be obtained that the first penetrated objects include points A1, B1, C1, D1, and E1.

[0070] In other embodiments of the present application, the target virtual object has multiple first vertices, and each first vertex has a corresponding first target path; step 202 determines whether the distance between the first vertex and the corresponding first intersection meets the preset condition to obtain a detection result, which can be obtained by Figure 6 The steps shown achieve:

[0071] Step 401: Among multiple first vertices, obtain a first distance between a first vertex in a first direction and a corresponding first intersection point, a second distance between a first vertex in a second direction and a corresponding first intersection point, and a third distance between a first vertex in a third direction and a corresponding first intersection point.

[0072] In an embodiment of the present application, the electronic device can also obtain the relative distances corresponding to the first vertices in different directions: here, taking the first direction as the direction of ray 1 as an example, the first distance includes DistanceA and / or DistanceC; taking the second direction as the direction of ray 2 as an example, the second distance includes DistanceB; taking the third direction as the direction of ray 4 and / or ray 5 as an example, the third distance includes DistanceD and / or DistanceE.

[0073] In some embodiments, the critical distance for detection determination is calculated:

[0074] Critical distance 1: sqrt(pow(width / 2,2)+pow(wide / 2,2));

[0075] Critical distance 2: height.

[0076] Step 402: Obtain a detection result based on whether the first distance, the second distance, and the third distance meet corresponding distance conditions.

[0077] In some embodiments, the distance condition for triggering collision detection is:

[0078] When DistanceA and DistanceC are greater than 0 and less than 0.1;

[0079] When DistanceB is less than 0.7*height;

[0080] When DistanceD and DistanceE are greater than sqrt(pow(width / 2,2)+pow(wide / 2,2));

[0081] That is a collision. After outputting the detection results, a corresponding solution is made.

[0082] Below, we use four mobile scenarios as examples to illustrate the corresponding solutions based on the detection results:

[0083] Movement scenario 1: Step 102 generates a control instruction based on the detection result to control the target virtual object to move, including: if the detection result indicates that the first distance meets the first distance condition, or the second distance meets the second distance condition, controlling the virtual object to be stationary.

[0084] In actual applications, when DistanceA and DistanceC are greater than 0 and less than width / 10, or DistanceB is greater than 0 and less than height / 2, it is considered that the character model has encountered an insurmountable obstacle and a "blocking displacement" solution is required. Figure 7 As shown, the virtual object is controlled to remain relatively still at the current position.

[0085] Movement scenario two: Step 102 generates a control instruction based on the detection result to control the target virtual object to move, including: if the detection result indicates that the second distance satisfies the third distance condition, controlling the target virtual object to translate along the second direction to the first intersection corresponding to the first vertex in the second direction.

[0086] In practical applications, when DistanceB is greater than height / 2, it is considered an insurmountable obstacle such as a "step" and a "translation height" solution needs to be made. Figure 8 As shown, the displacement along the second direction is replaced by the coordinates of the intersection with the obstacle (B1.y) to achieve up / down steps.

[0087] Movement scenario three: Step 102 generates a control instruction based on the detection result to control the target virtual object to move, including: if the detection result indicates that the second distance satisfies the fourth distance condition, controlling the target virtual object to move a preset distance along the second direction at a preset moving speed, wherein the preset distance is determined at least based on the second distance.

[0088] In practical applications, when DistanceB is greater than height*1.5, it is considered a "falling" state. Figure 9 As shown, a "gravity free fall" solution needs to be made. The height in the scene is restored to the real world size 1:1, refer to Figure 10 From the functional relationship shown, we can determine the gravitational acceleration: 9.8, the falling distance S: current position.y-B1.y, the falling time t: sqrt(2S / g), and the maximum speed: gt.

[0089] In other embodiments of the present application, it is proposed to perform targeted collision detection on the ultra-thin model in front of the oblique direction to enhance the accuracy. When the ultra-thin model is in front of the oblique direction, the depth detection does not work in time, and it is easy to lose penetration. Figure 11 Rays 4 and 5, generated using a synchronized frame rate, are used for collision detection against the ultra-thin model, enabling more accurate and timely detection of collisions in the oblique front. The ultra-thin model in the oblique front is further explained in conjunction with the fourth moving scene.

[0090] Movement scenario four: Step 102 generates a control instruction based on the detection result to control the target virtual object to move, including: if the detection result indicates that the third distance satisfies the fifth distance condition, controlling the target virtual object to move along the adjusted movement direction, wherein, during the process of the target virtual object moving along the adjusted movement direction, the distance between the third vertex in the third direction of the target virtual object and the third intersection of the reference object satisfies the sixth distance condition.

[0091] Here, if the detection result indicates that DistanceD and / or DistanceE meet the fifth distance condition, the target virtual object is controlled to move along the adjusted moving direction, that is, when DistanceD and / or DistanceE is less than a certain distance, the moving direction of the target virtual object is adjusted, and the target virtual object is controlled to move along the adjusted moving direction. Under the current adjustment operation, when the target virtual object moves along the adjusted moving direction, DistanceD and / or DistanceE is greater than the above-mentioned certain distance, that is, further movement along the original moving direction is avoided, and the phenomenon of penetrating the ultra-thin model obliquely in front occurs.

[0092] Combine Figure 12 and Figure 13 , to show whether the ultra-thin model has been tested in a targeted manner, Figure 12 There is no targeted detection in the picture. Figure 13 The middle one is a picture of targeted detection. It can be seen that in the picture of targeted detection, there will be no poor picture of penetrating the ultra-thin model.

[0093] Of course, in other moving scenarios of the present application, for the ultra-thin model in the oblique front, the moving direction of the target virtual object can be controlled to remain relatively stationary at the current position when DistanceD and / or DistanceE is less than a certain distance.

[0094] From the movement control of the target virtual object in the above-mentioned multiple mobile scenes, it can be seen that the present application emits rays from the specified position of the character model, performs depth detection and penetrates objects with the scene model and other models, determines collisions, and determines whether the height difference can be translated forward or free fall or displacement in height. This detection method achieves high spatial compactness of the detection model and greatly improves the detection accuracy. It is applicable to a variety of scenes and depth detection, and does not need to worry about whether the model is nested. The gravity effect and height judgment are added, and the simulation of gravity is achieved through the angle of light without the need for a gravity engine. In addition, a detection mechanism for ultra-thin models is added. This covers a variety of mobile scenes used in virtual environments.

[0095] The embodiment of the present application provides an information processing device, which can be used to implement Figure 1 The corresponding embodiment provides an information processing method, referring to Figure 14 As shown, the information processing device 500 includes:

[0096] Processing module 501, for responding to a movement operation of a target virtual object in a virtual environment, performing distance detection on a reference object based on a target path based on the target virtual object, and obtaining a detection result;

[0097] The processing module 501 is configured to generate a control instruction based on the detection result to control the target virtual object to move.

[0098] In other embodiments of the present application, the processing module 501 is used to obtain the first target path corresponding to the first vertex of the target virtual object under the action of the moving operation and the first intersection of the reference object; determine whether the distance between the first vertex and the corresponding first intersection meets the preset conditions to obtain the detection result.

[0099] In other embodiments of the present application, the processing module 501 is used to, under the action of the moving operation, cause the target virtual object to rotate, and obtain the second direction vector of the second target path corresponding to the second vertex of the target virtual object before the rotation of the target virtual object; determine the first direction vector of the first target path corresponding to the first vertex of the target virtual object after the rotation based on the second direction vector of the second target path corresponding to the second vertex and the rotation change of the target virtual object; and determine the first intersection point of the first target path corresponding to the first vertex through the reference object based on the first vertex and the corresponding first direction vector of the first target path.

[0100] In other embodiments of the present application, the target virtual object has multiple first vertices, and each first vertex has a corresponding first target path; the processing module 501 is used to obtain, among the multiple first vertices, the first distance between the first vertex in the first direction and the corresponding first intersection, the second distance between the first vertex in the second direction and the corresponding first intersection, and the third distance between the first vertex in the third direction and the corresponding first intersection; and obtain the detection result based on whether the first distance, the second distance and the third distance meet the corresponding distance conditions.

[0101] In other embodiments of the present application, the processing module 501 is configured to control the virtual object to be stationary if the detection result indicates that the first distance satisfies the first distance condition, or the second distance satisfies the second distance condition.

[0102] In other embodiments of the present application, the processing module 501 is used to control the target virtual object to translate along the second direction to a first intersection corresponding to the first vertex in the second direction if the detection result indicates that the second distance satisfies the third distance condition.

[0103] In other embodiments of the present application, the processing module 501 is used to control the target virtual object to move a preset distance along the second direction at a preset moving speed if the detection result indicates that the second distance satisfies a fourth distance condition, wherein the preset distance is determined at least based on the second distance.

[0104] In other embodiments of the present application, the processing module 501 is used to control the target virtual object to move along the adjusted moving direction if the detection result indicates that the third distance satisfies the fifth distance condition, wherein, during the process of the target virtual object moving along the adjusted moving direction, the distance between the third vertex in the third direction of the target virtual object and the third intersection of the reference object satisfies the sixth distance condition.

[0105] In other embodiments of the present application, the information processing device 500 further includes: a display module 502 for obtaining, based on a reference point located in the virtual environment, a picture of the target virtual object moving in response to a control instruction and outputting the picture for display.

[0106] The information processing device provided in the embodiment of the present application responds to the movement operation of the target virtual object acting on the virtual environment, performs distance detection on the reference object based on the target path based on the target virtual object, and obtains a detection result; based on the detection result, generates a control instruction to control the movement of the target virtual object; that is, performs depth detection based on the target path between the target virtual object and the reference object to obtain the distance detection result between the target virtual object and the reference object, and generates a control instruction based on the distance detection result to flexibly control the movement of the target virtual object, thereby achieving the purpose of detecting the movement of the target virtual object in the virtual environment.

[0107] The embodiment of the present application provides an electronic device which can be used for Figure 1 The corresponding embodiment provides an information processing method, referring to Figure 15 As shown, the electronic device 600 includes: a processor 601, a memory 602 and a communication bus 603, wherein,

[0108] The communication bus 603 is used to realize the communication connection between the processor 601 and the memory 602;

[0109] The processor 601 is configured to execute the information processing program stored in the memory 602 to implement the following steps:

[0110] In response to a movement operation of a target virtual object in the virtual environment, a distance detection is performed on a reference object based on a target path based on the target virtual object to obtain a detection result;

[0111] Based on the detection results, a control instruction is generated to control the target virtual object to move.

[0112] In other embodiments of the present application, the processor 601 is configured to execute the information processing program stored in the memory 602 to implement the following steps:

[0113] Obtaining a first intersection point between a first target path corresponding to a first vertex of the target virtual object under the action of the move operation and the reference object;

[0114] Determine whether the distance between the first vertex and the corresponding first intersection meets a preset condition, and obtain a detection result.

[0115] In other embodiments of the present application, the processor 601 is configured to execute the information processing program stored in the memory 602 to implement the following steps:

[0116] Under the action of the move operation, the target virtual object rotates, and a second direction vector of the second target path corresponding to the second vertex of the target virtual object before the target virtual object rotates is obtained;

[0117] Determining a first direction vector of the first target path corresponding to the first vertex of the rotated target virtual object based on the second direction vector of the second target path corresponding to the second vertex and the rotation change of the target virtual object;

[0118] Based on the first vertex and a first direction vector of the corresponding first target path, a first intersection point where the first target path corresponding to the first vertex passes through the reference object is determined.

[0119] In other embodiments of the present application, the target virtual object has multiple first vertices, each of which has a corresponding first target path; the processor 601 is configured to execute the information processing program stored in the memory 602 to implement the following steps:

[0120] Among the plurality of first vertices, obtaining a first distance between a first vertex in a first direction and a corresponding first intersection point, a second distance between a first vertex in a second direction and a corresponding first intersection point, and a third distance between a first vertex in a third direction and a corresponding first intersection point;

[0121] A detection result is obtained according to whether the first distance, the second distance, and the third distance meet corresponding distance conditions.

[0122] In other embodiments of the present application, the processor 601 is configured to execute the information processing program stored in the memory 602 to implement the following steps:

[0123] If the detection result indicates that the first distance satisfies the first distance condition, or the second distance satisfies the second distance condition, the virtual object is controlled to be stationary.

[0124] In other embodiments of the present application, the processor 601 is configured to execute the information processing program stored in the memory 602 to implement the following steps:

[0125] If the detection result indicates that the second distance satisfies the third distance condition, the target virtual object is controlled to translate along the second direction to a first intersection point corresponding to the first vertex in the second direction.

[0126] In other embodiments of the present application, the processor 601 is configured to execute the information processing program stored in the memory 602 to implement the following steps:

[0127] If the detection result indicates that the second distance satisfies a fourth distance condition, the target virtual object is controlled to move along the second direction at a preset moving speed for a preset distance, wherein the preset distance is determined based on at least the second distance.

[0128] In other embodiments of the present application, the processor 601 is configured to execute the information processing program stored in the memory 602 to implement the following steps:

[0129] If the detection result indicates that the third distance satisfies the fifth distance condition, the target virtual object is controlled to move along the adjusted moving direction, wherein, during the movement of the target virtual object along the adjusted moving direction, the distance between the third vertex in the third direction of the target virtual object and the third intersection of the reference object satisfies the sixth distance condition.

[0130] In other embodiments of the present application, the processor 601 is configured to execute the information processing program stored in the memory 602 to implement the following steps:

[0131] Based on a reference point located in a virtual environment, a picture of a target virtual object moving in response to a control instruction is obtained and output for display.

[0132] As an example, a processor can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where a general-purpose processor can be a microprocessor or any conventional processor, etc.

[0133] The electronic device provided in the embodiment of the present application responds to the movement operation of the target virtual object in the virtual environment, performs distance detection on the reference object based on the target path based on the target virtual object, and obtains a detection result; based on the detection result, generates a control instruction to control the movement of the target virtual object; that is, performs depth detection based on the target path between the target virtual object and the reference object to obtain the distance detection result between the target virtual object and the reference object, and generates a control instruction based on the distance detection result to flexibly control the movement of the target virtual object, thereby achieving the purpose of detecting the movement of the target virtual object in the virtual environment.

[0134] Figure 16 A structural diagram of a wearable device is provided, such as Figure 16As shown, the wearable device 700 includes: a wearable body 701 and a wearing component (not shown in the figure), the wearable body 701 includes a communication unit 702, a processing unit 703 and a display unit 704; wherein:

[0135] The communication unit 702 can be connected to the server and is at least used to receive the display screen of the application sent by the server, and to feedback the indication operation to the server, so that the server can obtain the collision processing operation that has a mapping relationship with the indication operation based on the received indication operation. The processing unit 703 can respond to the movement operation of the target virtual object in the virtual environment, and perform distance detection on the reference object based on the target path based on the target virtual object to obtain a detection result. The processing unit 703 can also generate a control instruction based on the detection result to control the movement of the target virtual object. Here, before the server sends the display screen to the wearable device 700, the wearable device 700 establishes a connection with the server through the communication unit 702.

[0136] The processing unit 703 is provided on the wearable body 701. The processing unit 703 may be a processor configured to execute the steps of an information processing method provided in an embodiment of the present application.

[0137] The processing unit 703 may include, but is not limited to, any one or more of a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).

[0138] The display unit 704 is used to display a display screen.

[0139] In practical applications, the wearable body 701 may include but is not limited to the housing of the wearable device and the peripheral hardware circuits necessary to support the normal operation of the communication unit 702 and the processing unit 703.

[0140] The wearable device provided in the embodiment of the present application responds to the movement operation of the target virtual object in the virtual environment, performs distance detection on the reference object based on the target path based on the target virtual object, and obtains a detection result; based on the detection result, generates a control instruction to control the movement of the target virtual object; that is, performs depth detection based on the target path between the target virtual object and the reference object to obtain the distance detection result between the target virtual object and the reference object, and generates a control instruction based on the distance detection result to flexibly control the movement of the target virtual object, thereby achieving the purpose of detecting the movement of the target virtual object in the virtual environment.

[0141] The embodiment of the present application provides a storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the method provided by the embodiment of the present application, for example, Figure 1 The method shown.

[0142] The storage medium provided in the embodiment of the present application responds to the movement operation of the target virtual object in the virtual environment, performs distance detection on the reference object based on the target path based on the target virtual object, and obtains a detection result; based on the detection result, generates a control instruction to control the movement of the target virtual object; that is, performs depth detection based on the target path between the target virtual object and the reference object to obtain the distance detection result between the target virtual object and the reference object, and generates a control instruction based on the distance detection result to flexibly control the movement of the target virtual object, thereby achieving the purpose of detecting the movement of the target virtual object in the virtual environment.

[0143] In some embodiments, the storage medium can be a computer-readable storage medium, such as a ferroelectric random access memory (FRAM), a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); it can also be various devices including one or any combination of the above memories.

[0144] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer-usable program code.

[0145] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0146] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0147] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0148] The above description is merely a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application.

Claims

1. An information processing method, comprising: In response to a movement operation of a target virtual object in the virtual environment, performing distance detection on a reference object based on a target path based on the target virtual object to obtain a detection result; Based on the detection result, generating a control instruction to control the target virtual object to move; The detection result is a depth detection result obtained by detecting whether the distances corresponding to first vertices in different directions meet corresponding distance conditions when the target virtual object performs distance detection on the reference object according to the target path; the different directions include at least three different directions, and the first vertices in the different directions include multiple key points on the surface of the target virtual object; The step of performing distance detection on a reference object based on a target path based on the target virtual object to obtain a detection result includes: Under the action of the movement operation, the target virtual object rotates, and a second direction vector of the second target path corresponding to the second vertex of the target virtual object before the rotation of the target virtual object is obtained; Determining, based on a second direction vector of a second target path corresponding to the second vertex and a rotation change of the target virtual object, a first direction vector of a first target path corresponding to a first vertex of the target virtual object after rotation; determining, based on the first vertex and a first direction vector of the corresponding first target path, a first intersection point where the first target path corresponding to the first vertex passes through the reference object; Determine whether the distance between the first vertex and the corresponding first intersection meets a preset condition to obtain the detection result.

2. The method according to claim 1, wherein the target virtual object has a plurality of first vertices, and each first vertex has a corresponding first target path; The determining whether the distance between the first vertex and the corresponding first intersection point satisfies a preset condition to obtain the detection result includes: Among the plurality of first vertices, obtaining a first distance between a first vertex in a first direction and a corresponding first intersection point, a second distance between a first vertex in a second direction and a corresponding first intersection point, and a third distance between a first vertex in a third direction and a corresponding first intersection point; The detection result is obtained according to whether the first distance, the second distance, and the third distance meet corresponding distance conditions.

3. The method according to claim 2, wherein generating a control instruction based on the detection result to control the movement of the target virtual object comprises: If the detection result indicates that the first distance satisfies a first distance condition, or the second distance satisfies a second distance condition, the virtual object is controlled to be stationary.

4. The method according to claim 2, wherein generating a control instruction to control the movement of the target virtual object based on the detection result comprises: If the detection result indicates that the second distance satisfies a third distance condition, the target virtual object is controlled to translate along the second direction to a first intersection point corresponding to a first vertex in the second direction.

5. The method according to claim 4, further comprising: If the detection result indicates that the second distance satisfies a fourth distance condition, the target virtual object is controlled to move a preset distance along the second direction at a preset moving speed, wherein the preset distance is determined based on at least the second distance.

6. The method according to claim 2, wherein generating a control instruction based on the detection result to control the movement of the target virtual object comprises: If the detection result indicates that the third distance satisfies the fifth distance condition, the target virtual object is controlled to move along the adjusted moving direction, wherein, during the movement of the target virtual object along the adjusted moving direction, the distance between the third vertex in the third direction of the target virtual object and the third intersection of the reference object satisfies the sixth distance condition.

7. The method according to claim 1, further comprising: Based on a reference point located in the virtual environment, a picture of the target virtual object moving in response to the control instruction is obtained and output for display.

8. An information processing device comprising: a processing module, configured to respond to a movement operation of a target virtual object in the virtual environment, and perform distance detection on a reference object based on a target path based on the target virtual object to obtain a detection result; The processing module is configured to generate a control instruction based on the detection result to control the target virtual object to move; The detection result is a depth detection result obtained by detecting whether the distances corresponding to first vertices in different directions meet corresponding distance conditions when the target virtual object performs distance detection on the reference object according to the target path; the different directions include at least three different directions, and the first vertices in the different directions include multiple key points on the surface of the target virtual object; The step of performing distance detection on a reference object based on a target path based on the target virtual object to obtain a detection result includes: Under the action of the movement operation, the target virtual object rotates, and a second direction vector of the second target path corresponding to the second vertex of the target virtual object before the rotation of the target virtual object is obtained; Determining, based on a second direction vector of a second target path corresponding to the second vertex and a rotation change of the target virtual object, a first direction vector of a first target path corresponding to a first vertex of the target virtual object after rotation; determining, based on the first vertex and a first direction vector of the corresponding first target path, a first intersection point where the first target path corresponding to the first vertex passes through the reference object; Determine whether the distance between the first vertex and the corresponding first intersection meets a preset condition to obtain the detection result.

Citation Information

Patent Citations

  • Three-dimensional virtual scene-based intelligent obstacle avoiding method and system

    CN105303595A

  • Two-dimensional game role movement control method and device and storage medium

    CN113509725A