CN117631810A - Operation processing method, device, equipment and medium based on virtual reality space - Google Patents
Operation processing method, device, equipment and medium based on virtual reality space Download PDFInfo
- Publication number
- CN117631810A CN117631810A CN202210963933.5A CN202210963933A CN117631810A CN 117631810 A CN117631810 A CN 117631810A CN 202210963933 A CN202210963933 A CN 202210963933A CN 117631810 A CN117631810 A CN 117631810A
- Authority
- CN
- China
- Prior art keywords
- trigger
- long
- virtual reality
- target element
- reality space
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000009877 rendering Methods 0.000 claims abstract description 18
- 230000006870 function Effects 0.000 claims description 28
- 230000004044 response Effects 0.000 claims description 24
- 238000012545 processing Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 10
- 238000001514 detection method Methods 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 16
- 238000004891 communication Methods 0.000 description 6
- 208000013057 hereditary mucoepithelial dysplasia Diseases 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000002452 interceptive effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 239000007787 solid Substances 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000007667 floating Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000036651 mood Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000035807 sensation Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000016776 visual perception Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The embodiment of the disclosure relates to an operation processing method, device, equipment and medium based on virtual reality space, wherein the method comprises the following steps: responding to a call request of a trigger function, and rendering a trigger direction indication model in a virtual reality space according to a control direction corresponding to the control equipment, wherein the trigger direction indication model is used for indicating a trigger direction corresponding to the control direction in the virtual reality space; detecting whether a target element positioned in the current trigger direction of the rendering trigger direction indication model exists in the virtual reality space; and responding to the target element meeting a preset long-press triggering condition, and displaying progress prompt information of long-press operation in the virtual reality space so as to prompt the progress of the long-press operation on the target element according to the progress prompt information. Therefore, the discovery cost of the long-press operation is reduced, the progress prompt of the long-press operation in the virtual reality space is realized, and the operation experience of the long-press operation is improved.
Description
Technical Field
The disclosure relates to the technical field of virtual reality, and in particular relates to an operation processing method, device, equipment and medium based on virtual reality space.
Background
Virtual Reality (VR) technology, also known as Virtual environments, moods, or artificial environments, refers to technology that utilizes a computer to generate a Virtual world that can directly impart visual, auditory, and tactile sensations to participants and allow them to interactively observe and operate. The improvement of VR realism to make the experience of virtual reality space and real physical space feel similar becomes a mainstream.
In the related art, the operation panel may be displayed based on a virtual reality technology, and based on a trigger operation on a control device such as a handle, the trigger operation on the operation panel is implemented, for example, a long-press operation is performed by long-pressing a trigger key on the control device such as the handle. However, in such a long press operation manner, whether the long press operation is performed is determined depending on the active feeling of the user, and the operation experience is not high.
Disclosure of Invention
In order to solve the technical problems or at least partially solve the technical problems, the present disclosure provides an operation processing method, device, equipment and medium based on a virtual reality space, which reduce the discovery cost of long-press operation, realize the progress prompt of the long-press operation in the virtual reality space, and promote the operation experience of the long-press operation.
The embodiment of the disclosure provides an operation processing method based on a virtual reality space, which comprises the following steps: responding to a call request of a trigger function, and rendering a trigger direction indication model in a virtual reality space according to a control direction corresponding to control equipment, wherein the trigger direction indication model is used for indicating a trigger direction corresponding to the control direction in the virtual reality space, and the trigger direction corresponds to the control direction in real time; detecting whether a target element positioned in the current trigger direction of the trigger direction indication model exists in the virtual reality space; in response to the existence of the target element, identifying whether the target element meets a preset long-press trigger condition; and responding to the target element meeting a preset long-press triggering condition, and displaying progress prompt information of long-press operation in the virtual reality space so as to prompt the progress of the long-press operation on the target element according to the progress prompt information.
The embodiment of the disclosure also provides an operation processing device based on the virtual reality space, which comprises: the rendering module is used for responding to a call request of a trigger function, and rendering a trigger direction indication model in a virtual reality space according to a control direction corresponding to control equipment, wherein the trigger direction indication model is used for indicating a trigger direction corresponding to the control direction in the virtual reality space, and the trigger direction corresponds to the control direction in real time; the detection module is used for detecting whether a target element positioned in the current trigger direction of the trigger direction indication model exists in the virtual reality space; the identification module is used for identifying whether the target element meets a preset long-press triggering condition or not in response to the existence of the target element; and the operation prompt module is used for responding to the condition that the target element meets the preset long-press triggering condition, displaying the progress prompt information of the long-press operation in the virtual reality space, so as to prompt the progress of the long-press operation on the target element according to the progress prompt information.
The embodiment of the disclosure also provides an electronic device, which comprises: a processor; a memory for storing the processor-executable instructions; the processor is configured to read the executable instructions from the memory and execute the instructions to implement the virtual reality space-based operation processing method according to the embodiments of the present disclosure.
The present disclosure also provides a computer-readable storage medium storing a computer program for executing the virtual reality space-based operation processing method as provided by the embodiments of the present disclosure.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
according to the operation processing scheme based on the virtual reality space, a trigger direction indication model is rendered in the virtual reality space according to the operation direction corresponding to the operation equipment, wherein the trigger direction indication model is used for indicating the corresponding trigger direction of the operation direction in the virtual reality space, the trigger direction corresponds to the operation direction in real time, further, whether a target element positioned in the current trigger direction of the trigger direction indication model exists in the virtual reality space or not is detected, whether the target element meets a preset long-press trigger condition is identified in response to the existence of the target element, and progress prompt information of the long-press operation is displayed in the virtual reality space in response to the fact that the target element meets the preset long-press trigger condition so as to prompt the progress of the long-press operation on the target element according to the progress prompt information. Therefore, the discovery cost of the long-press operation is reduced, the progress prompt of the long-press operation in the virtual reality space is realized, and the operation experience of the long-press operation is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
Fig. 1 is a schematic view of an application scenario of a virtual reality device according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of an operation processing method based on a virtual reality space according to an embodiment of the disclosure;
FIG. 3 is a schematic diagram of a trigger direction indication model provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of another trigger direction indication model provided by embodiments of the present disclosure;
fig. 5A is a schematic diagram of a progress prompt message according to an embodiment of the disclosure;
FIG. 5B is a schematic diagram of another progress prompt message provided by an embodiment of the present disclosure;
FIG. 5C is a diagram illustrating another progress prompt message provided by an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a display scenario of a ray trace model provided by an embodiment of the present disclosure;
FIG. 7 is a schematic view of a display scenario of another ray trace model provided by an embodiment of the present disclosure;
Fig. 8 is a schematic diagram of an operation processing scenario based on a virtual reality space according to an embodiment of the disclosure;
fig. 9 is a schematic structural diagram of an operation processing device based on a virtual reality space according to an embodiment of the disclosure;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Some technical concepts or noun concepts referred to herein are described in association with:
the virtual reality device, the terminal for realizing the virtual reality effect, may be provided in the form of glasses, a head mounted display (Head Mount Display, HMD), or a contact lens for realizing visual perception and other forms of perception, but the form of the virtual reality device is not limited to this, and may be further miniaturized or enlarged as needed.
The virtual reality device described in the embodiments of the present invention may include, but is not limited to, the following types:
a computer-side virtual reality (PCVR) device performs related computation of a virtual reality function and data output by using a PC side, and an external computer-side virtual reality device realizes a virtual reality effect by using data output by the PC side.
The mobile virtual reality device supports setting up a mobile terminal (such as a smart phone) in various manners (such as a head-mounted display provided with a special card slot), performing related calculation of a virtual reality function by the mobile terminal through connection with the mobile terminal in a wired or wireless manner, and outputting data to the mobile virtual reality device, for example, watching a virtual reality video through an APP of the mobile terminal.
The integrated virtual reality device has a processor for performing the calculation related to the virtual function, and thus has independent virtual reality input and output functions, and is free from connection with a PC or a mobile terminal, and has high degree of freedom in use.
Virtual reality objects, objects that interact in a virtual scene, objects that are stationary, moving, and performing various actions in a virtual scene, such as virtual persons corresponding to a user in a live scene, are controlled by a user or a robot program (e.g., an artificial intelligence based robot program).
As shown in fig. 1, HMDs are relatively light, ergonomically comfortable, and provide high resolution content with low latency. The sensor (such as a nine-axis sensor) for detecting the gesture in the virtual reality device is arranged in the virtual reality device, and is used for detecting the gesture change of the virtual reality device in real time, if the user wears the virtual reality device, when the gesture of the head of the user changes, the real-time gesture of the head is transmitted to the processor, so that the gaze point of the sight of the user in the virtual environment is calculated, an image in the gaze range (namely a virtual view field) of the user in the three-dimensional model of the virtual environment is calculated according to the gaze point, and the image is displayed on the display screen, so that the user looks like watching in the real environment.
In this embodiment, when a user wears the HMD device and opens a predetermined application program, for example, a live video application program, the HMD device may run corresponding virtual scenes, where the virtual scenes may be simulation environments for the real world, semi-simulation virtual scenes, or pure virtual scenes. The virtual scene may be any one of a two-dimensional virtual scene, a 2.5-dimensional virtual scene or a three-dimensional virtual scene, and the dimension of the virtual scene is not limited in the embodiment of the present application. For example, the virtual scene may include a person, sky, land, sea, etc., where the land may include environmental elements such as a desert, a city, etc., and the user may control the virtual object to move in the virtual scene, and may also interactively control a control, a model, a presentation content, a person, etc. in the virtual scene by means of a manipulation device such as a handle device, a naked hand gesture, etc.
As mentioned above, in the virtual reality space, display elements such as controls and models in various virtual scenes are displayed in a floating manner, for example, an operation panel including various controls is displayed, and a user realizes a trigger operation on the display elements through a manipulation device such as a handle device.
In order to solve the above problems, the embodiments of the present disclosure provide an operation processing method based on a virtual reality space, in which long-press operation is expected in a visual manner, so as to reduce the discovery cost of the long-press operation, realize progress prompt of the long-press operation in the virtual reality space, and improve the operation experience of the long-press operation.
The method is described below in connection with specific examples.
Fig. 2 is a flow chart of a virtual reality space-based operation processing method according to an embodiment of the present disclosure, where the method may be performed by a virtual reality space-based operation processing device, where the device may be implemented by software and/or hardware, and may be generally integrated in an electronic device. As shown in fig. 2, the method includes:
Step 201, in response to a call request of a trigger function, rendering a trigger direction indication model in a virtual reality space according to a control direction corresponding to a control device, where the trigger direction indication model is used to indicate a trigger direction corresponding to the control direction in the virtual reality space, and the trigger direction corresponds to the control direction in real time.
It should be understood that, in the embodiment of the present disclosure, the trigger function is invoked corresponding to a trigger control function for a display element in the virtual reality space, and typically, after the above-mentioned virtual reality device is turned on, a call request of the trigger function is obtained, so that, for convenience in triggering control of a user, the trigger function is continuously invoked, so as to simulate that in the real world, a detection function of the trigger function is continuously invoked after the mobile phone is turned on. Of course, in some possible embodiments, in the virtual reality space, some real scenes do not belong to an interactive scene, such as an online concert, so that the current scene type in the virtual reality space can be identified, and if the current scene type is the interactive scene type, a call request for triggering a function is obtained.
In one embodiment of the present disclosure, a manipulation direction corresponding to a manipulation device is determined in response to a call request of a trigger function. In the virtual reality scene, the user selects the target element through a control device, the control device can be a handle, and the user selects the target element through the operation of a key of the control device. Of course, in other embodiments, the target element in the HMD device may be controlled by using a multi-mode control manner such as gesture or voice or a combination of gesture and voice instead of using the manipulation device. In this embodiment, the user may adjust the manipulation direction by rotating the angle of the related control on the manipulation device, or may also adjust the manipulation direction by rotating the angle of the manipulation device, etc.
Different from the real world, the user can not trigger the display screen directly in the virtual reality space, so, in order to intuitively guide the triggering operation of the user, a triggering direction indication model is rendered in the virtual reality space according to the corresponding control direction of the control device, wherein the triggering direction indication model is used for indicating the corresponding triggering direction of the control direction in the virtual reality space, and the triggering direction corresponds to the control direction in real time, so that the user can intuitively know the current triggering direction of the control device in the virtual reality space.
In an embodiment of the disclosure, the manipulation direction adjustment instruction sent by the manipulation device may be received, where the manipulation direction adjustment instruction may be triggered by adjusting a manipulation direction by the above-mentioned rotation angle of a related control on the manipulation device, or may also be triggered by adjusting a manipulation direction by rotating an angle of the manipulation device.
Further, determining a manipulation direction corresponding to the manipulation apparatus according to the manipulation direction adjustment instruction, for example, determining a manipulation direction corresponding to the rotation angle, and the like, and determining a trigger direction corresponding to the trigger direction indication model according to the manipulation direction, for example, in some possible embodiments, determining the manipulation direction as the corresponding trigger direction; for another example, in some possible embodiments, the preset mapping relationship is queried to obtain the trigger direction corresponding to the manipulation direction.
The rendering trigger direction indication model may be set according to a scene, and the rendering trigger direction indication model may visually indicate a trigger direction corresponding to a manipulation direction in a virtual reality space, and since an active operation in the virtual reality space is a "floating" operation, the rendering trigger direction indication model is generally a model having an "extension" sense.
For example, as shown in fig. 3, the trigger direction indication model is a ray track model, wherein a starting point of the ray track model is a corresponding spatial position of the control device in the virtual reality space, the ray track model extends from the starting point of the track to the beginning of the track to the virtual reality space, and the extending direction is the trigger direction corresponding to the track.
In other alternatives, the ray trace model may also be extended to any model that is rendered in "ray" logic, such as, for example, a "pointer" model.
For example, the trigger direction indication model is a nonlinear model indicating the trigger direction, as shown in fig. 4, the nonlinear model may be a "circular" model, and the corresponding trigger direction of the current steering direction in the virtual reality space is indicated by displaying the "circular" model in the virtual reality space. For example, when the trigger direction corresponding to the current manipulation direction in the virtual reality space is the direction a1, the corresponding "circular" model is displayed at the spatial position b1 in the virtual reality space, and when the trigger direction corresponding to the current manipulation direction in the virtual reality space is the direction a2, the corresponding "circular" model is displayed at the spatial position b2 in the virtual reality space.
Step 202, detecting whether a target element located in the current trigger direction of the trigger direction indication model exists in the virtual reality space.
In step 203, in response to the presence of the target element, it is identified whether the target element satisfies a preset long press trigger condition.
It should be appreciated that in a virtual reality scenario, the types of triggerable operations corresponding to different display elements are different, e.g., some display controls may only be clicked, some display controls may be long-pressed, etc. in addition to being clicked.
Therefore, in this embodiment, in order to improve efficiency of long press operation, a user may find a long press object quickly, determine whether a target element exists in a current trigger direction of the trigger direction indication model, where a virtual space position corresponding to the trigger direction may be determined, and determine a target element matched with the virtual space position.
Further, in one embodiment of the present disclosure, if the target element exists, whether the target element meets a preset long-press trigger condition is identified, for example, a trigger operation type corresponding to the target element may be obtained, whether the trigger operation type includes a long-press trigger operation type is identified, and if the target element includes the long-press trigger operation type, it is determined that the preset long-press trigger condition is met.
In one embodiment of the present disclosure, if a target element exists, identifying image feature information of the target element, and identifying an element type of the target element according to the image feature information, if the element type belongs to a preset long press operable element type, determining that a preset long press trigger condition is satisfied.
And 204, displaying progress prompt information of the long-press operation in the virtual reality space in response to the target element meeting a preset long-press trigger condition, so as to prompt the progress of the long-press operation on the target element according to the progress prompt information.
In one embodiment of the present disclosure, in response to a target element meeting a preset long-press trigger condition, progress prompt information of long-press operation is displayed in a virtual reality space, so that a user can intuitively find that the target element is an element that can be long-press operated according to the progress prompt information, and the cost of finding the long-press element is reduced. The progress prompt message may be displayed at the position of the intersection point of the target element and the trigger direction indication model, or may be displayed at any position visually associated with the target element.
The progress of the long-press operation on the target element is prompted according to the progress prompt information, so that the intuitiveness of the long-press operation is further improved, an indication is provided for a user whether the long-press operation is finished, and the experience of the long-press operation of the user is improved.
In some possible embodiments, the progress prompt information includes a countdown animation identifier, where the countdown animation identifier prompts the progress of the long-press operation through the countdown animation, for example, as shown in fig. 5A, the countdown animation starts to count down from 5s, and the progress of the long-press operation can be obtained through the remaining duration of the countdown animation.
In some possible embodiments, the progress prompt information includes a prompt progress bar, where the prompt progress bar may be in a circular shape, may be in any shape such as a straight line shape, and is not limited herein, and as shown in fig. 5B, the progress of the long press operation may be prompted by the filling progress of the circular prompt progress bar.
In some possible embodiments, the progress prompt message includes a progress prompt file, where the progress prompt file may include a countdown number, and may also include text information such as "still a while", "immediately" and so on that identifies the progress of the long press operation.
Of course, in an embodiment of the present disclosure, when the progress prompt information is displayed, the prompt of the long-press operation progress may also be performed in combination with multiple types of prompt information, for example, as shown in fig. 5C, the prompt of the long-press operation progress may be performed together by using a circular prompt progress bar and long-press operation duration text information.
In summary, according to the operation processing method based on the virtual reality space in the embodiment of the disclosure, in response to a call request of a trigger function, a trigger direction indication model is rendered in the virtual reality space according to a control direction corresponding to a control device, wherein the trigger direction indication model is used for indicating a trigger direction corresponding to the control direction in the virtual reality space, the trigger direction corresponds to the control direction in real time, further, whether a target element located in a current trigger direction of the trigger direction indication model exists in the virtual reality space is detected, whether the target element meets a preset long-press trigger condition is identified in response to the existence of the target element, and progress prompt information of the long-press operation is displayed in the virtual reality space in response to the fact that the target element meets the preset long-press trigger condition, so that the progress of the long-press operation on the target element is prompted according to the progress prompt information. Therefore, the discovery cost of the long-press operation is reduced, the progress prompt of the long-press operation in the virtual reality space is realized, and the operation experience of the long-press operation is improved.
Based on the above embodiment, in order to further improve the intuitiveness of the long press operation, the long press operation is expected and prompted, and different display processes can be performed in combination with the specific trigger condition of the current trigger direction of the trigger direction indication model.
In one embodiment of the present disclosure, after detecting whether a target element located in a current trigger direction of a trigger direction indication model exists in a virtual reality space, a preset trigger position cue information is displayed on the target element in response to the existence of the target element, by which the target element is prompted to be in a selected state, and the like. The preset trigger position prompt information can be in a pattern form, a text form and the like.
In some possible embodiments, the intersection point position of the target element and the trigger direction indication model is determined, and preset trigger position prompt information is displayed at the intersection point position, for example, if the trigger direction indication model is a ray track model, the preset trigger position prompt information may be in a pattern form, as shown in fig. 6, the intersection point position of the target element a and the trigger direction indication model may be displayed as a "solid sphere" pattern, that is, a "solid sphere" pattern is displayed at the end point position of the ray track model, so as to indicate that the target element a is in a selected state.
In some possible embodiments, the target element may be directly highlighted or the like to indicate that the target element is in the selected state and to indicate that the target element is in the selected state.
In one embodiment of the present disclosure, after detecting whether there is a target element located in the current trigger direction of the trigger direction indication model in the virtual reality space, in response to the absence of the target element, transparency of the end position of the trigger direction indication model may be increased to indicate that the target element is not currently included.
For example, if the trigger direction indication model is a ray track model, and the preset trigger position indication information may be in a pattern form, as shown in fig. 7, transparency of the end position of the ray (the end of the ray is almost transparent in the drawing) may be improved, so as to indicate that the target element is not included currently.
As mentioned above, when there is a target element located in the trigger direction, the progress of the long press operation on the target element is prompted according to the progress prompt message.
In one embodiment of the present disclosure, in a case where the target element is located in a current trigger direction of the trigger direction indication model, in response to receiving a long press operation of the manipulation device, an operation duration of the long press operation is counted, where, for example, a duration of clicking on a related control on the manipulation device is counted as an operation duration of the long press operation, and the like.
In this embodiment, a trigger operation that a long press operation in the world is an operation time length longer than a preset time length is simulated and displayed, and progress information of progress prompt information is rendered according to the operation time length, for example, if the progress prompt information is a prompt progress bar, a filling progress of the prompt progress bar is rendered according to the operation time length, for example, if the progress prompt information is a countdown animation identifier, a countdown instant number is updated according to the operation time length, and the like.
Further, in response to the progress information of the progress prompt message reaching a preset progress information threshold, for example, the filling progress of the prompt progress bar reaches 100%, a long-press operation instruction of the target element is obtained, long-press operation processing is executed on the target element according to the long-press operation instruction, for example, an interface corresponding to the target element is rendered.
In one embodiment of the present disclosure, to further enhance the operation experience of the long press operation, whether the long press operation starts to be performed may also be indicated by a transformation of the display parameters of the progress prompt message. Wherein the display parameters include, but are not limited to, color, transparency, etc. of the progress prompt message. That is, after a long press operation of the manipulation device is received, the display parameter of the progress prompt message is adjusted to indicate that the long press operation is started. For example, before the long-press operation of the control device is received, the display transparency of the prompt information is higher, and after the long-press operation of the control device is received, the display transparency of the prompt information is adjusted to be a lower value so as to indicate to start to receive the long-press operation, and the operation experience of the interactive operation is improved.
In order to more fully describe the operation processing method based on the virtual reality space according to the embodiment of the present disclosure, a scenario as shown in fig. 5B is taken as an example, and the following description is given:
as shown in fig. 8, in response to a call request of a trigger function, a ray track model is rendered in a virtual reality space according to a control direction corresponding to a control device, wherein whether a target element located in a current trigger direction of a trigger direction indication model exists in the virtual reality space is detected, if the target element does not exist, the transparency of the tail end position of the ray track model is higher, so that the fact that the target element does not exist is indicated.
If the target element D exists and the target element D cannot be operated by long pressing, displaying a solid sphere mark at the tail end of the ray track model to indicate that the target element D is in a selected state, and if the target element D belongs to an element capable of performing long pressing operation, displaying a progress prompt bar at the intersection point position of the target element and the trigger direction indication model.
If the long-press operation instruction is not received at this time, the annular prompt progress bar is in a zero filling state, the displayed transparency is higher to indicate that the long-press operation instruction is not received yet, if the long-press operation instruction is received, the transparency of the annular prompt progress bar is reduced, the annular prompt progress bar is more obvious visually to indicate that the long-press operation instruction is received, the long-press operation of the control equipment is received, the operation duration of the long-press operation is counted, and the progress information of the progress prompt information is rendered according to the operation duration.
In summary, according to the operation processing method based on the virtual reality space in the embodiment of the disclosure, based on the display of the progress prompt information, the operation progress of the long-press operation is visually and intuitively guided for the operation expectation of the long-press operation, and the operation experience of the long-press operation is improved.
In order to achieve the above embodiments, the present disclosure further provides an operation processing device based on a virtual reality space.
Fig. 9 is a schematic structural diagram of an operation processing device based on a virtual reality space according to an embodiment of the disclosure, where the device may be implemented by software and/or hardware, and may be generally integrated in an electronic device to perform operation processing based on the virtual reality space. As shown in fig. 9, the apparatus includes: a rendering module 910, a detection module 920, an identification module 930, and an operation prompting module 940, wherein,
a rendering module 910, configured to respond to a call request of a trigger function, and render a trigger direction indication model in a virtual reality space according to a control direction corresponding to the control device, where the trigger direction indication model is configured to indicate a trigger direction corresponding to the control direction in the virtual reality space, and the trigger direction corresponds to the control direction in real time;
a detection module 920, configured to detect whether a target element located in a current trigger direction of the trigger direction indication model exists in the virtual reality space;
An identifying module 930, configured to identify, in response to the presence of the target element, whether the target element meets a preset long press trigger condition;
and the operation prompt module 940 is configured to display progress prompt information of the long-press operation in the virtual reality space in response to the target element meeting a preset long-press trigger condition, so as to prompt the progress of the long-press operation on the target element according to the progress prompt information.
The operation processing device based on the virtual reality space provided by the embodiment of the disclosure can execute the operation processing method based on the virtual reality space provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
To achieve the above embodiments, the present disclosure also proposes a computer program product including a computer program/instruction which, when executed by a processor, implements the virtual reality space based operation processing method in the above embodiments.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure.
Referring now in particular to fig. 10, a schematic diagram of an electronic device 1000 suitable for use in implementing embodiments of the present disclosure is shown. The electronic device 1000 in the embodiments of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 10 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 10, the electronic device 1000 may include a processor (e.g., a central processing unit, a graphics processor, etc.) 1001 that may perform various appropriate actions and processes according to programs stored in a Read Only Memory (ROM) 1002 or programs loaded from a memory 1008 into a Random Access Memory (RAM) 1003. In the RAM 1003, various programs and data necessary for the operation of the electronic apparatus 1000 are also stored. The processor 1001, the ROM 1002, and the RAM 1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
In general, the following devices may be connected to the I/O interface 1005: input devices 1006 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 1007 including, for example, a Liquid Crystal Display (LCD), speaker, vibrator, etc.; memory 1008 including, for example, magnetic tape, hard disk, etc.; and communication means 1009. The communication means 1009 may allow the electronic device 1000 to communicate wirelessly or by wire with other devices to exchange data. While fig. 10 shows an electronic device 1000 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 1009, or installed from the memory 1008, or installed from the ROM 1002. When executed by the processor 1001, the above-described functions defined in the virtual reality space-based operation processing method of the embodiment of the present disclosure are performed.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
and rendering a trigger direction indication model in a virtual reality space according to a control direction corresponding to the control equipment in response to a call request of a trigger function, wherein the trigger direction indication model is used for indicating a trigger direction corresponding to the control direction in the virtual reality space, the trigger direction corresponds to the control direction in real time, further, whether a target element positioned in the current trigger direction of the trigger direction indication model exists in the virtual reality space or not is detected, whether the target element meets a preset long-press trigger condition is identified in response to the existence of the target element, and progress prompt information of long-press operation is displayed in the virtual reality space in response to the fact that the target element meets the preset long-press trigger condition so as to prompt the progress of the long-press operation on the target element according to the progress prompt information. Therefore, the discovery cost of the long-press operation is reduced, the progress prompt of the long-press operation in the virtual reality space is realized, and the operation experience of the long-press operation is improved.
The electronic device may write computer program code for performing the operations of the present disclosure in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
Claims (13)
1. An operation processing method based on virtual reality space is characterized by comprising the following steps:
responding to a call request of a trigger function, and rendering a trigger direction indication model in a virtual reality space according to a control direction corresponding to control equipment, wherein the trigger direction indication model is used for indicating a trigger direction corresponding to the control direction in the virtual reality space, and the trigger direction corresponds to the control direction in real time;
detecting whether a target element positioned in the current trigger direction of the trigger direction indication model exists in the virtual reality space;
in response to the existence of the target element, identifying whether the target element meets a preset long-press trigger condition;
and responding to the target element meeting a preset long-press triggering condition, and displaying progress prompt information of long-press operation in the virtual reality space so as to prompt the progress of the long-press operation on the target element according to the progress prompt information.
2. The method of claim 1, wherein the triggering direction indication model comprises:
and the starting point of the ray track model is the corresponding space position of the control equipment in the virtual reality space.
3. The method of claim 1, wherein rendering the trigger direction indication model in virtual reality space according to the steering direction corresponding to the steering device comprises:
receiving an operation direction adjustment instruction sent by the operation device;
determining a control direction corresponding to the control equipment according to the control direction adjustment instruction;
determining a trigger direction corresponding to the trigger direction indication model according to the control direction;
and acquiring the trigger direction indication model, and rendering the trigger direction indication model in the virtual reality space according to the trigger direction.
4. The method of claim 1, further comprising, after said identifying whether the target element meets a preset long press trigger condition:
and responding to the target element not meeting the long-press trigger condition, and displaying preset trigger position prompt information on the target element.
5. The method of claim 4, wherein displaying a preset trigger position indication on the target element comprises:
determining the intersection point position of the target element and the trigger direction indication model;
and displaying a preset trigger position prompt message at the intersection point position.
6. The method of claim 1, wherein the identifying whether the target element meets a preset long press trigger condition comprises:
acquiring a trigger operation type corresponding to the target element;
and identifying whether the trigger operation type comprises a long-press trigger operation type or not, wherein if the trigger operation type comprises the long-press trigger operation type, the preset long-press trigger condition is determined to be met.
7. The method of claim 1, wherein the progress prompt message comprises:
at least one of countdown animation identification, a prompt progress bar and a progress prompt document.
8. The method of any one of claims 1-7, wherein prompting the progress of the long press operation on the target element according to the progress prompt message comprises:
under the condition that the target element is positioned in the current trigger direction of the trigger direction indication model, responding to the received long-press operation of the control equipment, and counting the operation duration of the long-press operation;
And rendering the progress information of the progress prompt message according to the operation duration.
9. The method as recited in claim 8, further comprising:
responding to the progress information of the progress prompt message reaching a preset progress information threshold value, and acquiring a long-press operation instruction of the target element;
and executing long-press operation processing on the target element according to the long-press operation instruction.
10. The method of claim 8, further comprising, after the responding to receiving the long press operation of the manipulation device:
and adjusting the display parameters of the progress prompt message to indicate to start receiving the long press operation.
11. An operation processing apparatus based on a virtual reality space, comprising:
the rendering module is used for responding to a call request of a trigger function, and rendering a trigger direction indication model in a virtual reality space according to a control direction corresponding to control equipment, wherein the trigger direction indication model is used for indicating a trigger direction corresponding to the control direction in the virtual reality space, and the trigger direction corresponds to the control direction in real time;
the detection module is used for detecting whether a target element positioned in the current trigger direction of the trigger direction indication model exists in the virtual reality space;
The identification module is used for identifying whether the target element meets a preset long-press triggering condition or not in response to the existence of the target element;
and the operation prompt module is used for responding to the condition that the target element meets the preset long-press triggering condition, displaying the progress prompt information of the long-press operation in the virtual reality space, so as to prompt the progress of the long-press operation on the target element according to the progress prompt information.
12. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the virtual reality space based operation processing method according to any one of claims 1-10.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the virtual reality space-based operation processing method according to any one of the preceding claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210963933.5A CN117631810A (en) | 2022-08-11 | 2022-08-11 | Operation processing method, device, equipment and medium based on virtual reality space |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210963933.5A CN117631810A (en) | 2022-08-11 | 2022-08-11 | Operation processing method, device, equipment and medium based on virtual reality space |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117631810A true CN117631810A (en) | 2024-03-01 |
Family
ID=90030860
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210963933.5A Pending CN117631810A (en) | 2022-08-11 | 2022-08-11 | Operation processing method, device, equipment and medium based on virtual reality space |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117631810A (en) |
-
2022
- 2022-08-11 CN CN202210963933.5A patent/CN117631810A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023138559A1 (en) | Virtual reality interaction method and apparatus, and device and storage medium | |
US20230405475A1 (en) | Shooting method, apparatus, device and medium based on virtual reality space | |
CN108874141B (en) | Somatosensory browsing method and device | |
KR20200066962A (en) | Electronic device and method for providing content based on the motion of the user | |
CN117631810A (en) | Operation processing method, device, equipment and medium based on virtual reality space | |
US20240028130A1 (en) | Object movement control method, apparatus, and device | |
CN117641025A (en) | Model display method, device, equipment and medium based on virtual reality space | |
US20240078734A1 (en) | Information interaction method and apparatus, electronic device and storage medium | |
CN117632391A (en) | Application control method, device, equipment and medium based on virtual reality space | |
CN117572994A (en) | Virtual object display processing method, device, equipment and medium | |
CN117376591A (en) | Scene switching processing method, device, equipment and medium based on virtual reality | |
CN117632063A (en) | Display processing method, device, equipment and medium based on virtual reality space | |
CN117636528A (en) | Voting processing method, device, equipment and medium based on virtual reality space | |
CN118244879A (en) | Object movement control method, device, equipment and medium | |
CN117641026A (en) | Model display method, device, equipment and medium based on virtual reality space | |
CN117640919A (en) | Picture display method, device, equipment and medium based on virtual reality space | |
CN117765207A (en) | Virtual interface display method, device, equipment and medium | |
CN117075770A (en) | Interaction control method and device based on augmented reality, electronic equipment and storage medium | |
CN117991889A (en) | Information interaction method, device, electronic equipment and storage medium | |
CN117742555A (en) | Control interaction method, device, equipment and medium | |
CN117270732A (en) | Control interaction method and device, electronic equipment and storage medium | |
CN117991967A (en) | Virtual keyboard interaction method, device, equipment, storage medium and program product | |
CN118349105A (en) | Virtual object presentation method, device, equipment and medium | |
CN117762280A (en) | Man-machine interaction method, device and equipment | |
CN115981544A (en) | Interaction method and device based on augmented reality, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |