Virtual operation demonstration methods, devices, equipment and storage media

By acquiring and mapping the initial parameters of virtual operations into display parameters in virtual reality technology, the problem of users' difficulty in accurately operating in a virtual environment is solved, thereby improving operational efficiency and accuracy, and achieving smooth, natural operation at a low cost.

CN115239920BActive Publication Date: 2026-05-26LENOVO (BEIJING) LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LENOVO (BEIJING) LTD
Filing Date
2022-07-18
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In virtual reality technology, users find it difficult to perform precise and detailed operations in the virtual environment, especially in scenarios requiring high precision, such as chemical experiments, where existing technologies struggle to achieve accurate target positioning and operation.

Method used

By acquiring the initial spatial location and initial parameters of the virtual operation and determining that they are within a preset range, these parameters are mapped to display parameters to assist users in accurately manipulating the virtual target. Software-level mapping technology is used to improve operational efficiency and accuracy.

Benefits of technology

It enables users to improve their control efficiency and accuracy in virtual reality environments through assisted aiming technology, resulting in smooth and natural operation, low cost, and wide applicability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115239920B_ABST
    Figure CN115239920B_ABST
Patent Text Reader

Abstract

This application discloses a virtual operation display method, apparatus, device, and storage medium. The method includes: obtaining the initial spatial position of the virtual operation; obtaining initial parameters of the virtual operation when the initial spatial position is determined to be within a preset range corresponding to the virtual target to be operated; mapping the initial parameters to display parameters corresponding to the virtual operation; and displaying the virtual operation based on the display parameters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of virtual reality technology, and includes, but is not limited to, a virtual operation display method, apparatus, device, and storage medium. Background Technology

[0002] When performing delicate operations such as chemical experiments in the world of Virtual Reality (VR), users find it difficult to operate VR devices with the same level of precision as in reality, making it hard to accurately reach a specific location. Summary of the Invention

[0003] In view of this, embodiments of this application provide a virtual operation display method, apparatus, device, and storage medium.

[0004] The technical solution of this application embodiment is implemented as follows:

[0005] In a first aspect, embodiments of this application provide a method for displaying a virtual operation, the method comprising: obtaining the initial spatial position of the virtual operation; obtaining initial parameters of the virtual operation when the initial spatial position is determined to be within a preset range corresponding to the virtual target to be operated; mapping the initial parameters to display parameters corresponding to the virtual operation; and displaying the virtual operation based on the display parameters.

[0006] Secondly, embodiments of this application provide a virtual operation display device, the device comprising: a first acquisition module, configured to acquire the initial spatial position of the virtual operation; a second acquisition module, configured to acquire initial parameters of the virtual operation when the initial spatial position is determined to be within a preset range corresponding to the virtual target to be operated; a mapping module, configured to map the initial parameters to display parameters corresponding to the virtual operation; and a display module, configured to display the virtual operation based on the display parameters.

[0007] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory stores a computer program that can run on the processor, and the processor executes the program to implement the above-described method.

[0008] Fourthly, embodiments of this application provide a storage medium storing executable instructions for inducing a processor to execute the above-described method.

[0009] In this embodiment, the initial spatial position of the virtual operation is first obtained; then, if the initial spatial position is determined to be within a preset range corresponding to the virtual target to be operated on, the initial parameters of the virtual operation are obtained; the initial parameters are mapped to display parameters corresponding to the virtual operation; finally, the virtual operation is displayed based on the display parameters. Thus, when it is determined that the user needs to manipulate a virtual target, by mapping the initial parameters of the virtual operation to display parameters, the efficiency and accuracy of the user's manipulation of the virtual target are improved through assisted aiming. Since the mapping of the virtual operation is implemented on a software basis, the implementation cost is low and the applicability is wide. Attached Figure Description

[0010] Figure 1 A schematic diagram illustrating the implementation process of a virtual operation display method provided in an embodiment of this application;

[0011] Figure 2 A schematic diagram illustrating the implementation process of a method for determining a preset range of a virtual target, provided in an embodiment of this application;

[0012] Figure 3 A schematic diagram illustrating an initial spatial position and a virtual operational target provided for an embodiment of this application;

