Interaction method and apparatus in virtual environment, and device and storage medium
By detecting user operations and rendering the skin of virtual objects in the virtual environment, it solves the problem of lack of personalization in the visual presentation of virtual objects in the virtual environment, and achieves user personalized customization and improvement of interactive experience.
Patent Information
- Application Number
- PCT/CN2024/077813
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-23
- Filing Date
- 2024-02-20
- Publication Date
- 2024-08-29
AI Technical Summary
In a virtual environment based on 3D technology, the visual presentation of traditional virtual objects is limited to the default configuration of the system, lacking a personalized customization mechanism and unable to meet the personalized needs of users.
By displaying interactable elements in association with virtual objects in the virtual environment, detecting the user's predetermined operations on these elements, and using the associated image rendering data to render the skin of the virtual object, thereby allowing the user to select and switch the skin of the virtual object according to personal preferences. skin, changing its visual effect.
It enhances the fun and user experience of interaction, meets the personalized needs of users, makes the virtual image present different visual effects, and improves the intuitiveness and convenience of interaction.
Smart Images

Figure CN2024077813_29082024_PF_FP_ABST
Abstract
Description
Interaction method, device, equipment and storage medium in virtual environment
[0001] This application claims priority to the Chinese invention patent application entitled “Interaction method, device, equipment and storage medium in a virtual environment” and application number 202310193539.2, filed on February 23, 2023. The entire contents of that application are incorporated herein by reference. Technical Field
[0002] Example embodiments of the present disclosure relate generally to the field of human-computer interaction, and more particularly, to methods, apparatuses, devices, and computer-readable storage media for interaction in a virtual environment. Background Art
[0003] In applications of virtual environments based on 3D technology, a vivid virtual environment can be presented to the user via a user device. Within this virtual environment, at least one virtual object and, optionally, one or more real-world physical objects can be displayed to the user. In some implementations, a virtual control component can be displayed to the user in the virtual environment, allowing the user to interact with other virtual objects within the virtual environment through the virtual control component. This creates a more intuitive human-computer interaction experience. In some implementations, devices / service providers typically render virtual objects using the virtual control component as default 3D models. However, this default 3D model has a monotonous visual effect and cannot meet the user's personalized needs.
[0004] Summary of the Invention
[0005] In a first aspect of the present disclosure, a method for interacting in a virtual environment is provided. The method comprises: displaying, via a user device, at least one interactable element in association with a virtual object in the virtual environment, the interactable element being associated with image rendering data for rendering a corresponding skin of the virtual object; detecting a predetermined user operation on a specific interactable element among the at least one interactable element; and, in response to detecting a first predetermined operation on the specific interactable element, rendering the corresponding skin of the virtual object using the image rendering data associated with the specific interactable element.
[0006] In a second aspect of the present disclosure, an interactive device in a virtual environment is provided. The device includes: a display module configured to display, via a user device, at least one interactive element in the virtual environment in association with a virtual object, the interactive element being associated with image rendering data for rendering a corresponding skin of the virtual object; a detection module configured to detect a user's predetermined operation on a specific interactive element among the at least one interactive element; and a rendering module configured to, in response to detecting a first predetermined operation on the specific interactive element, render the corresponding skin of the virtual object using the image rendering data associated with the specific interactive element.
[0007] In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When executed by the at least one processing unit, the instructions cause the electronic device to perform the method according to the first aspect of the present disclosure.
[0008] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to perform the method according to the first aspect of the present disclosure.
[0009] It should be understood that the contents described in the summary of the present invention are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other features, advantages and aspects of the various embodiments of the present disclosure will become more apparent hereinafter with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0011] FIG1 is a schematic diagram illustrating an example environment in which various embodiments of the present disclosure can be implemented;
[0012] FIG2A shows a flowchart of an example interaction process in a virtual environment according to some embodiments of the present disclosure;
[0013] FIG2B shows a flowchart of an example process of detecting a first predetermined operation according to some embodiments of the present disclosure;
[0014] FIG3 shows a block diagram of an example interactive system in a virtual environment according to some embodiments of the present disclosure;
[0015] FIG4 illustrates an example virtual environment according to some embodiments of the present disclosure;
[0016] FIG5 shows a block diagram of an apparatus for augmented reality according to some embodiments of the present disclosure; and
[0017] FIG6 shows a block diagram of a device capable of implementing various embodiments of the present disclosure. DETAILED DESCRIPTION
[0018] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Instead, these embodiments 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 illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0019] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, i.e., "including but not limited to." The term "based on" should be understood as "based at least in part on." The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment." The term "some embodiments" should be understood as "at least some embodiments." Other explicit and implicit definitions may be included below.
[0020] The term "in response to" indicates that a corresponding event occurs or a condition is satisfied. It will be understood that the timing of executing a subsequent action executed in response to the event or condition is not necessarily strongly correlated with the time when the event occurs or the condition is satisfied. In some cases, the subsequent action may be executed immediately when the event occurs or the condition is satisfied; in other cases, the subsequent action may be executed some time after the event occurs or the condition is satisfied.
[0021] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0022] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0023] For example, in response to receiving a user's active request, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information, so that the user can independently choose whether to provide personal information to the electronic device, application, server or storage medium and other software or hardware that performs the operation of the technical solution of the present disclosure based on the prompt message.
[0024] As an optional but non-limiting implementation, in response to receiving a user's active request, a prompt message may be sent to the user, for example, in the form of a pop-up window, in which the prompt message may be presented in text form. Furthermore, the pop-up window may also include a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0025] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0026] As briefly discussed above, in applications of virtual environments based on 3D technology, a vivid virtual environment can be presented to a user via a user device. In some implementations, virtual manipulation components can be displayed to the user within the virtual environment, allowing the user to interact with other virtual objects within the virtual environment through the virtual manipulation components, thereby achieving an immersive interactive experience.
[0027] In some implementations, devices and service providers often render virtual objects using default 3D models. However, these default 3D models fail to meet the personalized needs of users. In other words, in traditional solutions, the visual presentation of virtual objects is limited to the system's default configuration and lacks personalized customization mechanisms.
[0028] In view of this, an interactive solution in a virtual environment is needed, which allows users to customize personalized three-dimensional models for virtual images according to their personal preferences.
[0029] Embodiments of the present disclosure provide an interactive scheme in a virtual environment. According to the method described herein, a control module of a user device displays at least one interactable element in association with a virtual object in the virtual environment via the user device, wherein the interactable element is associated with image rendering data for rendering a corresponding skin of the virtual object. The scheme further includes detecting a predetermined user action on a specific interactable element among the at least one interactable element, and in response to detecting the predetermined action on the specific interactable element, rendering the corresponding skin of the virtual object using the image rendering data associated with the specific interactable element.
[0030] In this way, users can choose the skin of the virtual object according to their personal preferences, so that the virtual image presents different visual effects, which enhances the fun of the interaction and improves the user's interactive experience.
[0031] As used herein, the term "skin" refers to an element that can be applied to a virtual object in a virtual environment. A virtual element can switch between different skins to present different visual effects, where the change in visual effect involves at least one of the following: color, brightness, style, dynamic effects, etc.
[0032] In some of the following embodiments, virtual manipulation components will be discussed as examples of virtual objects. However, it should be understood that these examples of virtual objects should not be construed as limiting the present disclosure. In fact, the present disclosure is applicable to any virtual object in a virtual environment that supports changing skins to present different visual effects. The present disclosure is not limited in this respect.
[0033] Furthermore, in some of the following embodiments, a handle will be discussed as an example of a manipulation component. However, it should be understood that the above-mentioned example manipulation components should not be construed as limiting the present disclosure. In fact, the manipulation component can be implemented in any form, such as a handle or a keyboard. In other words, the present disclosure is not limited in terms of the specific implementation form of the manipulation component.
[0034] In some of the embodiments below, a virtual reality VR environment will be discussed as an example of a virtual environment. However, it should be understood that the above example virtual environment should not be understood as a limitation of the present disclosure. In fact, the solution of the present disclosure is applicable to any virtual environment, including but not limited to VR environment, augmented reality AR environment, extended reality XR environment, and any other virtual environment based on a three-dimensional model. When the virtual environment is an AR / XR environment, the AR / XR device can superimpose virtual objects with images in the real world and present them in the AR / XR environment. In this way, the image that appears in the user's field of view includes both physical objects in the real world and virtual objects, so that the user can see virtual objects and physical objects at the same time. In this case, the user can change the skin of the virtual image through the interactive process discussed in the present disclosure.
[0035] In some of the following embodiments, a virtual mall is used as an example application scenario for users to perform interactive processes. However, it should be understood that the above example application scenario should not be construed as limiting the present disclosure. In fact, interactive processes, such as selecting interactive elements or switching skins, can be implemented at the user's request in any appropriate application scenario. The present disclosure is not limited in this respect.
[0036] Various exemplary embodiments of the present disclosure will be described below with reference to the accompanying drawings.
[0037] Sample Environment
[0038] FIG1 illustrates a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. Example environment 100 includes a user 110 and a user device 120. In this example environment 100, user device 120 has an application installed and running that supports a virtual environment (hereinafter referred to as a control module), thereby enabling a virtual environment 130 to be presented to user 110 at or by user device 120.
[0039] In some embodiments, virtual environment 130 is a VR environment. As shown in FIG1 , user device 120 may be a head-mounted VR device. When user 110 wears user device 120, virtual environment 130 may be displayed to user 110. The virtual environment may include multiple virtual objects.
[0040] Additionally, user 110 can input commands in virtual environment 130 via a manipulation component. Specifically, a virtual manipulation component, such as a virtual handle, can be presented in virtual environment 130. In some embodiments, the virtual manipulation component can correspond to a physical manipulation component in the real world (physical manipulation component 112 as shown in FIG1 ). In this case, the control module can detect a first manipulation command input by user 110 via the physical manipulation component and, based on the association between the physical manipulation component and the virtual manipulation component, map the first manipulation command in the real world to a second manipulation command in the virtual environment. In this manner, human-computer interaction in the virtual environment is achieved.
[0041] In some embodiments, the virtual environment is an AR / XR environment. In this particular virtual environment, the user device 120 can be any type of AR / XR device, including but not limited to a mobile terminal, a fixed terminal, or a portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a gaming device, a wearable device, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, or any combination thereof, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the user device 120 can also support any type of interface for the user (such as a "wearable" circuit, etc.).
[0042] 1 , the environment 100 may optionally include a remote device 140, and the user device 120 may communicate with the remote device 140. In some embodiments, the remote device 140 may be a cloud server.
[0043] It should be understood that the remote device 140 may include at least one of one or more servers, cloud computing platforms, and virtualization centers. It should also be understood that in some embodiments, the remote device 140 is a background service that supports three-dimensional virtual environment applications. In some embodiments, a specific process can be implemented collaboratively by the remote device 140 and the user device 120. For example, in some embodiments, the remote device 140 undertakes the primary computing work and the computing device 120 undertakes the secondary computing work. Alternatively, in other embodiments, the remote device 140 undertakes the secondary computing work and the user device 120 undertakes the primary computing work. Alternatively, in some embodiments, a specific process can be implemented independently by the remote device 140 or the user device 120.
[0044] In short, although in some embodiments, some operations are described as being implemented by the user device 120, these operations may be at least partially implemented by the remote device 140. Correspondingly, although some operations are described as being implemented by the remote device 140, these operations may be at least partially implemented by the user device 120. For the sake of brevity only, the same or similar descriptions will be omitted.
[0045] It should be understood that the structure and functionality of environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.
[0046] Example Process
[0047] 2 shows a flow chart of a method 200 for interaction in a virtual environment according to some embodiments of the present disclosure. In some embodiments, the method 200 may be implemented at the user device 120 shown in FIG1 , for example, by a control module of the user device 120 .
[0048] According to an embodiment of the present disclosure, the control module may display at least one virtual object in the virtual environment 130. According to an exemplary embodiment described below, the control module may implement personalized display of the avatar by replacing the skin of the avatar.
[0049] In box 210, the control module of the user device 120 displays a virtual object, at least one interactive element associated with the virtual object, and a virtual manipulation component in the virtual environment 130 via the user device 120, wherein the interactive element is associated with image rendering data of the corresponding skin for rendering the virtual object and the virtual manipulation component corresponds to a physical manipulation component in the real world.
[0050] For ease of understanding, refer to FIG3 and FIG4 , wherein FIG3 shows an example interactive system block diagram 300 in a virtual environment according to some embodiments of the present disclosure, and FIG4 shows an example virtual environment 400 according to some embodiments of the present disclosure.
[0051] In the specific embodiment of FIG3 , the interactive elements 320-1 to 320-M (where M is a positive integer greater than or equal to 1) correspond to skins A to M applicable to the virtual object, respectively. In this case, the control module displays the interactive elements 320-1 to 320-4 in the virtual environment 130. In the specific embodiment of FIG3 , the virtual object may be a virtual manipulation component, and skins A to M are skins applicable to the virtual manipulation component.
[0052] In the specific embodiment of Figure 4 , the virtual object is a virtual manipulation component, such as the virtual handle 410 shown in Figure 4 . At this time, the virtual environment 400 may display interactive elements 420 - 1 to 420 -N (where M is a positive integer greater than or equal to 1).
[0053] In this way, the user 110 can be made aware of the candidate skin information of the virtual object intuitively and clearly.
[0054] In some embodiments, user device 120 may obtain information about interactive elements via remote device 140. For example, another user or service provider may design a skin for an avatar and upload image rendering data used to render the skin to remote device 140. User device 120 may establish a connection with remote service 140 to obtain information about candidate skins and display the information in the form of interactive elements in virtual environment 400.
[0055] In box 220, the control module detects a first predetermined operation of a user on a specific interactive element among at least one interactive element. In box 230, in response to detecting the first predetermined operation for the specific interactive element, the control module uses the image rendering data associated with the specific interactive element to render the corresponding skin of the virtual object. In the specific embodiment of Figure 4, the virtual object is a virtual handle 410. When the first predetermined operation for the interactive element 420-2 is detected (for example, the interactive element 420-2 is selected), the skin of the virtual handle 410 will be rendered using the image rendering data associated with the interactive element 420-2, that is, the virtual handle 410 will be rendered as a three-dimensional model shown by the interactive element 420-2.
[0056] It should be understood that the downloading of the image rendering data associated with the interactive element 420 - 2 may be pre-downloaded or dynamically triggered in response to the first predetermined operation. The present disclosure is not limited in terms of the timing of downloading the image rendering data.
[0057] In this way, virtual objects in a virtual environment are no longer limited to a single rendering model and rendering effect. User 110 can select and switch between multiple candidate skins through a first predetermined operation to choose a personalized skin for their avatar. This intuitive and convenient interaction process not only meets the user's personalized needs but also enhances the user's interactive experience.
[0058] In a specific embodiment where the virtual object is a virtual handle, since there are usually two virtual handles, when the image rendering data associated with the interactive element 420 - 2 is used to render the virtual handles, the two virtual handles will be rendered simultaneously.
[0059] Next, an example process 220 of the control module detecting a first predetermined operation of a specific interactable element will be further described with reference to FIG. 2B .
[0060] At block 222, the control module may display virtual control components in the virtual environment 130, wherein the virtual control components may correspond to physical control components in the real world. For ease of understanding, reference is made to FIG1 and FIG4 . In the specific embodiment of FIG4 , a virtual control component, shown as a virtual handle 410, is displayed in the virtual environment 400. Further, the virtual control components may correspond to the physical control components 112 in FIG1 .
[0061] In some embodiments, user device 120 can also be operated in gesture mode. In gesture mode, user 110 can use various gestures to perform various predetermined operations. In this case, the physical manipulation component can be a part of the user's body (such as the user's 110 hand), and the virtual manipulation component can be displayed as a hand model. In this case, multiple interactive elements can correspond to different hand models.
[0062] At block 224, the control module detects a first operation instruction input by the user via the physical manipulation component. At block 226, the control module maps the first operation instruction in the real world to a second operation instruction in the virtual environment 130 based on the association between the physical manipulation component and the virtual manipulation component, where the second operation instruction is used to select a specific interactive element. Next, at block 228, the control module may detect a first predetermined operation of the user on the specific interactive element based on the second operation instruction.
[0063] In some embodiments of the present disclosure, the user device 120 may control the virtual manipulation components of the user device 120 to operate in different operating modes according to the distance of the virtual object to be interacted with (such as an interactive element) from the user 110 in the virtual environment 130.
[0064] Specifically, the user device 120 can present the virtual object at a specific spatial location in the virtual environment 130. The user 110 can observe the virtual object through the user device 120 (such as a head-mounted VR device) and visually and intuitively perceive the spatial distance between the user 110 and the virtual object in the virtual environment 130. In other words, by presenting different virtual objects at different spatial locations in the virtual environment 130, the user device 120 can present a spatially well-organized virtual environment 130 to the user 110.
[0065] According to some embodiments of the present disclosure, the spatial distance can be determined by the user device 120. Furthermore, the user device 120 can control the operation of the virtual manipulation component to switch between different operation modes based on the spatial distance between the virtual object and the user 110 in the virtual environment 130. In this way, the manipulation experience of the user 110 in the virtual environment 130 will be more realistic.
[0066] In some embodiments, the spatial distance refers to the distance in virtual space between the virtual object and the user 110 / a part of the user 110 (such as an eye) / the user device 120 / a part of the user device 120 (such as a VR imaging component).
[0067] In some embodiments, if the distance between the virtual object to be interacted with and the user 110 in the virtual environment 130 is less than (or less than or equal to) a threshold distance, the virtual manipulation component is operated in a close-up mode. In this case, the user 110 can directly contact / touch / control the virtual object through the virtual manipulation component.
[0068] In some embodiments, the control module displays a virtual ray emitted by the virtual manipulation component in the virtual environment 130 , wherein the direction of the virtual ray is controlled based on the second operation instruction.
[0069] Additionally, the display of the virtual ray is triggered based on certain conditions. In some embodiments, if the distance between the virtual object to be interacted with and the user 110 in the virtual environment 130 is greater than a threshold distance, the virtual manipulation component is operated in a perspective mode. When the virtual manipulation component is operated in the perspective mode, the control module displays a virtual ray emitted by the virtual manipulation component in the virtual environment 130, where the direction of the virtual ray is controlled based on the second manipulation instruction.
[0070] Furthermore, in some embodiments, the control module detects whether the virtual ray points to a specific interactive element, and if it is detected that the virtual ray points to the specific interactive element, determines that the specific interactive element is selected.
[0071] Virtual rays can extend the range of control that user 110 can perform within the virtual environment. Furthermore, virtual rays allow user 110 to more accurately select desired interactive elements. Most importantly, virtual rays make interactions within the virtual environment more realistic and engaging, enhancing the user experience.
[0072] 4 , the control module may display a virtual ray emitted by the virtual handle 410 and control the direction of the virtual ray based on the second operation instruction to point to a different interactive element 420 . In this way, selection of a different interactive element 420 is achieved.
[0073] In some embodiments, the virtual ray is a part of the virtual operating component. When the rendering mode / data of the virtual operating component changes, the rendering mode / data of the virtual ray also changes accordingly.
[0074] Next, how to detect the first predetermined operation on a specific interactive element will be described in detail with reference to FIG. 3 .
[0075] In the specific implementation of Figure 3, multiple three-dimensional nodes and multiple components with specific functions are included. In addition, the interactive process discussed in this disclosure can be driven and controlled by corresponding system logic.
[0076] As shown in Figure 3, in some embodiments, each interactive element 320 can have a rendering component, which defines the rendering style of the skin to be displayed. The rendering component can encapsulate at least one of the following data: rendering data, a rendering kit, and rendering assets. In this way, each interactive element 320 / skin can be managed independently, reducing system maintenance costs.
[0077] Alternatively or additionally, in some embodiments, each interactive element 320 may also have a collision component, wherein the collision component is used to detect whether the interactive element is selected. In a specific embodiment, the control module can determine the spatial position of each interactive element 320 in the virtual environment 130, and further determine the collision range of each interactive element based on the spatial position. When a collision signal is detected within the collision range, the interactive element is considered to be selected. For example, the user 110 can control the virtual ray of the virtual manipulation device to point to the predetermined collision range, and further determine the selection of the interactive element by pressing an OK button or other operations.
[0078] Alternatively or additionally, in some embodiments, each interactive element 320 may further include a logic component for implementing the processing logic of the interactive element 320. In some embodiments, when a virtual ray is directed at an interactive element 320, the logic component may display multimedia information associated with the interactive element 320, such as in an animation. Furthermore, when the interactive element 320 is selected, the logic component may also assist in triggering the switching of the corresponding skin.
[0079] The specific embodiment of Figure 3 also includes a user device 120, which can be used as a virtual manipulation component. In some embodiments, the user device 120 can be implemented as a global universal interactive manipulation node. Further, the user device 120 can implement human-computer interaction in a virtual environment based on a three-dimensional model.
[0080] In some embodiments, the user device 120 may include a tracking component that can track the position and posture of the inertial measurement unit (IMU) of the physical control component in real time so that the virtual control component in the virtual environment 130 can match the physical control component in the real world.
[0081] Alternatively or additionally, the user device 120 may further include a current manipulation component model node. As shown in FIG3 , the current manipulation component model node may include a rendering component that defines the rendering style of the current skin of the virtual manipulation node. At least one of the following data may be encapsulated in the rendering component: rendering data, a rendering kit, and rendering materials.
[0082] Alternatively or additionally, in some embodiments, user device 120 may further include a current virtual ray node. The current virtual ray node may include a rendering component configured to draw a rendering style for the virtual ray of the current collision interaction. Alternatively or additionally, the current virtual ray node may further include a ray interaction component configured to generate virtual ray data based on tracking data and collaborate with the collision component of the interactive element 320 to implement collision detection. Alternatively or additionally, the current virtual ray node may further include a logic component configured to execute processing logic such as updating the displayed length of the virtual ray based on the collision result.
[0083] In the specific embodiment of Figure 3, the overall process of the interaction process with the interactive element 320 can be implemented by the control module. Specifically, the control module drives the ray interaction component of the user device 120 to perform collision detection with each collision component of the interactive element 320. If a first predetermined operation of the user 110 on a specific interactive element 320 is detected, the rendering update of the virtual manipulation component and / or the virtual ray is triggered. For example, if a collision is detected between the collision component of the interactive element 320-1 and the user 110 clicks the confirmation button on the physical manipulation component, the logic component of the interactive element 320-1 will notify the control module to trigger the control module to use the image rendering data associated with the interactive element 320-1 to render the corresponding skin of the virtual manipulation component and / or the virtual ray.
[0084] In some embodiments, the control module caches the rendering component of the current manipulated component model node and the rendering component of the current virtual ray node, and replaces the rendering component of the current manipulated component model node and / or the rendering component of the current virtual ray node with the rendering component of the interactive element 320-1.
[0085] According to some embodiments of the present disclosure, at least one interactive element may be displayed only when the virtual environment switches to a specific application scenario, in which the user 110 can select his or her favorite skin for the virtual image through a first predetermined operation. Further, in this specific application scenario, the user 110 can associate a specific interactive element with the user 110 through a second predetermined operation. Next, when the virtual environment switches to another application scenario, if the specific interactive element has been associated with the user 110, the image rendering data of the specific interactive element continues to be used to render the corresponding skin of the virtual object, and if the specific interactive element has not yet been associated with the user, the image rendering data of the specific interactive element is stopped from being used to render the corresponding skin of the virtual object.
[0086] As a specific embodiment, the control module switches the virtual environment to the first application scene in response to receiving a first scene switching instruction from the user, and if the control module detects a second predetermined operation for a specific interactive element in the first application scene, the specific interactive element is associated with the user 110.
[0087] Furthermore, in some embodiments, the control module receives a second scene switching instruction from the user and switches the virtual environment from the first application scene to the second application scene. At this time, if the specific interactive element is already associated with the user, the control module continues to use the image rendering data of the specific interactive element to render the corresponding skin of the virtual object; otherwise, the control module stops using the image rendering data of the specific interactive element to render the corresponding skin of the virtual object.
[0088] Furthermore, the control module can record whether a second predetermined operation is detected using a flag. In this case, after switching to the second scene, if the control module determines that the flag is marked, the image rendering data of the specific interactive element can continue to be used to render the corresponding skin of the virtual object. Otherwise, the control module stops using the image rendering data of the specific interactive element to render the corresponding skin of the virtual object. Optionally, the flag can be displayed superimposed on the interactive element. In this way, the image rendering data of the interactive element can be more effectively maintained.
[0089] In a specific embodiment in which a virtual mall is the first application scenario and a virtual object is a virtual manipulation component, the user can switch to the virtual mall, especially the skin store in the virtual mall, through a first scene switching instruction. In the virtual mall scenario, multiple interactive elements can be presented, and each interactive element corresponds to a corresponding skin of the virtual manipulation component, as shown in Figure 4. In this first application scenario, the user 110 can switch between multiple interactive elements through a first predetermined operation. With different selections of the user 110, the virtual handle 410 is rendered as a different three-dimensional model, and each three-dimensional model corresponds to a corresponding interactive element 420.
[0090] Furthermore, if a second predetermined operation on a specific interactive element is detected in the first application scenario, such as user 110 purchasing the specific skin, the specific interactive element can be associated with user 110, that is, user 110's ownership of the skin is determined.
[0091] Next, after entering the second application scenario, if the second predetermined operation has been detected / the association between the specific interactive element and the user 110 has been established / the mark has been detected to be marked / it is determined that the user 110 has purchased the skin, then the skin can continue to be used after the user 110 leaves the virtual mall. Conversely, if the second predetermined operation has not been detected / the association between the specific interactive element and the user 110 has not been established / the mark has not been detected to be marked / it is determined that the user 110 has not purchased the skin, then after the user 110 leaves the virtual mall, the visual effect of the virtual handle 410 will be reverted to the previous three-dimensional model.
[0092] With further reference to the specific embodiment of FIG. 3 , if it is determined that user 110 has not purchased the skin corresponding to interactive element 320-1, then upon entering the second application scenario, the control module will use the rendering component previously cached at the current manipulation component model node and the rendering component of the current virtual ray node to render the virtual manipulation component and virtual ray. If it is determined that user 110 has purchased the skin corresponding to interactive element 320, then upon entering the second application scenario, the control module may continue to use the rendering component of interactive element 320 to render the virtual manipulation component.
[0093] Furthermore, in some embodiments, in response to a specific interactive element being selected, the control module hides or displays the specific interactive element in the virtual environment 130 or changes the display mode of the specific interactive element.
[0094] In the specific embodiment of FIG4 , if the interactive element 420-2 is selected, the virtual handle 410 is rendered as a three-dimensional model corresponding to the interactive element 420-2, and the interactive element 420-2 is hidden or displayed in a different manner, such as by changing its color, shape, and / or transparency, or by displaying the interactive element 420-2 superimposed with other icons, etc. In this way, the user 110 can more clearly understand the information of the candidate skins.
[0095] Through the above embodiments, users can select the skin of virtual objects according to their personal preferences, so that the virtual images present different visual effects, which not only enhances the fun of interaction but also improves the user's interactive experience.
[0096] Example devices and equipment
[0097] FIG5 shows a block diagram of an apparatus 500 for interacting in a virtual environment. As shown in the figure, the apparatus 500 includes: a display module 510 configured to display a virtual object, at least one interactable element associated with the virtual object, and a virtual manipulation component in a virtual environment via a user device, wherein the interactable element is associated with image rendering data for rendering a corresponding skin of the virtual object, and the virtual manipulation component corresponds to a physical manipulation component in the real world; a detection module 520 configured to detect a predetermined operation input by a user via the virtual manipulation component for a specific interactable element among the at least one interactable element; and a rendering module 530 configured to render the corresponding skin of the virtual object using the image rendering data associated with the specific interactable element in response to detecting a first predetermined operation for the specific interactable element.
[0098] In some embodiments, the detection module 520 is further configured to: detect a first operation instruction input by the user via the physical operating component; map the first operation instruction in the real world to a second operation instruction in the virtual environment based on the association relationship between the physical operating component and the virtual operating component, and the second operation instruction is used to select the specific interactive element; and detect the first predetermined operation of the user on the specific interactive element based on the second operation instruction.
[0099] In some embodiments, the apparatus 500 further includes a virtual ray module (not shown) configured to display a virtual ray emitted by the virtual manipulation component in the virtual environment; and control the direction of the virtual ray based on the second operation instruction.
[0100] In some embodiments, the virtual ray module is further configured to display the virtual ray in response to a distance between the specific interactable element and the user in the virtual environment being greater than a threshold distance.
[0101] In some embodiments, the detection module 520 is further configured to: detect whether the virtual ray points to the specific interactive element; and wherein the interaction method further includes: in response to detecting that the virtual ray points to the specific interactive element, determining that the specific interactive element is selected.
[0102] In some embodiments, the physical manipulation component is one of the following: a physical manipulation component of the user device, or a part of the user's body.
[0103] In some embodiments, the device 500 also includes an association detection module (not shown), which is configured to switch the virtual environment to a first application scene in response to receiving a first scene switching instruction from the user; and to associate the specific interactive element with the user in response to detecting a second predetermined operation for the specific interactive element in the first application scene.
[0104] In some embodiments, the device 500 also includes an update display module (not shown), which is configured to: switch the virtual environment from the first application scene to the second application scene in response to receiving a second scene switching instruction from the user; continue to use the image rendering data of the specific interactive element to render the corresponding skin of the virtual object when the specific interactive element is already associated with the user; and stop using the image rendering data of the specific interactive element to render the corresponding skin of the virtual object when the specific interactive element is not yet associated with the user.
[0105] In some embodiments, the device 500 further includes a hiding display module (not shown), which is configured to: in response to the selection of the specific interactive element, hide and display the specific interactive element or change the display mode of the specific interactive element in the virtual environment.
[0106] In some embodiments, the user device is a head-mounted virtual reality (VR) device, and the virtual object is a virtual manipulation component.
[0107] The units included in the device 500 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units in the device 500 can be implemented at least in part by one or more hardware logic components. By way of example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0108] [Corrected 23.04.2024 in accordance with Rule 91] FIG6 illustrates a block diagram of a computing device 600 in which one or more embodiments of the present disclosure may be implemented. It should be understood that the computing device 600 shown in FIG6 is merely exemplary and should not be construed as limiting the functionality or scope of the embodiments described herein. The computing device 600 shown in FIG6 may be used to implement the user device 110 of FIG1 .
[0109] As shown in FIG6 , computing device 600 is in the form of a general-purpose electronic device. Components of computing device 600 may include, but are not limited to, one or more processors or processing units 610, memory 620, storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. Processing unit 610 may be a real or virtual processor and is capable of performing various processes according to a program stored in memory 620. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to increase the parallel processing capabilities of computing device 600.
[0110] The computing device 600 typically includes a plurality of computer storage media. Such media can be any available media accessible to the computing device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 620 can be a volatile memory (e.g., registers, cache, random access memory (RAM)), a non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 630 can be a removable or non-removable medium and can include a machine-readable medium, such as a flash drive, a disk, or any other medium that can be used to store information and / or data (e.g., training data for training) and can be accessed within the computing device 600.
[0111] The computing device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 6 , a disk drive for reading from or writing to a removable, non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading from or writing to a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to a bus (not shown) by one or more data media interfaces. The memory 620 may include a computer program product 625 having one or more program modules configured to perform various methods or actions of various embodiments of the present disclosure.
[0112] The communication unit 640 enables communication with other electronic devices via a communication medium. Additionally, the functionality of the components of the computing device 600 can be implemented as a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the computing device 600 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or other network nodes.
[0113] Input device 650 may be one or more input devices, such as a mouse, keyboard, or trackball. Output device 660 may be one or more output devices, such as a display, a speaker, or a printer. Computing device 600 may also communicate with one or more external devices (not shown) via communication unit 640, as needed, such as storage devices, display devices, or the like, with one or more devices that allow a user to interact with computing device 600, or with any device that allows computing device 600 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0114] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which one or more computer instructions are stored, wherein the one or more computer instructions are executed by a processor to implement the method described above.
[0115] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0116] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0117] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0118] The flow charts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple implementations of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a part for a module, program segment or instruction, and a part for a module, program segment or instruction comprises one or more executable instructions for realizing the logical function of the specification. In some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0119] While various implementations of the present disclosure have been described above, the foregoing description is intended to be illustrative, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described implementations. The terminology used herein is selected to best explain the principles of the implementations, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the implementations disclosed herein.
Claims
1. An interactive method in a virtual environment, include: Displayed in a virtual environment via the user's device: Virtual objects, at least one interactable element associated with the virtual object, the interactable element being associated with image rendering data for rendering a corresponding skin of the virtual object, and A virtual control component, wherein the virtual control component corresponds to a physical control component in the real world; Detecting a predetermined operation input by a user via the virtual manipulation component and directed to a specific interactive element among the at least one interactive element; as well as In response to detecting a first predetermined operation on the specific interactable element, the corresponding skin of the virtual object is rendered using image rendering data associated with the specific interactable element.
2. The interactive method according to claim 1, wherein detecting the first predetermined operation of the user on the specific interactive element include: detecting a first operation instruction input by the user via the physical manipulation component; Based on the association relationship between the physical operating component and the virtual operating component, mapping the first operating instruction in the real world to a second operating instruction in the virtual environment, where the second operating instruction is used to select the specific interactive element; as well as The first predetermined operation performed by the user on the specific interactive element is detected based on the second operation instruction.
3. The interactive method according to claim 2, further comprising: include: Displaying a virtual ray emitted by the virtual manipulation component in the virtual environment; as well as Based on the second operation instruction, the direction of the virtual ray is controlled.
4. The interactive method according to claim 3, wherein the virtual ray emitted by the virtual manipulation component is displayed in the virtual environment. include: In response to a distance between the particular interactable element and the user in the virtual environment being greater than a threshold distance, the virtual ray is displayed.
5. The interaction method according to claim 3, wherein the first predetermined operation of the user on the specific interactive element is detected based on the second operation instruction. include: Detecting whether the virtual ray points to the specific interactive element; and The interaction method further comprises: In response to detecting that the virtual ray points to the specific interactable element, it is determined that the specific interactable element is selected.
6. The interaction method according to claim 2, wherein the physical manipulation component is one of the following: a physical manipulation component of the user equipment, or A part of the user's body.
7. The interactive method according to claim 1, further comprising: include: In response to receiving a first scene switching instruction from the user, switching the virtual environment to a first application scene; as well as In response to detecting a second predetermined operation on the specific interactable element in the first application scenario, the specific interactable element is associated with the user.
8. The interactive method according to claim 7, further comprising: include: In response to receiving a second scene switching instruction from the user, switching the virtual environment from the first application scene to a second application scene; In the case where the specific interactable element is already associated with the user, continue to use the image rendering data of the specific interactable element to render the corresponding skin of the virtual object; as well as In a case where the specific interactable element has not been associated with the user, stopping using the image rendering data of the specific interactable element to render the corresponding skin of the virtual object.
9. The interactive method according to claim 1, further comprising: include: In response to the specific interactable element being selected, in the virtual environment, the specific interactable element is hidden or displayed, or a display mode of the specific interactable element is changed.
10. The interaction method according to claim 1, wherein the user device is a head-mounted virtual reality (VR) device, and the virtual object is a virtual manipulation component.
11. An interactive device in a virtual environment, include: A display module configured to display a virtual object, at least one interactive element associated with the virtual object, and a virtual manipulation component in a virtual environment via a user device, wherein the interactive element is associated with image rendering data for rendering a corresponding skin of the virtual object, and the virtual manipulation component corresponds to a physical manipulation component in the real world; a detection module configured to detect a predetermined operation input by a user via the virtual manipulation component and directed to a specific interactive element among the at least one interactive element; as well as The rendering module is configured to render the corresponding skin of the virtual object using image rendering data associated with the specific interactable element in response to detecting a first predetermined operation on the specific interactable element.
12. An electronic device, include: at least one processing unit; as well as at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to: Displayed in a virtual environment via the user's device: Virtual objects, at least one interactable element associated with the virtual object, the interactable element being associated with image rendering data for rendering a corresponding skin of the virtual object, and A virtual control component, wherein the virtual control component corresponds to a physical control component in the real world; Detecting a predetermined operation input by a user via the virtual manipulation component and directed to a specific interactive element among the at least one interactive element; as well as In response to detecting a first predetermined operation on the specific interactable element, the corresponding skin of the virtual object is rendered using image rendering data associated with the specific interactable element.
13. The electronic device according to claim 12, wherein detecting the first predetermined operation of the user on the specific interactive element include: detecting a first operation instruction input by the user via the physical manipulation component; Based on the association relationship between the physical operating component and the virtual operating component, mapping the first operating instruction in the real world to a second operating instruction in the virtual environment, where the second operating instruction is used to select the specific interactive element; as well as The first predetermined operation performed by the user on the specific interactive element is detected based on the second operation instruction.
14. The electronic device according to claim 13, wherein when the instructions are executed by the at least one processing unit, the electronic device: Displaying a virtual ray emitted by the virtual manipulation component in the virtual environment; and Based on the second operation instruction, the direction of the virtual ray is controlled.
15. The electronic device according to claim 14, wherein the virtual ray emitted by the virtual manipulation component is displayed in the virtual environment include: In response to a distance between the particular interactable element and the user in the virtual environment being greater than a threshold distance, the virtual ray is displayed.
16. The electronic device according to claim 14, wherein the first predetermined operation of the user on the specific interactive element is detected based on the second operation instruction. include: Detecting whether the virtual ray points to the specific interactive element; and wherein the interaction method, when executed by the at least one processing unit, further causes the electronic device to: In response to detecting that the virtual ray points to the specific interactable element, it is determined that the specific interactable element is selected.
17. The electronic device of claim 13, wherein the physical manipulation component is one of the following: a physical manipulation component of the user equipment, or A part of the user's body.
18. The electronic device according to claim 12, wherein when the instructions are executed by the at least one processing unit, the electronic device: In response to receiving a first scene switching instruction from the user, switching the virtual environment to a first application scene; and In response to detecting a second predetermined operation on the specific interactable element in the first application scenario, the specific interactable element is associated with the user.
19. The electronic device according to claim 18, wherein when the instructions are executed by the at least one processing unit, the electronic device: In response to receiving a second scene switching instruction from the user, switching the virtual environment from the first application scene to a second application scene; In the case where the specific interactable element is already associated with the user, continuing to use the image rendering data of the specific interactable element to render the corresponding skin of the virtual object; and In a case where the specific interactable element has not been associated with the user, stopping using the image rendering data of the specific interactable element to render the corresponding skin of the virtual object.
20. The electronic device of claim 12, wherein the instructions, when executed by the at least one processing unit, cause the electronic device to: In response to the specific interactable element being selected, in the virtual environment, the specific interactable element is hidden or displayed, or a display mode of the specific interactable element is changed.
21. The electronic device according to claim 12, wherein the user device is a head-mounted virtual reality (VR) device, and the virtual object is a virtual manipulation component.
22. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 10.
23. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 10.
Citation Information
Patent Citations
Tactile interaction in virtual environments
CN108027653A
Rendering of virtual hand pose based on detected hand input
CN111356968A
System and method for providing real-time product interaction assistance
CN112771472A
Interaction method and device for virtual object, equipment and storage medium
CN115328309A
Interaction method and device in virtual environment, equipment and storage medium
CN116430990A
