Method and apparatus for interaction in virtual environment, device and storage medium
By presenting composite images of real objects and virtual objects in the virtual environment and associating them with users, the problem of single interactive experience in the virtual environment is solved and a richer user interactive experience is achieved.
Patent Information
- Application Number
- PCT/CN2024/077823
- 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, it is difficult for users to interact with real-world behaviors, resulting in a single and unrich interactive experience.
By presenting real object images and representations of virtual objects in the real world in the virtual environment, detecting the user's selection of virtual objects, and presenting composite images of real objects and virtual objects in the virtual environment, and correlating with user input, virtualization is realized. Diverse interactions in the environment.
It enriches the user's interactive experience in the virtual environment, improves the diversity of interactions between the user and the virtual environment, and enables users to achieve behaviors usually performed in the real world in the virtual environment.
Smart Images

Figure CN2024077823_29082024_PF_FP_ABST
Abstract
Description
Method, apparatus, device and storage medium for interacting in a virtual environment
[0001] This application claims priority to the Chinese invention patent application entitled “Methods, devices, equipment and storage media for interaction in a virtual environment” and application number 202310189738.6, 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 computers, and more particularly to methods, apparatuses, devices, and computer-readable storage media for interacting in a virtual environment. Background Art
[0003] In recent years, technologies such as virtual reality (VR) and augmented reality (AR) have been widely researched and applied. By combining hardware devices and various technical means, they fuse virtual content with real scenes, providing users with unique sensory experiences. VR uses computers to simulate a three-dimensional virtual world, providing users with an immersive experience in vision, hearing, and touch. AR allows the real environment and virtual objects to be superimposed on the same space in real time and coexist simultaneously.
[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: presenting an image of a real object in the real world and a representation of a set of virtual objects in the virtual environment, the representation comprising at least images of the corresponding virtual objects; detecting a user's selection of a particular virtual object from the set of virtual objects; in response to detecting the selection, presenting in the virtual environment a composite image of the real object and the particular virtual object; and in response to receiving a first predetermined input from the user, associating the particular virtual object with the user.
[0006] In a second aspect of the present disclosure, a device for interacting in a virtual environment is provided. The device includes a first presentation module configured to present in the virtual environment: an image of a real object in the real world and a representation of a set of virtual objects, the representation comprising at least images of the corresponding virtual objects; a detection module configured to detect a user selecting a specific virtual object from the set of virtual objects; a second presentation module configured to, in response to detecting the selection, present in the virtual environment a composite image of the real object and the specific virtual object; and an association module configured to, in response to receiving a first predetermined input from the user, associate the specific virtual object with the user.
[0007] In a third aspect of the present disclosure, an electronic device is provided. The 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 device to perform the method of the first aspect.
[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 when the computer program is executed by a processor, the method of the first aspect is implemented.
[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 embodiments of the present disclosure will become more apparent 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 shows a block diagram of an environment according to some embodiments of the present disclosure;
[0012] FIG2 illustrates a flow chart of an example process for interacting in a virtual environment according to some embodiments of the present disclosure;
[0013] 3A and 3B show schematic diagrams of virtual scenes according to some embodiments of the present disclosure;
[0014] FIG4 shows a block diagram of an example interactive system in a virtual environment according to some embodiments of the present disclosure;
[0015] FIG5 shows a block diagram of an apparatus for interacting in a virtual environment according to some embodiments of the present disclosure; and
[0016] FIG6 shows a block diagram of a device capable of implementing various embodiments of the present disclosure. DETAILED DESCRIPTION
[0017] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain 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. Rather, 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.
[0018] 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.
[0019] In the description of the embodiments of the present disclosure, the term "virtual environment" includes, but is not limited to, "VR," "AR," and the like. It should be understood that the term "virtual environment" can refer to either "VR" or "AR," or any combination thereof. In the following description, for convenience only, the term "virtual environment" is used in the embodiments of the present disclosure to refer to one or more of "VR" and "AR," or any combination thereof.
[0020] In some of the following embodiments, the virtual environment may involve a virtual mall, which can serve 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 the process of selecting a virtual object, can be implemented at the request of a user in any appropriate application scenario. The present disclosure is not limited in this respect.
[0021] 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.
[0022] 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.
[0023] 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.
[0024] At present, due to the rise of VR and AR technologies, users' social needs in virtual environments provided by VR and / or AR are becoming increasingly clear. These users hope to build their own second home in the virtual environment, where they can not only communicate and interact with other users, but also carry out behaviors in daily life, such as entertainment and shopping.
[0025] In view of this, embodiments of the present disclosure provide a solution for interacting in a virtual environment. This solution can present images of real objects in the real world and representations of a group of virtual objects, such as images of virtual objects, in the virtual environment. If a user selects the virtual object, a composite image of the real object and the selected virtual object is presented in the virtual environment. If a specific user input operation is received, the real object is associated with the user. In this way, users can perform actions that they would normally perform in the real world in the virtual environment, enriching the diversity of interactive processes that users can perform in the virtual environment and improving the user's interactive experience.
[0026] Example embodiments of the present disclosure are described below with reference to the accompanying drawings.
[0027] 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 102 and their user device 110. In this example environment 100, user device 110 has an application (hereinafter referred to as a control module) installed and running that supports a virtual environment, thereby enabling a virtual environment 120 to be presented to user 102 at or by user device 110.
[0028] In some embodiments, virtual environment 120 is a VR / AR environment. As shown in FIG1 , user device 120 may be a head-mounted VR / AR device. When user 102 wears user device 110, virtual environment 120 is displayed to user 102. This virtual environment may include multiple virtual objects and representations of real-world objects. These virtual objects may include virtual representations of real-world objects and / or objects that are applicable only in the virtual environment.
[0029] Additionally, user 102 may input commands in virtual environment 120 by selecting objects. Specifically, virtual selection objects, such as a virtual handle and / or a virtual hand, may be presented in virtual environment 120. In some embodiments, the virtual selection objects may correspond to physical objects in the real world (e.g., a handle being manipulated by the user and / or the user's hand).
[0030] In some other embodiments, an image of a real object in the real world (eg, an image of the user's hand) may be presented in the virtual environment 120 as a selection object.
[0031] In some embodiments, the virtual environment is an AR / XR environment. In this particular virtual environment, the user device 110 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 110 can also support any type of interface for the user (such as a "wearable" circuit, etc.).
[0032] As shown in Figure 1, the environment 100 optionally includes a remote device 130, and the user device 110 can communicate with the remote device 130. In some embodiments, the remote device 130 can be a cloud server.
[0033] It should be understood that the remote device 130 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 130 is a background service that supports virtual environment applications. In some embodiments, a specific process can be implemented collaboratively by the remote device 130 and the user device 110. For example, in some embodiments, the remote device 130 undertakes the primary computing work and the computing device 120 undertakes the secondary computing work. Alternatively, in other embodiments, the remote device 130 undertakes the secondary computing work and the user device 110 undertakes the primary computing work. Alternatively, in some embodiments, a specific process can be implemented independently by the remote device 130 or the user device 110.
[0034] In short, although in some embodiments, some operations are described as being implemented by the user device 110, these operations may be at least partially implemented by the remote device 130. Correspondingly, although some operations are described as being implemented by the remote device 130, these operations may be at least partially implemented by the user device 110. For the sake of brevity only, the same or similar descriptions will be omitted.
[0035] 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.
[0036] The following will continue to describe some example embodiments of the present disclosure with reference to the accompanying drawings. Figure 2 shows a flowchart of a method 200 for interacting in a virtual environment according to some embodiments of the present disclosure. Method 200 can be performed by the user device 110 in Figure 1. For ease of discussion, the following description uses the user device 110 as an example. However, this is merely exemplary and does not limit the embodiments of the present disclosure in any way. It should be understood that the embodiments of the present disclosure can also be performed by other appropriate servers or electronic devices.
[0037] As shown in FIG. 2 , at block 210 , the user device 110 presents an image of a real object in the real world and a representation of a set of virtual objects in the virtual environment 120 .
[0038] For example, in the virtual environment 120 shown in FIG3A , the user device 110 presents an image 310 of the real world. A real object 312 (e.g., the foot of the user 102) may be presented in the image 310. It should be understood that the image 310 of the real object 312 in the real world may include a static image or a dynamic image. The user 102 may capture or record the static image or dynamic image by operating the control 311.
[0039] In the virtual environment 120 shown in Figure 3A, the user device 110 also presents a group of virtual object images 320-1, 320-2 and 320-3. For example, image 320-1 is an image of virtual object 321. The images of these virtual objects can be presented in the virtual environment 120 in a predetermined presentation style. If the user device 110 detects a specific operation of the user 102 (also referred to as a third predetermined input in this disclosure), such as a sliding operation along direction 301 or 320, the presentation position of the images of the group of virtual objects on the interface of the virtual environment 120 is switched for the user to browse, that is, the image of the current virtual object presented in the virtual environment 120 is switched to the image of the next group of virtual objects. It should be understood that the number of virtual objects presented in the virtual environment 120 depends on the predetermined setting. The example shown in Figure 3A is for illustrative purposes only and should not be used as a limitation on the scope of this disclosure.
[0040] As an example, the virtual environment 120 presented in FIG3A may be a virtual shopping mall, and the images of the group of virtual objects presented may be considered images of virtual goods corresponding to real goods in the real world. For example, image 320-1 (also referred to as a product card) displays virtual goods 321 corresponding to real goods in the real world. The product card may also display the product name (e.g., sneakers 1), product price, promotional information, etc. of the real goods corresponding to the virtual goods.
[0041] At block 220 , if selection of a particular virtual object 321 by the user 102 is detected, then at block 230 , the user device 110 presents a composite image of the real object 312 and the particular virtual object 321 in the virtual environment 120 .
[0042] Continuing with reference to FIG3A , for example, if the user device 110 detects a selection operation by the user 102 on a control 322 (e.g., a try-on control) presented on the image 320-1 of the virtual object in the virtual environment 120, the user 102 can determine that the virtual object 321 displayed on the image 320-1 of the virtual object is selected by the user 102.
[0043] Once it is determined that the virtual object 321 is selected, as shown in Figure 3B, the user device 130 presents a composite image 330 of the virtual object 321 and the real object 312 in the virtual environment 120. For example, in Figure 3B, the composite image 330 presents the effect of trying on the sports shoe 1 on the user's foot.
[0044] Through the above method, a virtual shopping mall scene and corresponding simulated try-on functions can be provided to the user 102 in a virtual environment. By adopting technologies such as AR / VR, the user 102 can obtain an immersive shopping experience comparable to a real try-on scene of offline shopping.
[0045] Furthermore, considering that users may be reluctant to upload their own images for personal reasons, compared to traditional online try-on solutions, the simulated try-on function proposed in the embodiments of the present disclosure does not require users to upload their own images to the server. Therefore, it not only protects user data and privacy, but also makes users feel more relaxed and comfortable when using the simulated try-on function.
[0046] Returning to FIG. 2 , at block 240 , if a first predetermined input is received from the user 102 , then at block 250 , the user device 110 associates the virtual object 321 with the user 102 .
[0047] In some embodiments, user device 110 may present an entry for associating a virtual object 321 with user 102. For example, as shown in FIG3B , a control 332 may be presented for purchasing a real object (e.g., sneakers 1) corresponding to virtual object 321. For another example, a space 333 may be presented for selecting a size for the real object corresponding to virtual object 321. It should be understood that in some other embodiments, user 102 may also be able to purchase the virtual object 321 itself. For example, user 102 may use the purchased virtual object 321 for their avatar in virtual environment 103 and / or for a virtual object (not shown) corresponding to the user in virtual environment 120.
[0048] If the user device 110 detects an operation by the user 102 on the control 332 and / or the control 333 (e.g., confirming a purchase or selecting a specific size), a virtual scene may be presented that enables the user to associate the virtual object with the specific virtual object. For example, a virtual scene (not shown) may be presented in the virtual environment 120 that enables the user 102 to purchase the object, so that the user 102 can complete the association with the virtual object 321 in the virtual scene, i.e., complete the purchase or obtain ownership or use rights of the virtual object 321 and / or the real object corresponding to the virtual object 321.
[0049] In some embodiments, if user device 110 detects a second predetermined input from user 102 , user device 110 may stop displaying composite image 330 .
[0050] For example, as shown in FIG3B , if the user 102 of the user device 110 operates on the control 331 (e.g., the return control), the user 102 can stop displaying the synthetic image 330 in the virtual environment 120, and, for example, representations of a group of virtual objects (such as images 320-1, 320-2, and 320-3 shown in FIG3A ) can be displayed again in the virtual environment 120 for the user 102 to select.
[0051] Alternatively or additionally, when the composite image 330 is presented in the virtual environment 120, a virtual scene enabling the user 102 to purchase the object may be presented in the virtual environment 120 or the virtual environment 120 may be presented again to display a group of virtual object representations for the user 102 to select based on certain predetermined gesture instructions and / or voice instructions.
[0052] In embodiments of the present disclosure, user 102 can input commands in virtual environment 120 by selecting an object, such as the first predetermined input, the second predetermined input, the third predetermined input, and / or the user 102's selection of a specific virtual object mentioned above. In some embodiments, the selection object can be an image of a real object in the real world (e.g., an image of the user's hand). In other implementations, the selection object can also be a virtual selection object relative to a physical object in the real world (e.g., a handle being operated by the user and / or the user's hand).
[0053] As shown in Figures 3A and 3B, a virtual selection object 303 is presented in the virtual environment 120. This virtual object can be a virtual object (e.g., a hand image) corresponding to the real user's hand. In some embodiments, the user device 110 can also present a virtual ray in the virtual environment that is emitted from the virtual selection object 303 as the origin. If the user device detects that the virtual ray intersects with the object to be selected (such as a control or virtual object) in the virtual environment 120, the object is determined to be selected.
[0054] For example, if virtual ray 304 is detected to intersect control 322 in FIG. 3A or virtual ray 305 is detected to intersect control 333 in FIG. 3B , user device 110 determines that control 322 or control 333 is selected.
[0055] Through the solutions described in the above embodiments, users can implement behaviors that they usually perform in the real world in a virtual environment, which enriches the diversity of interaction processes that users can perform in the virtual environment and improves the user's interaction experience.
[0056] FIG4 illustrates a block diagram of an example interactive system within a virtual environment according to some embodiments of the present disclosure. In the specific embodiment of FIG4 , interactive elements 420-1 through 420-M (where M is a positive integer greater than or equal to 1) correspond to representations of virtual objects (e.g., images 320-1, 320-2, and 320-3) and / or virtual objects (e.g., virtual object 321) and / or virtual controls (e.g., virtual controls 322, 331, 332, and 333) suitable for presentation within the virtual environment. In this case, the control module displays the interactive elements 420-1 through 420-M within the virtual environment 120.
[0057] Next, how to detect a predetermined operation for a specific virtual object / control will be described in detail with reference to FIG. 4 .
[0058] In the specific implementation of Figure 4, 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.
[0059] As shown in Figure 4, in some embodiments, each interactive element 420 may have a rendering component, where the rendering component defines the rendering style of the virtual object presented by the interactive element 420. At least one of the following data may be encapsulated in the rendering component: rendering data, rendering kit, and rendering assets. In this way, the interactive elements 420 can be managed independently, reducing system maintenance costs.
[0060] Alternatively or additionally, in some embodiments, the interactive element 420 may also have a collision component, wherein the collision component is used to detect whether it is selected. In a specific embodiment, the control module can determine the spatial position of the interactive element 420 in the virtual environment 120, and further determine the collision range of the interactive element 420 based on the spatial position. When a collision signal is detected within the collision range, it is considered to be selected. For example, the user 102 can control the virtual ray of the virtual selection object to point to the predetermined collision range, and further confirm the selection of the interactive element 420 by pressing an OK button or other operations.
[0061] Alternatively or additionally, in some embodiments, interactive element 420 may further include a logic component for implementing processing logic for interactive element 420. In some embodiments, when a virtual ray is directed at interactive element 420, the logic component may display multimedia information associated with the interactive element 420, such as through an animation. Furthermore, as shown in Figures 3A and 3B , for example, when image 320-1 is selected, the logic component may also assist in triggering the image synthesis of virtual object 321 and real object 312.
[0062] The specific embodiment of Figure 4 further includes a user device 110. In some embodiments, the user device 110 can be implemented as a universal interactive manipulation node. Furthermore, the user device 110 can implement human-computer interaction in a virtual environment based on a three-dimensional model.
[0063] In some embodiments, the user device 110 may include a tracking component that can track the position and posture of an inertial measurement unit (IMU) of a physical selection object in real time, so that a virtual selection object (e.g., a virtual handle) in the virtual environment 120 can be matched with a physical selection object (e.g., a real handle) in the real world.
[0064] Alternatively or additionally, user device 110 may further include a currently selected object model node. As shown in FIG4 , the currently selected object 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.
[0065] Alternatively or additionally, in some embodiments, the user device 110 may further include a current virtual ray node. The current virtual ray node may include a rendering component, wherein the rendering component is 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, wherein the ray interaction component may generate virtual ray data based on tracking data and cooperate with the collision component of the interactive element 420 to implement collision detection. Alternatively or additionally, the current virtual ray node may further include a logic component, wherein the logic component is configured to execute processing logic such as updating the length of the virtual ray display based on the collision result.
[0066] In the specific embodiment of FIG. 4 , the overall flow of the interaction process with the interactive element 420 can be implemented by a control module. Specifically, the control module drives the ray interaction component of the user device 110 to perform collision detection with each collision component of the interactive element 420. If a first predetermined operation of the user 102 on the specific interactive element 420 is detected, the image synthesis of the virtual object and the real object is triggered. If a second predetermined operation of the user 102 on the specific interactive element 420 is detected, the display of the image synthesis / rendering of the virtual object and the real object is stopped. If a third predetermined operation of the user 102 on the specific interactive element 420 is detected, the switching and updating of the representation of the virtual object presented in the virtual environment is triggered.
[0067] In some embodiments, the control module caches the rendering component of the currently selected object model node and the rendering component of the current virtual ray node, and replaces the rendering component of the currently selected object model node and / or the rendering component of the current virtual ray node with the rendering component of the interactive element 420.
[0068] The embodiments of the present disclosure also provide corresponding apparatuses for implementing the above methods or processes. Figure 5 shows a block diagram of an apparatus 500 for interacting in a virtual environment according to some embodiments of the present disclosure.
[0069] As shown in FIG5 , the apparatus 500 includes a first presentation module 510 configured to present in a virtual environment: images of real objects in the real world, and representations of a group of virtual objects, the representations including at least images of corresponding virtual objects.
[0070] In addition, the apparatus 500 further includes a detection module 520 configured to detect a user's selection of a specific virtual object from the group of virtual objects.
[0071] The apparatus 500 further includes a second presentation module 530 configured to present a composite image of the real object and the specific virtual object in the virtual environment in response to detecting the selection.
[0072] In addition, the apparatus 500 further includes an associating module 540 configured to associate the specific virtual object with the user in response to receiving a first predetermined input from the user.
[0073] In some embodiments, the association module 540 can also be configured to present an entrance for associating the specific virtual object with the user; and in response to receiving the first predetermined input via the entrance, present a virtual scene for enabling the user to complete the association with the specific virtual object, wherein completing the association at least includes enabling the user to become the owner of the specific virtual object and / or the real object corresponding to the specific virtual object.
[0074] In some embodiments, the apparatus 500 may be further configured to: in response to receiving a second predetermined input from the user, stop displaying the composite image; and again display the representations of the set of virtual objects for selection by the user.
[0075] In some embodiments, the apparatus 500 may be further configured to: in response to receiving a third predetermined input from the user, switch the presentation position of the representations of the set of virtual objects on the interface of the virtual environment for browsing by the user.
[0076] In some embodiments, the representation also includes information about the corresponding virtual object.
[0077] In some embodiments, the real object is a body part of the user, and the composite image represents a composite effect of the specific virtual object being worn on the body part.
[0078] In some embodiments, the virtual environment further presents a selection object for selecting a function, and wherein detecting the selection of the particular virtual object comprises detecting an intersection of a virtual ray associated with the selection object and the particular virtual object in the virtual environment.
[0079] In some embodiments, the selection object is a virtual representation of a real object, or an image of the real object.
[0080] The modules 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 modules 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0081] FIG6 shows a block diagram of an electronic device / server 600 in which one or more embodiments of the present disclosure may be implemented. The user device 110 of FIG1 may be implemented, for example, by the electronic device / server 600 shown in FIG6. It should be understood that the electronic device / server 600 shown in FIG6 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein.
[0082] As shown in FIG6 , electronic device / server 600 is in the form of a general-purpose electronic device. Components of electronic device / server 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 660, 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 programs 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 electronic device / server 600.
[0083] The electronic device / server 600 typically includes a plurality of computer storage media. Such media can be any available media accessible to the electronic device / server 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, which can be used to store information and / or data (e.g., training data for training) and can be accessed within the electronic device / server 600.
[0084] The electronic device / server 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG6 , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a “floppy disk”) and an optical drive for reading or writing from 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.
[0085] The communication unit 640 enables communication with other electronic devices via a communication medium. Additionally, the functions of the components of the electronic device / server 600 can be implemented as a single computing cluster or multiple computing machines that can communicate via a communication connection. Thus, the electronic device / server 600 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network node.
[0086] 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. The electronic device / server 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 the electronic device / server 600, or with any device that allows the electronic device / server 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).
[0087] 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.
[0088] 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.
[0089] 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.
[0090] 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.
[0091] 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.
[0092] 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. A method for interaction in a virtual environment, comprising: Rendered in a virtual environment: images of real objects in the real world, and a representation of a set of virtual objects, the representation comprising at least images of respective virtual objects; detecting a user's selection of a particular virtual object from the set of virtual objects; In response to detecting the selection, presenting a composite image of the real object and the specific virtual object in the virtual environment; as well as In response to receiving a first predetermined input from the user, the particular virtual object is associated with the user.
2. The method of claim 1, wherein performing the association comprises: presenting an entry for associating the specific virtual object with the user; as well as In response to receiving the first predetermined input via the portal, presenting a virtual scene that enables the user to complete the association with the specific virtual object, wherein completing the association at least includes enabling the user to become the owner of the specific virtual object and / or a real object corresponding to the specific virtual object.
3. The method according to claim 1, further comprising: In response to receiving a second predetermined input from the user, stopping displaying the composite image; as well as The representations of the set of virtual objects are again displayed for selection by the user.
4. The method according to claim 1, further comprising: In response to receiving a third predetermined input from the user, the presentation position of the representations of the set of virtual objects on the interface of the virtual environment is switched for viewing by the user. The method according to claim 1 , wherein the representation further includes relevant information of the corresponding virtual object. 6 . The method according to claim 1 , wherein the real object is a body part of the user, and the synthetic image represents a synthetic effect of the specific virtual object being worn on the body part.
7. The method of claim 1, wherein the virtual environment further presents a selection object for selecting a function, and wherein detecting the selection of the specific virtual object comprises detecting an intersection of a virtual ray associated with the selection object and the specific virtual object in the virtual environment.
8. The method of claim 7, wherein the selection object is a virtual representation of a real object, or an image of the real object.
9. A device for interaction in an augmented reality virtual environment, comprising: A first rendering module is configured to render in a virtual environment: images of real objects in the real world, and a representation of a set of virtual objects, the representation comprising at least images of respective virtual objects; a detection module configured to detect a user's selection of a specific virtual object from the set of virtual objects; a second presentation module configured to present, in response to detecting the selection, a composite image of the real object and the specific virtual object in the virtual environment; as well as The association module is configured to associate the specific virtual object with the user in response to receiving a first predetermined input from the user.
10. An electronic device comprising: 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 device to perform a method for interacting in a virtual environment, the method comprising: Rendered in a virtual environment: images of real objects in the real world, and a representation of a set of virtual objects, the representation comprising at least images of respective virtual objects; detecting a user's selection of a particular virtual object from the set of virtual objects; In response to detecting the selection, presenting a composite image of the real object and the specific virtual object in the virtual environment; and In response to receiving a first predetermined input from the user, the particular virtual object is associated with the user.
11. The electronic device of claim 10, wherein making the association comprises: presenting an entry for associating the specific virtual object with the user; as well as In response to receiving the first predetermined input via the portal, presenting a virtual scene that enables the user to complete the association with the specific virtual object, wherein completing the association at least includes enabling the user to become the owner of the specific virtual object and / or a real object corresponding to the specific virtual object.
12. The electronic device according to claim 10, further comprising: In response to receiving a second predetermined input from the user, stopping displaying the composite image; as well as The representations of the set of virtual objects are again displayed for selection by the user.
13. The electronic device according to claim 10, further comprising: In response to receiving a third predetermined input from the user, the presentation position of the representations of the set of virtual objects on the interface of the virtual environment is switched for viewing by the user. The electronic device according to claim 10 , wherein the representation further comprises relevant information of the corresponding virtual object. 15 . The electronic device according to claim 10 , wherein the real object is a body part of the user, and the synthetic image represents a synthetic effect that the specific virtual object is worn on the body part.
16. An electronic device according to claim 10, wherein the virtual environment also presents a selection object for selecting a function, and wherein detecting the selection of the specific virtual object includes detecting an intersection of a virtual ray associated with the selection object and the specific virtual object in the virtual environment.
17. The electronic device of claim 16, wherein the selection object is a virtual representation of a real object, or an image of the real object.
18. A computer-readable storage medium having a computer program stored thereon, wherein the program implements the method according to any one of claims 1 to 8 when executed by a processor.
Citation Information
Patent Citations
Virtual fitting system and method
CN102956004A
A fitting method and system based on augmented reality
CN109214876A
Virtual fitting method, device, system and electronic equipment
CN111882380A
Image processing method and device and electronic equipment
CN113269895A
Method and device for interaction in virtual environment, equipment and storage medium
CN116188738A