[0013] Figure 4 A schematic diagram illustrating the implementation process of a method for mapping initial parameters to display parameters, provided in an embodiment of this application;

[0014] Figure 5 A schematic diagram of an orthogonal decomposition initial velocity provided in an embodiment of this application;

[0015] Figure 6 This application provides a schematic diagram of the composition structure of a virtual operation display device according to an embodiment of the present application.

[0016] Figure 7 This is a schematic diagram of a hardware entity of an electronic device provided in an embodiment of this application. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the specific technical solutions of the embodiments will be further described in detail below with reference to the accompanying drawings. The following embodiments are used to illustrate this application, but are not intended to limit the scope of this application.

[0018] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0019] In the following description, the terms "first, second, third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0021] This application provides a virtual operation display method, such as... Figure 1 As shown, the method includes:

[0022] Step S110: Obtain the initial spatial position of the virtual operation;

[0023] Here, virtual operation refers to user actions captured in virtual reality. Virtual reality is a combination of virtual and reality. Virtual reality technology is a computer simulation system that can create and allow users to experience virtual worlds. It uses computers to generate a simulated environment, immersing users in that environment. Virtual reality technology uses real-life data, electronic signals generated by computer technology, and combines this data with various output devices to transform it into phenomena that people can perceive. These phenomena can be real objects or substances invisible to the naked eye, represented through three-dimensional models. Because these phenomena are not directly visible but rather a simulated reality created through computer technology, it is called virtual reality.

[0024] In some embodiments, virtual operation can be virtual reality (VR) operation. VR, also known as immersive technology, is characterized by its immersiveness, interactivity, and imaginative features. VR technology integrates various technologies such as computer graphics, simulation, multimedia, artificial intelligence, computer networking, parallel processing, and multi-sensor technology. It simulates the functions of human sensory organs such as vision, hearing, and touch, making users feel as if they are actually in a computer-generated virtual world. Users can communicate in real time through language and gestures, enhancing the sense of entry and immersion. Through VR technology, users can experience the real world realistically while overcoming limitations of time and space, experiencing the wonder of entering a virtual world.

[0025] VR technology has a wide range of applications, such as astronauts using VR simulation technology for training; architects creating 3D virtual buildings from blueprints for easy experience and modification; real estate developers allowing customers to virtually tour their properties; the entertainment industry creating virtual stage scenes; and users being able to perform chemical experiments in virtual environments, etc.

[0026] In some embodiments, virtual operation can also be operation using Mixed Reality (MR) technology. MR is a further development of virtual reality technology. By introducing real-world scene information into the virtual environment, a bridge of interactive feedback is built between the virtual world, the real world, and the user, thereby enhancing the realism of the user experience. The key to MR technology is interaction with the real world and the timely acquisition of information; therefore, the implementation of MR requires an environment that allows interaction with various things in the real world.

[0027] During implementation, the initial spatial location of the virtual operation can be either the three-dimensional coordinates corresponding to the virtual operation or the spatial identifier corresponding to the virtual operation. Here, the spatial identifier can be a mark made by the virtual space to the physical location within the space, in order to determine the relative or absolute position of the spatial location.

[0028] Step S120: If the initial spatial position is determined to be within a preset range corresponding to the virtual target to be operated, obtain the initial parameters of the virtual operation;

[0029] Here, because users in the virtual space engage in scenarios where they manipulate virtual targets—that is, users perform virtual actions in the virtual space to manipulate a virtual target—for example, in a virtual chemistry experiment scenario, a user might perform a virtual operation to move a test tube to point A directly above an alcohol lamp. In this case, point A is the virtual target to be manipulated.

[0030] In some embodiments, users can set a preset range for each virtual target according to actual needs. For example, users can pre-define the preset range for each virtual target in the virtual space.

[0031] In some embodiments, a preset range of the virtual target can be defined by setting a cube or sphere centered on the virtual target.

[0032] During implementation, it can be first determined whether the initial spatial position of the virtual operation is within the preset range corresponding to the virtual target to be operated. If it is determined that the initial spatial position of the virtual operation is within the preset range corresponding to the virtual target to be operated, it can be determined that the user has a need to operate the virtual target. That is, in this scenario, the initial parameters of the virtual operation can be obtained to enable the assisted aiming of the virtual operation, thereby improving the efficiency and accuracy of the user in controlling the virtual target through assisted aiming.

[0033] Step S130: Map the initial parameters to the display parameters corresponding to the virtual operation;

[0034] Here, the initial parameters may include virtual operation position parameters, velocity parameters, and velocity-corresponding direction parameters. During implementation, to improve the efficiency and accuracy of user manipulation of the virtual target, these initial parameters need to be mapped to display parameters, enabling users to manipulate the virtual target quickly and accurately in the virtual space.

[0035] Step S140: Display the virtual operation based on the display parameters.

[0036] During implementation, operations in the real world (initial parameters) are mapped to operations in the virtual space (display parameters) in a variable scale manner. The variable scale can change continuously, making it less noticeable to the user and resulting in smoother and more natural operation.

[0037] In this embodiment, the initial spatial position of the virtual operation is first obtained; then, if the initial spatial position is determined to be within a preset range corresponding to the virtual target to be operated on, the initial parameters of the virtual operation are obtained; the initial parameters are mapped to display parameters corresponding to the virtual operation; finally, the virtual operation is displayed based on the display parameters. Thus, when it is determined that the user needs to manipulate a virtual target, by mapping the initial parameters of the virtual operation to display parameters, the efficiency and accuracy of the user's manipulation of the virtual target are improved through assisted aiming. Since the mapping of the virtual operation is implemented on a software basis, the implementation cost is low and the applicability is wide.

[0038] In some embodiments, before step S120 "when it is determined that the initial spatial position is within a preset range corresponding to the virtual target to be operated, the initial parameters of the virtual operation are obtained", such as Figure 2 As shown, the preset range of a virtual target can be determined using any of the following steps:

[0039] Step S210: Determine the preset range of the virtual target based on its attributes;

[0040] or,

[0041] Step S220: In response to the user's preset range division operation for the virtual target, determine the preset range of the virtual target.

[0042] During the execution process, steps S210 and S220 are in an OR relationship, meaning that executing either of the above two steps can achieve the determination of the preset range of the virtual target.

[0043] Here, the attributes of a virtual target can include its size, location, and function. During implementation, a preset range can be defined for the virtual target based on these attributes.

[0044] In some embodiments, the user can also define a preset range for the virtual target according to actual needs.

[0045] In this embodiment, the preset range of the virtual target can be determined based on its attributes; alternatively, the preset range of the virtual target can be determined in response to a user's operation to define the preset range of the virtual target. Thus, the defined preset range of the virtual target can effectively improve the efficiency and accuracy of operating the virtual target within that preset range.

[0046] In some embodiments, the initial parameters include at least one of the following: initial distance information between the initial spatial position and the virtual target to be operated, the initial speed of the virtual operation, and the initial direction corresponding to the initial speed;

[0047] In step S120 above, "obtaining the initial parameters of the virtual operation" can be achieved through the following process:

[0048] Obtain the distance information between the initial spatial position and the virtual target to be operated, the initial speed of the virtual operation, and the initial direction corresponding to the initial speed.

[0049] Here, the distance information between the initial spatial position and the virtual target to be operated on can be the absolute distance between the initial spatial position and the virtual target to be operated on, or it can be a relative distance determined based on the absolute distance and a preset range. The initial velocity of the virtual operation includes at least the magnitude and direction of the initial velocity.

[0050] In this embodiment, the distance information between the initial spatial position and the virtual target to be operated, the initial speed of the virtual operation, and the initial direction corresponding to the initial speed can be obtained first as the initial parameters of the virtual operation, so as to realize the mapping as display parameters using the initial parameters.

[0051] In some embodiments, the step S120 above, "obtaining the distance information between the initial spatial position and the virtual target to be operated on," can be achieved through the following steps:

[0052] Step 121: Obtain the absolute distance between the initial spatial position and the virtual target;

[0053] Step 122: When the preset range is determined to be the range of a three-dimensional sphere with the virtual target as the center and the preset radius as the sphere radius, the ratio of the absolute distance to the preset radius is determined as the initial distance information.

[0054] Figure 3 A schematic diagram of an initial spatial position and a virtual operation target provided in an embodiment of this application, such as... Figure 3 As shown in the diagram, the schematic includes: a virtual operation target O and an initial spatial position C, wherein,

[0055] The preset range of the virtual operation target is a three-dimensional sphere with the virtual operation target O as the center and the preset radius R as the radius of the sphere.

[0056] like Figure 3 As shown, the absolute distance between the initial spatial position of the virtual operation and the line B connecting the center of the sphere O, the initial velocity V of the operation, and the direction A corresponding to the initial velocity V can be obtained. The included angle α can be determined based on the direction A of the initial velocity and the line B. Thus, the initial distance information γ can be determined using the following formula (1):

[0057]

[0058] In this formula, the denominator is the absolute distance B between the initial spatial position of the virtual operation and the center of the sphere O, and the numerator is the preset radius R.

[0059] In this embodiment, when the preset range is determined to be the range of a three-dimensional sphere with the virtual target as its center and a preset radius as its radius, the ratio of the absolute distance to the preset radius is determined as the initial distance information. Thus, using the relative distance γ for calculation ensures that the formula remains unchanged as the sphere radius varies, maintaining consistency. Furthermore, the value of the relative distance is derived from known information, eliminating additional measurement overhead.

[0060] In some embodiments, such as Figure 4 As shown, step S130 above, "mapping the initial parameters to the display parameters corresponding to the virtual operation," can be achieved through the following steps:

[0061] Step S410: Determine the influence factor of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information;

[0062] Here, the influence factor can be a parameter used to adjust the virtual operation. The influence factor corresponding to the virtual operation can be determined based on at least two of the obtained initial velocity, initial direction and initial distance information.

[0063] Step S420: Use the influence factor to map the initial speed to the display speed corresponding to the virtual operation.

[0064] Here, the initial speed can be adjusted to the display speed using an influencing factor, so as to change the relative movement speed of the virtual target in the virtual world when the virtual operation is at different distances, different directions of movement, and different speeds of movement.

[0065] In some embodiments, the same design principle can be used to achieve the opposite effect, such as "difficulty in approaching a target," or other special effects by determining the influencing factors.

[0066] In this embodiment, an influence factor for the virtual operation is determined based on at least two of the initial velocity, initial direction, and initial distance information. The influence factor is then used to map the initial velocity to the display velocity corresponding to the virtual operation. This allows the initial velocity to be adjusted to the display velocity using the influence factor, enabling the virtual operation to change its relative movement speed in the virtual world at different distances from the virtual target, different directions of movement, and different movement rates.

[0067] In some embodiments, step S410 above, "determining the influence factor of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information," can be achieved through the following steps:

[0068] Step 411: Obtain the piecewise function used to determine the influence factor;

[0069] Step 412: Based on at least two of the initial velocity, initial direction, and initial distance information, determine the influence factor of the virtual operation using the piecewise function.

[0070] During implementation, piecewise functions can be used to calculate the impact factor, allowing the impact factor to change in stages according to a threshold.

[0071] In this embodiment of the application, a piecewise function can be used to calculate the influence factor.

[0072] In some embodiments, the value of the influence factor includes a first value, a second value, and a third value. Step 412, "Based on at least two of the initial velocity, the initial direction, and the initial distance information, using the piecewise function, determine the influence factor of the virtual operation," includes:

[0073] Obtain the velocity threshold in the piecewise function;

[0074] If it is determined that the initial speed is greater than the speed threshold, the influence factor is determined to be the first value;

[0075] If the initial velocity is determined to be less than the velocity threshold, the cosine of the angle corresponding to the initial velocity is determined, wherein the angle is the angle between the direction of the line connecting the initial position of the operation and the virtual target and the direction corresponding to the initial velocity;

[0076] If the cosine value is greater than zero, the influence factor is determined to be the second value;

[0077] If the cosine value is determined to be less than or equal to zero, the influence factor is determined to have the third value.

[0078] For example, the following formula (2) can be a piecewise function used to determine the influence factor λ:

[0079]

[0080] Among them, such as Figure 3 As shown, the included angle α can be determined based on the direction A of the initial velocity and the line B connecting them. When the initial velocity V is greater than the velocity threshold (which can be set to 1 meter per second), the influence factor is set to 1; when the initial velocity V is less than the velocity threshold and the cosine value (cosα) is greater than zero, the influence factor is set to 1.5; when the initial velocity V is less than the velocity threshold and the cosine value is less than or equal to zero, the influence factor is set to 1.5.

[0081] In this embodiment of the application, the influence factor calculated by the above piecewise function can achieve the effect of "easy to quickly approach the target when far away, and difficult to deviate from the target when close".

[0082] In some embodiments, step S410 above, "determining the influence factor of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information," can be achieved through the following steps:

[0083] Step 413: Obtain the continuous function used to determine the influencing factor;

[0084] Step 414: Based on at least two of the initial velocity, initial direction, and initial distance information, determine the influence factor of the virtual operation using the continuous function.

[0085] During implementation, continuous functions can be used to calculate the impact factor, allowing the impact factor to change in stages according to a threshold.

[0086] In this embodiment of the application, a continuous function can be used to calculate the influence factor.

[0087] In some embodiments, step 414 above, "determining the influence factor of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information, using the continuous function," includes:

[0088] Obtain the cosine of the angle between the initial position of the operation and the direction of the line connecting the virtual target and the direction corresponding to the initial velocity;

[0089] The cosine value is added to a preset parameter, and then multiplied by the initial distance information to determine the influence factor.

[0090] For example, the following formula (3) can be a continuous function used to determine the influence factor λ:

[0091] λ=γ(1+cosα) (3);

[0092] Wherein, γ is the initial distance information calculated by formula (1) above; such as Figure 3 As shown, the included angle α can be determined based on the direction A of the initial velocity and the line B connecting them.

[0093] In this embodiment of the application, the influence factor calculated using the above continuous function can achieve the effect of "easy to quickly approach the target when far away, and difficult to deviate from the target when close".

[0094] In some embodiments, step S410 above, "determining the influence factor of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information," can be achieved through the following steps:

[0095] Step 415: Perform orthogonal decomposition on the initial velocity based on the initial direction to obtain a first initial velocity and a second initial velocity, wherein the direction of the first initial velocity points to the virtual target, and the direction of the second initial velocity is perpendicular to the direction of the first initial velocity;

[0096] Figure 5 A schematic diagram of an orthogonal decomposition initial velocity provided in an embodiment of this application is shown below. Figure 5 As shown, the initial spatial position C is orthogonally decomposed into a first initial velocity V1 and a second initial velocity V2. The direction of the initial velocity V and the line connecting them (the line connecting the initial position and the virtual operation target) determine the included angle α.

[0097] The direction of the first initial velocity V1 is directed towards the virtual operation target O, and the direction of the second initial velocity V2 is perpendicular to the direction of the first initial velocity V1.

[0098] Step 416: Based on the first initial distance, the second initial distance, and the distance information, determine the first influence factor corresponding to the first initial velocity and the second influence factor corresponding to the second initial velocity;

[0099] During implementation, the first influencing factor λ1 can be determined using the following formula (4):

[0100] λ1=f(γ,V1,α) (4);

[0101] Wherein, γ is the initial distance information calculated by formula (1) above; such as Figure 4 As shown, the included angle α can be determined based on the direction of the initial velocity V and the line connecting them, where V1 is the first initial velocity.

[0102] The second influence factor λ2 can be determined using the following formula (5):

[0103] λ2=f(γ,V2,α) (5);

[0104] Wherein, γ is the initial distance information calculated by formula (1) above; such as Figure 4 As shown, the included angle α can be determined based on the direction of the initial velocity V and the line connecting them, where V2 is the first initial velocity.

[0105] Correspondingly, the display speed includes a first display speed and a second display speed;

[0106] The above step S420, "mapping the initial speed to the display speed corresponding to the virtual operation using the influence factor," can be achieved through the following steps:

[0107] Step 421: Using the first influence factor, map the first initial speed to the first display speed;

[0108] Step 422: Using the second influence factor, map the second initial speed to the second display speed.

[0109] In this embodiment, the initial velocity is first orthogonally decomposed based on the initial direction to obtain a first initial velocity and a second initial velocity. Then, based on the first initial distance, the second initial distance, and the distance information, a first influence factor corresponding to the first initial velocity and a second influence factor corresponding to the second initial velocity are determined. Finally, the first initial velocity is mapped to the first display velocity using the first influence factor, and the second initial velocity is mapped to the second display velocity using the second influence factor. This allows for refined adjustment of the direction and magnitude of the velocity, enabling gradual approach to the target and assisting users in achieving precise virtual operation.

[0110] This application provides a method for correcting fine-grained VR operations through motion-assisted guidance, including the following steps:

[0111] Step 1: For any pre-set complex VR scene, there are multiple pre-set important points in the scene. These points are the interaction points or placement points that the system expects to be more important, such as a specific joystick, a specific button, etc.

[0112] Step 2: For any one of the important points in the above VR scene, a specific range length can be given according to its importance and the fineness requirements of operation. The system will generate a 3D sphere range (invisible to the user) with the radius of the given length and the point as the center. Within this range, the auxiliary system will start steps 3 to 6 as follows.

[0113] Step 3: At any point in time, the VR system can know the position of the center of the ball, the radius of the ball, and the position of the virtual hand (the corresponding object of the physical motion capture device in the VR world, which can be any virtual representation). Thus, the relative distance γ between the virtual hand and the center of the ball (the relative distance is the ratio of the absolute distance to the radius of the ball) can be obtained using the above formula (1).

[0114] Step 4, as follows Figure 3 As shown, at the instant the virtual hand moves, the VR system can obtain the instantaneous speed V of the movement, the direction of the movement A, and the side B formed by the hand and the center of the ball, and thus calculate the angle α formed by the lines A and B in space.

[0115] Step 5: Based on the relative distance gamma calculated using the above method, and the included angle α, a function λ = f(γ, V, α) can be designed to calculate the action influence factor λ. This function can be a piecewise function to make λ change in stages according to a threshold, or a continuous function (such as a trigonometric function) to make λ change continuously.

[0116] By designing different functions λ = f(γ, V, α), it is possible to change the relative speed of the virtual hand in the virtual world at different distances from the target point, different directions of movement, and different speeds of movement. This achieves effects such as "easy to quickly approach the target when far away, and difficult to deviate from the target when close." Using the same design principle, by adjusting the function parameters, the opposite effect, such as "difficult to approach a target," or other special effects can also be achieved.

[0117] Step 6: After calculating λ, the distance the virtual hand moves in virtual space is equal to λ multiplied by the distance the motion capture device moves in physical space. Here, the motion capture device is a sensor in the real world that tracks hand movements, and the virtual hand refers to the projection of a human hand into the VR virtual world. The movement distance of the virtual hand is controlled by this system, which achieves the motion effect in the virtual world by designing a control scheme for the virtual hand.

[0118] In this embodiment, an auxiliary aiming system for specific operations is added to the VR world. Operations within a certain range will be automatically guided and calibrated to the correct target position. For example, if an experiment requires moving a test tube to point O directly above an alcohol lamp, a spherical auxiliary space is set with O as the center. When a person moves their hand into this space, the speed of movement towards the center of the sphere increases significantly, while the speed of movement away from the center of the sphere decreases significantly.

[0119] The following beneficial technical effects can be achieved by adopting this solution: it solves the problem at the software level, has low cost and wide applicability; the visuals in the VR world and the operations in the real world are mapped in a variable scale manner, and the variable scale can change continuously, which is not easily noticed by the user, and the operation is smoother and more natural.

[0120] Based on the foregoing embodiments, this application provides a virtual operation display device. The device includes various modules, each module includes sub-modules, and each sub-module includes units. It can be implemented by a processor in an electronic device; of course, it can also be implemented by specific logic circuits. In the implementation process, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0121] Figure 6 This is a schematic diagram of the composition structure of the virtual operation display device provided in the embodiments of this application, such as... Figure 6 As shown, the device 600 includes:

[0122] The first acquisition module 610 is used to acquire the initial spatial position of the virtual operation;

[0123] The second acquisition module 620 is used to acquire the initial parameters of the virtual operation when it is determined that the initial spatial position is within a preset range corresponding to the virtual target to be operated.

[0124] Mapping module 630 is used to map the initial parameters to display parameters corresponding to the virtual operation;

[0125] The display module 640 is used to display the virtual operation based on the display parameters.

[0126] In some embodiments, the apparatus further includes a first determining module or a second determining module, wherein the first determining module is configured to determine a preset range of the virtual target based on the attributes of the virtual target; and the second determining module is configured to determine the preset range of the virtual target in response to a user's operation of dividing the virtual target into preset ranges.

[0127] In some embodiments, the initial parameters include at least one of the following: initial distance information between the initial spatial position and the virtual target to be operated, the initial speed of the virtual operation, and the initial direction corresponding to the initial speed; the second acquisition module is further configured to acquire the distance information between the initial spatial position and the virtual target to be operated, the initial speed of the virtual operation, and the initial direction corresponding to the initial speed.

[0128] In some embodiments, the second acquisition module includes a first acquisition submodule and a first determination submodule, wherein the first acquisition submodule is used to acquire the absolute distance between the initial spatial position and the virtual target; the first determination submodule is used to determine the ratio of the absolute distance to the preset radius as the initial distance information when the preset range is determined to be the range of a three-dimensional sphere with the virtual target as the center and the preset radius as the sphere radius.

[0129] In some embodiments, the mapping module includes a second determining submodule and a mapping submodule, wherein the second determining submodule is used to determine an influence factor of the virtual operation based on at least two of the initial speed, the initial direction and the initial distance information; and the mapping submodule is used to map the initial speed to the display speed corresponding to the virtual operation using the influence factor.

[0130] In some embodiments, the second determining submodule includes a first acquisition unit and a first determining unit, wherein the first acquisition unit is configured to acquire a piecewise function for determining the influence factor; and the first determining unit is configured to determine the influence factor of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information, using the piecewise function.

[0131] In some embodiments, the second determining submodule includes a second acquisition unit and a second determining unit, wherein the second acquisition unit is configured to acquire a continuous function for determining the influence factor; and the second determining unit is configured to determine the influence factor of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information, using the continuous function.

[0132] In some embodiments, the second determining submodule includes an orthogonal decomposition unit and a third determining unit, wherein the orthogonal decomposition unit is configured to perform orthogonal decomposition on the initial velocity based on the initial direction to obtain a first initial velocity and a second initial velocity, wherein the direction of the first initial velocity points to the virtual target, and the direction of the second initial velocity is perpendicular to the direction of the first initial velocity; the third determining unit is configured to determine a first influence factor corresponding to the first initial velocity and a second influence factor corresponding to the second initial velocity based on the first initial distance, the second initial distance, and the distance information; correspondingly, the display speed includes a first display speed and a second display speed; the mapping submodule includes a first mapping unit and a second mapping unit, wherein the first mapping unit is configured to map the first initial velocity to the first display speed using the first influence factor; and the second mapping unit is configured to map the second initial velocity to the second display speed using the second influence factor.

[0133] The descriptions of the above device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0134] It should be noted that, in the embodiments of this application, if the above methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of software products. These computer software products are stored in a storage medium and include several instructions to cause electronic devices (such as mobile phones, tablets, laptops, desktop computers, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0135] Correspondingly, embodiments of this application provide a storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the virtual operation display method provided in the above embodiments.

[0136] Correspondingly, embodiments of this application provide an electronic device, Figure 7 A schematic diagram of a hardware entity of an electronic device provided in an embodiment of this application, such as... Figure 7As shown, the hardware entity of the device 700 includes a memory 701 and a processor 702. The memory 701 stores a computer program that can run on the processor 702. When the processor 702 executes the program, it implements the steps in the virtual operation display method provided in the above embodiments.

[0137] The memory 701 is configured to store instructions and applications executable by the processor 702, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 702 and various modules in the electronic device 700. It can be implemented by flash memory or random access memory (RAM).

[0138] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0139] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0140] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0141] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0142] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0143] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0144] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0145] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a mobile phone, tablet computer, laptop computer, desktop computer, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, magnetic disks, or optical disks.

[0146] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0147] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0148] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method or device embodiments.

[0149] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for displaying virtual operations, the method comprising: Based on the attributes of the virtual target, a preset range of the virtual target is determined; or, In response to the user's preset range division operation for the virtual target, the preset range of the virtual target is determined; Obtain the initial spatial position of the virtual operation; If the initial spatial position is determined to be within a preset range corresponding to the virtual target to be operated on, the initial parameters of the virtual operation are obtained. The initial parameters are mapped to the display parameters corresponding to the virtual operation according to a continuously changing mapping ratio; The virtual operation is displayed based on the aforementioned display parameters.

2. The method as described in claim 1, wherein the initial parameters include at least one of the following: initial distance information between the initial spatial position and the virtual target to be operated, the initial speed of the virtual operation, and the initial direction corresponding to the initial speed; The process of obtaining the initial parameters for the virtual operation includes: Obtain the distance information between the initial spatial position and the virtual target to be operated, the initial speed of the virtual operation, and the initial direction corresponding to the initial speed.

3. The method as described in claim 2, wherein obtaining the distance information between the initial spatial position and the virtual target to be operated on includes: Obtain the absolute distance between the initial spatial position and the virtual target; When the preset range is determined to be the range of a three-dimensional sphere with the virtual target as the center and the preset radius as the sphere radius, the ratio of the absolute distance to the preset radius is determined as the initial distance information.

4. The method as described in claim 2, wherein mapping the initial parameters to the display parameters corresponding to the virtual operation according to a continuously changing mapping ratio includes: The influence factor of the virtual operation is determined based on at least two of the initial velocity, the initial direction, and the initial distance information. The initial speed is mapped to the display speed corresponding to the virtual operation using the influence factor.

5. The method of claim 4, wherein determining the influencing factors of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information includes: Obtain the piecewise function used to determine the impact factor; Based on at least two of the initial velocity, initial direction, and initial distance information, the influence factor of the virtual operation is determined using the piecewise function.

6. The method of claim 4, wherein determining the influencing factors of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information comprises: Obtain a continuous function used to determine the influencing factor; Based on at least two of the initial velocity, initial direction, and initial distance information, the influence factor of the virtual operation is determined using the continuous function.

7. The method of claim 4, wherein determining the influencing factors of the virtual operation based on at least two of the initial velocity, the initial direction, and the initial distance information comprises: Based on the initial direction, the initial velocity is orthogonally decomposed to obtain a first initial velocity and a second initial velocity, wherein the direction of the first initial velocity points to the virtual target, and the direction of the second initial velocity is perpendicular to the direction of the first initial velocity. Based on the first initial distance, the second initial distance, and the distance information, a first influence factor corresponding to the first initial velocity and a second influence factor corresponding to the second initial velocity are determined. Correspondingly, the display speed includes a first display speed and a second display speed; The step of mapping the initial speed to the display speed corresponding to the virtual operation using the influencing factor includes: Using the first influence factor, the first initial speed is mapped to the first display speed; Using the second influence factor, the second initial speed is mapped to the second display speed.

8. A virtual operation display device, characterized in that, The device includes: The first determining module is used to determine a preset range of the virtual target based on the attributes of the virtual target; or, in response to a user's operation of dividing the virtual target into preset ranges, to determine the preset range of the virtual target. The first acquisition module is used to acquire the initial spatial position of the virtual operation; The second acquisition module is used to acquire the initial parameters of the virtual operation when it is determined that the initial spatial position is within a preset range corresponding to the virtual target to be operated. The mapping module is used to map the initial parameters to the display parameters corresponding to the virtual operation according to a continuously changing mapping ratio; The display module is used to display the virtual operation based on the display parameters.

9. An electronic device comprising a memory and a processor, the memory storing a computer program executable on the processor, characterized in that, When the processor executes the program, it implements the steps of the method according to any one of claims 1 to 7.