Devices, methods, and graphical user interfaces for presenting virtual objects in virtual environment

By integrating display generation components and input devices in a computer system, providing interactive methods to dynamically update the spatial layout and orientation of virtual objects, the problem of low interaction efficiency of virtual environments in the prior art is solved, and a more intuitive and efficient person is realized Computer interaction and better user experience.

CN119396287APending Publication Date: 2025-02-07APPLE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411538719.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2021-09-25
Filing Date
2022-09-16
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

In the prior art, the methods and interfaces used to present virtual objects in a virtual environment have problems such as insufficient feedback, complex operations, cumbersome and error-prone, resulting in a large cognitive burden on users and low interaction efficiency.

Method used

By integrating display generation components, input devices and sensors in a computer system, an improved user interface and interaction method is provided, including dynamic updates of spatial arrangement and orientation of virtual objects, responding in real time based on user viewpoints and gesture inputs.

Benefits of technology

It realizes more intuitive and efficient human-computer interaction, reduces the number and complexity of user input, improves operational convenience and experience quality in the virtual environment, while saving power and extending the battery life of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119396287A_ABST
    Figure CN119396287A_ABST
Patent Text Reader

Abstract

The present disclosure relates to devices, methods, and graphical user interfaces for presenting virtual objects in a virtual environment. In some embodiments, an electronic device updates a spatial arrangement of one or more virtual objects in a three-dimensional environment. In some implementations, an electronic device updates the location of a plurality of virtual objects together. In some embodiments, an electronic device displays an object in a three-dimensional environment based on an estimated location of a floor in the three-dimensional environment. In some embodiments, an electronic device moves (e.g., repositions) an object in a three-dimensional environment.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of an invention patent application with an application date of September 16, 2022, application number 202280075179.X, and invention name “Device, method and graphical user interface for presenting virtual objects in a virtual environment”.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This application claims the benefit of U.S. Provisional Application No. 63 / 261,667, filed on September 25, 2021, the contents of which are incorporated herein by reference in their entirety for all purposes. Technical Field

[0004] The present invention generally relates to a computer system having a display generation component that presents a graphical user interface and one or more input devices, including but not limited to an electronic device that presents the graphical user interface in a virtual environment via the display generation component. Background Art

[0005] In recent years, the development of computer systems for augmented reality has increased significantly. Example augmented reality environments include at least some virtual elements that replace or augment the physical world. Input devices (such as cameras, controllers, joysticks, touch-sensitive surfaces, and touch screen displays) for computer systems and other electronic computing devices are used to interact with virtual / augmented reality environments. Exemplary virtual elements include virtual objects (including digital images, videos, text, icons, control elements (such as buttons), and other graphics). Summary of the invention

[0006] Some methods and interfaces for interacting with environments (e.g., applications, augmented reality environments, mixed reality environments, and virtual reality environments) that include at least some virtual elements are cumbersome, inefficient, and limited. For example, systems that provide insufficient feedback for performing actions associated with virtual objects, systems that require a series of inputs to achieve desired results in augmented reality environments, and systems where virtual object manipulation is complex, cumbersome, and error-prone can impose a huge cognitive burden on users and detract from the experience of virtual / augmented reality environments. In addition, these methods take longer than necessary, thereby wasting energy. This latter consideration is particularly important in battery-powered devices.

[0007] Therefore, there is a need for a computer system with improved methods and interfaces to provide a computer-generated experience to a user, so that the user's interaction with the computer system is more efficient and more intuitive for the user. Such methods and interfaces optionally supplement or replace conventional methods for providing an extended reality experience to a user. Such methods and interfaces reduce the amount, degree and / or nature of inputs from a user by helping the user understand the connection between the inputs provided and the device's response to those inputs, thereby forming a more effective human-computer interface.

[0008] The above-mentioned defects and other problems associated with the user interface of the computer system are reduced or eliminated by the disclosed system. In some embodiments, the computer system is a desktop computer with an associated display. In some embodiments, the computer system is a portable device (e.g., a laptop, a tablet computer, or a handheld device). In some embodiments, the computer system is a personal electronic device (e.g., a wearable electronic device, such as a watch or a head-mounted device). In some embodiments, the computer system has a touch pad. In some embodiments, the computer system has one or more cameras. In some embodiments, the computer system has a touch-sensitive display (also referred to as a "touch screen" or "touch screen display"). In some embodiments, the computer system has one or more eye tracking components. In some embodiments, the computer system has one or more hand tracking components. In some embodiments, in addition to displaying a generating component, the computer system also has one or more output devices, which include one or more tactile output generators and / or one or more audio output devices. In some embodiments, the computer system has a graphical user interface (GUI), one or more processors, a memory, and one or more modules, a program or instruction set stored in the memory for performing multiple functions. In some embodiments, the user interacts with the GUI through contact and gestures of a stylus and / or finger on a touch-sensitive surface, movement of the user's eyes and hands in space relative to the GUI (and / or computer system) or the user's body (as captured by a camera and other motion sensors), and / or voice input (as captured by one or more audio input devices). In some embodiments, the functions performed by interaction optionally include image editing, drawing, presentations, word processing, spreadsheet creation, playing games, making and receiving calls, video conferencing, sending and receiving emails, instant messaging, testing support, digital photography, digital video recording, web browsing, digital music playback, note-taking, and / or digital video playback. Executable instructions for performing these functions are optionally included in a transient and / or non-transient computer-readable storage medium or other computer program product configured for execution by one or more processors.

[0009] There is a need for electronic devices with improved methods and interfaces for navigating user interfaces. Such methods and interfaces may supplement or replace conventional methods for interacting with graphical user interfaces. Such methods and interfaces reduce the amount, extent, and / or nature of input from a user and produce a more efficient human-computer interface. For battery-powered computing devices, such methods and interfaces save power and increase the time interval between battery charges.

[0010] In some embodiments, an electronic device updates the spatial arrangement of one or more virtual objects in a three-dimensional environment. In some embodiments, an electronic device updates the positioning of multiple virtual objects together. In some embodiments, an electronic device displays an object in a three-dimensional environment based on an estimated position of a floor in the three-dimensional environment. In some embodiments, an electronic device moves (e.g., repositions) an object in a three-dimensional environment.

[0011] It should be noted that the various embodiments described above can be combined with any other embodiments described herein. The features and advantages described in this specification are not comprehensive, and in particular, many additional features and advantages will be apparent to those of ordinary skill in the art based on the drawings, the specification, and the claims. In addition, it should be noted that the language used in this specification is selected in principle for readability and instructional purposes, and may not be selected to describe or define the subject matter of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] For a better understanding of the various described embodiments, reference should be made to the following detailed description taken in conjunction with the following drawings, wherein like reference numerals designate corresponding parts throughout the several views.

[0013] Figure 1 is a block diagram illustrating an operating environment of a computer system for providing an XR experience according to some embodiments.

[0014] Figure 2 is a block diagram illustrating a controller of a computer system configured to manage and coordinate a user's XR experience according to some embodiments.

[0015] Figure 3 is a block diagram illustrating display generation components of a computer system configured to provide a visual component of an XR experience to a user according to some embodiments.

[0016] Figure 4 is a block diagram illustrating a hand tracking unit of a computer system configured to capture gesture input from a user according to some embodiments.

[0017] Figure 5 is a block diagram illustrating an eye tracking unit of a computer system configured to capture gaze input of a user according to some embodiments.

[0018] Fig. 6A is a flow chart illustrating a flash-assisted gaze tracking pipeline according to some embodiments.

[0019] Figure 6B An exemplary environment of an electronic device providing an XR experience according to some embodiments is shown.

[0020] FIG. 7A to FIG. 7G An example is shown of how an electronic device updates the spatial arrangement of one or more virtual objects in a three-dimensional environment according to some embodiments.

[0021] FIG. 8A to FIG. 8K is a flowchart illustrating a method for updating a spatial arrangement of one or more virtual objects in a three-dimensional environment according to some embodiments.

[0022] FIG. 9A to FIG. 9G An example is shown of how an electronic device updates the positioning of multiple virtual objects together according to some embodiments.

[0023] FIG. 10A to FIG. 10K is a flow chart illustrating a method of updating the positioning of multiple virtual objects together according to some embodiments.

[0024] FIG. 11A to FIG. 11E An exemplary manner of displaying an object in a three-dimensional environment based on an estimated position of a floor of the three-dimensional environment according to some embodiments is shown.

[0025] FIG. 12A to FIG. 12G is a flowchart illustrating a method for displaying an object in a three-dimensional environment based on an estimated position of a floor of the three-dimensional environment according to some embodiments.

[0026] FIG. 13A to FIG. 13D Exemplary ways of moving objects in a three-dimensional environment according to some embodiments of the present disclosure are shown.

[0027] FIG. 14A to FIG. 14G is a flowchart illustrating a method of moving an object in a three-dimensional environment according to some embodiments. DETAILED DESCRIPTION

[0028] According to some embodiments, the present disclosure relates to a user interface for providing a computer-generated reality (XR) experience to a user.

[0029] The systems, methods, and GUIs described herein provide an improved way for electronic devices to present content corresponding to a physical location indicated in a navigation user interface element.

[0030] In some embodiments, a computer system displays one or more virtual objects (e.g., a user interface of an application, representations of other users, content items, etc.) in a three-dimensional environment. In some embodiments, the computer system evaluates the spatial arrangement of virtual objects relative to the user's viewpoint in the three-dimensional environment according to one or more spatial criteria described in more detail below. In some embodiments, the computer system detects user input corresponding to a request to update the positioning and / or orientation of a virtual object to meet one or more spatial criteria. In some embodiments, in response to the input, the computer system updates the positioning and / or orientation of the virtual object to meet one or more spatial criteria. Updating the positioning and / or orientation of virtual objects in this manner provides an efficient way for users to access, view, and / or interact with virtual objects, which in turn reduces power usage and extends the battery life of the computer system by enabling users to use the computer system more quickly and efficiently.

[0031] In some embodiments, a computer system updates the position and / or orientation of multiple virtual objects in a three-dimensional environment relative to a viewpoint of a user of the computer system. In some embodiments, the computer system receives input corresponding to a request to update the position and / or orientation of multiple virtual objects relative to the user's viewpoint. In some embodiments, in response to the input, the computer system updates the position and / or orientation of multiple virtual objects relative to the user's viewpoint while maintaining the spatial relationship between the multiple virtual objects. Updating the position and / or orientation of multiple virtual objects relative to the user's viewpoint in this manner provides an efficient way to update the view of the three-dimensional environment from the user's viewpoint, which in turn reduces power usage and extends the battery life of the computer system by enabling the user to use the computer system more quickly and efficiently.

[0032] In some embodiments, a computer system presents an object in a three-dimensional environment based on an estimated position of a physical floor in a physical environment of the computer system. In some embodiments, when the computer system presents an object in a three-dimensional environment based on an estimated position of a physical floor in a physical environment of the computer system, the computer system determines a new estimated position of the physical floor in the physical environment of the computer system. In some embodiments, the computer system continues to present the object in the three-dimensional environment based on a previous estimated position of the physical floor in the physical environment of the computer system until certain conditions / criteria are met. Displaying the object in the three-dimensional environment based on the previous estimated position of the physical floor until certain conditions / criteria are met provides an efficient way to update the position of the object in the three-dimensional environment when certain conditions / criteria are met and not update until those conditions / criteria are met, which in turn reduces power usage and extends the battery life of the computer system by enabling the user to use the computer system more quickly and efficiently.

[0033] In some embodiments, a computer system presents one or more user interface objects in a three-dimensional environment. In some embodiments, the computer system receives a request to move (e.g., reposition) a corresponding user interface object in the three-dimensional environment to a new location in the three-dimensional environment. In some embodiments, when moving (e.g., repositioning) the corresponding user interface object to the new location in the three-dimensional environment, the computer system visually emphasizes one or more portions of the corresponding user interface object. Visually emphasizing portions of the corresponding user interface object when moving the corresponding user interface object in the three-dimensional environment reduces potential orientation disorders that may cause symptoms of vertigo or motion sickness, thereby providing a mechanism by which a user can safely interact with the three-dimensional environment, thereby reducing the cognitive burden on the user when interacting with the three-dimensional environment.

[0034] Figure 1 6 provide a description of an exemplary computer system for providing an XR experience to a user (such as described below with respect to methods 800 , 1000 , 1200 , and 1400 ). FIG. 7A to FIG. 7G Exemplary techniques for updating a spatial arrangement of one or more virtual objects in a three-dimensional environment are shown according to some embodiments. FIG. 8A to FIG. 8K is a flowchart illustrating a method for updating a spatial arrangement of one or more virtual objects in a three-dimensional environment according to some embodiments. FIG. 9A to FIG. 9G Example techniques for updating the positioning of multiple virtual objects together are shown according to some embodiments. FIG. 10A to FIG. 10K is a flow chart illustrating a method of updating the positioning of multiple virtual objects together according to some embodiments. FIG. 11A to FIG. 11E Exemplary techniques for displaying objects in a three-dimensional environment based on an estimated position of a floor of the three-dimensional environment according to some embodiments are shown. FIG. 12A to FIG. 12G is a flowchart illustrating a method for displaying an object in a three-dimensional environment based on an estimated position of a floor of the three-dimensional environment according to some embodiments. FIG. 13A to FIG. 13D Exemplary techniques for moving objects in a three-dimensional environment according to some embodiments of the present disclosure are shown. FIG. 14A to FIG. 14G is a flowchart illustrating a method of moving an object in a three-dimensional environment according to some embodiments.

[0035] The processes described below enhance the operability of the device and make the user-device interface more efficient (e.g., by helping the user provide appropriate input and reducing user errors when operating / interacting with the device) through various techniques, including by providing improved visual feedback to the user, reducing the number of inputs required to perform an operation, providing additional control options without cluttering the user interface with additional display controls, performing an operation without further user input when a set of conditions have been met, improving privacy and / or security, and / or additional techniques. These techniques also reduce power usage and extend the battery life of the device by enabling the user to use the device more quickly and efficiently.

[0036] In addition, in the method described herein where one or more steps depend on one or more conditions being met, it should be understood that the method can be repeated in multiple repetitions so that in the process of repetition, all conditions for determining the steps in the method have been met in different repetitions of the method. For example, if the method needs to perform the first step (if the condition is met), and perform the second step (if the condition is not met), then the ordinary technician will know that the steps stated are repeated until both the condition is met and the condition is not met (in no particular order). Therefore, the method described as having one or more steps depending on one or more conditions being met can be rewritten as a method of repeating until each condition described in the method is met. However, this does not require the system or computer-readable medium to declare that the system or computer-readable medium contains instructions for performing a contingent operation based on the satisfaction of the corresponding one or more conditions, and is therefore able to determine whether the possible situation has been met without explicitly repeating the steps of the method until all conditions for determining the steps in the method have been met. It will also be understood by ordinary technicians in the art that, similar to the method with the contingent step, the system or computer-readable storage medium can repeat the steps of the method as many times as needed to ensure that all the contingent steps have been performed.

[0037] In some embodiments, such as Figure 1As shown in , an XR experience is provided to a user via an operating environment 100 including a computer system 101. The computer system 101 includes a controller 110 (e.g., a processor of a portable electronic device or a remote server), a display generation component 120 (e.g., a head mounted device (HMD), a display, a projector, a touch screen, etc.), one or more input devices 125 (e.g., an eye tracking device 130, a hand tracking device 140, other input devices 150), one or more output devices 155 (e.g., a speaker 160, a tactile output generator 170, and other output devices 180), one or more sensors 190 (e.g., an image sensor, a light sensor, a depth sensor, a tactile sensor, an orientation sensor, a proximity sensor, a temperature sensor, a position sensor, a motion sensor, a speed sensor, etc.), and optionally one or more peripheral devices 195 (e.g., a household appliance, a wearable device, etc.). In some embodiments, one or more of the input device 125, the output device 155, the sensor 190, and the peripheral device 195 are integrated with the display generation component 120 (e.g., in a head mounted device or a handheld device).

[0038] In describing an XR experience, various terms are used to distinguishably refer to several related but distinct environments that a user can sense and / or with which the user can interact (e.g., using inputs detected by the computer system 101 generating the XR experience, which inputs cause the computer system generating the XR experience to generate audio, visual, and / or tactile feedback corresponding to the various inputs provided to the computer system 101). The following is a subset of these terms:

[0039] Physical environment: The physical environment refers to the physical world that people can sense and / or interact with without the help of electronic systems. A physical environment, such as a physical park, includes physical objects, such as physical trees, physical buildings, and physical people. People can directly sense and / or interact with the physical environment, such as through vision, touch, hearing, taste, and smell.

[0040] Extended Reality: In contrast, an extended reality (XR) environment refers to a fully or partially simulated environment that people sense and / or interact with via an electronic system. In XR, a subset of a person's physical movements or a representation thereof is tracked, and in response, one or more features of one or more virtual objects simulated in the XR environment are adjusted in a manner that complies with at least one physical law. For example, an XR system may detect a person's head turn, and in response, adjust the graphical content and sound field presented to the person in a manner similar to the way such views and sounds change in a physical environment. In some cases (e.g., for accessibility reasons), adjustments to the features of virtual objects in the XR environment may be made in response to a representation of physical movement (e.g., a voice command). People can sense and / or interact with XR objects using any of their senses, including vision, hearing, touch, taste, and smell. For example, people can sense and / or interact with audio objects, which create a 3D or spatial audio environment that provides the perception of a point audio source in 3D space. As another example, an audio object can enable audio transparency that selectively introduces ambient sounds from the physical environment with or without computer-generated audio. In some XR environments, a person can sense and / or interact only with an audio object.

[0041] Examples of XR include virtual reality and mixed reality.

[0042] Virtual Reality: A virtual reality (VR) environment refers to a simulated environment designed to be based entirely on computer-generated sensory input to one or more senses. A VR environment includes a plurality of virtual objects that a person can sense and / or interact with. For example, trees, buildings, and computer-generated images representing avatars of people are examples of virtual objects. A person can sense and / or interact with virtual objects in a VR environment through a simulation of the person's presence within the computer-generated environment and / or through a simulation of a subset of the person's physical movement within the computer-generated environment.

[0043] Mixed Reality: In contrast to VR environments, which are designed to be based entirely on computer-generated sensory input, a mixed reality (MR) environment refers to a simulated environment that is designed to include sensory input from the physical environment, or representations thereof, in addition to computer-generated sensory input (e.g., virtual objects). On the virtuality continuum, a mixed reality environment is anything between, but not including, a fully physical environment at one end and a virtual reality environment at the other end. In some MR environments, computer-generated sensory input can respond to changes in sensory input from the physical environment. In addition, some electronic systems used to render MR environments can track position and / or orientation relative to the physical environment to enable virtual objects to interact with real objects (i.e., physical items from the physical environment, or representations thereof). For example, the system can cause motion so that virtual trees appear stationary relative to the physical ground.

[0044] Examples of mixed reality include augmented reality and augmented virtuality.

[0045] Augmented reality: An augmented reality (AR) environment refers to a simulated environment in which one or more virtual objects are superimposed on a physical environment or a representation of a physical environment. For example, an electronic system for presenting an AR environment may have a transparent or translucent display through which a person can directly view the physical environment. The system may be configured to present virtual objects on a transparent or translucent display so that a person uses the system to perceive virtual objects superimposed on the physical environment. Alternatively, the system may have an opaque display and one or more imaging sensors that capture images or videos of the physical environment, which are representations of the physical environment. The system combines the image or video with the virtual object and presents the composition on an opaque display. A person uses the system to indirectly view the physical environment via an image or video of the physical environment and perceives virtual objects superimposed on the physical environment. As used herein, a video of a physical environment displayed on an opaque display is referred to as a "transparent video," meaning that the system uses one or more image sensors to capture images of the physical environment and uses those images when presenting the AR environment on an opaque display. Further alternatively, the system may have a projection system that projects virtual objects into a physical environment, such as as a hologram or on a physical surface, so that a person using the system perceives virtual objects superimposed on the physical environment. An augmented reality environment also refers to a simulated environment in which a representation of a physical environment is transformed by computer-generated sensory information. For example, in providing a pass-through video, the system may transform one or more sensor images to apply a selected perspective (e.g., a viewpoint) that is different from the perspective captured by the imaging sensor. For another example, the representation of the physical environment may be transformed by graphically modifying (e.g., enlarging) a portion thereof so that the modified portion may be a representative but not real version of the original captured image. For another example, the representation of the physical environment may be transformed by graphically eliminating a portion thereof or blurring a portion thereof.

[0046] Augmented Virtual: An augmented virtual (AV) environment refers to a simulated environment in which a virtual environment or a computer-generated environment incorporates one or more sensory inputs from the physical environment. The sensory input may be a representation of one or more characteristics of the physical environment. For example, an AV park may have virtual trees and virtual buildings, but the faces of people are realistically reproduced from images taken of physical people. For another example, a virtual object may take the shape or color of a physical object imaged by one or more imaging sensors. For another example, a virtual object may take a shadow that conforms to the positioning of the sun in the physical environment.

[0047] Viewpoint-locked virtual objects: When a computer system displays a virtual object at the same position and / or location in a user's viewpoint, the virtual object is viewpoint-locked even if the user's viewpoint shifts (e.g., changes). In embodiments where the computer system is a head-mounted device, the user's viewpoint is locked to the forward direction of the user's head (e.g., when the user is looking straight ahead, the user's viewpoint is at least a portion of the user's field of view); thus, without moving the user's head, the user's viewpoint remains fixed even when the user's gaze shifts. In embodiments where the computer system has a display generation component (e.g., a display screen) that is repositionable relative to the user's head, the user's viewpoint is an augmented reality view presented to the user on the display generation component of the computer system. For example, a viewpoint-locked virtual object that is displayed in the upper left corner of the user's viewpoint when the user's viewpoint is in a first orientation (e.g., the user's head is facing north) continues to be displayed in the upper left corner of the user's viewpoint even when the user's viewpoint changes to a second orientation (e.g., the user's head is facing west). In other words, the position and / or location of the viewpoint-locked virtual object displayed in the user's viewpoint is independent of the user's position and / or orientation in the physical environment. In embodiments where the computer system is a head-mounted device, the user's viewpoint is locked to the orientation of the user's head, such that the virtual object is also referred to as a "head-locked virtual object."

[0048] Environment-locked visual objects: A virtual object is environment-locked (alternatively, "world-locked") when a computer system displays a virtual object at a position and / or location in a user's viewpoint that is based on (e.g., selected with reference to and / or anchored to) a location and / or object in a three-dimensional environment (e.g., a physical environment or a virtual environment). As the user's viewpoint moves, the location and / or objects in the environment change relative to the user's viewpoint, which causes the environment-locked virtual object to be displayed at a different location and / or location in the user's viewpoint. For example, an environment-locked virtual object locked to a tree immediately in front of the user is displayed at the center of the user's viewpoint. When the user's viewpoint shifts to the right (e.g., the user's head turns to the right) such that the tree is now to the left of center in the user's viewpoint (e.g., the tree location in the user's viewpoint shifts), the environment-locked virtual object locked to the tree is displayed to the left of center in the user's viewpoint. In other words, the position and / or orientation of the virtual object that is locked to the environment in the user's viewpoint depends on the position and / or orientation of the object and / or the position to which the virtual object is locked in the environment. In some embodiments, the computer system uses a stationary reference system (e.g., a coordinate system anchored to a fixed position and / or object in the physical environment) to determine the positioning of the virtual object that is locked to the user's viewpoint. The virtual object that is locked to the environment can be locked to a stationary part of the environment (e.g., a floor, wall, table, or other stationary object), or can be locked to a movable part of the environment (e.g., a vehicle, animal, person, or even a representation of a part of the user's body that moves independently of the user's viewpoint, such as a hand, wrist, arm, or foot of the user) so that the virtual object moves as the viewpoint or the part of the environment moves to maintain a fixed relationship between the virtual object and the part of the environment.

[0049] In some embodiments, an environment-locked or viewpoint-locked virtual object exhibits an inertial following behavior that reduces or delays the movement of the environment-locked or viewpoint-locked virtual object relative to the movement of the reference point followed by the virtual object. In some embodiments, when exhibiting inertial following behavior, when detecting the movement of a reference point (e.g., a portion of the environment, a viewpoint, or a point fixed relative to the viewpoint, such as a point between 5 cm and 300 cm from the viewpoint) that the virtual object is following, the computer system intentionally delays the movement of the virtual object. For example, when the reference point (e.g., the portion of the environment or the viewpoint) moves at a first speed, the virtual object is moved by the device to remain locked to the reference point, but moves at a second speed that is slower than the first speed (e.g., until the reference point stops moving or slows down, at which point the virtual object begins to catch up with the reference point). In some embodiments, when the virtual object exhibits inertial following behavior, the device ignores small amounts of movement of the reference point (e.g., ignoring movements of the reference point below a threshold movement amount, such as moving 0 to 5 degrees or moving 0 to 50 cm). For example, when a reference point (e.g., the portion of the environment or viewpoint to which the virtual object is locked) moves a first amount, the distance between the reference point and the virtual object increases (e.g., because the virtual object is being displayed so as to maintain a fixed or substantially fixed position relative to a viewpoint or portion of the environment that is different from the reference point to which the virtual object is locked), and when the reference point (e.g., the portion of the environment or viewpoint to which the virtual object is locked) moves a second amount greater than the first amount, the distance between the reference point and the virtual object initially increases (e.g., because the virtual object is being displayed so as to maintain a fixed or substantially fixed position relative to a viewpoint or portion of the environment that is different from the reference point to which the virtual object is locked), and then decreases as the amount of movement of the reference point increases above a threshold (e.g., a “lazy follow” threshold) because the virtual object is moved by the computer system to maintain a fixed or substantially fixed position relative to the reference point. In some embodiments, maintaining a substantially fixed position of the virtual object relative to the reference point includes displaying the virtual object within a threshold distance (e.g., 1 cm, 2 cm, 3 cm, 5 cm, 15 cm, 20 cm, 50 cm) of the reference point in one or more dimensions (e.g., up / down, left / right, and / or forward / backward relative to the position of the reference point).

[0050] Hardware: There are many different types of electronic systems that enable a person to sense various XR environments and / or interact with various CGR environments. Examples include head-mounted systems, projection-based systems, heads-up displays (HUDs), vehicle windshields with integrated display capabilities, windows with integrated display capabilities, displays formed as lenses designed to be placed on a person's eyes (e.g., similar to contact lenses), headphones / earpieces, speaker arrays, input systems (e.g., wearable or handheld controllers with or without tactile feedback), smartphones, tablets, and desktop / laptop computers. A head-mounted system can have one or more speakers and an integrated opaque display. Alternatively, a head-mounted system can be configured to accept an external opaque display (e.g., a smartphone). A head-mounted system can incorporate one or more imaging sensors for capturing images or video of the physical environment, and / or one or more microphones for capturing audio of the physical environment. Instead of an opaque display, a head-mounted system can have a transparent or translucent display. A transparent or translucent display can have a medium through which light representing the image is directed to a person's eyes. The display can utilize digital light projection, OLED, LED, uLED, liquid crystal on silicon, laser scanning light source, or any combination of these technologies. The medium can be an optical waveguide, a hologram medium, an optical combiner, an optical reflector, or any combination thereof. In one embodiment, a transparent or translucent display can be configured to selectively become opaque. The projection-based system can employ retinal projection technology that projects graphic images onto a person's retina. The projection system can also be configured to project virtual objects into a physical environment, for example as a hologram, or onto a physical surface. In some embodiments, the controller 110 is configured to manage and coordinate the user's XR experience. In some embodiments, the controller 110 includes a suitable combination of software, firmware, and / or hardware. Reference below Figure 2Controller 110 is described in more detail. In some embodiments, controller 110 is a computing device that is located locally or remotely relative to scene 105 (e.g., physical environment). For example, controller 110 is a local server located within scene 105. As another example, controller 110 is a remote server (e.g., cloud server, central server, etc.) located outside scene 105. In some embodiments, controller 110 is communicatively coupled to display generation component 120 (e.g., HMD, display, projector, touch screen, etc.) via one or more wired or wireless communication channels 144 (e.g., Bluetooth, IEEE 802.11x, IEEE 802.16x, IEEE 802.3x, etc.). In another example, the controller 110 is included within a housing (e.g., a physical housing) of the display generating component 120 (e.g., an HMD or a portable electronic device including a display and one or more processors, etc.), one or more input devices of the input devices 125, one or more output devices of the output devices 155, one or more sensors of the sensors 190, and / or one or more peripheral devices of the peripheral devices 195, or shares the same physical housing or support structure with one or more of the above devices.

[0051] In some embodiments, the display generation component 120 is configured to provide an XR experience (e.g., at least the visual component of the XR experience) to the user. In some embodiments, the display generation component 120 includes a suitable combination of software, firmware, and / or hardware. Figure 3 Display generation component 120 is described in further detail. In some embodiments, the functionality of controller 110 is provided by and / or combined with display generation component 120.

[0052] According to some embodiments, display generation component 120 provides an XR experience to the user when the user is virtually and / or physically present within scene 105.

[0053] In some embodiments, the display generation component is worn on a part of the user's body (e.g., on his / her head, on his / her hand, etc.). In this way, the display generation component 120 includes one or more XR displays provided for displaying XR content. For example, in various embodiments, the display generation component 120 surrounds the user's field of view. In some embodiments, the display generation component 120 is a handheld device (such as a smart phone or tablet) configured to present XR content, and the user holds a device with a display facing the user's field of view and a camera facing the scene 105. In some embodiments, the handheld device is optionally placed in a housing worn on the user's head. In some embodiments, the handheld device is optionally placed on a support (e.g., a tripod) in front of the user. In some embodiments, the display generation component 120 is an XR room, housing, or room configured to present XR content, wherein the user does not wear or hold the display generation component 120. Many user interfaces described with reference to one type of hardware for displaying XR content (e.g., a handheld device or a device on a tripod) may be implemented on another type of hardware for displaying XR content (e.g., an HMD or other wearable computing device). For example, a user interface showing interactions with XR content triggered based on interactions occurring in the space in front of a handheld device or a tripod-mounted device may similarly be implemented with an HMD, where the interactions occur in the space in front of the HMD and responses to the XR content are displayed via the HMD. Similarly, a user interface showing interactions with CRG content triggered based on movement of a handheld device or a tripod-mounted device relative to a physical environment (e.g., scene 105 or a part of a user's body (e.g., the user's eyes, head, or hands)) may similarly be implemented with an HMD, where the movement is caused by movement of the HMD relative to the physical environment (e.g., scene 105 or a part of a user's body (e.g., the user's eyes, head, or hands)).

[0054] Despite Figure 1 Relevant features of operating environment 100 are shown, but those skilled in the art will recognize from this disclosure that various other features are not shown for the sake of brevity and so as not to obscure more relevant aspects of the exemplary embodiments disclosed herein.

[0055] Figure 2is a block diagram of an example of a controller 110 according to some embodiments. While some specific features are shown, those skilled in the art will recognize from this disclosure that various other features are not shown for the sake of brevity and so as not to obscure more relevant aspects of the embodiments disclosed herein. To this end, as a non-limiting example, in some embodiments, the controller 110 includes one or more processing units 202 (e.g., a microprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), a graphics processing unit (GPU), a central processing unit (CPU), a processing core, etc.), one or more input / output (I / O) devices 206, one or more communication interfaces 208 (e.g., a universal serial bus (USB), IEEE802.3x, IEEE 802.11x, IEEE 802.16x, Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Global Positioning System (GPS), infrared (IR), Bluetooth, ZIGBEE and / or similar types of interfaces), one or more programming (e.g., I / O) interfaces 210, a memory 220, and one or more communication buses 204 for interconnecting these components and various other components.

[0056] In some embodiments, the one or more communication buses 204 include circuits that interconnect and control communications between system components. In some embodiments, the one or more I / O devices 206 include at least one of a keyboard, a mouse, a touch pad, a joystick, one or more microphones, one or more speakers, one or more image sensors, one or more displays, and the like.

[0057] The memory 220 includes a high-speed random access memory, such as a dynamic random access memory (DRAM), a static random access memory (SRAM), a double data rate random access memory (DDR RAM), or other random access solid-state memory devices. In some embodiments, the memory 220 includes a non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 220 optionally includes one or more storage devices located away from the one or more processing units 202. The memory 220 includes a non-transitory computer-readable storage medium. In some embodiments, the memory 220 or the non-transitory computer-readable storage medium of the memory 220 stores the following programs, modules, and data structures or subsets thereof, including an optional operating system 230 and an XR experience module 240.

[0058] The operating system 230 includes instructions for handling various basic system services and for performing hardware-related tasks. In some embodiments, the XR experience module 240 is configured to manage and coordinate single or multiple XR experiences of one or more users (e.g., a single XR experience of one or more users, or multiple XR experiences of corresponding groups of one or more users). To this end, in various embodiments, the XR experience module 240 includes a data acquisition unit 241, a tracking unit 242, a coordination unit 246, and a data transmission unit 248.

[0059] In some embodiments, the data acquisition unit 241 is configured to obtain Figure 1 120, and optionally acquires data (e.g., presentation data, interaction data, sensor data, location data, etc.) from one or more of input device 125, output device 155, sensor 190, and / or peripheral device 195. To this end, in various embodiments, data acquisition unit 241 includes instructions and / or logic for instructions as well as heuristics and metadata for the heuristics.

[0060] In some embodiments, tracking unit 242 is configured to map scene 105 and track at least display generation component 120 relative to Figure 1 105, and optionally relative to the position / location of one or more of the tracked input device 125, the output device 155, the sensor 190, and / or the peripheral device 195. To this end, in various embodiments, the tracking unit 242 includes instructions and / or logic for the instructions and heuristics and metadata for the heuristics. In some embodiments, the tracking unit 242 includes a hand tracking unit 244 and / or an eye tracking unit 243. In some embodiments, the hand tracking unit 244 is configured to track the position / location of one or more parts of the user's hand, and / or the position / location of one or more parts of the user's hand relative to the user's hand. Figure 1 The movement of the scene 105 relative to the display generation component 120 and / or relative to a coordinate system (the coordinate system is defined relative to the user's hand). Figure 4 The hand tracking unit 244 is described in more detail. In some embodiments, the eye tracking unit 243 is configured to track the position or movement of the user's gaze (or more generally, the user's eyes, face, or head) relative to the scene 105 (e.g., relative to the physical environment and / or relative to the user (e.g., the user's hands)) or relative to the XR content displayed via the display generation component 120. Figure 5 The eye tracking unit 243 is described in more detail.

[0061] In some embodiments, coordination unit 246 is configured to manage and coordinate the XR experience presented to the user by display generation component 120, and optionally by one or more of output device 155 and / or peripherals 195. To this end, in various embodiments, coordination unit 246 includes instructions and / or logic for instructions and heuristics and metadata for the heuristics.

[0062] In some embodiments, data transfer unit 248 is configured to transfer data (e.g., presentation data, position data, etc.) to at least display generation component 120, and optionally to one or more of input device 125, output device 155, sensor 190, and / or peripheral device 195. To this end, in various embodiments, data transfer unit 248 includes instructions and / or logic for instructions as well as heuristics and metadata for the heuristics.

[0063] Although the data acquisition unit 241, the tracking unit 242 (e.g., including the eye tracking unit 243 and the hand tracking unit 244), the coordination unit 246, and the data transmission unit 248 are illustrated as residing on a single device (e.g., the controller 110), it should be understood that in other embodiments, any combination of the data acquisition unit 241, the tracking unit 242 (e.g., including the eye tracking unit 243 and the hand tracking unit 244), the coordination unit 246, and the data transmission unit 248 may be located in separate computing devices.

[0064] also, Figure 2 It serves more as a functional description of various features that may be present in a particular implementation, as opposed to a block diagram of the embodiments described herein. As one of ordinary skill in the art will recognize, items shown separately may be combined, and some items may be separated. For example, Figure 2 Some functional modules shown separately in the figure may be implemented in a single module, and the various functions of a single functional block may be implemented by one or more functional blocks in various embodiments. The actual number of modules and the division of specific functions and how the features are distributed among them will vary depending on the specific implementation, and in some embodiments, depends in part on the specific combination of hardware, software and / or firmware selected for a specific implementation.

[0065] Figure 31 is a block diagram of an example of a display generation component 120 according to some embodiments. Although some specific features are shown, those skilled in the art will recognize from this disclosure that various other features are not shown for the sake of brevity and so as not to obscure more relevant aspects of the embodiments disclosed herein. For this purpose, as a non-limiting example, in some embodiments, the display generation component 120 (e.g., an HMD) includes one or more processing units 302 (e.g., a microprocessor, an ASIC, an FPGA, a GPU, a CPU, a processing core, etc.), one or more input / output (I / O) devices and sensors 306, one or more communication interfaces 308 (e.g., USB, FIREWIRE, THUNDERBOLT, IEEE 802.3x, IEEE802.11x, IEEE 802.16x, GSM, CDMA, TDMA, GPS, IR, BLUETOOTH, ZIGBEE and / or similar types of interfaces), one or more programming (e.g., I / O) interfaces 310, one or more XR displays 312, one or more optional internal-facing and / or external-facing image sensors 314, a memory 320, and one or more communication buses 304 for interconnecting these components and various other components.

[0066] In some embodiments, one or more communication buses 304 include circuits for interconnecting and controlling communications between various system components. In some embodiments, one or more I / O devices and sensors 306 include an inertial measurement unit (IMU), an accelerometer, a gyroscope, a thermometer, one or more physiological sensors (e.g., a blood pressure monitor, a heart rate monitor, a blood oxygen sensor, a blood glucose sensor, etc.), one or more microphones, one or more speakers, a haptic engine, and / or one or more depth sensors (e.g., structured light, time of flight, etc.), etc.

[0067] In some embodiments, one or more XR displays 312 are configured to provide an XR experience to the user. In some embodiments, one or more XR displays 312 correspond to holographic, digital light processing (DLP), liquid crystal display (LCD), liquid crystal on silicon (LCoS), organic light emitting field effect transistor (OLET), organic light emitting diode (OLED), surface conduction electron emission display (SED), field emission display (FED), quantum dot light emitting diode (QD-LED), microelectromechanical system (MEMS) and / or similar display types. In some embodiments, one or more XR displays 312 correspond to diffraction, reflection, polarization, holographic and other waveguide displays. For example, the display generation component 120 (e.g., HMD) includes a single XR display. In another example, the display generation component 120 includes an XR display for each eye of the user. In some embodiments, one or more XR displays 312 can present MR and VR content. In some embodiments, one or more XR displays 312 can present MR or VR content.

[0068] In some embodiments, the one or more image sensors 314 are configured to acquire image data corresponding to at least a portion of the user's face, including the user's eyes (and may be referred to as an eye tracking camera). In some embodiments, the one or more image sensors 314 are configured to acquire image data corresponding to the user's hands and, optionally, at least a portion of the user's arms (and may be referred to as a hand tracking camera). In some embodiments, the one or more image sensors 314 are configured to face forward so as to acquire image data corresponding to a scene that the user would see in the absence of the display generating component 120 (e.g., an HMD) (and may be referred to as a scene camera). The one or more optional image sensors 314 may include one or more RGB cameras (e.g., with a complementary metal oxide semiconductor (CMOS) image sensor or a charge coupled device (CCD) image sensor), one or more infrared (IR) cameras, and / or one or more event-based cameras, etc.

[0069] The memory 320 includes a high-speed random access memory, such as a DRAM, SRAM, DDR RAM, or other random access solid-state memory device. In some embodiments, the memory 320 includes a non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 320 optionally includes one or more storage devices located away from the one or more processing units 302. The memory 320 includes a non-transitory computer-readable storage medium. In some embodiments, the memory 320 or the non-transitory computer-readable storage medium of the memory 320 stores the following programs, modules, and data structures or a subset thereof, including an optional operating system 330 and an XR rendering module 340.

[0070] The operating system 330 includes processes for handling various basic system services and for performing hardware-related tasks. In some embodiments, the XR rendering module 340 is configured to present XR content to a user via one or more XR displays 312. To this end, in various embodiments, the XR rendering module 340 includes a data acquisition unit 342, an XR rendering unit 344, an XR map generation unit 346, and a data transmission unit 348.

[0071] In some embodiments, the data acquisition unit 342 is configured to at least Figure 1 The controller 110 acquires data (e.g., presentation data, interaction data, sensor data, location data, etc.). For the purposes described, in various embodiments, the data acquisition unit 342 includes instructions and / or logic for instructions and heuristics and metadata for the heuristics.

[0072] In some embodiments, the XR rendering unit 344 is configured to render XR content via one or more XR displays 312. For such purposes, in various embodiments, the XR rendering unit 344 includes instructions and / or logic for the instructions and heuristics and metadata for the heuristics.

[0073] In some embodiments, the XR map generation unit 346 is configured to generate an XR map (e.g., a 3D map of a mixed reality scene or a map of a physical environment in which a computer-generated object can be placed to generate an extended reality) based on the media content data. For such purposes, in various embodiments, the XR map generation unit 346 includes instructions and / or logic for the instructions and heuristics and metadata for the heuristics.

[0074] In some embodiments, the data transmission unit 348 is configured to transmit data (e.g., presentation data, position data, etc.) to at least the controller 110, and optionally one or more of the input device 125, the output device 155, the sensor 190, and / or the peripheral device 195. For such purposes, in various embodiments, the data transmission unit 348 includes instructions and / or logic for the instructions and heuristics and metadata for the heuristics.

[0075] Although the data acquisition unit 342, the XR rendering unit 344, the XR map generation unit 346, and the data transfer unit 348 are shown as residing on a single device (e.g., Figure 1 , but it should be understood that in other embodiments, any combination of the data acquisition unit 342, the XR rendering unit 344, the XR mapping generation unit 346, and the data transmission unit 348 may be located in a separate computing device.

[0076] also, Figure 3 More as a functional description of various features that may be present in a particular embodiment, rather than a schematic diagram of the structures of the embodiments described herein. As one of ordinary skill in the art will recognize, items shown separately may be combined, and some items may be separated. For example, Figure 3 Some functional modules shown separately in the figure may be implemented in a single module, and the various functions of a single functional block may be implemented by one or more functional blocks in various embodiments. The actual number of modules and the division of specific functions and how the features are distributed among them will vary depending on the specific implementation, and in some embodiments, depends in part on the specific combination of hardware, software and / or firmware selected for a specific implementation.

[0077] Figure 4 is a schematic illustration of an exemplary embodiment of the hand tracking device 140. In some embodiments, the hand tracking device 140 ( Figure 1 ) is controlled by the hand tracking unit 244 ( Figure 2 ) to track the position / location of one or more parts of a user's hand and / or one or more parts of a user's hand relative to Figure 1The hand tracking device 140 can be used to monitor movement of the scene 105 (e.g., relative to a portion of the physical environment surrounding the user, relative to the display generation component 120, or relative to a portion of the user (e.g., the user's face, eyes, or head), and / or relative to a coordinate system (which is defined relative to the user's hands)). In some embodiments, the hand tracking device 140 is part of the display generation component 120 (e.g., embedded in or attached to the head-mounted device). In some embodiments, the hand tracking device 140 is separate from the display generation component 120 (e.g., located in a separate housing or attached to a separate physical support structure).

[0078] In some embodiments, the hand tracking device 140 includes an image sensor 404 (e.g., one or more IR cameras, 3D cameras, depth cameras, and / or color cameras, etc.) that captures three-dimensional scene information including at least a human user's hand 406. The image sensor 404 captures hand images with sufficient resolution so that fingers and their corresponding positions can be distinguished. The image sensor 404 typically captures images of other parts of the user's body, and also or possibly all parts of the body, and may have zoom capabilities or a dedicated sensor with increased magnification to capture images of the hand with a desired resolution. In some embodiments, the image sensor 404 also captures 2D color video images of the hand 406 and other elements of the scene. In some embodiments, the image sensor 404 is used in conjunction with other image sensors to capture the physical environment of the scene 105, or is used as an image sensor to capture the physical environment of the scene 105. In some embodiments, the image sensor is positioned relative to the user or the user's environment in a manner that the field of view of the image sensor 404 or a portion thereof is used to define an interaction space, in which the hand movements captured by the image sensor are considered as input to the controller 110.

[0079] In some embodiments, the image sensor 404 outputs a sequence of frames containing 3D mapping data (and in addition, possible color image data) to the controller 110, which extracts high-level information from the mapping data. This high-level information is typically provided to an application running on the controller via an application program interface (API), which drives the display generation component 120 accordingly. For example, a user can interact with the software running on the controller 110 by moving his hand 406 and changing his hand posture.

[0080] In some embodiments, the image sensor 404 projects a speckled pattern onto a scene containing the hand 406 and captures an image of the projected pattern. In some embodiments, the controller 110 calculates the 3D coordinates of points in the scene (including points on the surface of the user's hand) by triangulation based on the lateral offset of the spots in the pattern. This method is advantageous because it does not require the user to hold or wear any kind of beacon, sensor, or other marker. The method gives the depth coordinates of points in the scene at a specific distance from the image sensor 404 relative to a predetermined reference plane. In the present disclosure, it is assumed that the image sensor 404 defines an orthogonal set of x-axis, y-axis, and z-axis, so that the depth coordinates of points in the scene correspond to the z component measured by the image sensor. Alternatively, the image sensor 404 (e.g., a hand tracking device) may use other 3D mapping methods based on a single or multiple cameras or other types of sensors, such as stereo imaging or time-of-flight measurement.

[0081] In some embodiments, the hand tracking device 140 captures and processes a time series of depth maps containing the user's hand as the user moves his hand (e.g., the entire hand or one or more fingers). Software running on the image sensor 404 and / or the processor in the controller 110 processes the 3D mapping data to extract image patch descriptors of the hand in these depth maps. The software can match these descriptors with image patch descriptors stored in the database 408 based on a previous learning process to estimate the pose of the hand in each frame. The pose typically includes the 3D position of the user's hand joints and finger tips.

[0082] The software can also analyze the trajectory of the hand and / or finger over multiple frames in the sequence to recognize gestures. The pose estimation function described herein can be alternated with the motion tracking function so that only the image block-based pose estimation is performed once every two (or more) frames, and the tracking is used to find the changes in pose that occur on the remaining frames. The pose, motion, and gesture information is provided to the application running on the controller 110 via the above-mentioned API. The program can, for example, move and modify the image presented on the display generation component 120 in response to the pose and / or gesture information, or perform other functions.

[0083] In some embodiments, gestures include air gestures. An air gesture is a gesture detected without the user touching an input element that is part of a device (e.g., computer system 101, one or more input devices 125, and / or hand tracking device 140) (or independent of an input element that is part of a device) and based on detected movement of a part of the user's body (e.g., head, one or more arms, one or more hands, one or more fingers, and / or one or more legs) through the air (including movement of the user's body relative to an absolute reference (e.g., the angle of the user's arm relative to the ground or the distance of the user's hand relative to the ground), movement relative to another part of the user's body (e.g., movement of the user's hand relative to the user's shoulder, movement of one of the user's hands relative to the user's other hand, and / or movement of a user's finger relative to another finger or part of the user's hand), and / or absolute movement of a part of the user's body (e.g., a tap gesture that includes a hand moving a predetermined amount and / or speed in a predetermined posture, or a shake gesture that includes a predetermined speed or amount of rotation of a part of the user's body)).

[0084] In some embodiments, according to some embodiments, the input gestures used in the various examples and embodiments described herein include air gestures for interacting with an XR environment (e.g., a virtual or mixed reality environment) performed by movement of a user's fingers relative to other fingers or parts of the user's hand. In some embodiments, an air gesture is a gesture detected without the user touching an input element that is part of the device (or independent of an input element that is part of the device) and based on detected movement of a part of the user's body through the air (including movement of the user's body relative to an absolute reference (e.g., the angle of the user's arm relative to the ground or the distance of the user's hand relative to the ground), movement relative to another part of the user's body (e.g., movement of the user's hand relative to the user's shoulder, movement of one of the user's hands relative to the user's other hand, and / or movement of the user's fingers relative to another finger or part of the user's hand), and / or absolute movement of a part of the user's body (e.g., a tap gesture in which the hand moves a predetermined amount and / or speed in a predetermined posture, or a shake gesture including a predetermined speed or amount of rotation of a part of the user's body)).

[0085] In some embodiments where the input gesture is an in-air gesture (e.g., in the absence of physical contact with an input device that provides information to the computer system about which user interface element is the target of the user input, such as contact with a user interface element displayed on a touch screen, or contact with a mouse or trackpad to move a cursor to a user interface element), the gesture takes into account the user's attention (e.g., gaze) to determine the target of the user input (e.g., for direct input, as described below). Thus, in embodiments involving in-air gestures, for example, the input gesture is combined (e.g., simultaneously) with movement of the user's fingers and / or hand to detect attention (e.g., gaze) toward a user interface element to perform a pinch and / or tap input, as described below.

[0086] In some embodiments, an input gesture pointing to a user interface object is performed directly or indirectly with reference to the user interface object. For example, the user input is performed directly on the user interface object according to performing input with the user's hand at a position corresponding to the position of the user interface object in the three-dimensional environment (e.g., as determined based on the user's current viewpoint). In some embodiments, when the user's attention (e.g., gaze) to the user interface object is detected, the input gesture is performed indirectly on the user interface object according to the position of the user's hand not being at the position corresponding to the position of the user interface object in the three-dimensional environment while the user performs the input gesture. For example, for a direct input gesture, the user can guide the user's input to the user interface object by initiating a gesture at or near a position corresponding to the display position of the user interface object (e.g., within 0.5 cm, 1 cm, 5 cm, or a distance between 0 and 5 cm measured from the outer edge of the option or the center portion of the option). For an indirect input gesture, the user can guide the user's input to the user interface object by focusing on the user interface object (e.g., by gazing at the user interface object), and while focusing on the option, the user initiates an input gesture (e.g., at any position detectable by the computer system) (e.g., at a position that does not correspond to the display position of the user interface object).

[0087] In some embodiments, according to some embodiments, the input gestures (e.g., air gestures) used in various examples and embodiments described herein include pinch input and tap input for interacting with a virtual or mixed reality environment. For example, the pinch input and tap input described below are performed as air gestures.

[0088] In some embodiments, the pinch input is part of an air gesture that includes one or more of the following: a pinch gesture, a long pinch gesture, a pinch and drag gesture, or a double pinch gesture. For example, a pinch gesture as an air gesture includes movement of two or more fingers of a hand to contact each other, that is, optionally followed by an immediate (e.g., within 0 to 1 second) interruption of contact with each other. A long pinch gesture as an air gesture includes movement of two or more fingers of a hand in contact with each other for at least a threshold amount of time (e.g., at least 1 second) before an interruption of contact with each other is detected. For example, a long pinch gesture includes the user maintaining a pinch gesture (e.g., in which two or more fingers are in contact), and the long pinch gesture continues until an interruption of contact between the two or more fingers is detected. In some embodiments, a double pinch gesture as an air gesture includes two (e.g., or more) pinch inputs (e.g., performed by the same hand) that are detected consecutively immediately (e.g., within a predefined time period) with each other. For example, the user performs a first pinch input (e.g., a pinch input or a long pinch input), releases the first pinch input (e.g., interrupts contact between two or more fingers), and performs a second pinch input within a predefined time period after releasing the first pinch input (e.g., within 1 second or within 2 seconds).

[0089] In some embodiments, the pinch and drag gesture as an air gesture includes a pinch gesture (e.g., a pinch gesture or a long pinch gesture) performed in conjunction with (e.g., following) a drag input that changes the position of the user's hand from a first position (e.g., the start position of the drag) to a second position (e.g., the end position of the drag). In some embodiments, the user maintains the pinch gesture while performing the drag input, and releases the pinch gesture (e.g., opens their two or more fingers) to end the drag gesture (e.g., at the second position). In some embodiments, the pinch input and the drag input are performed by the same hand (e.g., the user pinches two or more fingers to contact each other and moves the same hand to a second position in the air using the drag gesture). In some embodiments, a pinch input is performed by a first hand of a user, and a drag input is performed by a second hand of the user (e.g., while the user continues the pinch input with the user's first hand, the user's second hand moves in the air from a first position to a second position. In some embodiments, the input gesture as an air gesture includes an input performed using both hands of the user (e.g., a pinch and / or tap input). For example, the input gesture includes two (e.g., or more) pinch inputs performed in conjunction with each other (e.g., simultaneously or within a predefined time period). For example, a first pinch gesture (e.g., a pinch input, a long pinch input, or a pinch and drag input) is performed using the first hand of the user, and in conjunction with the pinch input performed using the first hand, a second pinch input is performed using another hand (e.g., a second hand of the user's two hands). In some embodiments, movement between the two hands of the user (e.g., increasing and / or decreasing the distance or relative orientation between the two hands of the user)

[0090] In some embodiments, a tap input performed as an air gesture (e.g., pointing to a user interface element) includes movement of a user's finger toward the user interface element, movement of a user's hand toward the user interface element (optionally, extension of the user's finger toward the user interface element), downward movement of a user's finger (e.g., mimicking a mouse click motion or a tap on a touch screen), or other predefined movement of a user's hand. In some embodiments, a tap input performed as an air gesture is detected based on movement characteristics of the finger or hand performing the tap gesture movement of the finger or hand, which is a movement of the finger or hand away from the user's viewpoint and / or toward an object that is the target of the tap input, followed by an end of the movement. In some embodiments, the end of the movement is detected based on a change in the movement characteristics of the finger or hand performing the tap gesture (e.g., the end of the movement away from the user's viewpoint and / or toward an object that is the target of the tap input, a reversal of the direction of movement of the finger or hand, and / or a reversal of the acceleration direction of the movement of the finger or hand).

[0091] In some embodiments, it is determined that the user's attention is directed to a portion of the three-dimensional environment based on detection of a gaze directed to that portion of the three-dimensional environment (optionally, no other conditions are required). In some embodiments, it is determined that the user's attention is directed to a portion of the three-dimensional environment based on detection of a gaze directed to that portion of the three-dimensional environment using one or more additional conditions, such as requiring the gaze to be directed to the portion of the three-dimensional environment for at least a threshold duration (e.g., a dwell duration) and / or requiring the gaze to be directed to the portion of the three-dimensional environment when the user's viewpoint is within a distance threshold from the portion of the three-dimensional environment, so that the device determines that the user's attention is directed to the portion of the three-dimensional environment, wherein if one of these additional conditions is not met, the device determines that the attention is not directed to the portion of the three-dimensional environment to which the gaze is directed (e.g., until the one or more additional conditions are met).

[0092] In some embodiments, detection of a ready state configuration of a user or a portion of a user is detected by a computer system. Detection of a ready state configuration of a hand is used by the computer system as an indication that the user may be preparing to interact with the computer system using one or more air gesture inputs (e.g., pinch, tap, pinch and drag, double pinch, long pinch, or other air gestures described herein) performed by the hand. For example, the ready state of the hand is determined based on whether the hand has a predetermined hand shape (e.g., a pre-pinch shape with the thumb and one or more fingers extended and spaced apart to prepare for a pinch or grab gesture, or a pre-tap with one or more fingers extended and the palm facing away from the user), based on whether the hand is in a predetermined position relative to the user's viewpoint (e.g., below the user's head and above the user's waist and extending at least 15 cm, 20 cm, 25 cm, 30 cm, or 50 cm from the body), and / or based on whether the hand has moved in a particular manner (e.g., toward an area in front of the user above the user's waist and below the user's head, or away from the user's body or legs). In some embodiments, the ready state is used to determine whether an interactive element of a user interface responds to attention (e.g., gaze) input.

[0093] In some embodiments, the software may be downloaded to the controller 110 in electronic form, for example, over a network, or may alternatively be provided on a tangible, non-transitory medium such as an optical, magnetic, or electronic memory medium. In some embodiments, the database 408 is also stored in a memory associated with the controller 110. Alternatively or in addition, some or all of the described functions of the computer may be implemented in dedicated hardware, such as a custom or semi-custom integrated circuit or a programmable digital signal processor (DSP). Although in Figure 4Controller 110 is shown in FIG. 1 , but some or all of the processing functions of the controller may be performed by a suitable microprocessor and software or by dedicated circuitry within the housing of the image sensor 404 (e.g., a hand tracking device) or other device associated with the image sensor 404, for example, as a separate unit from the image sensor 404. In some embodiments, at least some of these processing functions may be performed by a suitable processor integrated with the display generation component 120 (e.g., in a television receiver, handheld device, or head-mounted device) or with any other suitable computerized device (such as a game console or media player). The sensing functions of the image sensor 404 may also be integrated into a computer or other computerized device to be controlled by the sensor output.

[0094] Figure 4 Also included is a schematic diagram of a depth map 410 captured by the image sensor 404 according to some embodiments. As described above, the depth map includes a matrix of pixels with corresponding depth values. Pixels 412 corresponding to the hand 406 have been segmented from the background and wrist in the map. The brightness of each pixel within the depth map 410 is inversely proportional to its depth value (i.e., the measured z distance from the image sensor 404), where gray shades become darker as depth increases. The controller 110 processes these depth values ​​in order to identify and segment components of the image that have human hand features (i.e., a group of adjacent pixels). These features may include, for example, overall size, shape, and motion from frame to frame in the depth map sequence.

[0095] Figure 4 Also schematically shown is a hand skeleton 414 that the controller 110 ultimately extracts from the depth map 410 of the hand 406 according to some embodiments. Figure 4 In the hand skeleton 414, a hand background 416 that has been segmented from the original depth map is superimposed. In some embodiments, key feature points of the hand and optionally on the wrist or arm connected to the hand (e.g., points corresponding to knuckles, finger tips, palm center, end of the hand connected to the wrist, etc.) are identified and located on the hand skeleton 414. In some embodiments, the controller 110 uses the position and movement of these key feature points over multiple image frames to determine the gesture performed by the hand or the current state of the hand according to some embodiments.

[0096] Figure 5 The eye tracking device 130 ( Figure 1 ). In some embodiments, the eye tracking device 130 is composed of an eye tracking unit 245 ( Figure 2) controls to track the position and movement of the user's gaze relative to the scene 105 or relative to the XR content displayed via the display generation component 120. In some embodiments, the eye tracking device 130 is integrated with the display generation component 120. For example, in some embodiments, when the display generation component 120 is a head-mounted device (such as headphones, helmets, goggles, or glasses) or a handheld device placed in a wearable frame, the head-mounted device includes both components for generating XR content for the user to view and components for tracking the user's gaze relative to the XR content. In some embodiments, the eye tracking device 130 is separate from the display generation component 120. For example, when the display generation component is a handheld device or an XR room, the eye tracking device 130 is optionally a device separate from the handheld device or the XR room. In some embodiments, the eye tracking device 130 is a head-mounted device or a part of a head-mounted device. In some embodiments, the head-mounted eye tracking device 130 is optionally used in conjunction with a display generation component that is also head-mounted or a display generation component that is not head-mounted. In some embodiments, the eye tracking device 130 is not a head mounted device, and is optionally used in conjunction with a head mounted display generation component. In some embodiments, the eye tracking device 130 is not a head mounted device, and is optionally part of a non-head mounted display generation component.

[0097] In some embodiments, the display generation component 120 uses a display mechanism (e.g., a left near-eye display panel and a right near-eye display panel) to display a frame including a left image and a right image in front of the user's eyes, thereby providing a 3D virtual view to the user. For example, the head-mounted display generation component may include a left optical lens and a right optical lens (referred to herein as eye lenses) located between the display and the user's eyes. In some embodiments, the display generation component may include or be coupled to one or more external cameras that capture a video of the user's environment for display. In some embodiments, the head-mounted display generation component may have a transparent or translucent display, and display a virtual object on the transparent or translucent display, and the user can directly view the physical environment through the transparent or translucent display. In some embodiments, the display generation component projects the virtual object into the physical environment. The virtual object may, for example, be projected on a physical surface or projected as a hologram so that an individual using the system observes the virtual object superimposed on the physical environment. In this case, separate display panels and image frames for the left and right eyes may not be required.

[0098] like Figure 5As shown in , in some embodiments, the gaze tracking device 130 includes at least one eye tracking camera (e.g., an infrared (IR) or near infrared (NIR) camera), and an illumination source (e.g., an IR or NIR light source, such as an array or ring of LEDs) that emits light (e.g., IR or NIR light) toward the user's eyes. The eye tracking camera can be pointed at the user's eyes to receive the IR or NIR light reflected directly from the eyes by the light source, or alternatively can be pointed at "hot" mirrors located between the user's eyes and the display panel, which reflect the IR or NIR light from the eyes to the eye tracking camera while allowing visible light to pass through. The gaze tracking device 130 optionally captures images of the user's eyes (e.g., as a video stream captured at 60-120 frames per second (fps)), analyzes the images to generate gaze tracking information, and transmits the gaze tracking information to the controller 110. In some embodiments, the user's two eyes are tracked separately by corresponding eye tracking cameras and illumination sources. In some embodiments, only one eye of the user is tracked by the corresponding eye tracking camera and illumination source.

[0099] In some embodiments, the eye tracking device 130 is calibrated using a device-specific calibration process to determine the parameters of the eye tracking device for a specific operating environment 100, such as the 3D geometric relationships and parameters of the LED, camera, thermal mirror (if present), eye lens, and display screen. The device-specific calibration process can be performed at a factory or another facility before the AR / VR equipment is delivered to the end user. The device-specific calibration process can be an automatic calibration process or a manual calibration process. According to some embodiments, the user-specific calibration process may include an estimate of the eye parameters of a specific user, such as pupil position, foveal position, optical axis, visual axis, eye spacing, etc. According to some embodiments, once the device-specific parameters and user-specific parameters are determined for the eye tracking device 130, a flash-assisted method can be used to process the images captured by the eye tracking camera to determine the current visual axis and the user's gaze point relative to the display.

[0100] like Figure 5As shown in , the eye tracking device 130 (e.g., 130A or 130B) includes an eye lens 520 and a gaze tracking system, which includes at least one eye tracking camera 540 (e.g., an infrared (IR) or near infrared (NIR) camera) positioned on the side of the user's face on which eye tracking is performed, and an illumination source 530 (e.g., an IR or NIR light source, such as an array or ring of NIR light emitting diodes (LEDs)) that emits light (e.g., IR or NIR light) toward the user's eye 592. The eye tracking camera 540 can be directed toward a mirror 550 (which reflects IR or NIR light from the eye 592 while allowing visible light to pass) located between the user's eye 592 and a display 510 (e.g., a left display panel or a right display panel of a head-mounted display, or a display of a handheld device, a projector, etc.) Figure 5 ), or alternatively may be directed toward the user's eye 592 to receive reflected IR or NIR light from the eye 592 (e.g., as shown in the top portion of Figure 5 ).

[0101] In some embodiments, the controller 110 renders AR or VR frames 562 (e.g., left and right frames for left and right display panels) and provides the frames 562 to the display 510. The controller 110 uses the gaze tracking input 542 from the eye tracking camera 540 for various purposes, such as for processing the frames 562 for display. The controller 110 optionally estimates the user's gaze point on the display 510 based on the gaze tracking input 542 obtained from the eye tracking camera 540 using a flash-assisted method or other suitable method. The gaze point estimated from the gaze tracking input 542 is optionally used to determine the direction in which the user is currently looking.

[0102] Several possible use cases for the user's current gaze direction are described below and are not intended to be limiting. As an exemplary use case, the controller 110 may render virtual content differently based on the determined direction of the user's gaze. For example, the controller 110 may generate virtual content at a higher resolution in the foveal region determined according to the user's current gaze direction than in the peripheral region. As another example, the controller may position or move virtual content in a view based at least in part on the user's current gaze direction. As another example, the controller may display specific virtual content in a view based at least in part on the user's current gaze direction. As another exemplary use case in an AR application, the controller 110 may direct an external camera used to capture the physical environment of the XR experience to focus in the determined direction. The autofocus mechanism of the external camera may then focus on an object or surface in the environment that the user is currently looking at on the display 510. As another exemplary use case, the eye lens 520 may be a focusable lens, and the controller uses gaze tracking information to adjust the focus of the eye lens 520 so that the virtual object that the user is currently looking at has an appropriate degree of convergence to match the convergence of the user's eye 592. The controller 110 can use the gaze tracking information to guide the eye lens 520 to adjust the focus so that nearby objects that the user is looking at appear at the correct distance.

[0103] In some embodiments, the eye tracking device is part of a head mounted device that includes a display (e.g., display 510), two eye lenses (e.g., eye lenses 520), an eye tracking camera (e.g., eye tracking camera 540), and a light source (e.g., light source 530 (e.g., IR or NIR LED)). The light source emits light (e.g., IR or NIR light) toward the user's eye 592. In some embodiments, the light sources may be arranged in a ring or circle around each of the lenses, such as Figure 5 In some embodiments, for example, eight light sources 530 (eg, LEDs) are arranged around each lens 520. However, more or fewer light sources 530 may be used, and other arrangements and locations of the light sources 530 may be used.

[0104] In some embodiments, the display 510 emits light in the visible range and does not emit light in the IR or NIR range, and therefore does not introduce noise into the gaze tracking system. Note that the positions and angles of the eye tracking cameras 540 are given by way of example and are not intended to be limiting. In some embodiments, a single eye tracking camera 540 is located on each side of the user's face. In some embodiments, two or more NIR cameras 540 may be used on each side of the user's face. In some embodiments, a camera 540 with a wider field of view (FOV) and a camera 540 with a narrower FOV may be used on each side of the user's face. In some embodiments, a camera 540 operating at one wavelength (e.g., 850 nm) and a camera 540 operating at a different wavelength (e.g., 940 nm) may be used on each side of the user's face.

[0105] like Figure 5 Embodiments of the gaze tracking system shown in may, for example, be used in computer generated reality, virtual reality, and / or mixed reality applications to provide a computer generated reality, virtual reality, augmented reality, and / or augmented virtual experience to a user.

[0106] Fig. 6A FIG. 2 shows a flash-assisted gaze tracking pipeline according to some embodiments. In some embodiments, the gaze tracking pipeline is implemented by a flash-assisted gaze tracking system (e.g., Figure 1 and Figure 5 The flash-assisted gaze tracking system can maintain a tracking state. Initially, the tracking state is off or "no". When in the tracking state, the flash-assisted gaze tracking system uses previous information from previous frames when analyzing the current frame to track the pupil outline and the flash in the current frame. When not in the tracking state, the flash-assisted gaze tracking system attempts to detect the pupil and the flash in the current frame, and if successful, initializes the tracking state to "yes" and continues with the next frame in the tracking state.

[0107] like Fig. 6A As shown in , the gaze tracking camera can capture left and right images of the user's left and right eyes. The captured images are then input to the gaze tracking pipeline for processing starting at 610. As indicated by the arrow returning to element 600, the gaze tracking system can continue to capture images of the user's eyes at a rate of, for example, 60 to 120 frames per second. In some embodiments, each group of captured images can be input to the pipeline for processing. However, in some embodiments or under some conditions, not all captured frames are processed by the pipeline.

[0108] At 610, for the currently captured image, if the tracking status is yes, the method proceeds to element 640. At 610, if the tracking status is no, the image is analyzed to detect the user's pupil and glint in the image, as indicated at 620. At 630, if the pupil and glint are successfully detected, the method proceeds to element 640. Otherwise, the method returns to element 610 to process the next image of the user's eye.

[0109] At 640, if advancing from element 610, the current frame is analyzed to track pupils and glints based in part on previous information from previous frames. At 640, if advancing from element 630, the tracking state is initialized based on the pupils and glints detected in the current frame. The processing results at element 640 are checked to verify that the results of tracking or detection can be credible. For example, the results can be checked to determine whether the pupil and a sufficient number of glints for performing gaze estimation are successfully tracked or detected in the current frame. At 650, if the results are not likely to be credible, at element 660, the tracking state is set to no, and the method returns to element 610 to process the next image of the user's eye. At 650, if the results are credible, the method advances to element 670. At 670, the tracking state is set to YES (if not already yes), and the pupil and glint information is passed to element 680 to estimate the user's gaze point.

[0110] Fig. 6A It is intended to be used as an example of an eye tracking technology that can be used for a particular implementation. As recognized by one of ordinary skill in the art, according to various embodiments, other eye tracking technologies currently existing or developed in the future can be used in place of or in combination with the flash-assisted eye tracking technology described herein in a computer system 101 for providing an XR experience to a user.

[0111] In some embodiments, the captured portion of the real-world environment 602 is used to provide an XR experience to the user, such as a mixed reality environment in which one or more virtual objects are superimposed on top of a representation of the real-world environment 602 .

[0112] Figure 6B An exemplary environment of an electronic device 101 providing an XR experience according to some embodiments is shown. Figure 6B In FIG. 6 , the real-world environment 602 includes the electronic device 101, the user 608, and real-world objects (e.g., a table 604). Figure 6BAs shown, the electronic device 101 is optionally mounted on a tripod or otherwise fixed in the real world environment 602 so that one or more hands of the user 608 are free (e.g., the user 608 is optionally not holding the device 101 with one or more hands). As described above, the device 101 optionally has one or more groups of sensors positioned on different sides of the device 101. For example, the device 101 optionally includes a sensor group 612-1 and a sensor group 612-2, which are respectively located on the "back" side and the "front" side of the device 101 (e.g., they are capable of capturing information from the corresponding sides of the device 101). As used herein, the front side of the device 101 is the side facing the user 608, and the back side of the device 101 is the side facing away from the user 608.

[0113] In some embodiments, sensor group 612-2 includes an eye tracking unit (e.g., as described above with reference to Figure 2 The eye tracking unit 245 of device 101 includes one or more sensors for tracking the eyes and / or gaze of the user, so that the eye tracking unit can "look" at the user 608 and track the eyes of the user 608 in the manner previously described. In some embodiments, the eye tracking unit of device 101 can capture the movement, orientation and / or gaze of the eyes of the user 608 and treat the movement, orientation and / or gaze as input.

[0114] In some embodiments, sensor group 612-1 includes a hand tracking unit (e.g., as described above with reference to Figure 2 The hand tracking unit 243 described above is capable of tracking one or more hands of the user 608 held on the "back" side of the device 101, such as Figure 6B In some embodiments, a hand tracking unit is optionally included in sensor group 612-2, so that user 608 can additionally or alternatively keep one or more hands on the "front" side of device 101 while device 101 tracks the position of one or more hands. As described above, the hand tracking unit of device 101 can capture the movement, position, and / or gestures of one or more hands of user 608 and treat the movement, position, and / or gestures as input.

[0115] In some embodiments, sensor group 612-1 optionally includes one or more sensors configured to capture an image of real-world environment 602 including table 604 (e.g., such as described above with reference to Figure 4As described above, device 101 is capable of capturing images of a portion (e.g., some or all) of real-world environment 602 and presenting the captured portion of real-world environment 602 to a user via one or more display generation components of device 101 (e.g., a display of device 101, which is optionally located on a user-facing side of device 101, opposite the side of device 101 that faces the captured portion of real-world environment 602).

[0116] In some embodiments, the captured portion of the real-world environment 602 is used to provide an XR experience to the user, such as a mixed reality environment in which one or more virtual objects are superimposed on top of a representation of the real-world environment 602 .

[0117] Thus, the description herein describes some embodiments of a three-dimensional environment (e.g., an XR environment) including representations of real-world objects and representations of virtual objects. For example, the three-dimensional environment optionally includes a representation of a table present in a physical environment, which is captured and displayed in the three-dimensional environment (e.g., actively displayed via a camera and display of a computer system or passively displayed via a transparent or translucent display of a computer system). As previously described, the three-dimensional environment is optionally a mixed reality system, wherein the three-dimensional environment is based on a physical environment captured by one or more sensors of a computer system and displayed via a display generation component. As a mixed reality system, the computer system is optionally capable of selectively displaying parts and / or objects of the physical environment so that the corresponding parts and / or objects of the physical environment appear as if they exist in the three-dimensional environment displayed by the computer system. Similarly, the computer system is optionally capable of displaying virtual objects in a three-dimensional environment by placing virtual objects at corresponding positions in the three-dimensional environment that have corresponding positions in the real world to appear as if the virtual objects exist in the real world (e.g., a physical environment). For example, the computer system optionally displays a vase so that the vase appears as if a real vase is placed on top of a table in the physical environment. In some embodiments, a corresponding position in the three-dimensional environment has a corresponding position in the physical environment. Thus, when a computer system is described as displaying a virtual object at a corresponding position relative to a physical object (e.g., such as a position at or near a user's hand or at or near a physical table), the computer system displays the virtual object at a specific position in the three-dimensional environment so that it appears as if the virtual object is at or near the physical object in the physical environment (e.g., the virtual object is displayed at a position in the three-dimensional environment that corresponds to the position in the physical environment where the virtual object would be displayed if it were a real object at that specific position).

[0118] In some embodiments, real-world objects present in the physical environment that are displayed in the three-dimensional environment (e.g., and / or visible via a display generation component) can interact with virtual objects that only exist in the three-dimensional environment. For example, the three-dimensional environment may include a table and a vase placed on top of the table, where the table is a view (or representation) of a physical table in the physical environment and the vase is a virtual object.

[0119] Similarly, the user is optionally able to use one or both hands to interact with virtual objects in the three-dimensional environment as if the virtual objects were real objects in the physical environment. For example, as described above, one or more sensors of the computer system optionally capture one or more hands of the user and display representations of the user's hands in the three-dimensional environment (e.g., in a manner similar to displaying real-world objects in the three-dimensional environment described above), or in some embodiments, due to the transparency / translucency of a portion of the user interface being displayed by the display generation component, or due to the projection of the user interface onto a transparent / translucent surface or the projection of the user interface onto the user's eyes or into the field of view of the user's eyes, the user's hands can be seen via the display generation component, via the ability to see the physical environment through the user interface. Therefore, in some embodiments, the user's hands are displayed at corresponding locations in the three-dimensional environment and are treated as if they are objects in the three-dimensional environment, and these objects can interact with virtual objects in the three-dimensional environment as if these virtual objects are physical objects in the physical environment. In some embodiments, the computer system can update the display of the representation of the user's hands in the three-dimensional environment in conjunction with the movement of the user's hands in the physical environment.

[0120] In some embodiments described below, the computer system is optionally capable of determining the "effective" distance between a physical object in the physical world and a virtual object in a three-dimensional environment, for example, to determine whether the physical object is directly interacting with the virtual object (e.g., whether the hand is touching, grabbing, holding, etc., a virtual object or within a threshold distance of the virtual object). For example, the hand that directly interacts with the virtual object optionally includes one or more of the following: a finger of the hand pressing a virtual button, a user's hand grabbing a virtual vase, a user's hand closing together and pinching / holding the user interface of the application, and two fingers that perform any other type of interaction described herein. For example, when determining whether the user is interacting with a virtual object and / or how the user is interacting with the virtual object, the computer system optionally determines the distance between the user's hand and the virtual object. In some embodiments, the computer system determines the distance between the user's hand and the virtual object by determining the distance between the position of the hand in the three-dimensional environment and the position of the virtual object of interest in the three-dimensional environment. For example, the one or more hands of the user are located at a specific location in the physical world, and the computer system optionally captures the one or more hands and displays the one or more hands at a specific corresponding location in the three-dimensional environment (e.g., if the hand is a virtual hand instead of a physical hand, the location where the hand will be displayed in the three-dimensional environment). The location of the hand in the three-dimensional environment is optionally compared with the location of the virtual object of interest in the three-dimensional environment to determine the distance between the one or more hands of the user and the virtual object. In some embodiments, the computer system optionally determines the distance between the physical object and the virtual object by comparing the location in the physical world (e.g., instead of comparing the location in the three-dimensional environment). For example, when determining the distance between the one or more hands of the user and the virtual object, the computer system optionally determines the corresponding position of the virtual object in the physical world (e.g., if the virtual object is a physical object instead of a virtual object, the location where the virtual object will be located in the physical world), and then determines the distance between the corresponding physical location and the one or more hands of the user. In some embodiments, the same technology is optionally used to determine the distance between any physical object and any virtual object. Therefore, as described herein, when determining whether a physical object is in contact with a virtual object or whether a physical object is within a threshold distance of a virtual object, a computer system optionally executes any of the techniques described above to map the position of the physical object to a three-dimensional environment and / or to map the position of the virtual object to the physical environment.

[0121] In some embodiments, the same or similar techniques are used to determine where and what the user's gaze is directed to, and / or where and what the physical stylus held by the user is pointed to. For example, if the user's gaze is directed to a particular location in the physical environment, the computer system optionally determines the corresponding location in the three-dimensional environment (e.g., the virtual location of the gaze), and if a virtual object is located at the corresponding virtual location, the computer system optionally determines that the user's gaze is directed to the virtual object. Similarly, the computer system is optionally able to determine the direction in which the stylus is pointing in the physical environment based on the orientation of the physical stylus. In some embodiments, based on this determination, the computer system determines a corresponding virtual location in the three-dimensional environment that corresponds to the location in the physical environment that the stylus is pointing to, and optionally determines that the stylus is pointing to the corresponding virtual location in the three-dimensional environment.

[0122] Similarly, the embodiments described herein may refer to the position of a user (e.g., a user of a computer system) in a three-dimensional environment and / or the position of a computer system in a three-dimensional environment. In some embodiments, the user of the computer system is holding, wearing, or otherwise located at or near the computer system. Therefore, in some embodiments, the position of the computer system is used as a proxy for the position of the user. In some embodiments, the position of the computer system and / or the user in the physical environment corresponds to the corresponding position in the three-dimensional environment. For example, the position of the computer system will be a position in the physical environment (and its corresponding position in the three-dimensional environment), and if the user stands at this position, facing the corresponding part of the physical environment visible via the display generation component, the user will see from this position in the physical environment in the same positioning, orientation and / or size (e.g., in an absolute sense and / or relative to each other) of the objects displayed in the three-dimensional environment by the display generation component of the computer system or visible in the three-dimensional environment via the display generation component. Similarly, if the virtual objects displayed in the three-dimensional environment are physical objects in the physical environment (e.g., physical objects placed at the same locations in the physical environment as the virtual objects are located in the three-dimensional environment, and physical objects that have the same size and orientation in the physical environment as they do in the three-dimensional environment), then the position of the computer system and / or user is the position from which the user would see the positions of the virtual objects in the physical environment at the same positions, orientations, and / or sizes (e.g., in an absolute sense and / or relative to each other and real-world objects) as the virtual objects displayed in the three-dimensional environment by the display generation components of the computer system.

[0123] In the present disclosure, various input methods are described with respect to interaction with a computer system. When an input device or input method is used to provide an example, and another input device or input method is used to provide another example, it should be understood that each example is compatible with the input device or input method described with respect to another example and optionally utilizes the input device or input method. Similarly, various output methods are described with respect to interaction with a computer system. When an output device or output method is used to provide an example, and another output device or output method is used to provide another example, it should be understood that each example is compatible with the output device or output method described with respect to another example and optionally utilizes the output device or output method. Similarly, various methods are described with respect to interaction with a virtual environment or a mixed reality environment by a computer system. When an example is provided using interaction with a virtual environment, and another example is provided using a mixed reality environment, it should be understood that each example is compatible with the method described with respect to another example and optionally utilizes these methods. Therefore, the present disclosure discloses an embodiment as a combination of features of multiple examples, without exhaustively listing all features of the embodiment in the description of each exemplary embodiment.

[0124] User interface and associated processes

[0125] Attention is now turned to embodiments of a user interface ("UI") and associated processes that may be implemented on a computer system (such as a portable multifunction device or a head mounted device) having display generating components, one or more input devices, and (optionally) one or more cameras.

[0126] FIG. 7A to FIG. 7G An example is shown of how an electronic device updates the spatial arrangement of one or more virtual objects in a three-dimensional environment according to some embodiments.

[0127] Fig. 7A The electronic device 101 is shown to display a three-dimensional environment 702 via the display generation component 120. It should be understood that in some embodiments, the electronic device 101 uses a reference image in a two-dimensional environment without departing from the scope of the present disclosure. FIG. 7A to FIG. 7G One or more of the techniques described above. Figure 1As described in FIG. 6 , the electronic device 101 optionally includes a display generation component 120 (e.g., a touch screen) and multiple image sensors 314. The image sensor optionally includes one or more of the following: a visible light camera; an infrared camera; a depth sensor; or any other sensor that the electronic device 101 can use to capture one or more images of a user or a portion of a user when the user interacts with the electronic device 101. In some embodiments, the display generation component 120 is a touch screen that can detect gestures and movements of the user's hands. In some embodiments, the user interface shown below can also be implemented on a head-mounted display, which includes a display generation component that displays the user interface to the user, and sensors that detect the physical environment and / or the movement of the user's hands (e.g., external sensors facing outward from the user) and / or sensors that detect the user's gaze (e.g., internal sensors facing inward toward the user's face).

[0128] exist Fig. 7A In the embodiment, the electronic device 101 displays a three-dimensional environment 702, which includes, for example, a first user interface 704 of a first application, a second user interface 706 of a second application, a representation 708 of a second user of a second electronic device accessing the three-dimensional environment 702, and a representation 710 of the second electronic device. In some embodiments, the electronic device 101 displays the three-dimensional environment 702 from the viewpoint of the user of the electronic device 101. In some embodiments, the viewpoint of the user of the electronic device 101 is located at a position in the three-dimensional environment 702 that corresponds to the physical position of the electronic device 101 in the physical environment of the electronic device 101.

[0129] In some embodiments, the first application is private to the electronic device 101 and is not shared with the second electronic device, so the electronic device 101 displays the user interface 704 of the first application, but the second electronic device does not display the user interface 704 of the first application. In some embodiments, the second application is shared between the electronic device 101 and the second electronic device, so the first electronic device 101 and the second electronic device display the user interface 706 of the second application.

[0130] In some embodiments, the representation 708 of the second user and / or the representation 710 of the second electronic device is a view of the second user and the second electronic device through a transparent portion of the display generation component 120 (e.g., true or real see-through). For example, the second electronic device is located in the physical environment of the electronic device 120 and has the same spatial relationship with the electronic device 101 as the spatial relationship between the representation 710 of the second electronic device and the user's viewpoint in the three-dimensional environment 702. In some embodiments, the representation 708 of the second user and / or the representation 710 of the second electronic device is a representation displayed via the display generation component 120 (e.g., virtual or video see-through). For example, the second electronic device is positioned away from the electronic device 101, or is positioned relative to the electronic device 101 in a spatial relationship different from the spatial relationship between the representation 710 of the second electronic device and the user's viewpoint in the three-dimensional environment. In some embodiments, when the second electronic device is located in the physical environment of the electronic device 120 and has the same spatial relationship with the electronic device 101 as the spatial relationship between the representation 710 of the second electronic device and the user's viewpoint in the three-dimensional environment 702, the electronic device 101 displays the representations 708 and 710 via the display generation component. In some embodiments, the electronic device 101 displays a representation 708 of the second user without displaying a representation 710 of the second electronic device.

[0131] In some embodiments, the spatial arrangement of user interfaces 704 and 706 and representations 708 and 710 relative to the viewpoint of a user of electronic device 101 satisfies one or more criteria that specify a range of positioning and / or orientation of (e.g., virtual) objects in three-dimensional environment 702 relative to the user's viewpoint. For example, the one or more criteria define the spatial arrangement of user interfaces 704 and 706 and representations 708 and 710 relative to the viewpoint of the user of electronic device 101, which enables the user of electronic device 101 (and optionally a second user of a second electronic device) to view and interact with user interfaces 704 and 706 and representations 708 and 710. For example, Fig. 7A The spatial arrangement of user interfaces 704 and 706 and representations 708 and 710 relative to a user's viewpoint is shown in , enabling a user of electronic device 101 to view and / or interact with user interfaces 704 and 706 .

[0132] In some embodiments, the electronic device 101 responds to detecting Fig. 7A, updates the viewpoint of a user of the electronic device 101 from which the three-dimensional environment 702 is displayed in response to movement of the electronic device 101 (e.g., and / or the display generation component 120) in the physical environment of the electronic device 101 (e.g., and / or the display generation component 120). In some embodiments, the electronic device 101 updates the viewpoint of the user in response to detecting (e.g., via the input device 314) movement of the user of the electronic device 101 in the physical environment of the user and / or the electronic device 101 and / or the display generation component 120.

[0133] Figure 7B The electronic device 101 responds to the detection Fig. 7A 1000. In some embodiments, the electronic device 101 similarly updates the three-dimensional environment 702 in response to input corresponding to a request to update the positioning of virtual objects (e.g., user interfaces 704 and 706 and representations 708 and 710) together or separately according to one or more steps of method 1000. Figure 7B As shown in FIG. , the positioning of the electronic device 101 in the physical environment of the electronic device 101 is responsive to Fig. 7A , and the user's viewpoint in the three-dimensional environment 702 from which the electronic device 101 displays the three-dimensional environment 702 is also updated accordingly. For example, the user interfaces 704 and 706 and the representations 708 and 710 are updated in Figure 7B in and with them Fig. 7A It is farther away from the user's viewpoint than in the image above.

[0134] In some embodiments, the spatial arrangement of user interfaces 704 and 706 and representations 708 and 710 relative to a viewpoint of a user of electronic device 101 does not satisfy one or more criteria. For example, the criteria are not satisfied because user interface 704 and / or user interface 706 are greater than a threshold distance from the user's viewpoint in the three-dimensional environment (e.g., a threshold distance for legibility and / or the user's ability to provide input to user interfaces 704 and / or 706). Additional criteria are described below with reference to method 800. In some embodiments, because the spatial arrangement does not satisfy one or more criteria, electronic device 101 displays selectable option 712, which, when selected, causes electronic device 101 to update three-dimensional environment 702 so that the spatial arrangement of user interfaces 704 and 706 and representations 708 and 710 relative to the user's viewpoint satisfies the one or more criteria (e.g., "re-centers" three-dimensional environment 702).

[0135] In some embodiments, the electronic device 101 detects input corresponding to a request to re-center the three-dimensional environment 702, such as detecting a selection of a selectable re-center option 712 or detecting input directed to a mechanical input device (such as a button 703) that communicates with the electronic device 101.

[0136] In some embodiments, the electronic device 101 detects the selection of one of the user interface elements (such as the selectable option 712) by detecting an indirect selection input, a direct selection input, an air gesture selection input, or an input device selection input. In some embodiments, detecting the selection of the user interface element includes: detecting the user's hand 713a performing a corresponding gesture (e.g., "hand state B"). In some embodiments, detecting the indirect selection input includes: detecting the user's gaze pointing to the corresponding user interface element via the input device 314 while detecting the user's hand 713a making a selection gesture (e.g., "hand state B") (such as a pinch hand gesture in which the user touches his thumb to another finger of the hand). In some embodiments, detecting the direct selection input includes: detecting the user's hand 713a making a selection gesture (e.g., "hand state B") via the input device 314, such as a pinch gesture within a predefined threshold distance (e.g., 1, 2, 3, 5, 10, 15, or 30 centimeters) of the location of the corresponding user interface element, or a press gesture in which the user's hand or finger "presses" the location of the corresponding user interface element when in the shape of a pointing hand. In some embodiments, detecting the air gesture input includes: detecting a user's gaze directed toward the corresponding user interface element while detecting a press gesture at the location of the air gesture user interface element displayed in the three-dimensional environment 702 via the display generation component 120. In some embodiments, detecting the input device selection includes detecting manipulation of a mechanical input device (e.g., a stylus, a mouse, a keyboard, a trackpad, etc.) in a predefined manner corresponding to selection of the user interface element when a cursor controlled by the input device is associated with the location of the corresponding user interface element and / or when the user's gaze is directed toward the corresponding user interface element.

[0137] In some embodiments, button 703 is a multi-function button. For example, in response to detecting that a user presses button 703a for less than a threshold time period (e.g., 0.1, 0.2, 0.3, 0.5, 1, or 2 seconds), the electronic device 101 displays a home user interface (e.g., a user interface of an operating system of the electronic device 101), and in response to detecting that a user presses button 703 for more than a threshold time period, the electronic device 101 re-centers the three-dimensional environment 702. In some embodiments, the electronic device 101 communicates with a crown or dial that is configured to detect that the user presses the dial or turns the dial. In some embodiments, in response to detecting that the user turns the dial, the electronic device updates the level of visual emphasis of the virtual object (e.g., user interfaces 704 and 706, representations 708 and 710) relative to other parts of the three-dimensional environment 702 according to the direction and magnitude of the dial rotation. In some embodiments, in response to detecting that the user presses the dial for less than a threshold time period, the electronic device 101 displays a home user interface, and in response to detecting that the user presses the dial for more than a threshold time period, the electronic device 101 re-centers the three-dimensional environment 702.

[0138] In some embodiments, Figure 7B The input of pointing to the re-center option 712 and the input of pointing to the button 703 correspond to a request to re-center the three-dimensional environment 702. Figure 7B Two inputs are shown, but it should be understood that in some embodiments, the electronic device 101 detects these inputs one at a time rather than detecting the inputs simultaneously. In some embodiments, in response to Figure 7B In response to one of the inputs (or multiple inputs) shown in FIG. 1 , the electronic device 101 updates the three-dimensional environment 702, such as Figure 7C In some embodiments, the electronic device 101 does not re-center the three-dimensional environment 702 unless and until input corresponding to a request to do so is received (e.g., even if the spatial arrangement of the virtual objects relative to the user's viewpoint does not meet one or more criteria).

[0139] Figure 7C The electronic device 101 is shown to display the Figure 7B The three-dimensional environment 702 is updated by one or more of the inputs shown in FIG. Figure 7B Prior to the re-centering input shown in FIG. 1 , the viewpoint of the user of the electronic device 101 moves away from the user interfaces 704 and 706 and representations 708 and 710, as shown in FIG. Fig. 7A, so in response to the re-centering input, the electronic device 101 updates the positioning of the user interfaces 704 and 706 and the representations 708 and 710 in the three-dimensional environment 702, so that the spatial arrangement of the user interfaces 704 and 706 and the representations 708 and 710 relative to the user's viewpoint meets one or more of the above criteria. For example, the electronic device 101 updates the positioning and / or orientation of the user interfaces 704 and 706 and the representations 708 and 710 based on the updated viewpoint of the user in the three-dimensional environment 702, so that the spatial arrangement of the user interfaces 704 and 706 and the representations 708 and 710 relative to the user's updated viewpoint meets one or more criteria. In some embodiments, when the spatial arrangement of the user interfaces 704 and 706 and the representations 708 and 710 relative to the user's updated viewpoint meets one or more criteria, the distance of the user interfaces 704 and 706 from the viewpoint of the user of the electronic device 101 and / or the orientation relative to the user's viewpoint facilitates user interaction with the user interface.

[0140] In some embodiments, the electronic device 101 uses a spatial template associated with one or more virtual objects to re-center the three-dimensional environment 702. For example, the user interface 706 of the second application is shared content (e.g., video content) consumed by a user of the electronic device 101 and a second user of the second electronic device, and is associated with a shared content spatial template. In some embodiments, the shared content spatial template includes positioning the user interface 706 and representations 708 and 710 relative to the viewpoint of the user of the electronic device 101, so that the viewpoint of the user of the electronic device 101 and the viewpoint of the user of the second electronic device (e.g., represented by representations 708 and 710) are on the same side of the user interface 706, at a distance at which the content included in the user interface 706 is visible to the user.

[0141] Therefore, if FIG. 7B to FIG. 7C As shown in , in some embodiments, in response to (e.g., in response to Fig. 7AIn some embodiments, the electronic device 101 detects a request to re-center the three-dimensional environment 702 after updating the user's viewpoint (e.g., movement of the electronic device 101 shown in FIG. 1 ), the electronic device 101 re-centers the three-dimensional environment 702 by updating the position and / or orientation of the user interfaces 704 and 706 and representations 708 and 710. In some embodiments, the electronic device 101 detects an input corresponding to a request to move the user interfaces 704 and 706 and representations 708 and 710 away from the user's viewpoint before detecting the re-centering input. In some embodiments, in response to detecting the re-centering input after detecting the request to move the user interfaces 704 and 706 and representations 708 and 710, the electronic device 101 updates the user's viewpoint in the three-dimensional environment 702 (e.g., different from updating the position and / or orientation of the user interfaces 704 and 706 and / or representations 708 and 710). For example, the electronic device 101 moves the user's viewpoint to a new position in the three-dimensional environment (e.g., independent of the position of the electronic device 101 in the physical environment) to update the spatial arrangement of the user interfaces 704 and 706 and representations 708 and 710 relative to the user's viewpoint to satisfy one or more of the above criteria.

[0142] Figure 7C Also shown is an example of the electronic device 101 detecting input corresponding to a request to update the positioning of the user interface 704 of the first application in the three-dimensional environment 702. For example, the hand 713a provides a selection input directed to the user interface 704 of the first application, as described above. In some embodiments, the electronic device 101 detects movement of the hand 713a after detecting a portion of the selection input, such as when the hand is in a pinching hand shape with the thumb touching other fingers but before moving the thumb and fingers apart to complete the pinch gesture. In some embodiments, the electronic device 101 updates the positioning of the user interface 704 of the first application based on the movement of the hand 713a detected midway through the selection input, such as Fig.7D as shown in .

[0143] Fig.7D The electronic device 101 responds to Figure 7C800 . In some embodiments, the position of the user interface 704 of the first application is updated so that the spatial arrangement of the user interfaces 704 and 706 and representations 708 and 710 relative to the user's viewpoint does not meet one or more criteria. For example, the user interface 704 of the first application is not entirely within the field of view of the electronic device 101. For another example, the spacing between the user interface 704 of the first application and the user interface 706 of the second application exceeds a predefined threshold included in one or more criteria described below with reference to method 800. In some embodiments, in response to detecting that one or more criteria are not met, the electronic device 101 displays a re-center option 712.

[0144] In some embodiments, the electronic device 101 detects an input corresponding to a request to re-center the three-dimensional environment 702. For example, the electronic device 101 detects a selection of the re-center option 712 using the hand 713a or detects a selection of the re-center option 712 using the hand 713a. Fig.7D In some embodiments, in response to detecting an input corresponding to a request to re-center the three-dimensional environment 101 after updating the positioning of the user interface 704, the electronic device 101 updates the positioning of the user interface 704 to meet one or more criteria, such as Fig. 7E as shown in .

[0145] Fig. 7E The electronic device 101 responds to Fig.7D , and the user interface 704 of the first application is displayed at an updated position (e.g., and / or orientation) in the three-dimensional environment 702 in response to the re-centering input shown in . In some embodiments, because the position (e.g., and / or orientation) of the user interface 704 of the first application was updated (e.g., different from the movement of the user's viewpoint causing one or more criteria to not be satisfied) before receiving the input corresponding to the request to re-center the three-dimensional environment 702, the electronic device 101 updates the position (e.g., and / or orientation) of the user interface 704 of the first application in the three-dimensional environment 702 in response to the re-centering input (e.g., without updating the user's viewpoint). For example, the electronic device 101 updates the position and / or orientation of the user interface 704 of the first application to be within a threshold distance (e.g., the threshold distance included in one or more criteria) of the user interface 706 of the second application, and ensures that the user interface 704 of the first application is within the field of view of the electronic device 101. In some embodiments, if the electronic device 101 has detected movement of a different virtual object (such as the user interface 706 of a second application) before detecting the re-centering input, the electronic device 101 will instead update the position (e.g., and / or orientation) of the virtual object in response to the re-centering input.

[0146] In some embodiments, the electronic device 101 updates the position of the user interface 704 of the first application in response to the re-centering input, regardless of which electronic device provided a previous request to reposition and / or reorient the user interface 704 before the electronic device 101 detected the re-centering input. For example, if a second user of a second electronic device updates the position of a user interface 706 of a second application (e.g., both electronic devices can access the second application), the second electronic device and the electronic device 101 will display the user interface 706 at the updated position and / or orientation in the three-dimensional environment 702 according to the input provided by the second user of the second electronic device. If the electronic device 101 detects the re-centering input while displaying the user interface 706 at the position and orientation according to the input detected by the second electronic device, the electronic device 101 updates the position and / or orientation of the user interface 706 in the three-dimensional environment 702 to meet one or more of the above criteria. In some embodiments, updating the position of the user interface 706 in the three-dimensional environment 702 causes the electronic device 101 and the second electronic device to display the user interface 706 at the updated position and / or location.

[0147] Figure 7F An example is shown in which the electronic device 101 displays a three-dimensional environment 702 including a user interface 714 of a third application. Figure 7F As shown in , a portion of the user interface 714 of the third application is within the field of view of the electronic device 101, and a portion of the user interface 714 of the third application is outside the field of view of the electronic device 101. Although the second user 708 is included in the three-dimensional environment 702, because the second user 708 is not in the field of view of the electronic device 101, the electronic device 101 does not display a representation of the second user or a representation of the second electronic device. In some embodiments, the spatial arrangement of the user's viewpoint, the user interface 714 of the third application, and the second user 708 does not meet one or more of the above standards. For example, at least because the second user 708 is not in the field of view of the electronic device 101, and a portion of the user interface 714 of the third application is not in the field of view of the electronic device 101, one or more standards are not met. Because one or more standards are not met, the electronic device 101 displays the re-center option 712 in the three-dimensional environment 702.

[0148] In some embodiments, such as Figure 7F As shown in , the electronic device 101 detects input corresponding to a request to re-center the three-dimensional environment 702. In some embodiments, the input includes detecting input pointing to button 703. In some embodiments, the input includes detecting selection of re-center option 712 by hand 713a. Figure 7FTwo inputs are shown, but it should be understood that in some embodiments, the inputs are not detected simultaneously. In some embodiments, in response to the re-centering input, the electronic device 101 updates the three-dimensional environment 702, such as Figure 7G as shown in .

[0149] Figure 7G The electronic device 101 responds to the above reference Figure 7F An example of displaying a three-dimensional environment 702 in response to a re-centering input in the described input. In some embodiments, in response to the re-centering input, the electronic device 101 updates the viewpoint of the user in the three-dimensional environment 702 so that the field of view of the electronic device 101 includes a representation 708 of the second user, a representation 710 of the second electronic device, and a user interface 714 of the third application.

[0150] In some embodiments, the electronic device 101 updates the three-dimensional environment 702 according to the shared activity space template associated with the user interface 714 of the third application. For example, the user interface 714 of the third application includes a virtual table game or other content that is intended to be viewed by the user from different sides of the user interface 714 of the third application. Therefore, in some embodiments, updating the three-dimensional environment 702 in response to the request to re-center includes: updating the spatial arrangement of the user's viewpoint, the user interface 714 of the third application, the representation 708 of the second user, and the representation 710 of the second electronic device to position the user interface 714 of the third application between the user's viewpoint and the representation 708 of the second user.

[0151] In some embodiments, the electronic device 101 updates the three-dimensional environment 702 based on other spatial templates, depending on which spatial templates are applied to the three-dimensional environment 702. For example, in some embodiments, the three-dimensional environment 702 is associated with a group activity spatial template that may not be associated with a specific user interface in the three-dimensional environment 702. For example, the group activity spatial template is used for (e.g., virtual) meetings between users. In some embodiments, the electronic device 101 applies the group activity spatial template by re-centering the user's viewpoint to a position where the user's viewpoint faces each other and multiple users are in the user's field of view of the electronic device 101.

[0152] In some embodiments, Figure 7G In the embodiment, the three-dimensional environment 702 is updated according to the positioning and / or movement of the second user's representation 708. For example, re-centering the three-dimensional environment 702 includes: updating the three-dimensional environment 702 so that the users are relative to each other with respect to the user interface 714 of the third application. In some embodiments, if the second user 708 has a corresponding position in the three-dimensional environment 702 when the re-centering input is received, Figure 7F If the electronic device 101 is positioned differently from the positioning shown in Figure 7FThe re-centering input shown in Figure 7G 702 (eg, based on the positioning of the second user 708 in the three-dimensional environment 702).

[0153] about FIG. 7A to FIG. 7G Additional or alternative details of the embodiments shown in the are provided below with reference to FIG. 8A to FIG. 8K The method 800 is described in the description.

[0154] FIG. 8A to FIG. 8K 800 is a flowchart illustrating a method for updating a spatial arrangement of one or more virtual objects in a three-dimensional environment according to some embodiments. Figure 1 101) in the computer system, the computer system including a display generation component (e.g., Figure 1 , Figure 3 and Figure 4 In some embodiments, method 800 is performed by storing in a non-transitory computer-readable storage medium and by one or more processors of a computer system, such as one or more processors 202 of computer system 101 (e.g., Figure 1 Some operations in method 800 are optionally combined, and / or the order of some operations is optionally changed.

[0155] In some embodiments, method 800 is performed at an electronic device (e.g., 101) (e.g., a mobile device (e.g., a tablet, smart phone, media player, or wearable device) or a computer) that communicates with a display generation component and one or more input devices. In some embodiments, the display generation component is a display (optionally a touch screen display) integrated with the electronic device, an external display such as a monitor, a projector, a television, or a hardware component (optionally integrated or external) for projecting a user interface or making a user interface visible to one or more users, etc. In some embodiments, the one or more input devices include a device capable of receiving user input (e.g., capturing user input, detecting user input, etc.) and transmitting information associated with the user input to the electronic device. Examples of input devices include a touch screen, a mouse (e.g., external), a trackpad (optionally integrated or external), a touchpad (optionally integrated or external), a remote control device (e.g., external), another mobile device (e.g., separate from the electronic device), a handheld device (e.g., external), a controller (e.g., external), a camera, a depth sensor, an eye tracking device, and / or a motion sensor (e.g., a hand tracking device, a hand motion sensor), etc. In some embodiments, the electronic device communicates with a hand tracking device (e.g., one or more cameras, depth sensors, proximity sensors, touch sensors (e.g., touch screen, trackpad)). In some embodiments, the hand tracking device is a wearable device, such as a smart glove. In some embodiments, the hand tracking device is a handheld input device, such as a remote control or a stylus.

[0156] In some embodiments, such as Fig. 7AIn the embodiment of the present invention, when a three-dimensional environment (e.g., 702) including a plurality of virtual objects (e.g., 704, 706) having a first spatial arrangement relative to a current viewpoint of a user of an electronic device (e.g., 101) is displayed via a display generation component (e.g., 120), the electronic device (e.g., 101) detects (802a) a movement of the user's current viewpoint from the first viewpoint to the second viewpoint in the three-dimensional environment (e.g., 702) via one or more input devices (e.g., 314). In some embodiments, the three-dimensional environment includes virtual objects, such as application windows, operating system elements, representations of other users, and / or content items and / or representations of physical objects in the physical environment of the electronic device. In some embodiments, the representations of the physical objects are displayed in the three-dimensional environment via the display generation component (e.g., virtual or video pass-through). In some embodiments, the representations of the physical objects are views of the physical objects in the physical environment of the electronic device that are visible through a transparent portion of the display generation component (e.g., real or true pass-through). In some embodiments, the electronic device displays the three-dimensional environment from the user's viewpoint, and the user's viewpoint is at a position in the three-dimensional environment corresponding to the physical position of the electronic device in the physical environment of the electronic device. In some embodiments, a three-dimensional environment is generated, displayed, or otherwise enabled to be viewed through a device (e.g., a computer-generated reality (XR) environment, such as a virtual reality (VR) environment, a mixed reality (MR) environment, or an augmented reality (AR) environment, etc.). In some embodiments, detecting movement of a user's viewpoint includes: detecting movement of at least a portion of the user (e.g., the user's head, torso, hands, etc.). In some embodiments, detecting movement of a user's viewpoint includes: detecting movement of an electronic device or a display generation component. In some embodiments, displaying a three-dimensional environment from a user's viewpoint includes: displaying the three-dimensional environment from a perspective associated with the position of the user's viewpoint in the three-dimensional environment. In some embodiments, updating the user's viewpoint causes the electronic device to display multiple virtual objects from a perspective associated with the position of the user's updated viewpoint. For example, if the user's viewpoint moves to the left, the electronic device updates the positioning of multiple virtual objects displayed via the display generation component to move to the right.

[0157] In some embodiments, such as Figure 7BIn response to detecting a movement corresponding to a movement of a user's current viewpoint from a first viewpoint to a second viewpoint, an electronic device (e.g., 101) displays (e.g., 802b) a three-dimensional environment (e.g., 702) from a second viewpoint via a display generation component (e.g., 120), the three-dimensional environment including a plurality of virtual objects having a second spatial arrangement different from the first spatial arrangement relative to the user's current viewpoint. In some embodiments, the positions of the plurality of virtual objects in the three-dimensional environment remain the same, while the position of the user's viewpoint in the three-dimensional environment changes, thereby changing the spatial arrangement of the plurality of objects relative to the user's viewpoint. For example, if the user's viewpoint moves away from the plurality of virtual objects, the electronic device displays the virtual objects at the same position in the three-dimensional environment before the movement of the user's viewpoint, and increases the amount of space between the user's viewpoint and the virtual objects (e.g., by displaying the virtual objects at a smaller size, by increasing the stereoscopic depth of the objects, etc.).

[0158] In some embodiments, such as Figure 7B In the method of claim 802, when displaying a three-dimensional environment (e.g., 702) including a plurality of virtual objects (e.g., 704, 706) having a second spatial arrangement relative to a user's current viewpoint from a second viewpoint, the electronic device (e.g., 101) receives (802c) via one or more input devices (e.g., 314) an input corresponding to a request to update the spatial arrangement of the plurality of virtual objects relative to the user's current viewpoint to satisfy one or more criteria, the one or more criteria specifying a distance range or orientation range of the virtual objects relative to the user's current viewpoint (e.g., and not based on a previous viewpoint of the user). In some embodiments, the input and / or one or more inputs described with reference to method 800 are air gesture inputs. In some embodiments, an air gesture is a gesture that is detected without the user touching an input element that is part of the device (or independent of an input element that is part of the device) and is based on detected movement of a part of the user's body through the air, including movement of the user's body relative to an absolute reference (for example, the angle of the user's arm relative to the ground or the distance of the user's hand relative to the ground), movement relative to another part of the user's body (for example, movement of the user's hand relative to the user's shoulder, movement of one of the user's hands relative to the user's other hand, and / or movement of the user's fingers relative to another finger or part of the user's hand), and / or absolute movement of a part of the user's body (for example, a tap gesture involving moving the hand in a predetermined posture by a predetermined amount and / or speed, or a shake gesture involving a predetermined speed or amount of rotation of a part of the user's body).

[0159] As will be described in more detail below, in some embodiments, the input corresponding to the request to update the spatial arrangement of the multiple objects relative to the user's viewpoint to meet one or more standards is an input to a hardware button, switch, etc. that communicates with the electronic device (e.g., merged with the electronic device). As will be described in more detail below, in some embodiments, the input corresponding to the request to update the three-dimensional environment to meet one or more standards is an input to a selectable option displayed via a display generation component. In some embodiments, although the user's viewpoint is a second viewpoint and the multiple virtual objects are displayed in a second spatial arrangement relative to the user's viewpoint, the spatial orientation of the multiple virtual objects is not based on the user's current viewpoint. For example, the spatial arrangement of the multiple objects is based on the user's first viewpoint or another viewpoint of the user before the second viewpoint. In some embodiments, the electronic device initially presents the virtual object in the three-dimensional environment based on the position of the user's viewpoint when the virtual object is initially displayed. In some embodiments, the virtual object is initially placed according to one or more criteria, including criteria that are satisfied when an interactive portion of the virtual object is oriented toward the user's viewpoint, the virtual object does not obstruct the view of other virtual objects from the user's viewpoint, the virtual object is within a threshold distance (e.g., 10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 1000, or 2000 centimeters) of the user's viewpoint, the virtual objects are within a threshold distance (e.g., 1, 5, 10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 1000, or 2000 centimeters) of each other, etc. In some embodiments, the input is different from an input requesting an update to the positioning (e.g., relative to the user's viewpoint) of one or more objects in the three-dimensional environment, such as the input described herein with reference to method 1000.

[0160] In some embodiments, such as Figure 7CIn response to an input corresponding to a request to update a three-dimensional environment (e.g., 702), an electronic device (e.g., 101) displays (e.g., 802b) a three-dimensional environment (e.g., 702) from a second viewpoint via a display generation component (e.g., 120), including displaying the plurality of virtual objects (e.g., 704, 706) in a third spatial arrangement different from the second spatial arrangement relative to a user's viewpoint, wherein the third spatial arrangement of the plurality of virtual objects satisfies one or more criteria. In some embodiments, the one or more criteria include criteria that are met when the interactive portion of the virtual object is oriented toward the user's viewpoint, the virtual object does not obstruct the view of other virtual objects from the user's viewpoint, the virtual object is within a threshold distance of the user's viewpoint (e.g., 10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 1000, or 2000 centimeters), the virtual objects are within a threshold distance of each other (e.g., 1, 5, 10, 20, 30, 40, 50, 100, 200, 300, 400, 500, 1000, or 2000 centimeters), and the like. In some embodiments, the third spatial arrangement is the same as the first spatial arrangement (e.g., the first spatial arrangement is based on the user's first viewpoint). In some embodiments, the third spatial arrangement is different from the first spatial arrangement (e.g., the first spatial arrangement is not based on the user's first viewpoint, and when the user's viewpoint is a second viewpoint, real objects in the three-dimensional environment prevent virtual objects from being placed in the first spatial arrangement). In some embodiments, displaying the plurality of virtual objects in the third spatial arrangement includes: updating the position (e.g., and / or pose) of one or more of the virtual objects while maintaining the user's second viewpoint at a constant position in the three-dimensional environment. In some embodiments, in response to the input, the electronic device updates the positioning of the virtual object from a position that is not necessarily oriented around the user's viewpoint to a position oriented around the user's viewpoint.

[0161] In response to input, the three-dimensional environment is updated to include displaying multiple virtual objects in a third spatial arrangement that satisfies one or more criteria, and the user's interaction with the electronic device is enhanced by providing an efficient way to display the virtual objects in a spatial arrangement based on the user's updated viewpoint, thereby enabling the user to quickly and efficiently use the electronic device through the enhanced layout of the virtual objects in the three-dimensional environment.

[0162] In some embodiments, such as Figure 7B In some embodiments, receiving input corresponding to a request to update the spatial arrangement of multiple virtual objects includes: receiving the input (804) via a hardware input device (e.g., 703) in one or more input devices. In some embodiments, the hardware input device detects the input by detecting a user's physical manipulation of a mechanical input device. In some embodiments, the mechanical input device is a button, a switch, a dial, etc.

[0163] Updating the spatial arrangement of multiple virtual objects in response to input received via a mechanical input device provides an efficient and consistent way to update the spatial arrangement of multiple virtual objects in a three-dimensional environment, thereby enabling users to quickly and efficiently use electronic devices through enhanced input mechanisms.

[0164] In some embodiments, such as Figure 7B In some embodiments, the input corresponding to the request to update the spatial arrangement of multiple virtual objects satisfies one or more first input criteria (806a). In some embodiments, the one or more first input criteria are associated with the input corresponding to the request to update the spatial arrangement of the multiple virtual objects. In some embodiments, the electronic device is configured to accept multiple inputs corresponding to different corresponding operations via a mechanical input device, and the multiple inputs satisfy different sets of criteria in order to determine the operation corresponding to the received input. For example, the mechanical input device is a button or a dial configured to be pushed like a button, and the one or more first criteria are met when the electronic device detects that the mechanical input device is pressed for a time period that satisfies (e.g., greater than or less than) a threshold time period (e.g., 0.1, 0.2, 0.3, 0.5, 1, 2, 3, 4, or 5 seconds).

[0165] In some embodiments, such as Figure 7B In the embodiment, the electronic device (eg, 101) receives (806b) a second input via a hardware input device (eg, 703). In some embodiments, the second input does not meet one or more first input criteria.

[0166] In some embodiments, in response to receiving a second input, based on determining that the second input satisfies one or more second input standards that are different from the one or more first input standards, the electronic device (e.g., 101) performs (806c) a corresponding operation corresponding to the second input without updating the spatial arrangement of the multiple virtual objects (e.g., displaying a home user interface via a display generation component). For example, when the input includes detecting that the mechanical input device is pressed for more than a threshold time period, the one or more first input standards are satisfied, and when the input includes detecting that the mechanical input device is pressed for less than a threshold time period, the one or more second input standards are satisfied. For another example, when the input includes detecting that the mechanical input device is pressed for less than a threshold time period, the one or more first input standards are satisfied, and when the input includes detecting that the mechanical input device is pressed for more than a threshold time period, the one or more second input standards are satisfied. In some embodiments, based on determining that the second input satisfies one or more third input standards that are different from the one or more first input standards and the one or more second input standards, the electronic device modifies the amount of visual emphasis of one or more representations of real objects in a three-dimensional environment displayed by the electronic device via a display generation component. In some embodiments, the one or more third input criteria include criteria that are met when the input includes a directional aspect (such as rotation of a dial, selection of a directional button, or movement of a contact on a touch-sensitive surface). In response to meeting the third input criteria, the electronic device optionally modifies the relative visual emphasis of the representation of the physical environment displayed in the three-dimensional environment relative to other parts of the three-dimensional environment (e.g., not updating the spatial arrangement of the multiple virtual objects and / or not performing corresponding operations). In some embodiments, the electronic device modifies the relative visual emphasis amount based on a measure of movement of the input that meets the third input criteria (e.g., the direction, speed, duration, distance, etc. of the movement or directional component of the input).

[0167] Determining whether input received via a mechanical input device corresponds to a request to update the spatial arrangement of multiple virtual objects based on one or more input criteria provides an efficient way to perform multiple operations in response to input received via a mechanical input device, thereby enhancing user interaction with an electronic device by providing a streamlined human-computer interface.

[0168] In some embodiments, such as Figure 7BIn some embodiments, receiving input corresponding to a request to update the spatial arrangement of multiple virtual objects (e.g., 704, 706) includes: detecting a selection (808) of a user interface element (e.g., 712) displayed in a three-dimensional environment (e.g., 702) via a display generation component (e.g., 120). In some embodiments, the selection of the user interface element is detected via an input device (e.g., a keyboard, a touchpad, a stylus, a hand tracking device, an eye tracking device) that manipulates a cursor and detects the selection of the user interface element at the location where the cursor is displayed. In some embodiments, the selection of the user interface element is detected via an input device (e.g., a touch-sensitive surface, a hand tracking device) that tracks a position corresponding to a corresponding part of the user (e.g., a hand), and the selection is detected when a selection gesture (e.g., a corresponding hand shape, a three-dimensional gesture made with the hand, a touch gesture detected via a touch-sensitive surface) is performed at a position corresponding to a selectable user interface element. In some embodiments, detecting the selection of the user interface element includes: detecting the user's attention (e.g., gaze) directed to the user interface element while detecting a predetermined gesture of the corresponding part of the user (e.g., hand). For example, the gesture is a pinch gesture in which the thumb touches another finger of the hand. In another example, the gesture is a press gesture in which an extended finger of the hand presses a user interface element in a three-dimensional environment (e.g., while one or more other fingers are curled toward the palm).

[0169] By detecting the selection of a user interface element to receive input corresponding to a request to update the spatial arrangement of multiple virtual objects, an effective way is provided to instruct the user how to update the spatial arrangement of the multiple virtual objects, thereby enhancing the user's interaction with the electronic device with improved visual feedback, thereby enabling the user to use the device more quickly and efficiently.

[0170] In some embodiments, such as Figure 7B In some embodiments, displaying the plurality of virtual objects (e.g., 704, 706) in a second spatial arrangement includes: displaying the plurality of virtual objects (e.g., 704, 706) (810a) at a first location (e.g., relative to a corresponding reference point in the three-dimensional environment) in a three-dimensional environment (e.g., 702) (810a) via a display generation component (e.g., 120). In some embodiments, the electronic device displays the plurality of virtual objects in a second spatial arrangement in response to detecting movement of a user's viewpoint.

[0171] In some embodiments, such as Figure 7CIn some embodiments, in response to receiving the input, the electronic device (e.g., 101) moves the multiple virtual objects from a first position (810a) to a second position in the three-dimensional environment (e.g., relative to corresponding reference points in the three-dimensional environment) (810b). In some embodiments, the electronic device updates the positions of the multiple virtual objects in the three-dimensional environment (e.g., rather than updating the position of the user's viewpoint in the three-dimensional environment) in response to receiving the input to meet one or more criteria. In some embodiments, the electronic device updates the positions of the multiple virtual objects in response to receiving the input and updates the position of the user's viewpoint to meet one or more criteria.

[0172] By updating the positioning of the multiple virtual objects in response to receiving input after detecting movement of the user's viewpoint to meet one or more criteria, an effective way of presenting the multiple virtual objects in a manner comfortable to the user is provided, thereby enhancing the user's interaction with the electronic device by reducing the cognitive burden, time, and input required to interact with the multiple virtual objects.

[0173] In some embodiments, such as Figure 7C In the embodiment of the present invention, when displaying a three-dimensional environment (e.g., 702) including a corresponding virtual object (e.g., 704) among the multiple virtual objects (e.g., 704, 706) at a first position in the three-dimensional environment (e.g., 702) via a display generation component (e.g., 120), wherein the spatial arrangement of the multiple virtual objects relative to the user's current viewpoint is a first corresponding spatial arrangement that satisfies one or more criteria, the electronic device (e.g., 101) receives (812a) via one or more input devices an input corresponding to a request to update the position of the corresponding virtual object (e.g., 704) in the three-dimensional environment (e.g., 702) (e.g., an object movement input similar to that described in reference methods 1000 and / or 1400). In some embodiments, the input points to a user interface element displayed proximate to the corresponding virtual object, and when selected, the user interface element causes the electronic device to initiate a process of moving the corresponding virtual object in the three-dimensional environment.

[0174] In some embodiments, such as Fig.7DIn some embodiments, in response to an input corresponding to a request to update the positioning of a corresponding virtual object (e.g., 704) in a three-dimensional environment (e.g., 702), the electronic device (e.g., 101) displays (812b) the multiple virtual objects (e.g., 704, 706) in a second corresponding spatial arrangement that does not meet one or more criteria via a display generation component (e.g., 120), including displaying the corresponding virtual object (e.g., 704) at a second position in the three-dimensional environment (e.g., 702) that is different from the first position. In some embodiments, the electronic device does not detect additional inputs corresponding to a request to update the positioning of other virtual objects in the three-dimensional environment. In some embodiments, the electronic device receives one or more additional inputs corresponding to a request to update the positioning of one or more other virtual objects in a manner that continues to meet one or more criteria.

[0175] In some embodiments, such as Fig.7D In the present invention, when displaying a three-dimensional environment (e.g., 702), including displaying corresponding virtual objects (e.g., 704) at a second position in the three-dimensional environment, an electronic device (e.g., 101) receives (812c) via one or more input devices a second input corresponding to a request to update the spatial arrangement of the multiple virtual objects (e.g., 704, 706) relative to the user's current viewpoint to meet one or more criteria.

[0176] In some embodiments, such as Fig. 7E In some embodiments, in response to receiving the second input, the electronic device (e.g., 101) updates (812b) the positioning of the corresponding virtual object (e.g., 704) to meet the one or more criteria without updating the positioning of one or more other virtual objects (e.g., 706) in the multiple virtual objects (e.g., and without updating the position and / or orientation of the user's viewpoint in the three-dimensional environment). In some embodiments, if the movement of the second virtual object in the three-dimensional environment causes the one or more criteria to be not met, then in response to the second input, the electronic device updates the positioning of the second virtual object to meet the one or more criteria without updating the positioning of the one or more other virtual objects.

[0177] Updating the position of the corresponding virtual object in response to the second input without updating the position of one or more other virtual objects provides enhanced access to the corresponding virtual object while maintaining display of the other virtual objects at their corresponding positions, thereby reducing the cognitive burden, time, and input required to interact with the multiple virtual objects.

[0178] In some embodiments, such as Figure 7CIn some embodiments, displaying the multiple virtual objects (e.g., 704, 706) in a third spatial arrangement includes (814): based on determining that the three-dimensional environment (e.g., 702) is associated with the first spatial template, displaying the multiple virtual objects (e.g., 704, 706) in a third spatial arrangement via a display generation component (e.g., 120) includes: displaying a corresponding virtual object (e.g., 706) (814b) in the multiple virtual objects via a display generation component (e.g., 120) in an orientation relative to the user's current viewpoint that satisfies one or more standards associated with the first spatial template. In some embodiments, the spatial template identifies one or more standards used by the electronic device to select the positioning and orientation of virtual objects and / or one or more users' viewpoints in a three-dimensional environment. In some embodiments, the spatial template is set based on virtual objects included in the three-dimensional environment (e.g., a spatial template associated with the corresponding virtual object) and / or based on user-defined settings. Exemplary spatial templates according to some embodiments are described in more detail below. For example, if the spatial template is a shared content spatial template and the corresponding virtual object is a content item to be consumed by multiple users in a three-dimensional environment, the electronic device displays the corresponding virtual object in a positioning and orientation that orients the corresponding side of the content item including the content toward the viewpoint of the user in the three-dimensional environment.

[0179] In some embodiments, such as Figure 7G In the embodiment of the present invention, displaying the plurality of virtual objects (e.g., 714) in a third spatial arrangement includes (814): based on determining that the three-dimensional environment (e.g., 702) is associated with the second spatial template, displaying the plurality of virtual objects in a third spatial arrangement via a display generation component (e.g., 120) includes: displaying a corresponding object (e.g., 714) (814c) of the plurality of virtual objects via a display generation component (e.g., 120) in an orientation relative to a current viewpoint of a user that satisfies one or more standards associated with the second spatial template. For example, if the spatial template is a shared activity spatial template and the corresponding virtual object is a virtual tabletop game being played by multiple users in the three-dimensional environment, the electronic device displays the corresponding virtual object between the viewpoints of the users in the three-dimensional environment so that the viewpoints of the users face different sides of the corresponding virtual object.

[0180] In response to input corresponding to a request to update the spatial arrangement of the multiple virtual objects, the corresponding virtual objects are displayed in different orientations to meet different standards associated with different spatial templates, providing an efficient and universal way of presenting virtual objects in a three-dimensional environment in positions and orientations that facilitate user interaction with the virtual objects for a variety of functions, thereby enabling users to use electronic devices quickly and efficiently.

[0181] In some embodiments, such as Figure 7CIn some embodiments, displaying the plurality of virtual objects (e.g., 704, 706) in a third spatial arrangement includes: displaying the corresponding object (e.g., 706) in the plurality of virtual objects via a display generation component (e.g., 120) in a posture that orients the corresponding side of the corresponding object (e.g., 706) toward the user's viewpoint and the second viewpoint of the second user (or multiple users) in the three-dimensional environment (e.g., 702) (816). In some embodiments, the shared content space template is associated with a virtual object that includes a user interface of a content or content (e.g., delivery, playback, streaming, etc.) application. In some embodiments, the corresponding side of the corresponding virtual object includes a content item (e.g., visual content of the content item) (e.g., content of a movie, television program, etc. being displayed). In some embodiments, the shared content space template enables multiple users to consume the content item together from the same side of the content item by orienting the content toward the viewpoints of two (or more) users.

[0182] Positioning the respective sides of the respective virtual objects toward the user's viewpoint orientation provides an efficient way to facilitate shared consumption of content items associated with the respective virtual objects, thereby enabling users to quickly and efficiently configure a three-dimensional environment for shared consumption of content items.

[0183] In some embodiments, such as Figure 7G , displaying the plurality of virtual objects (e.g., 714, 708) in a third spatial arrangement includes: displaying the corresponding object (e.g., 714) (818) via a display generation component (e.g., 120) in a posture in which a first side of a corresponding object (e.g., 714) of the plurality of virtual objects is oriented toward a user's viewpoint and a second side of the corresponding object different from the first side is oriented toward a second viewpoint of a second user, based on determining that the three-dimensional environment (e.g., 702) is associated with a shared activity space template. The shared activity space template is associated with the corresponding virtual object, and the corresponding virtual object is configured for multiple users to interact with from multiple sides of the virtual object. For example, the corresponding virtual object is a virtual table game for multiple users to play or a virtual table around which the viewpoints of multiple users are arranged. In some embodiments, the shared activity space template enables a user to view the corresponding virtual object simultaneously with representations of other users in the three-dimensional environment displayed at the location of the viewpoints of the other users in the three-dimensional environment.

[0184] Positioning different sides of the respective virtual objects toward different users in the three-dimensional environment provides an efficient way to facilitate interaction between users and / or with the respective virtual objects, thereby enabling users to quickly and efficiently configure the three-dimensional environment for shared activities associated with the respective virtual objects.

[0185] In some embodiments, such as Figure 7G In some embodiments, displaying the plurality of virtual objects (e.g., 708, 710) in a third spatial arrangement includes: displaying a representation of a second user (e.g., 708) via a display generation component (e.g., 120) in a posture oriented toward a current viewpoint orientation of a user of the electronic device (820) based on determining that the three-dimensional environment (e.g., 702) is associated with the group activity space template. In some embodiments, the group activity space template is associated with user-defined settings for interacting with one or more other users in the three-dimensional environment, in a manner that is optionally independent of corresponding virtual objects other than the representations of the one or more other users (e.g., a virtual meeting between users). In some embodiments, the group activity space template causes the electronic device to position a viewpoint of a user in the three-dimensional environment (e.g., and a corresponding representation of the user in the three-dimensional environment) at a position that causes the user's viewpoint to be oriented toward the representations and / or viewpoint orientation of one or more other users in the three-dimensional environment (e.g., without updating the positioning of the representations and / or viewpoints of the other users).

[0186] Orienting a user's viewpoint toward a representation of a second user in a three-dimensional environment provides an efficient way to facilitate interaction between users, thereby enabling the users to quickly and efficiently configure the three-dimensional environment for group activities.

[0187] In some embodiments, such as Figure 7B In the embodiment of the present invention, when displaying a three-dimensional environment (e.g., 702) including a second user associated with a second viewpoint in the three-dimensional environment (e.g., 702) via a display generation component (e.g., 120), wherein the spatial arrangement of the plurality of virtual objects (e.g., 704, 706) relative to the user's current viewpoint (and the second viewpoint of the second user) is a first corresponding spatial arrangement that satisfies one or more criteria, the electronic device (e.g., 101) detects (822a) an indication of movement of the second viewpoint of the second user in the three-dimensional environment from the first corresponding viewpoint to the second corresponding viewpoint. In some embodiments, the movement of the second viewpoint of the second user causes one or more criteria to not be satisfied at the electronic device. In some embodiments, the movement of the second viewpoint of the second user causes one or more criteria to not be satisfied at the second electronic device being used by the user. In some embodiments, the electronic device detects an indication of movement of the second viewpoint of the second user without receiving one or more inputs corresponding to a request to update the user's viewpoint and / or the poses of the plurality of virtual objects. In some embodiments, the electronic device additionally detects movement of the user's viewpoint and / or movement of one or more of the virtual objects in a manner that continues to satisfy one or more criteria at the electronic device and / or at the second electronic device being used by the second user.

[0188] In some embodiments, such as Figure 7BIn the present invention, when displaying a three-dimensional environment with a second viewpoint of a second user at a second corresponding viewpoint, the electronic device (e.g., 101) receives (822b) via one or more input devices (e.g., 314) a second input corresponding to a request to update the spatial arrangement of the multiple virtual objects (e.g., 704, 706) relative to the user's current viewpoint to meet one or more criteria.

[0189] In some embodiments, such as Figure 7C In response to receiving the second input, the electronic device (e.g., 101) updates (822c) the spatial arrangement of the multiple virtual objects (e.g., 704, 706) to a second corresponding spatial arrangement that satisfies one or more criteria based on the second corresponding viewpoint of the second user. In some embodiments, the electronic device updates the spatial arrangement of the multiple virtual objects so that the one or more criteria are met relative to the user's viewpoint and relative to the second viewpoint of the second user. For example, if the second viewpoint of the second user moves to the left side of the user's viewpoint, updating the spatial arrangement of the multiple virtual objects includes: moving or orienting one or more of the virtual objects toward the left relative to the user's viewpoint (e.g., to an orientation based on the user's viewpoint and the new viewpoint of the second user). For another example, if the second viewpoint of the second user moves to the right side of the user's viewpoint, updating the spatial arrangement of the multiple virtual objects includes: moving or orienting one or more of the virtual objects toward the right relative to the user's viewpoint.

[0190] Updating the spatial arrangement based on a second corresponding viewpoint of a second user provides an efficient way to satisfy one or more criteria at an electronic device and at a second electronic device of a second user in response to an input, thereby reducing the number of inputs, time, and cognitive burden required to configure a three-dimensional environment in a manner that is comfortable for the user and the second user.

[0191] In some embodiments, such as Figure 7CIn the embodiment of the present invention, when displaying a three-dimensional environment (e.g., 702) via a display generation component (e.g., 120), wherein the spatial arrangement of the plurality of virtual objects (e.g., 704, 706) relative to the user's current viewpoint is a first corresponding spatial arrangement that satisfies one or more criteria, the electronic device (e.g., 101) receives (824a) via one or more input devices a sequence of one or more inputs corresponding to a request to update one or more positions of the plurality of virtual objects (e.g., 704) in the three-dimensional environment (e.g., 702). In some embodiments, the sequence of inputs is input directed to a user interface element for repositioning the corresponding virtual objects in the three-dimensional environment, such as described with reference to method 1400. In some embodiments, the sequence of inputs is input corresponding to a request to reposition the plurality of virtual objects together according to one or more steps of method 1000 described in more detail below.

[0192] In some embodiments, such as Fig.7D In some embodiments, in response to receiving the sequence of one or more inputs, the electronic device (e.g., 101) displays (824b) the plurality of virtual objects (e.g., 704, 706) at corresponding locations in the three-dimensional environment (e.g., 702) according to the sequence of one or more inputs in a second corresponding spatial arrangement that does not satisfy the one or more criteria. In some embodiments, the electronic device does not receive input corresponding to a request to update the user's viewpoint. In some embodiments, the electronic device receives input corresponding to a request to update the user's viewpoint in a manner that does not cause the one or more criteria to be unsatisfied.

[0193] In some embodiments, such as Fig.7D In the present invention, when displaying a three-dimensional environment (e.g., 702), including displaying the multiple virtual objects (e.g., 704, 706) at corresponding locations in the three-dimensional environment (e.g., 702), the electronic device (e.g., 101) receives (824c) via one or more input devices (e.g., 314) a second input corresponding to a request to update the spatial arrangement of the multiple virtual objects (e.g., 704, 706) relative to the user's current viewpoint to meet one or more criteria.

[0194] In some embodiments, such as Fig. 7EIn response to receiving the second input, the electronic device (e.g., 101) updates (824d) the positioning of the multiple virtual objects (e.g., 704, 706) in the three-dimensional environment (e.g., 702) to a third corresponding spatial arrangement that meets one or more criteria based on the corresponding positioning of the multiple virtual objects (e.g., 704, 706) in the three-dimensional environment. In some embodiments, the third corresponding spatial arrangement is the same as the first corresponding spatial arrangement. In some embodiments, the third corresponding spatial arrangement is different from the first corresponding spatial arrangement. In some embodiments, the third corresponding spatial arrangement involves the minimum movement and / or reorientation of the multiple virtual objects in the three-dimensional environment required to meet one or more criteria (e.g., from displaying the corresponding positioning and / or orientation of the virtual objects in response to a sequence of inputs corresponding to a request to update one or more positioning of the multiple virtual objects in the three-dimensional environment).

[0195] After repositioning the multiple virtual objects, the positions of the multiple virtual objects are updated according to the corresponding positions of the multiple virtual objects in the three-dimensional environment to meet one or more criteria, providing an effective way to facilitate the user's interaction with the multiple virtual objects, thereby reducing the cognitive burden, time and input required for the user to conveniently interact with the multiple virtual objects.

[0196] In some embodiments, a three-dimensional environment (e.g., 120) is displayed via a display generation component (e.g., 120), wherein the spatial arrangement of the plurality of virtual objects (e.g., 704, 706) relative to the user's current viewpoint is a first corresponding spatial arrangement that satisfies one or more criteria (e.g., Fig. 7A In some embodiments, the request made by the second user in the three-dimensional environment includes (e.g., separately) one or more requests to update the positioning of one or more virtual objects. In some embodiments, the request made by the second user in the three-dimensional environment does not include a request made by the second user to update a second viewpoint of the second user in the three-dimensional environment.

[0197] In some embodiments, in response to detecting one or more indications, the electronic device (e.g., 101) displays (826b) the multiple virtual objects (e.g., 704, 706) at corresponding locations in the three-dimensional environment (e.g., 702) according to a sequence of one or more inputs in a second corresponding spatial arrangement that does not meet the one or more criteria, such as in Figure 7BIn some embodiments, the electronic device does not receive input corresponding to a request to update the pose of the virtual object or the user's viewpoint, and does not detect an indication of a request made by the second user to update the positioning of the second user's second viewpoint. In some embodiments, the electronic device receives input corresponding to a request to update the pose of the virtual object and / or the user's viewpoint and / or detects an indication of a request made by the second user to update the positioning of the user's second viewpoint, but these updates do not result in the one or more criteria not being met.

[0198] In some embodiments, while displaying a three-dimensional environment (e.g., 702), including displaying the multiple virtual objects (e.g., 704, 706) at corresponding locations in the three-dimensional environment (e.g., 702), the electronic device (e.g., 101) receives (826c) via one or more input devices (e.g., 314) a second input corresponding to a request to update the spatial arrangement of the multiple virtual objects (e.g., 704, 706) relative to the user's current viewpoint to meet one or more criteria, such as in Figure 7B middle.

[0199] In some embodiments, in response to receiving the second input, the electronic device (e.g., 101) updates (826d) the positioning of the multiple virtual objects (e.g., 704, 706) in the three-dimensional environment (e.g., 702) to a third corresponding spatial arrangement that satisfies one or more criteria, such as in Figure 7C In some embodiments, the third corresponding spatial arrangement is the same as the first corresponding spatial arrangement. In some embodiments, the third corresponding spatial arrangement is different from the first corresponding spatial arrangement. In some embodiments, the third corresponding spatial arrangement involves the minimum movement and / or reorientation of the multiple virtual objects in the three-dimensional environment required to meet one or more criteria (e.g., from displaying the corresponding positions and / or orientations of the virtual objects in response to an indication corresponding to a request to update one or more positions of the multiple virtual objects in the three-dimensional environment).

[0200] After the multiple virtual objects are repositioned by a second user, the positioning of the multiple virtual objects is updated according to the corresponding positioning of the multiple virtual objects in the three-dimensional environment to meet one or more criteria, providing an efficient way to facilitate the user's interaction with the multiple virtual objects, thereby reducing the cognitive burden, time and input required for the user to conveniently interact with the multiple virtual objects.

[0201] In some embodiments, when the spatial arrangement of the plurality of virtual objects (e.g., 704, 706) does not meet one or more criteria, such as Figure 7BIn some embodiments, based on determining that an input corresponding to a request to update the spatial arrangement of the multiple objects has not been received, the electronic device (e.g., 101) maintains (828) the spatial arrangement of the multiple virtual objects (e.g., 704, 706) until an input corresponding to a request to update the spatial arrangement of the multiple objects (e.g., 704, 706) has been received. In some embodiments, the electronic device does not update the spatial arrangement of the multiple objects to meet one or more criteria unless and until an input corresponding to a request to update the spatial arrangement of the multiple objects has been received. In some embodiments, the electronic device does not automatically update the spatial arrangement of one or more virtual objects to meet one or more criteria.

[0202] Maintaining the spatial arrangement of the multiple virtual objects until input has been received provides an efficient way to display virtual objects at familiar positions and / or orientations in a three-dimensional environment, thereby enhancing user interaction with the electronic device by enabling the user to quickly and efficiently locate virtual objects in the three-dimensional environment for interaction.

[0203] In some embodiments, the electronic device (e.g., 101) displays (830a) the multiple virtual objects (e.g., 704, 706) in the three-dimensional environment (e.g., 702), including displaying the first virtual object (e.g., 704, 706) of the multiple virtual objects at a location that is beyond a predefined threshold distance (e.g., 1, 2, 3, 4, 5, 10, 15, 30, or 50 meters) from the user's current viewpoint, such as at Figure 7B In some embodiments, the second virtual object is positioned at a location that exceeds a predefined threshold distance from the user's viewpoint. In some embodiments, multiple (e.g., all) virtual objects are positioned at a location that exceeds a predefined threshold distance from the user's viewpoint. In some embodiments, the one or more criteria include a criterion that is satisfied when multiple (e.g., all) virtual objects are positioned within a predefined threshold distance from the user's current viewpoint.

[0204] In some embodiments, such as Figure 7B In the present invention, when displaying the multiple virtual objects (e.g., 704, 706) in a three-dimensional environment (e.g., 702), including displaying a first virtual object among the multiple virtual objects (e.g., 704, 706) at a position beyond a predefined threshold distance from a current viewpoint of a user, the electronic device (e.g., 101) receives (830b) via one or more input devices a second input corresponding to a request to update the spatial arrangement of the multiple virtual objects (e.g., 704, 706) relative to the current viewpoint of the user to meet one or more criteria.

[0205] In some embodiments, such as Figure 7CIn some embodiments, in response to receiving the second input, the electronic device (e.g., 101) updates the user's viewpoint (830c) to a corresponding viewpoint within a predefined threshold distance of the first virtual object (e.g., 704, 706), wherein the spatial arrangement of the multiple virtual objects (e.g., 704, 706) relative to the corresponding viewpoint meets one or more criteria. In some embodiments, the electronic device updates the user's viewpoint without updating the position and / or orientation of the virtual object. In some embodiments, the electronic device updates the user's viewpoint and updates the position and / or orientation of the virtual object. In some embodiments, if one or more criteria can be met by updating the user's viewpoint without updating the position and / or orientation of the virtual object, the electronic device updates the user's viewpoint in response to the second input without updating the position and / or orientation of the virtual object.

[0206] Updating the user's viewpoint in response to a second viewpoint to meet one or more criteria when a first virtual object is positioned farther from the user's viewpoint than a predefined threshold distance provides an efficient way to access virtual objects for interaction, thereby reducing the cognitive burden, time, and input required to interact with the virtual objects.

[0207] In some embodiments, such as Fig.7D In some embodiments, the electronic device (e.g., 101) displays (832a) the plurality of virtual objects (e.g., 704, 706) via a display generation component (e.g., 120) with a first spacing between a first virtual object (e.g., 704) and a second virtual object (e.g., 704) in the plurality of virtual objects, wherein the first spacing does not satisfy one or more spacing criteria of the one or more criteria. In some embodiments, the one or more spacing criteria include a criterion that is satisfied when the distance between corresponding (e.g., paired) virtual objects is between a first predefined threshold distance (e.g., 1, 2, 3, 5, 10, 15, 30, 50, or 100 centimeters) and a second predefined threshold distance (e.g., 1, 2, 3, 5, 10, 15, 30, or 50 meters).

[0208] In some embodiments, such as Fig.7D In the embodiment of the present invention, when the multiple virtual objects (e.g., 704, 706) are displayed with a first spacing between the first virtual object (e.g., 704) and the second virtual object (e.g., 706), the electronic device (e.g., 101) receives (832b) via one or more input devices (e.g., 314) a second input corresponding to a request to update the spatial arrangement of the multiple virtual objects (e.g., 704, 706) relative to the user's current viewpoint to meet one or more criteria (e.g., including one or more spacing criteria).

[0209] In some embodiments, such as Fig. 7EIn response to receiving the second input, the electronic device (e.g., 101) displays (832c) the multiple virtual objects (e.g., 704, 706) via the display generation component (e.g., 120) with a second spacing between the first virtual object (e.g., 704) and the second virtual object (e.g., 706), wherein the second spacing satisfies one or more spacing criteria. In some embodiments, displaying the multiple virtual objects with the second spacing between the first virtual object and the second virtual object includes: displaying the multiple virtual objects in a spatial arrangement that satisfies one or more criteria. In some embodiments, the electronic device updates the positioning and / or orientation of one or more virtual objects other than the first virtual object and the second virtual object as needed to meet the one or more criteria. In some embodiments, the second spacing is smaller than the first spacing space. In some embodiments, displaying the multiple virtual objects with the second spacing between the first virtual object and the second virtual object includes: changing the positioning and / or orientation of the first object and / or the second object, such as updating the positioning (e.g., not updating the orientation) or updating both the positioning and the orientation.

[0210] Displaying the multiple virtual objects with a second spacing between the first virtual object and the second virtual object in response to a second input provides an effective way for a user to simultaneously view the first virtual object and the second virtual object and / or simultaneously interact with the first virtual object and the second virtual object, thereby reducing the time, input, and cognitive burden required to interact with the first virtual object and the second virtual object.

[0211] In some embodiments, such as Fig. 7A In some embodiments, detecting movement of a user's current viewpoint from a first viewpoint to a second viewpoint in a three-dimensional environment includes: detecting movement of an electronic device (e.g., 101) in a physical environment of the electronic device (e.g., 101) or movement of a display generation component (e.g., 120) in a physical environment of the display generation component (e.g., 120) via one or more input devices (e.g., 314) (834). In some embodiments, detecting movement of the electronic device or display generation component includes: detecting movement of the user (e.g., if the electronic device or display generation component is a wearable device).

[0212] Updating the user's viewpoint in response to detecting movement of the electronic device or display generating components provides an efficient and intuitive way to traverse a three-dimensional environment, thereby enhancing the user's interaction with the three-dimensional environment.

[0213] FIG. 9A to FIG. 9G An example is shown of how an electronic device updates the positioning of multiple virtual objects together according to some embodiments.

[0214] Fig. 9AThe electronic device 101a is shown to display a three-dimensional environment 902a via the display generation component 120a. It should be understood that in some embodiments, the electronic device 101a uses the reference image in the two-dimensional environment without departing from the scope of the present disclosure. FIG. 9A to FIG. 9G One or more of the techniques described above. Figure 1 As described in FIG. 6 , the electronic device 101a optionally includes a display generation component 120a (e.g., a touch screen) and multiple image sensors 314a. The image sensor optionally includes one or more of the following: a visible light camera; an infrared camera; a depth sensor; or any other sensor that the electronic device 101a can use to capture one or more images of a user or a portion of a user when the user interacts with the electronic device 101a. In some embodiments, the display generation component 120a is a touch screen that can detect gestures and movements of the user's hands. In some embodiments, the user interface shown below can also be implemented on a head-mounted display, which includes a display generation component that displays the user interface to the user, and a sensor that detects the physical environment and / or the movement of the user's hands (e.g., an external sensor facing outward from the user) and / or a sensor that detects the user's gaze (e.g., an internal sensor facing inward toward the user's face).

[0215] exist Fig. 9A In some embodiments, the first electronic device 101a and the second electronic device 101b can access a three-dimensional environment 902, which includes a representation of the first electronic device 101a, a representation of the second electronic device 101b, a first user 916a of the first electronic device 101a, a second user 916b of the second electronic device 101b, a user interface 904 of a first application accessible to both electronic devices 101a and 101b, a user interface 906 of a second application accessible to the first electronic device 101a but not to the second electronic device 101b, and a user interface 908 of a third application accessible to both electronic devices 101a and 101b. In some embodiments, the first electronic device 101a and the second electronic device 101b are located in a shared physical environment, and the spatial arrangement of the first electronic device 101a and the second electronic device 101b in the physical environment corresponds to (e.g., is the same as) the spatial arrangement of the first electronic device 101a and the second electronic device 101b in the three-dimensional environment 902. In some embodiments, the first electronic device 101a and the second electronic device 101b are located in different physical environments (e.g., different rooms, different buildings, different cities, etc.), and the spatial arrangement of the first electronic device 101a and the second electronic device 101b in the physical world is different from the spatial arrangement of the first electronic device 101a and the second electronic device 101b in the three-dimensional environment 902. In some embodiments, the electronic device 101b has one or more of the characteristics of the electronic device 101a.

[0216] FIG. 9A to FIG. 9G Includes a top-down view of a three-dimensional environment 902 displayed by electronic devices 101a and 101b. The first electronic device 101a presents the three-dimensional environment 902a from the viewpoint of a first user 916a in the three-dimensional environment 902, including displaying, for example, a user interface 904a of a first application, a user interface 906a of a second application, a user interface 908a of a third application, a representation 916b of the second user, and a representation of the second electronic device 101b. As another example, the second electronic device 101b presents the three-dimensional environment 902b from the viewpoint of a second user 916b in the three-dimensional environment 902, including displaying a user interface 904b of the first application, a user interface 908b of the third application, a representation 916a of the first user, and a representation of the first electronic device 101a. In some embodiments, because the second electronic device 101b cannot access the user interface 906 of the second application, the second electronic device 101b does not display the user interface 906 of the second application, but Fig. 9A A position 906b in the three-dimensional environment 902b is indicated at which the user interface 906 of the second application will be displayed if the second electronic device 101b has access to the user interface 906 of the second application.

[0217] In some embodiments, the first electronic device 101a is associated with a digital origin 912 in the three-dimensional environment 902. In some embodiments, the second electronic device 101b is associated with a different digital origin (not shown) in the three-dimensional environment 902. In some embodiments, the digital origin 912 is a location in the three-dimensional environment 902 that the electronic device 101a uses to select a position and / or orientation of a virtual object (e.g., user interface 904, 906, 908) and / or a viewpoint of the first user 101a in response to a request to re-center the three-dimensional environment 902a according to one or more steps of method 800. For example, in response to a request to re-center the three-dimensional environment 902a, the electronic device 101a evaluates one or more criteria for the spatial arrangement of the viewpoint of the virtual objects and / or user 916a relative to the digital origin 912, and updates the positioning and / or orientation of one or more virtual objects and / or the viewpoint of the user 916a to meet the one or more criteria. In some embodiments, the electronic device 101a updates the viewpoint of the first user 916a to be at the location of the digital origin 912 in response to the request to re-center. In some embodiments, the electronic device 101a updates the positioning and / or orientation of the user interfaces 904a, 904b, and 904c relative to the digital origin 912 to select a positioning and / or orientation that facilitates user interaction with the user interfaces 904a, 904b, and 904c. For example, the one or more criteria include criteria that specify a range of distances from the digital origin 912 and / or a range of orientations relative to the digital origin 912, as described with reference to methods 800 and / or 1000.

[0218] In some embodiments, the electronic device 101a selects the digital origin 912 at the start of the AR / VR session. For example, the digital origin 912 is selected based on the location and / or orientation of the electronic device 101a in the physical environment and the location and / or orientation of the electronic device 101a in the three-dimensional environment 902. In some embodiments, the electronic device 101a sets or resets the digital origin 912 in response to detecting that the display generation component 120a transitions from not being in a predetermined posture relative to the first user to a predetermined posture for a threshold amount of time (e.g., 10, 20, 30, or 45 seconds or 1, 2, 3, 5, 10, or 15 minutes). In some embodiments, the predetermined posture is a range of distances and / or orientations relative to the user. For example, if the display generation component 120a is a wearable device, the display generation component 120a is in a predetermined posture when the user wears the display generation component 120a.

[0219] As will be FIG. 9B to FIG. 9FIn and described in more detail with respect to method 1000, in some embodiments, there are many situations where the digital origin becomes invalid. In some embodiments, the digital origin is invalid when one or more invalidation criteria are met. For example, the invalidation criteria are related to the number of objects (e.g., user interfaces 904a, 904b, 904c, and the viewpoint of user 916a) whose spatial relationship with the digital origin 912 does not meet one or more spatial standards described with reference to methods 1000 and / or 800. As another example, the invalidation criteria are related to the degree to which the object does not meet one or more spatial standards and / or the spatial relationship between the objects themselves. For example, when one or more spatial standards are not met, the digital origin 912 is invalid, and updating the position of the digital origin 912 will meet one or more spatial standards with less or very little update to the positioning and / or orientation of the virtual object compared to the update that would be required if the digital origin remained in its current position. In some embodiments, the electronic device 101a updates the position of the digital origin immediately when the digital origin 912 becomes invalid. In some embodiments, the electronic device 101a does not update the position of the digital origin 912 unless and until a request to re-center the three-dimensional environment 902a is received.

[0220] In some embodiments, the electronic device 101a updates the positioning of the user interfaces 904a, 906a, and 908a in response to various user inputs. In some embodiments, the user interfaces 904a, 906a, and 908a are displayed in association with corresponding selectable options, and when selected, these corresponding selectable options cause the electronic device 101a to initiate a process of updating the positioning and / or orientation of the corresponding user interfaces 904a, 906a, or 908a, as described above with reference to method 800. Additionally, in some embodiments, in response to a request to update the positioning and / or orientation of virtual objects (e.g., user interfaces 904a, 906a, and 908a, representations of the second user 916b, and representations of the second electronic device 101b) in the three-dimensional environment 902a together, the electronic device 101a updates the positioning and / or orientation of the virtual objects relative to the viewpoint of the user 916a, without updating the spatial arrangement of the virtual objects relative to other virtual objects. For example, the electronic device 101a moves the virtual objects together as a group. In some embodiments, the electronic device 101a displays a selectable option that, when selected, causes the electronic device 101a to initiate a process of updating the position and / or orientation of the virtual objects as a group. Fig. 9A As shown in , in response to detecting a two-hand selection input (e.g., using hands 913a and 913b), the electronic device 101a initiates a process of updating the position and / or orientation of the virtual objects as a group. Fig. 9AAs shown in , the electronic device 101a detects that the user makes a pinch hand shape (e.g., a hand shape in which the thumb touches another finger of the same hand) with two hands 913a and 913b (e.g., for at least a threshold time (e.g., 0.1, 0.2, 0.5, 1, 2, or 3 seconds)). In some embodiments, in response to detecting the pinch hand shape using both hand 913a and hand 913b, the electronic device 101a initiates a process of updating the positioning and / or orientation of the virtual object based on the movement of hand 913a and hand 913b while maintaining the pinch hand shape.

[0221] Fig. 9B An example is shown of the electronic device 101a detecting the beginning of movement of hands 913a and 913b while the hands are in a pinching hand shape. In some embodiments, in response to detecting the beginning of movement of hands 913a and 913b in a pinching hand shape (or in some embodiments, in response to detecting the pinching hand shape of hands 913a and 913b while movement of hands 913a and 913b has not yet been detected), the electronic device 101a updates the display of a virtual object (e.g., user interfaces 904a, 906a, and 908a, a representation of a second user 916b, and a representation of the electronic device 101b) to change visual features of the virtual object to indicate that further input will cause the electronic device 101a to update the position and / or orientation of the virtual object in the three-dimensional environment 902a. For example, in response to detecting a two-handed pinching hand shape and / or movement of hands 913a and 913b in a two-handed pinching hand shape, ... relative to, for example Fig. 9A In some embodiments, the amount of translucency and / or dimming of the user interfaces 904a, 906a, and 908a, the representation of the second user 916b, and the representation of the second electronic device 101b is increased. Fig. 9BWhen input is received in the three-dimensional environment 902a, the electronic device 101a increases the amount of visual emphasis of the user interfaces 904a, 906a and 908a and the representation of the second user 916b and the representation of the second electronic device 101b, such as by blurring and / or dimming and / or darkening areas of the three-dimensional environment 902a other than the user interfaces 904a, 906a and 908a and the representation of the second user 916b and the representation of the second electronic device 101b. In some embodiments, when the electronic device 101a updates the positioning of the user interfaces 904a, 906a and 908a and the representation of the second user 916b and the representation of the second electronic device 101b according to the movement of the hands 913a and 913b in the shape of a pinching hand, the electronic device 101a maintains the increased translucency and / or dimming of the user interfaces 904a, 906a and 908a and the representation of the second user 916b and the representation of the second electronic device 101b. In some embodiments, when the first electronic device 101a detects the shape of a hand pinching, the second electronic device 101b uses a relative Fig. 9A The second electronic device 101b displays the representation of the first user 916a and the representation of the first electronic device 101a with an increased translucency and / or dimming amount by which it displays the representation of the first user 916a and the representation of the first electronic device 101a.

[0222] like Fig. 9B As shown in FIG. 1 , the first electronic device 101a detects movement of the hands 913a and 913b in a direction away from the body of the first user 916a, which movement corresponds to movement of the viewpoint away from the first user 916a in the three-dimensional environment 902a. Fig. 9B , the electronic device 101a updates the positioning and / or orientation of the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b relative to the viewpoint of the first user 916a, without changing the spatial relationship between two or more of the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b, as shown in Fig. 9C as shown in .

[0223] Fig. 9CThe diagram shows how the first electronic device 101a updates the three-dimensional environment 902a displayed by the first electronic device 101a when moving the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b according to the movement of the hands 913a and 913b while in the shape of a pinched hand. For example, the first electronic device 101a updates the positioning of the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b to be further away from the user's viewpoint while maintaining the spatial relationship between the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b. In some embodiments, the amount by which the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b move relative to the viewpoint of the first user 916a corresponds to the amount of movement of the hands 913a and 913b. Although the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b appear to move from the viewpoint of the first user 916a, as shown in the top-down view of the three-dimensional environment 906, in response to Fig. 9B , the viewpoint of user 916a moves away from user interfaces 904, 906, and 908, the representation of second user 916b, and the representation of second electronic device 101b, while user interfaces 904, 906, and 908, the representation of second user 916b, and the representation of second electronic device 101b remain at their respective positions in three-dimensional environment 906. In some embodiments, in response to first electronic device 101a receiving Fig. 9B The input shown in Fig. 9C In the process, the second electronic device 101b continues to communicate with Fig. 9B User interfaces 904b and 908b are displayed at the same location from the viewpoint of the second user 916b in the three-dimensional environment 902b.

[0224] In some embodiments, in response to updating the user interfaces 904a, 906a, and 908a and the position and / or orientation of the representation of the second user 916b and the representation of the second electronic device 101b relative to the viewpoint of the first user 916a, the first electronic device 101a updates the position of the digital origin 912. In some embodiments, based on determining that one or more spatial criteria will be satisfied at the updated position of the digital origin, the first electronic device 101a responds to Fig. 9B The position of the digital origin 912 is updated according to the input shown in FIG. Fig. 9C, the first electronic device 101a updates the digital origin 912 to the position of the viewpoint of the first user 916a in the three-dimensional environment 902. In some embodiments, the updated position of the digital origin 912 satisfies one or more spatial criteria relative to the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b.

[0225] When the first electronic device 101a detects a two-handed input corresponding to a request to update the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the position and / or orientation of the representation of the second electronic device 101b, the second electronic device 101b continues to display the representation of the first user 916a and the representation of the first electronic device 101a with, for example, increased translucency and / or dimming. In some embodiments, the second electronic device 101b does not update the position of the second electronic device 101b displaying the representation of the first user 916a and the representation of the first electronic device 101a until the first electronic device 101a detects the end of the position input that updates the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b together. For example, detecting the end of the input includes: detecting that the user stops making a pinching hand shape with one or more of the hands 913a and 913b. As Fig. 9C As shown in FIG. 1 , the first electronic device 101a detects the continuation of the two-hand pinch input provided by hands 913a and 913b. Fig. 9C As the input shown in continues, the electronic device 101a updates the user interfaces 904a, 906a and 908a and the representation of the second user 916b and the spatial relationship between the representation of the second electronic device 101b and the viewpoint of the first user 916a in accordance with the continued movement of the hands 913a and 913b in the shape of a pinching hand.

[0226] Fig.9D The first electronic device 101a is shown according to Fig. 9C An example of a manner in which the three-dimensional environment 902a is updated as the input continues as shown in FIG. Fig. 9CThe electronic device 101a updates the position of the user interfaces 904a, 906a, and 908a, the representation of the second user 916b, and the representation of the second electronic device 101b in the three-dimensional environment 902 relative to the viewpoint of the user 916a based on the direction and amount of movement of the hands 913a and 913b in the three-dimensional environment 902. For example, the electronic device 101a updates the three-dimensional environment 902a to display the user interfaces 904a, 906a, and 908a, the representation of the second user 916b, and the representation of the second electronic device 101b at a viewpoint farther away from the user. As shown in the top-down view of the three-dimensional environment 902, the electronic device 101a updates the viewpoint of the first user 916a in the three-dimensional environment 902 without updating the position and / or orientation of the user interfaces 904, 906, and 908, the representation of the second user 916b, and the representation of the second electronic device 101b in the three-dimensional environment 902. Therefore, the second electronic device 101b optionally continues to Fig. 9C User interfaces 904b and 908b are displayed at locations where user interfaces 904b and 908b are displayed.

[0227] In some embodiments, in response to the first electronic device 101a detecting the end of the input to update the user interfaces 904a, 906a, and 908a and the position and / or orientation of the representation of the second user 916b and the representation of the second electronic device 101b relative to the viewpoint of the first user 101a, the second electronic device 101b updates the representation of the first user 916a and the position of the representation of the first electronic device 101a. Fig.9D As shown in, for example, the second electronic device 101b is at the update position and is relative to Fig. 9C In some embodiments, in response to the first electronic device 101a detecting that the first electronic device 101a is receiving a signal from the first user 916a, the first electronic device 101a may be displayed with a reduced translucency and / or dimming of the representation of the first electronic device 101a and the first user 916a. Fig. 9C In response to the first electronic device 101a detecting that the input ends, the second electronic device 101b displays an animation that updates the position of the representation of the first user 916a and the representation of the first electronic device 101a. Fig. 9C At the end of the input shown in FIG. 1 , the second electronic device 101b stops at Fig. 9C The representation of the first user 916a and the representation of the first electronic device 101a are displayed at the position shown in Fig.9D A representation of the first user 916a and a representation of the first electronic device 101a are displayed at the location in (eg, via a “teleport” effect).

[0228] In some embodiments, the digital origin 912 becomes invalid when the first user 916a exceeds a threshold distance (e.g., 1, 2, 3, 5, 10, or 15 meters) from one or more of the user interfaces 904a, 906a, and 908a, the representation of the second user 916b, and the representation of the second electronic device 101b. Fig.9D In the embodiment, for example, the digital origin 912 is shown in dashed lines to indicate that it is invalidated due to the first user 916a updating the positioning of the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b relative to the viewpoint of the first user 916a so that one or more of the virtual objects are greater than a threshold distance from the viewpoint of the first user 916a. In some embodiments, the digital origin 912 becomes invalid when one or more of the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b move away from the viewpoint of the first user 916a (e.g., by moving one or more applications separately) in the three-dimensional environment 902 and are farther than a threshold distance from the viewpoint of the user, in response to the second user 916b moving one or more of the user interfaces 904a and 908a and the representation of the second user 916b and the representation of the second electronic device 101b away from the viewpoint of the first user 916a (e.g., by moving one or more applications separately).

[0229] In some embodiments, such as Fig.9D , the user interfaces 904a, 906a, and 908a and the representation of the second user 916b and the representation of the second electronic device 101b are moved away from the viewpoint of the first user 101a, so that one or more spatial criteria described above with reference to method 800 are no longer met. In some embodiments, in response to no longer meeting one or more spatial criteria, the first electronic device 101a displays a selectable option 914a, which, when selected, causes the first electronic device 101a to re-center the three-dimensional environment 902a according to one or more steps of method 800. In some embodiments, because the digital origin 912 is invalid, in response to detecting the selection of option 914a, the electronic device 101a updates the digital origin 912 and re-centers the three-dimensional environment 902a based on the updated digital origin 912. In some embodiments, the first electronic device 101a selects a new position of the digital origin 912 based on the position and / or orientation of the object in the three-dimensional environment 902 and one or more spatial criteria described with reference to methods 800 and / or 1000.

[0230] In some embodiments, in response to one or more users moving more than a threshold amount (e.g., 1, 2, 3, 5, 10, 15, or 25 meters) in the three-dimensional environment 902, the digital origin 912 becomes invalid. Fig.9DIn the example, the second user 916b moves himself and / or moves the electronic device 101b, thereby causing the position of the second user 916b in the three-dimensional environment 902 to be updated as follows: Fig.9E In response to the second user 916b updating its position in the three-dimensional environment 902 in this manner, the digital origin 912 becomes invalid. Fig.9E It is shown how, in some embodiments, in response to the digital origin 912 becoming invalid, the electronic device 101a automatically selects a new location for the digital origin 912 without receiving user input (e.g., selection of option 914a) requesting the electronic device 101a to update the digital origin 912. For example, the updated digital origin 912 is located at a position such that if the first user 916a re-centers the three-dimensional environment 902a to update the viewpoint of its digital origin 912, both users 916a and 916b will be on the same side of the user interface 904 of the first application (e.g., the shared content application as described above with reference to method 800) and on opposite sides of the user interface 908 of the third application (e.g., the shared activity application as described above with reference to method 800).

[0231] like Fig.9E As shown in , in response to the second user 916b updating the second user's viewpoint in the three-dimensional environment 902b, the second electronic device 101b updates the positioning and / or orientation of the user interfaces 904b and 908b relative to the viewpoint of the second user 916b, and the first electronic device 101a stops displaying the representation of the second user 916b and the representation of the second electronic device 101b because the second user 916b is no longer in the field of view of the first electronic device 101a.

[0232] In some embodiments, as will be referred to below FIG. 9F to FIG. 9G In the description, the first electronic device 101a invalidates the digital origin 912 in response to a request to share an application with the second electronic device 101b. Fig.9F In the embodiment, the first electronic device 101a displays a three-dimensional environment 902a, which includes a user interface 918a of a fourth application that is accessible to the first electronic device 101a but not to the second electronic device 101b. Because the user interface 918 of the fourth application is not accessible to the second electronic device 101b, the second electronic device 101b displays a representation of the first user 916a and a representation of the first electronic device 101a without displaying the user interface 918 of the fourth application, although Fig.9F A location 918b is shown at which a user interface 918 of a fourth application would be displayed if the fourth application were accessible by the second electronic device 101b. Fig.9F Also shown is a digital origin 912 associated with the first electronic device 101a. In some embodiments, Fig.9FThe location of the digital origin 912 in is valid because the user interface 918a of the fourth application and the representation of the second user 916b are in a position and orientation that meets one or more spatial criteria. In some embodiments, the spatial criteria do not require that the second user 916b see the user interface 918 of the fourth application without obstruction because the second electronic device 101b cannot access the fourth application.

[0233] like Fig.9F As shown in , the first electronic device 101a detects (e.g., via hand 913a) a selection of a selectable option 920, which, when selected, causes the first electronic device 101a to share a fourth application with the second electronic device 101b. In some embodiments, the selection input is one of a direct selection input, an indirect selection input, an air gesture selection input, or a selection input using an input device, as described above with reference to method 800. In response to the input, the first electronic device 101a causes the user interface 918 of the fourth application to be accessible to the second electronic device 101b, as shown in FIG. Figure 9G as shown in .

[0234] Figure 9G The second electronic device 101b responds to Fig.9F In response to the input of sharing the fourth application detected by the first electronic device 101a, the user interface 918b of the fourth application is displayed. Fig.9F According to the input shown in , the first electronic device 101a invalidates the digital origin 912. Figure 9G The updated position of the digital origin 912 is shown, and if the first electronic device 101a is to re-center the three-dimensional environment 902a, the first electronic device 101a moves the viewpoint of the first user 101a to the updated position. In some embodiments, the digital origin 912 associated with the first electronic device 101a is invalidated in response to a request to share the user interface 918 of the fourth application because the representation of the first user 916a obscures the user interface 918b of the fourth application from being seen by the second user 916b.

[0235] about FIG. 9A to FIG. 9G Additional or alternative details of the embodiments shown in the are provided below with reference to FIG. 10A to FIG. 10K The method 1000 is described in the description.

[0236] FIG. 10A to FIG. 10K 1000 is a flowchart illustrating a method for updating the positioning of multiple virtual objects together according to some embodiments. In some embodiments, method 1000 is performed on a computer system (e.g., Figure 1 101) in the computer system, the computer system including a display generation component (e.g., Figure 1 , Figure 3 and Figure 4In some embodiments, method 1000 is performed by storing in a non-transitory computer-readable storage medium and by one or more processors of a computer system, such as one or more processors 202 of computer system 101 (e.g., Figure 1 Some operations in method 1000 are optionally combined, and / or the order of some operations is optionally changed.

[0237] In some embodiments, method 1000 is performed at an electronic device (e.g., a mobile device (e.g., a tablet, smart phone, media player, or wearable device) or a computer) in communication with a display generation component and one or more input devices. In some embodiments, the display generation component is a display (optionally a touch screen display) integrated with the electronic device, an external display such as a monitor, a projector, a television, or a hardware component (optionally integrated or external) for projecting a user interface or making a user interface visible to one or more users, etc. In some embodiments, the one or more input devices include a device capable of receiving user input (e.g., capturing user input, detecting user input, etc.) and transmitting information associated with the user input to the electronic device. Examples of input devices include a touch screen, a mouse (e.g., external), a trackpad (optionally integrated or external), a touchpad (optionally integrated or external), a remote control device (e.g., external), another mobile device (e.g., separate from the electronic device), a handheld device (e.g., external), a controller (e.g., external), a camera, a depth sensor, an eye tracking device, and / or a motion sensor (e.g., a hand tracking device, a hand motion sensor), etc. In some embodiments, the electronic device communicates with a hand tracking device (e.g., one or more cameras, depth sensors, proximity sensors, touch sensors (e.g., touch screen, trackpad)). In some embodiments, the hand tracking device is a wearable device, such as a smart glove. In some embodiments, the hand tracking device is a handheld input device, such as a remote control or a stylus.

[0238] In some embodiments, such as Fig. 9BIn the embodiment of the present invention, when a three-dimensional environment (e.g., 902a) is displayed from the viewpoint of a user (e.g., 916a) of an electronic device (e.g., 101a) via a display generation component (e.g., 120a), the three-dimensional environment (e.g., 902a) includes a plurality of virtual objects (e.g., 904a, 906a) at a first position in a first spatial arrangement relative to the viewpoint of the user in the three-dimensional environment (e.g., 902a), the electronic device (e.g., 101) receives (1002a) via one or more input devices an input corresponding to a request to move one or more virtual objects in the plurality of virtual objects (e.g., 904a, 906a). In some embodiments, the input and / or one or more inputs described with reference to method 1000 are air gesture inputs, such as those described with reference to method 800. In some embodiments, the three-dimensional environment includes virtual objects, such as application windows, operating system elements, representations of other users, and / or content items and / or representations of physical objects in the physical environment of the electronic device. In some embodiments, representations of physical objects are displayed in the three-dimensional environment via the display generation component (e.g., virtual or video pass-through). In some embodiments, the representation of a physical object is a view of a physical object in the physical environment of an electronic device that is visible through a transparent portion of a display generating component (e.g., true or real transmission). In some embodiments, the electronic device displays a three-dimensional environment from a user's viewpoint, and the user's viewpoint is at a position in the three-dimensional environment corresponding to the physical position of the electronic device in the physical environment of the electronic device. In some embodiments, the three-dimensional environment is generated, displayed, or otherwise enabled to be viewed by a device (e.g., a computer-generated reality (XR) environment, such as a virtual reality (VR) environment, a mixed reality (MR) environment, or an augmented reality (AR) environment, etc.). In some embodiments, receiving input includes: detecting a predefined gesture performed by a predefined part of the user (e.g., a hand). In some embodiments, the predefined gesture is a pinch gesture performed by one or more hands of the user in which the user touches the finger with the thumb and then separates the finger and the thumb. For example, the input includes the user making a pinch hand shape with both hands and then moving both hands so that the electronic device updates the positioning of the multiple virtual objects according to the movement of the user's hand. In some embodiments, the predefined gesture is a press gesture in which the user moves their hand to a predefined position (e.g., a position corresponding to one or more user interface elements to be moved, a position corresponding to an in-air gesture user interface element different from the one or more user interface elements to which the input is directed) while making a pointing hand shape in which one or more fingers are extended and one or more fingers are curled into the palm. In some embodiments, the input for moving one or more virtual objects in the plurality of virtual objects has one or more of the features of the object movement input described with reference to method 1400.

[0239] In some embodiments, such as Fig. 9C In response to receiving an input (1002b), based on determining that the input satisfies one or more first criteria (1002c) (e.g., the input points to the corresponding object in the multiple virtual objects and does not point to the remaining objects in the multiple virtual objects), the electronic device (e.g., 101) updates (1002d) the three-dimensional environment (e.g., 902a) based on the input to move the corresponding object (e.g., 904a) in the multiple virtual objects from a first position in the three-dimensional environment (e.g., 902a) to a second position different from the first position, wherein the corresponding object (e.g., 904a) at the second position has a second spatial arrangement relative to the viewpoint of the user (e.g., 916a), and the second spatial arrangement is different from the first spatial arrangement relative to the viewpoint of the user (e.g., 916a). In some embodiments, the input changes the position of the corresponding object in the three-dimensional environment. In some embodiments, the input changes the position of the corresponding object in the three-dimensional environment relative to other virtual objects. In some embodiments, the input changes the position of the corresponding object in the three-dimensional environment relative to the user's viewpoint. In some embodiments, updating the position of the corresponding object includes: changing the distance of the virtual object from the user's viewpoint. In some embodiments, the second corresponding position is based on the movement of a predefined part (e.g., a hand) of the user providing the input (e.g., speed, duration, distance of the movement, etc.). In some embodiments, the one or more first criteria include criteria that are satisfied when the electronic device detects a predefined gesture performed by one hand of the user rather than two hands. In some embodiments, the one or more first criteria include criteria that are satisfied when the input points to a user interface element, and in response to the input pointing to the user interface element, the user interface element causes the electronic device to initiate a process of moving the corresponding virtual object in the three-dimensional environment without moving other virtual objects.

[0240] In some embodiments, in response to receiving an input (1002b), based on determining that the input satisfies one or more first criteria (1002c) (e.g., the input points to a corresponding object in the plurality of virtual objects but not to the remaining objects in the plurality of virtual objects), the electronic device (e.g., 101) points one or more second objects (e.g., Fig. 9C In some embodiments, the input causes the electronic device to maintain the positions of other virtual objects in the three-dimensional environment. In some embodiments, the input causes the electronic device to maintain the positions of other virtual objects relative to the user's viewpoint. In some embodiments, the input causes the electronic device to maintain the positions of each second object relative to the other second objects.

[0241] In some embodiments, such as Fig. 9C In response to receiving an input (1002b), based on determining that the input satisfies one or more second criteria (e.g., the input points to the multiple virtual objects), the electronic device (e.g., 101) updates (1002f) the three-dimensional environment (e.g., 902a) based on the input to move the multiple virtual objects (e.g., 904a, 906a) in the three-dimensional environment (e.g., 902a), wherein after the movement, the multiple virtual objects (e.g., 904a, 904b) have a third spatial arrangement relative to the viewpoint of the user (e.g., 916a), and the third spatial arrangement is different from the first spatial arrangement relative to the viewpoint of the user (e.g., 916a). In some embodiments, the one or more second criteria include a criterion that is satisfied when the electronic device detects a predefined gesture performed with both hands of the user. In some embodiments, the one or more second criteria include a criterion that is satisfied when the input points to a user interface element, and in response to the input pointing to the user interface element, the user interface element causes the electronic device to initiate a process of moving the multiple virtual objects in the three-dimensional environment. In some embodiments, the input causes the electronic device to update the positions of the multiple virtual objects in the three-dimensional environment. In some embodiments, the input causes the electronic device to update the position of the virtual object relative to the user's viewpoint. In some embodiments, during and / or in response to the input (e.g., when and / or after the multiple elements move together based on the input), one or more (e.g., all) of the virtual objects maintain a spatial relationship relative to each other and / or other virtual objects. In some embodiments, if the electronic device communicates with a second electronic device having a second user and / or associated with the second user, the electronic device maintains the position of the virtual object in the three-dimensional environment and updates the position of the user's viewpoint in the three-dimensional environment, so that the spatial orientation of the virtual object relative to the user's viewpoint is updated without changing the position of the virtual object relative to the second user's viewpoint.

[0242] The three-dimensional environment is updated to move multiple objects based on determining that the input satisfies one or more second criteria, thereby enhancing the user's interaction with the electronic device by reducing the input required to move multiple virtual objects in response to one input, thereby enabling the user to use the electronic device quickly and efficiently.

[0243] In some embodiments, such as Fig. 9CIn some embodiments, in response to receiving an input and based on determining that the input satisfies one or more second criteria, updating the three-dimensional environment (e.g., 902a) based on the input to move the multiple virtual objects (e.g., 904a, 904b) in the three-dimensional environment (e.g., 902a) includes: based on the direction and magnitude of the input, moving the first virtual object (e.g., 904a) of the multiple virtual objects by a corresponding (e.g., lateral, angular) amount and in a corresponding (e.g., lateral, angular) direction, and moving the second virtual object (e.g., 906a) of the multiple virtual objects by the corresponding amount and in the corresponding direction (e.g., 1004). In some embodiments, when moving the multiple virtual objects, the virtual objects maintain a corresponding spatial orientation relative to other virtual objects and are displayed in a different spatial arrangement relative to the user's viewpoint. For example, in response to an input that moves the multiple virtual objects by a first amount in a first direction, the electronic device moves the first virtual object and the second virtual object by a first amount in the first direction in the three-dimensional environment. For another example, in response to input of rotating the multiple objects in a second direction by a second amount, the electronic device moves the first virtual object and the second virtual object to rotate the first virtual object and the second virtual object by a second amount in the second direction (e.g., around corresponding reference points in a three-dimensional environment).

[0244] Moving the first virtual object and the second virtual object by corresponding amounts in corresponding directions in response to receiving input provides an efficient way to maintain the corresponding spatial arrangement of the multiple virtual objects while (e.g., collectively) adjusting the positioning and / or orientation of the multiple virtual objects, thereby enabling the user to use the device quickly and efficiently with less input.

[0245] In some embodiments, such as Fig. 9CIn some embodiments, the one or more second criteria include criteria that are satisfied when receiving input includes detecting a first part of a user (e.g., a first hand) in a posture that satisfies one or more posture criteria (e.g., 913a) and detecting a second part of a user (e.g., a second hand) in a posture that satisfies the one or more posture criteria (e.g., 913b) (1006). In some embodiments, the one or more second criteria include criteria that are satisfied when the electronic device detects, via one or more input devices (e.g., a hand tracking device), that the user makes a pinch hand shape with both hands (e.g., touching the thumb to another finger of the same hand). In some embodiments, in response to detecting that the user makes a pinch hand shape with both hands, the electronic device initiates a process of moving the multiple virtual objects, and in response to detecting movement of the hands while maintaining the pinch hand shape, the electronic device moves the multiple objects according to movement of one or more of the hands (e.g., direction, speed, duration, distance, etc. of the movement). In some embodiments, in response to detecting input directed to a user interface element for moving a corresponding virtual object, the detection including detecting a pinch gesture performed with one hand (e.g., rather than two hands), the electronic device initiates a process of moving the corresponding virtual object (e.g., without moving the multiple virtual objects).

[0246] Moving the multiple objects in response to detecting the first portion and the second portion of the user being in a pose that meets one or more pose criteria provides an efficient way to immediately update the positioning of multiple virtual objects, thereby enabling the user to use the electronic device quickly and efficiently.

[0247] In some embodiments, such as Fig. 9A In some embodiments, when the electronic device (e.g., 101a) is not receiving input, the electronic device (e.g., 101) displays (1008a) multiple virtual objects (e.g., 904a, 906a) in a three-dimensional environment (e.g., 101a) via a display generation component (e.g., 120a) with a first visual emphasis (e.g., opacity, sharpness, color contrast, size, etc.). In some embodiments, when the electronic device is not receiving input, the electronic device displays the multiple virtual objects in full color, full opacity, and full sharpness. In some embodiments, when the electronic device is not receiving input, the electronic device displays the multiple virtual objects with a first visual emphasis relative to the rest of the three-dimensional environment.

[0248] In some embodiments, such as Fig. 9BIn some embodiments, based on determining that the input satisfies one or more second criteria, upon receiving the input, the electronic device (e.g., 101) displays (1008db) multiple virtual objects (e.g., 904a, 906a) in a three-dimensional environment (e.g., 902a) via a display generation component (e.g., 120a) with a second visual emphasis amount that is less than the first visual emphasis amount (e.g., opacity, sharpness, color contrast, size, etc.). In some embodiments, while the electronic device is receiving the input, the electronic device displays the multiple virtual objects with reduced opacity and / or sharpness and / or displays the multiple virtual objects with modified colors (such as lighter colors, darker colors, colors with lower saturation / contrast, etc.). In some embodiments, while the electronic device is receiving the input, the electronic device displays the multiple virtual objects with a second visual emphasis amount relative to the rest of the three-dimensional environment, the second visual emphasis amount being less than the first visual emphasis amount.

[0249] Reducing the visual emphasis on the multiple objects when receiving input provides an effective way to present portions of the three-dimensional environment that are close to and / or overlapping with the multiple virtual objects when receiving input to update the positioning of the multiple virtual objects, which enhances the user's interaction with the electronic device by providing enhanced visual feedback when receiving input to update the positioning of the multiple virtual objects, thereby enabling the user to quickly and efficiently use the electronic device with enhanced visual feedback.

[0250] In some embodiments, such as Fig. 9B In some embodiments, the electronic device (e.g., 101b) displays (1010a) a representation of a second user (e.g., 916a) of a second electronic device (e.g., 101a) in a three-dimensional environment (e.g., 902b) via a display generation component (e.g., 120b). In some embodiments, the electronic device and the second electronic device communicate with each other (e.g., via a network connection). In some embodiments, the electronic device and the second electronic device can access the three-dimensional environment. In some embodiments, the electronic device displays the representation of the second user at a position corresponding to the viewpoint of the second user in the three-dimensional environment. In some embodiments, the second electronic device displays the representation of the user of the electronic device at a position corresponding to the viewpoint of the user of the electronic device in the three-dimensional environment.

[0251] In some embodiments, such as Fig. 9BIn some embodiments, when the second electronic device (e.g., 101a) detects a corresponding input that satisfies one or more second criteria (e.g., an input for updating the positioning of the plurality of virtual objects relative to the perspective of the second user's viewpoint), the electronic device (e.g., 101) displays (1010b) a representation of the second user (e.g., 916a) via a display generation component (e.g., 120a) with a first amount of visual emphasis (e.g., opacity, sharpness, color contrast, size, visual emphasis relative to the rest of the three-dimensional environment, etc.). In some embodiments, when the second electronic device detects the corresponding input, the electronic device displays the representation of the second user with a reduced visual emphasis relative to the visual emphasis with which the representation of the second user is displayed when the second electronic device does not detect the corresponding input. For example, when the second electronic device detects the corresponding input, the electronic device displays the representation of the second user with reduced opacity and / or sharpness and / or with a brightened, faded, darkened color and / or with reduced contrast and / or saturation compared to the way the electronic device displays the representation of the second user when the second electronic device does not detect the corresponding input. In some embodiments, when the second electronic device detects the corresponding input, the electronic device maintains displaying the representation of the second user at the corresponding position in the three-dimensional environment. In some embodiments, the electronic device displays the representation of the second user with a first visual emphasis while moving the representation of the second user in accordance with a corresponding input detected by the second electronic device. For example, when the second electronic device detects an input corresponding to a request to move the plurality of virtual objects closer to the viewpoint of the second user, the electronic device displays the representation of the second user moving toward the plurality of virtual objects with a first visual emphasis without displaying the movement of the virtual objects relative to the user's viewpoint, even though the virtual objects move relative to the viewpoint of the second user. In some embodiments, the electronic device receives an indication of the corresponding input from the second electronic device.

[0252] In some embodiments, such as Fig. 9A In some embodiments, when the second electronic device (e.g., 101a) does not detect a corresponding input that satisfies one or more second criteria, the electronic device (e.g., 101b) displays (1010c) a representation of the second user (e.g., 916a) via a display generation component (e.g., 120b) with a second visual emphasis amount (e.g., visual emphasis relative to the rest of the three-dimensional environment) that is greater than the first visual emphasis amount. In some embodiments, when the second electronic device does not detect the corresponding input, the electronic device displays the representation of the second user with greater (or full) opacity and / or sharpness and / or with increased saturation.

[0253] Displaying a representation of the second user when the second electronic device detects the corresponding input provides an effective way to indicate to the user that the second user is involved in providing the corresponding input, thereby improving communication between users and enabling users to use the electronic device quickly and efficiently.

[0254] In some embodiments, such as Fig. 9A In some embodiments, the electronic device (e.g., 101b) displays (1012a) a representation of a second user (e.g., 916a) of a second electronic device at a third position in a three-dimensional environment (e.g., 902b) via a display generation component (e.g., 120b). In some embodiments, the electronic device and the second electronic device communicate with each other (e.g., via a network connection). In some embodiments, the electronic device and the second electronic device can access the three-dimensional environment. In some embodiments, the third position is the position of the second user's viewpoint in the three-dimensional environment. In some embodiments, the second electronic device displays the representation of the user of the electronic device at the position of the viewpoint of the user of the electronic device in the three-dimensional environment. In some embodiments, the electronic device displays additional representations of other users at the positions of the viewpoints of other users who can access the three-dimensional environment in the three-dimensional environment.

[0255] In some embodiments, such as Fig. 9B In some embodiments, when a representation of a second user (e.g., 916a) is displayed at a third location in the three-dimensional environment (e.g., 902b), the electronic device (e.g., 101b) receives (1012b) an indication that the second electronic device (e.g., 101a) has received a corresponding input that satisfies one or more second criteria. In some embodiments, the corresponding input is an input received at the second electronic device corresponding to a request to update the positioning of the virtual object in the three-dimensional environment relative to the viewpoint of the second user.

[0256] In some embodiments, such as Fig.9DIn some embodiments, in response to the indication, the electronic device (e.g., 101b) displays (1012c) a representation of the second user (e.g., 916a) at a fourth position in the three-dimensional environment (e.g., 902b) via a display generation component (e.g., 120b) according to the corresponding input, without displaying an animation of the second user's representation moving from the third position to the fourth position. In some embodiments, the electronic device displays the second user's representation "jumping" or "teleporting" from the third position to the fourth position. In some embodiments, the fourth position is based on the corresponding input received by the second electronic device. For example, in response to a corresponding input that rotates the multiple virtual objects clockwise relative to a reference point (e.g., within a boundary surrounding the multiple virtual objects), in response to the indication of the corresponding input, the electronic device updates the position of the second user's representation from the third position counterclockwise around the multiple virtual objects to the fourth position. In some embodiments, the electronic device displays the second user's representation at a third position in the three-dimensional environment until the second electronic device detects the end of the input that meets one or more second criteria.

[0257] Displaying a representation of the second user at a fourth position without displaying an animation of the second user's representation moving from the third position to the fourth position provides an effective way to update the second user's representation based on the second user's viewpoint in a manner that reduces distraction, thereby enhancing the user's interaction with the electronic device and enabling the user to use the electronic device quickly and efficiently.

[0258] In some embodiments, the one or more second criteria include a criterion satisfied when the input is directed to a user interface element, the user interface element is displayed via a display generating component (e.g., 120a) and causes the electronic device (e.g., 101a) to move the multiple virtual objects (e.g., Fig. 9A904a, 906a) (1014). In some embodiments, the electronic device also displays a corresponding user interface element associated with a corresponding virtual object among the multiple virtual objects, and when an input that satisfies one or more first criteria is directed to the corresponding user interface element, the corresponding user interface element causes the electronic device to move the corresponding virtual object (for example, without moving the multiple virtual objects). In some embodiments, in response to detecting a selection of a user interface element that causes the electronic device to move the multiple virtual objects, the electronic device initiates a process of moving the multiple virtual objects, and in response to further input including movement (for example, movement of a corresponding part of the user, another directional input, such as interaction with a directional button or key, manipulation of a joystick, etc.), the electronic device moves the multiple objects according to the movement. In some embodiments, detecting selection of a user interface element includes: detecting a user's attention (for example, gaze) directed to the user interface element, and detecting (for example, via a hand tracking device) the user performing a predefined gesture using a corresponding part of the user (for example, the user's hand), such as making the pinching hand shape described above. In some embodiments, after detecting selection of the user interface element, the electronic device moves the plurality of virtual objects according to movement of a corresponding part of the user (e.g., a hand of the user) while the corresponding part of the user maintains a pinched hand shape. In some embodiments, detecting input directed to the user interface element includes detecting input provided by one hand of the user (rather than two hands).

[0259] Moving the multiple virtual objects in response to input directed to corresponding user interface elements provides an effective way to teach users how to move the multiple virtual objects, thereby enabling users to use the electronic device quickly and efficiently.

[0260] In some embodiments, based on determining that the input satisfies one or more second criteria (1016a), based on determining that the input includes a first movement magnitude, such as Fig. 9B In some embodiments, the electronic device (e.g., 101) moves (1016b) the plurality of virtual objects (e.g., 904a, 906a) in the three-dimensional environment (e.g., 902a) by a second amount. In some embodiments, the second movement amount (e.g., speed, duration, distance) corresponds to the first movement amount value (e.g., speed, duration, distance).

[0261] In some embodiments, based on determining that the input satisfies one or more second criteria (1016a), based on determining that the input includes a movement of a third magnitude different from the first magnitude of movement, such as in Fig. 9CIn some embodiments, the electronic device (e.g., 101) moves (1016c) the plurality of virtual objects (e.g., 904a, 906a) in a three-dimensional environment (e.g., 902a) by a fourth amount that is different from the second amount. In some embodiments, the fourth movement amount (e.g., speed, duration, distance) corresponds to the third movement amount (e.g., speed, duration, distance). In some embodiments, if the first movement amount is greater than the third movement amount, the second amount is greater than the fourth amount. In some embodiments, if the first movement amount is less than the third movement amount, the second amount is less than the fourth amount. For example, if the movement of the first amount (e.g., the user's hand) includes a faster movement than the movement of the third amount (e.g., the user's hand) or a movement with a greater distance and / or duration, the second amount is greater than the fourth amount. For another example, if the movement of the first amount (e.g., the user's hand) includes a slower movement than the movement of the third amount (e.g., the user's hand) or a movement with a smaller distance and / or duration, the second amount is less than the fourth amount.

[0262] Moving the multiple virtual objects by amounts corresponding to the input movement magnitude values ​​provides an effective way for a user to control the movement magnitudes of the multiple objects with enhanced control, thereby enabling the user to use the electronic device quickly and efficiently.

[0263] In some embodiments, upon receiving and moving the plurality of virtual objects (e.g., Fig. 9ABefore receiving an input corresponding to a request to move one or more virtual objects in 904a, 906a) in the three-dimensional environment, the electronic device (e.g., 101a) displays (1018) multiple user interface elements associated with the multiple virtual objects (e.g., 904a, 906a) via a display generation component (e.g., 120a), wherein one or more first criteria include a criterion satisfied when the input points to a corresponding user interface element in the multiple user interface elements, the user interface element is associated with the corresponding object and when the input points to the corresponding user interface element, the electronic device initiates a process of moving the corresponding object in the multiple virtual objects in the three-dimensional environment (e.g., 902a). In some embodiments, the multiple virtual objects include a first virtual object and a second virtual object. In some embodiments, the electronic device displays a first selectable element close to the first virtual object, and when selected, the first selectable element causes the electronic device to initiate a process of moving the first virtual object in the three-dimensional environment. In some embodiments, the electronic device displays a second selectable element close to the second virtual object, and when selected, the second selectable element causes the electronic device to initiate a process of moving the second virtual object in the three-dimensional environment. In some embodiments, the electronic device displays a first selectable element in response to: optionally detecting that a corresponding part of the user (e.g., hand) is in a predefined shape (such as a pinched pre-hand shape in which the thumb is within a predefined threshold distance (e.g., 0.5, 1, 2, 3, 4, or 5 centimeters) of other fingers of the hand, or a pointing hand shape in which one or more fingers are extended and one or more fingers are curled toward the palm), optionally detecting that the user's attention (e.g., gaze) is directed to a first virtual object while the hand is within a predefined threshold distance (e.g., 1, 2, 3, 5, 10, 15, 30, 50, or 100 centimeters) of the first object. In some embodiments, the electronic device displays a second selectable element in response to: optionally detecting that a corresponding part of the user (e.g., hand) is in a predefined shape (such as a pre-pinching hand shape or a pointing hand shape), optionally detecting that the user's attention (e.g., gaze) is directed to a second virtual object while the hand is within a predefined threshold distance (e.g., 1, 2, 3, 5, 10, 15, 30, 50, or 100 centimeters) of the second object.

[0264] In response to input directed to a corresponding user interface element that causes the electronic device to initiate a process of moving the corresponding virtual object, the corresponding virtual object is moved (for example, without moving the multiple virtual objects), enhancing the user's interaction with the electronic device by providing an efficient way to select which virtual object to move, thereby enabling the user to use the electronic device quickly and efficiently.

[0265] In some embodiments, when displaying a three-dimensional environment (e.g., 902a), the electronic device (e.g., 101a) receives (1020a) and updates the three-dimensional environment (e.g., 902a) via one or more input devices to satisfy the digital origin (e.g., Fig.9D In some embodiments, the request corresponds to (e.g., is, includes) a request to update the spatial arrangement of the multiple virtual objects relative to the user's current viewpoint according to one or more steps of method 800 to meet one or more standards for the distance range and / or orientation range of the specified virtual objects relative to the user's current viewpoint and / or the digital origin. In some embodiments, the digital origin is located at a position in the three-dimensional environment, and when the three-dimensional environment is updated in response to a request to update the spatial arrangement of the multiple virtual objects relative to the user's current viewpoint according to one or more steps of method 800 to meet one or more spatial standards for the distance range and / or orientation range of the specified virtual objects relative to the user's current viewpoint and / or the digital origin, the electronic device uses the position to evaluate one or more position and / or orientation standards relative to the multiple virtual objects and / or relative to the user's viewpoint. In some embodiments, the digital origin and the user's viewpoint are located at the same position in the three-dimensional environment. In some embodiments, the digital origin and the user's viewpoint are located at different positions in the three-dimensional environment.

[0266] In some embodiments, in response to the input, the electronic device (e.g., 101a) updates (1020b) the three-dimensional environment (e.g., 902a) to meet one or more spatial standards relative to the digital origin. In some embodiments, updating the three-dimensional environment to meet one or more spatial standards relative to the digital origin corresponds to (e.g., includes): updating the spatial arrangement of one or more virtual objects and / or updating the user's viewpoint according to one or more steps of method 800. In some embodiments, if the virtual objects meet one or more standards relative to the digital origin but the user's viewpoint does not meet one or more standards relative to the digital origin, the electronic device updates the user's viewpoint in response to the input. In some embodiments, if the user's viewpoint meets one or more standards relative to the digital origin but one or more virtual objects do not meet one or more standards relative to the digital origin, the electronic device updates the position and / or orientation of the one or more virtual objects in response to the input.

[0267] Updating the three-dimensional environment to meet one or more spatial criteria relative to a digital origin enhances user interaction with the electronic device by providing a consistent experience when the user makes a request to update the three-dimensional environment, thereby enabling the user to use the electronic device quickly and efficiently.

[0268] In some embodiments, such as Fig. 9A In some embodiments, the digital origin (e.g., 912) is determined (1022) when the electronic device (e.g., 101a) initiates an augmented reality or virtual reality session that includes displaying a three-dimensional environment (e.g., 902a). In some embodiments, the digital origin is determined when the electronic device detects that the spatial orientation of the electronic device or display generating component relative to the user changes to a predetermined spatial orientation. For example, the electronic device and / or the display generating component is a wearable device, and the predetermined spatial position is the spatial position of the user when the electronic device and / or the display generating component is put on and / or worn. In some embodiments, the digital origin is initially located at the position of the user's viewpoint in the three-dimensional environment (e.g., when an AR or VR session starts, or when the spatial orientation of the electronic device or the display generating component relative to the user initially changes to a predetermined spatial orientation).

[0269] Determining a digital origin when an AR or VR session begins enhances user interaction with the electronic device by establishing a reference point at the start of the session, thereby providing a consistent experience to the user, thereby enabling the user to quickly and efficiently use the electronic device with reduced user errors.

[0270] In some embodiments, such as Fig. 9A , before receiving input that satisfies one or more second criteria, the digital origin (e.g., 912) is located at a first corresponding position (1024a) in the three-dimensional environment (e.g., 902a). In some embodiments, the first corresponding position of the digital origin is selected at the beginning of the VR or AR session. In some embodiments, the first corresponding position of the digital origin is a position selected in response to a request to update the three-dimensional environment to satisfy one or more spatial standards received when the digital origin has an invalid state, as described in more detail below. In some embodiments, the first corresponding position of the digital origin is a position selected in response to a previous input that satisfies one or more second criteria, as described below.

[0271] In some embodiments, such as Fig. 9CIn some embodiments, in response to receiving an input that satisfies one or more second criteria, based on determining that the input satisfies one or more second criteria, the electronic device (e.g., 101a) updates (1024b) the digital origin (e.g., 912) to be located at a second corresponding position in the three-dimensional environment (e.g., 902a) that is different from the first corresponding position. In some embodiments, the electronic device updates the digital origin to maintain the spatial relationship between the digital origin and the multiple virtual objects that existed when the input was received. In some embodiments, the electronic device updates the digital origin in a manner that changes the spatial relationship between the digital origin and the multiple virtual objects that existed when the input was received. In some embodiments, the user's viewpoint does not move in response to receiving an input that satisfies one or more criteria. In some embodiments, the electronic device updates the digital origin to be located at the position of the user's viewpoint in the three-dimensional environment. In some embodiments, after updating the position of the digital origin, in response to receiving an input corresponding to a request that satisfies one or more spatial criteria relative to the digital origin and / or the user's viewpoint according to one or more steps of method 800, the electronic device updates the user's viewpoint (e.g., so that it is located at the position of the digital origin).

[0272] The digital origin is updated in response to input that satisfies one or more second criteria, thereby enhancing user interaction with the electronic device by updating the position in the three-dimensional environment used to evaluate the spatial orientation of virtual objects and the user's viewpoint based on the updated spatial arrangement of multiple objects requested by the user, thereby enabling the user to use the electronic device quickly and efficiently.

[0273] In some embodiments, such as Fig.9FIn some embodiments, when the three-dimensional environment (e.g., 902) is accessible (1026a) by a second user of a second electronic device (e.g., 101b), the electronic device (e.g., 101a) displays (1026b) multiple virtual objects (e.g., 918a) in the three-dimensional environment (e.g., 101a) via a display generation component (e.g., 120a) when the digital origin (e.g., 912) is located at a first corresponding position in the three-dimensional environment, including a corresponding virtual object (e.g., 918a) that is accessible by the electronic device (e.g., 101a) but not accessible by the second electronic device (e.g., 101b). In some embodiments, when the corresponding virtual object is not accessible by the second electronic device, the second electronic device does not display the corresponding virtual object. In some embodiments, when the corresponding virtual object is not accessible by the second electronic device, the spatial relationship between two or more of the corresponding virtual object, the user's viewpoint, and the digital origin satisfies one or more spatial criteria. In some embodiments, if the corresponding virtual object is accessible by the second electronic device, one or more spatial relationships between the corresponding virtual object, the user's viewpoint, the digital origin, and the viewpoint of the second user of the second electronic device will not satisfy the one or more spatial criteria. In some embodiments, although the corresponding virtual object is accessible by the electronic device but not by the second electronic device, the corresponding virtual object is a "private" object (e.g., of the user).

[0274] In some embodiments, such as Fig.9F In the present invention, when the three-dimensional environment (e.g., 902) is accessible to a second user of a second electronic device (e.g., 101b) (1026a), when a corresponding virtual object (e.g., 918a) is accessible to the electronic device (e.g., 101a) but not to the second electronic device (e.g., 101b) and the digital origin (e.g., 912) is located at a first corresponding position in the three-dimensional environment (e.g., 902), the electronic device (e.g., 101) receives (1026c) via one or more input devices (e.g., 314) an input corresponding to a request to make the corresponding virtual object (e.g., 918a) accessible to the electronic device (e.g., 101a) and the second electronic device (e.g., 101b).

[0275] In some embodiments, such as Figure 9GIn some embodiments, when the three-dimensional environment (e.g., 902) is accessible to a second user of a second electronic device (1026a), in response to an input (1026d) corresponding to a request to make the corresponding object (e.g., 918a) accessible to the electronic device (e.g., 101a) and the second electronic device (e.g., 101b), the electronic device (e.g., 101a) updates (1026e) the corresponding virtual object (e.g., 918a) to be accessible to the electronic device (e.g., 101a) and the second electronic device (e.g., 101b). In some embodiments, when the corresponding virtual object is accessible to the electronic device and the second electronic device, the electronic device displays the virtual object in the three-dimensional environment via a display generation component, and the second electronic device displays the virtual object in the three-dimensional environment via a second display generation component that communicates with the second electronic device. In some embodiments, when the corresponding virtual object is accessible to the electronic device and the second electronic device, the corresponding virtual object is a "shared" object.

[0276] In some embodiments, such as Figure 9GIn some embodiments, when the three-dimensional environment (e.g., 902) is accessible to a second user of a second electronic device (e.g., 101b) (1026a), in response to an input (1026d) corresponding to a request to make the corresponding object (e.g., 918) accessible to the electronic device (e.g., 101a) and the second electronic device (e.g., 101b), the electronic device (e.g., 101) updates (1026f) the digital origin (e.g., 912) to be located at a second corresponding position in the three-dimensional environment (e.g., 902) that is different from the first corresponding position according to the position of the corresponding virtual object (e.g., 918a) (and / or the position of the second viewpoint of the three-dimensional environment associated with the second electronic device). In some embodiments, when the digital origin is located at the second corresponding position, one or more spatial relationships between two or more of the corresponding virtual object, the user's viewpoint, the digital origin, and the viewpoint of the second user of the second electronic device meet one or more spatial criteria. In some embodiments, the digital origin is associated with the viewpoint of the user of the electronic device, and the viewpoint of the second user is associated with the second digital origin that is different from the digital origin. In some embodiments, the digital origin is associated with the three-dimensional environment, the viewpoint of the first user, and the viewpoint of the second user. In some embodiments, the electronic device does not update the viewpoint used in response to an input corresponding to a request to make the corresponding object accessible to the electronic device and the second electronic device. In some embodiments, when the digital origin is located at the second corresponding position, in response to receiving an input corresponding to a request to update the spatial arrangement of multiple virtual objects, the user's viewpoint, and the digital origin according to one or more steps of method 800, the electronic device will update the user's viewpoint (for example, to be located at the second corresponding position). In some embodiments, if both the first electronic device and the second electronic device receive an input corresponding to a request to update the spatial arrangement of multiple virtual objects, the user's viewpoint, and the digital origin according to one or more steps of method 800, the viewpoints of the two users will be updated to meet one or more spatial standards, thereby positioning the user's viewpoint and the corresponding virtual object in a manner that facilitates the interaction of the two users with the corresponding virtual objects and the viewing of the corresponding virtual objects.

[0277] Updating the digital origin in response to input that makes the corresponding virtual object accessible to the second electronic device provides an efficient way to establish a reference point in a three-dimensional environment that is compatible with sharing the corresponding virtual object with the second electronic device, thereby enabling the user to use the electronic device quickly and efficiently.

[0278] In some embodiments, such as Fig.9DIn some embodiments, when the user's viewpoint is a first viewpoint in a three-dimensional environment (e.g., 902) and the digital origin (e.g., 912) is located at a first corresponding position in the three-dimensional environment (e.g., 902) and has a valid state (e.g., the digital origin is valid) at the first corresponding position in the three-dimensional environment (e.g., 902), the electronic device (e.g., 101b) receives (1028a) via one or more input devices an input corresponding to a request to update the user's viewpoint to a second viewpoint in the three-dimensional environment that is different from the first viewpoint. In some embodiments, the digital origin has a valid state when the spatial arrangement between two or more of the digital origin, one or more virtual objects, and the user's viewpoint satisfies one or more spatial criteria. In some embodiments, the one or more spatial criteria include a criterion that is satisfied when the spatial relationship between a threshold number (e.g., 1, 2, or 3 and / or 25%, 50%, or 75%) of the digital origins and the virtual objects and / or the user's viewpoint satisfies one or more criteria for a distance range or orientation range of a specified virtual object described above with reference to method 800. For example, the criteria for determining whether the digital origin is valid include a criterion that is satisfied when 50% of the spatial relationships satisfy the criterion. In some embodiments, when the digital origin is valid, in response to an input corresponding to a request to update the three-dimensional environment to satisfy one or more criteria for a distance range or orientation range of a specified virtual object relative to the user's current viewpoint as described above with reference to method 800, the electronic device maintains the position of the digital origin and updates the spatial relationship between the virtual object and the user's viewpoint according to the digital origin.

[0279] In some embodiments, such as Fig.9E In response to an input (1028b) corresponding to a request to update a user's viewpoint to a second viewpoint in the three-dimensional environment (e.g., 902b), the electronic device (e.g., 101b) displays (1028c) the three-dimensional environment (902b) from the second viewpoint via a display generation component (e.g., 120b).

[0280] In some embodiments, such as Fig.9E In response to an input (1028b) corresponding to a request to update a user's viewpoint to a second viewpoint in a three-dimensional environment (e.g., 902b), based on determining that the second viewpoint is within a threshold distance of the first viewpoint, the electronic device (e.g., 101) maintains (1028d) a valid state of a digital origin (e.g., 912) at a first corresponding position in the three-dimensional environment (e.g., 902b).

[0281] In some embodiments, such as Fig.9EIn some embodiments, in response to an input (1028b) corresponding to a request to update the user's viewpoint to a second viewpoint in the three-dimensional environment, based on determining that the second viewpoint is more than a threshold distance from the first viewpoint, the electronic device (e.g., 101b) updates (1028e) the state of the digital origin (e.g., 912) to an invalid state (e.g., determining that the digital origin is invalid). In some embodiments, in response to updating the valid state of the digital origin to an invalid state, the electronic device selects a new position for the digital origin in the three-dimensional environment (e.g., based on one or more criteria relative to the spatial relationship between the digital origin and the viewpoint of the virtual object and / or the user). In some embodiments, when the digital origin is invalid, the electronic device does not update the position of the digital origin until receiving an input corresponding to a request to update the three-dimensional environment to satisfy one or more criteria for specifying a distance range or orientation range of a virtual object relative to the user's current viewpoint as described above with reference to method 800, and then the electronic device updates the position of the digital origin and optionally updates the spatial relationship between the virtual object and the user's viewpoint based on the updated digital origin. In some embodiments, the criteria for the valid state of the digital origin include criteria that are satisfied when the user's viewpoint remains within a threshold distance and are not satisfied when the user's viewpoint moves beyond the threshold distance. In some embodiments, the electronic device does not update the user's viewpoint based on determining that the second viewpoint is invalid or when the position of the digital origin is updated. In some embodiments, in response to an input corresponding to a request to update the spatial arrangement of virtual objects and the user's viewpoint based on one or more spatial criteria according to one or more steps of method 800, the electronic device updates the user's viewpoint based on updating the digital origin.

[0282] Invalidating the digital origin in response to movement of the user's viewpoint beyond a threshold distance provides an efficient way to update the user interface based on the user's updated viewpoint, which enhances the user's interaction with the electronic device by enabling the user to select a viewpoint in a three-dimensional environment, thereby enabling the user to use the electronic device quickly and efficiently.

[0283] In some embodiments, when a device (e.g., and / or an electronic device) including a display generating component (e.g., 120a) is in a pose relative to a corresponding portion of a user (e.g., the user's head) that satisfies one or more pose criteria (e.g., the user is wearing the display generating component on his or her head in a predetermined manner) and a digital origin (e.g., 912, such as in Fig. 9AWhen the display generating component (e.g., and / or the electronic device) is located at a first corresponding position in the three-dimensional environment (e.g., 902), the electronic device (e.g., 101a) detects (1030a) movement of the display generating component (e.g., 120a) to a posture relative to the corresponding part of the user that does not meet one or more posture criteria. In some embodiments, the display generating component (e.g., and / or the electronic device) is a wearable device, and the one or more posture criteria are met when the user is wearing the display generating component (e.g., and / or the electronic device) on his head. In some embodiments, the one or more posture criteria are not met when the user is not wearing the display generating component (e.g., and / or the electronic device) on his head or the user is wearing the display generating component (e.g., and / or the electronic device) on his head but not in front of his face in a predetermined posture.

[0284] In some embodiments, when a device including a display generating component (e.g., 120a) is in a posture relative to a corresponding part of a user that does not satisfy one or more posture standards, the electronic device (e.g., 101) detects (1030b) movement of the display generating component (e.g., 120a) to a posture relative to a corresponding part of the user that satisfies one or more posture standards. In some embodiments, after not wearing the display generating component (e.g., and / or the electronic device), the user begins to wear the display generating component (e.g., and / or the electronic device) in a posture that satisfies the one or more posture standards.

[0285] In some embodiments, in response to movement (1030c) of a display generating component (e.g., 120) to a posture relative to a corresponding part of a user that satisfies one or more posture criteria, based on determining that the time that the device including the display generating component (e.g., 120a) was in a posture relative to the corresponding part of the user that did not satisfy the one or more posture criteria was less than a predetermined time threshold (e.g., 1, 2, 3, 5, 30, or 45 seconds or 1, 2, 3, 5, or 10 minutes), the electronic device (e.g., 101a) moves the digital origin (e.g., 912, such as in Fig. 9A In some embodiments, if the pose does not satisfy the one or more pose criteria for less than a predetermined time threshold, the electronic device does not reset the digital origin and does not update the user's viewpoint.

[0286] In some embodiments, in response to the display generation component (e.g., 120a) moving to a posture relative to the corresponding part of the user that satisfies the one or more posture criteria (1030c), based on determining that the time for which the device including the display generation component (e.g., 120a) is in a posture relative to the corresponding part of the user that does not satisfy the one or more posture criteria is greater than a predetermined time threshold, the electronic device (e.g., 101a) moves the digital origin (e.g., such as Fig. 9A 912 in the three-dimensional environment (e.g., 902) is updated (1030e) to a second corresponding position in the three-dimensional environment (e.g., 902) that is different from the first corresponding position. In some embodiments, the second corresponding position is associated with the position of the user's viewpoint in the three-dimensional environment based on the physical position of the user and / or the display generation component (e.g., and / or the electronic device) (e.g., is the position). In some embodiments, if the digital origin is still valid at the first corresponding position when the movement of the display generation component to the posture of the corresponding part relative to the user meets one or more criteria after a threshold time period has passed, the electronic device maintains the digital origin at the first corresponding position. In some embodiments, updating the digital origin does not include updating the user's viewpoint. In some embodiments, in response to an input corresponding to a request to update the spatial arrangement of virtual objects and the user's viewpoint according to one or more spatial criteria according to one or more steps of method 800, the electronic device updates the user's viewpoint according to updating the digital origin.

[0287] The digital origin is updated in response to movement of a display generating component to a posture that satisfies the posture criteria when the posture criteria have not been met for a predetermined time threshold, thereby enhancing the user's interaction with the electronic device by enabling the user to update the three-dimensional environment as soon as the posture of the display generating component (e.g., and / or the electronic device) satisfies one or more posture criteria, thereby enabling the user to use the electronic device quickly and efficiently.

[0288] In some embodiments, such as Fig. 9AIn one embodiment, when displaying a three-dimensional environment (e.g., 902a) including a plurality of virtual objects (e.g., 904a, 906a) in a first corresponding spatial arrangement relative to a user's viewpoint, wherein the first corresponding spatial arrangement includes displaying the plurality of virtual objects (e.g., 904a, 906a) within a predefined threshold distance from the user's viewpoint, and when a digital origin (e.g., 912) is located at a first corresponding position in the three-dimensional environment (e.g., 902a) and has a valid state at the first corresponding position in the three-dimensional environment (e.g., 902a), the electronic device (e.g., 101) detects (1032a) an indication of one or more inputs corresponding to a request to update the spatial arrangement of the plurality of virtual objects (e.g., 904a, 906a) relative to the user's viewpoint. In some embodiments, the one or more inputs satisfy one or more first criteria but do not satisfy one or more second criteria (e.g., the one or more inputs correspond to a request to update the positioning of the virtual objects individually), such as the inputs described with reference to method 1400.

[0289] In some embodiments, such as Fig.9D In response to detecting an indication of one or more inputs, an electronic device (e.g., 101) displays (1032b) multiple virtual objects (e.g., 904a, 904b) in a second corresponding spatial arrangement relative to a user's viewpoint via a display generation component (e.g., 120a).

[0290] In some embodiments, such as Fig. 9C In some embodiments, based on determining that the second corresponding spatial arrangement includes displaying at least one of the multiple virtual objects (e.g., 904a, 906a) within a predefined threshold distance (e.g., 1, 2, 3, 5, 10, 15, or 30 meters) from the user's viewpoint, the electronic device (e.g., 101) maintains (1032c) a valid state of the digital origin at the first corresponding position in the three-dimensional environment. In some embodiments, when the digital origin has a valid state, in response to a request to update the spatial arrangement of virtual objects to meet one or more criteria described above with reference to method 800, the electronic device updates the three-dimensional environment according to the first corresponding position of the digital origin. In some embodiments, when the digital origin is maintained at the first corresponding position, the electronic device does not update the user's viewpoint.

[0291] In some embodiments, such as Fig.9DIn the embodiment, based on determining that the second corresponding spatial arrangement includes displaying multiple virtual objects (e.g., 904a, 906a) outside a predefined threshold distance from the user's viewpoint, the electronic device (e.g., 101) updates the state of the digital origin (1032d) to an invalid state. In some embodiments, when the digital origin has an invalid state, in response to a request to update the spatial arrangement of virtual objects to meet one or more standards described in reference method 800 above, the electronic device updates the three-dimensional environment according to the second corresponding position of the digital origin. In some embodiments, the second corresponding position is determined in response to updating the valid state of the digital origin to an invalid state. In some embodiments, the second corresponding position is determined in response to a request to update the spatial arrangement of virtual objects to meet one or more standards described in reference method 800 above.

[0292] The digital origin is invalidated when multiple objects are more than a predefined threshold distance away from the user, enhancing the user's interaction with the electronic device by providing an efficient way to update the three-dimensional environment using an updated digital origin to display virtual objects at a viewpoint closer to the user, thereby enabling the user to use the electronic device quickly and efficiently.

[0293] In some embodiments, such as Fig.9F In some embodiments, when the position of the digital origin (e.g., 912) satisfies one or more digital origin criteria, the electronic device (e.g., 101) maintains (1034a) the digital origin (e.g., 912) at a first corresponding position in the three-dimensional environment. In some embodiments, the digital origin criteria include one or more of the above criteria, such as the movement of the user's viewpoint does not exceed a threshold distance, the user's viewpoint is within a threshold distance of one or more virtual objects, and / or other criteria related to the spatial arrangement between two or more of the virtual objects, the user's viewpoint, and the digital origin. In some embodiments, in response to a request to update the spatial arrangement relative to the user's viewpoint according to one or more steps of method 800 when the digital origin is at the first corresponding position, the electronic device updates the three-dimensional environment to meet the one or more criteria relative to the digital origin located at the first corresponding position.

[0294] In some embodiments, such as Figure 9GIn response to detecting that the position of the digital origin (e.g., 912) no longer satisfies one or more digital origin criteria, the electronic device (e.g., 101) updates (1034b) the digital origin (e.g., 912) to be located at a second corresponding position in the three-dimensional environment (e.g., 902) that is different from the first corresponding position, wherein the second corresponding position satisfies one or more digital origin criteria. In some embodiments, in response to a request to update the spatial arrangement relative to the user's viewpoint according to one or more steps of method 800 when the digital origin is located at the second corresponding position, the electronic device updates the three-dimensional environment to meet one or more criteria relative to the updated digital origin located at the second corresponding position. In some embodiments, the electronic device automatically updates the digital origin in response to determining that the digital origin is invalid (e.g., in the absence of receiving an input corresponding to a request to update the digital origin). In some embodiments, updating the digital origin does not include updating the user's viewpoint. In some embodiments, in response to an input corresponding to a request to update the spatial arrangement of virtual objects and the user's viewpoint according to one or more spatial criteria according to one or more steps of method 800, the electronic device updates the user's viewpoint according to updating the digital origin.

[0295] The digital origin is updated in response to determining that the digital origin is invalid, and the user's interaction with the electronic device is enhanced by quickly updating the three-dimensional environment using the valid digital origin, thereby enabling the user to quickly and efficiently use the electronic device.

[0296] In some embodiments, such as Fig. 9A In the present invention, displaying multiple virtual objects (e.g., 904a, 906a) in a first spatial arrangement includes: displaying multiple virtual objects (e.g., 904a, 906a) in corresponding arrangements (e.g., orientations and / or positions and / or distances) relative to each other (1036a).

[0297] In some embodiments, such as Fig. 9C In some embodiments, displaying multiple virtual objects (e.g., 904a, 906a) in a third spatial arrangement includes: displaying multiple virtual objects (904a, 906a) in a corresponding arrangement relative to each other (1036b). In some embodiments, in response to updating the three-dimensional environment in response to input that satisfies one or more second criteria, maintaining the positioning and orientation of the virtual objects relative to each other. In some embodiments, when the virtual objects are moved together, the electronic device displays the virtual objects together while maintaining the corresponding arrangement of the virtual objects relative to each other.

[0298] Maintaining the respective spatial arrangements of the virtual objects relative to each other in response to input satisfying one or more second criteria enhances user interaction with the electronic device by enabling the user to quickly and efficiently move multiple virtual objects together.

[0299] FIG. 11A to FIG. 11E An exemplary manner of displaying an object in a three-dimensional environment based on an estimated position of a floor of the three-dimensional environment according to some embodiments of the present disclosure is shown.

[0300] Fig.11A 1 and 1. The three-dimensional environment 1122 is shown as being displayed by the display generation components 120a and 120b of the electronic device 1102a of user A and the electronic device 1104b of user B, respectively. It should be understood that in some embodiments, the electronic devices 1102a and 1104b may utilize reference images in the two-dimensional environment without departing from the scope of the present disclosure. FIG. 11A to FIG. 11E One or more of the techniques described above. Figure 1 As described in FIG. 6 , electronic devices 1102a and 1104b (e.g., each corresponding to device 101) optionally include display generation components 120a and 120b (e.g., touch screens) and multiple image sensors 314a and 314b, respectively. Image sensors 314a and 314b optionally include one or more of the following: a visible light camera; an infrared camera; a depth sensor; or any other sensor of electronic devices 1102a and / or 1104b that can be used to capture one or more images of a user or a portion of a user when the user interacts with electronic devices 1102a and / or 1104b. In some embodiments, the user interface shown below can also be implemented on a head-mounted display that includes a display generation component that displays the user interface to the user, as well as sensors that detect the physical environment and / or movement of the user's hand (e.g., external sensors facing outward from the user) and / or sensors that detect the user's gaze (e.g., internal sensors facing inward toward the user's face).

[0301] like Fig.11A, the electronic device 1102a is currently displaying a representation 1106 of user B, who is sitting in a virtual chair 1107 (e.g., a virtual object), and a user interface 1110 of application A. In some embodiments, application A is a single-user gaming application, a multi-user gaming application (e.g., with which both user A and user B optionally interact), a media application, a social application, a navigation application, a streaming application, etc. In some embodiments, the electronic device 1102a is displaying the representation 1106, the virtual chair 1107, and the user interface 1110 because these objects are in the field of view of the current viewpoint of user A from the three-dimensional environment 1122. For example, as indicated in the top view 1140, user A is currently viewing the three-dimensional environment 1122 from behind the three-dimensional environment 1122 and in a posture oriented toward the front of the three-dimensional environment 1122. Therefore, the electronic device 1102a associated with user A is displaying the user interface 1110, the virtual chair 1107, and the representation 1106 of user B because these objects are in the field of view from the current viewpoint of user A. Similarly, in Fig.11A In the example of FIG. 1 , an electronic device 1104 b associated with user B is presenting a user interface 1110 and a representation 1118 of user A who is sitting in a virtual chair 1111 because these objects are in the field of view of user B's current viewpoint from the three-dimensional environment 1122, as shown in FIG. Fig.11A Indicated in the top view 1140.

[0302] In some embodiments, the three-dimensional environment 1122 is displayed relative to an estimated position of the electronic device in the physical environment of the electronic device (e.g., operating environment 100). Fig.11A , the electronic devi...

Claims

1. A method comprising: At an electronic device in communication with a display generating component and one or more input devices: while displaying, via the display generation component, a three-dimensional environment including a plurality of virtual objects having a first spatial arrangement relative to a current viewpoint of a user of the electronic device, detecting, via the one or more input devices, movement of the current viewpoint of the user from the first viewpoint to a second viewpoint in the three-dimensional environment, the first spatial arrangement corresponding to respective poses of the plurality of virtual objects in the three-dimensional environment; in response to detecting the movement corresponding to the movement of the current viewpoint of the user from the first viewpoint to the second viewpoint, displaying, via the display generation component, from the second viewpoint, the three-dimensional environment including the plurality of virtual objects having a second spatial arrangement different from the first spatial arrangement relative to the current viewpoint of the user; receiving, via the one or more input devices, an input corresponding to a request to update the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user to satisfy one or more criteria, the one or more criteria specifying a range of distances or ranges of orientations of virtual objects relative to the current viewpoint of the user, while displaying the three-dimensional environment including the plurality of virtual objects having the second spatial arrangement relative to the current viewpoint of the user corresponding to the respective poses of the plurality of virtual objects in the three-dimensional environment from the second viewpoint; and In response to the input corresponding to the request to update the three-dimensional environment, displaying the three-dimensional environment from the second viewpoint via the display generation component, including displaying the multiple virtual objects having a third spatial arrangement corresponding to updated poses of the multiple virtual objects in the three-dimensional environment, the updated poses being different from the corresponding poses of the multiple virtual objects in the three-dimensional environment, wherein the third spatial arrangement is different from the second spatial arrangement relative to the current viewpoint of the user, and wherein the third spatial arrangement of the multiple virtual objects satisfies the one or more criteria.

2. The method of claim 1 , wherein receiving the input corresponding to the request to update the spatial arrangement of the plurality of virtual objects comprises: The input is received via a hardware input device of the one or more input devices.

3. The method of claim 2, wherein the input corresponding to the request to update the spatial arrangement of the plurality of virtual objects satisfies one or more first input criteria, and the method further comprises: receiving a second input via the hardware input device; as well as In response to receiving the second input: Based on determining that the second input satisfies one or more second input criteria different from the one or more first input criteria, a corresponding operation corresponding to the second input is performed without updating the spatial arrangement of the plurality of virtual objects.

4. The method of claim 1 , wherein receiving the input corresponding to the request to update the spatial arrangement of the plurality of virtual objects comprises: A selection of a user interface element displayed in the three-dimensional environment via the display generation component is detected.

5. The method of claim 1 , wherein displaying the plurality of virtual objects having the second spatial arrangement comprises: displaying the plurality of virtual objects at a first location in the three-dimensional environment via the display generation component, and the method further comprising: In response to receiving the input, the plurality of virtual objects are moved from the first location to a second location in the three-dimensional environment.

6. The method according to claim 1, further comprising: receiving, via the one or more input devices, an input corresponding to a request to update the position of the corresponding virtual object in the three-dimensional environment while displaying, via the display generation component, the three-dimensional environment including a corresponding virtual object among the plurality of virtual objects at a first position in the three-dimensional environment, wherein the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user is a first corresponding spatial arrangement that satisfies the one or more criteria; in response to the input corresponding to the request to update the positioning of the respective virtual objects in the three-dimensional environment, displaying, via the display generation component, the plurality of virtual objects having a second respective spatial arrangement that does not satisfy the one or more criteria, including displaying the respective virtual objects at a second position in the three-dimensional environment that is different from the first position; receiving, via the one or more input devices, a second input corresponding to a request to update the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user to satisfy the one or more criteria while displaying the three-dimensional environment, including displaying the respective virtual objects at the second location in the three-dimensional environment; as well as In response to receiving the second input, the positioning of the respective virtual object is updated to satisfy the one or more criteria without updating the positioning of one or more other virtual objects in the plurality of virtual objects.

7. The method of claim 1 , wherein displaying the plurality of virtual objects having the third spatial arrangement comprises: Based on determining that the three-dimensional environment is associated with a first spatial template, displaying, via the display generation component, the plurality of virtual objects having the third spatial arrangement comprises: displaying, via the display generation component, corresponding virtual objects of the plurality of virtual objects having orientations relative to the current viewpoint of the user that satisfy one or more criteria associated with the first spatial template, and Based on determining that the three-dimensional environment is associated with the second spatial template, displaying the multiple virtual objects having the third spatial arrangement via the display generating component includes: displaying the corresponding virtual objects among the multiple virtual objects via the display generating component that have an orientation relative to the current viewpoint of the user that satisfies one or more criteria associated with the second spatial template.

8. The method of claim 7, wherein displaying the plurality of virtual objects having the third spatial arrangement comprises: Based on determining that the three-dimensional environment is associated with a shared content space template, the corresponding virtual object among the multiple virtual objects is displayed via the display generation component in a posture in which the corresponding side of the corresponding virtual object is oriented toward the current viewpoint of the user and the second viewpoint of a second user in the three-dimensional environment.

9. The method of claim 7, wherein displaying the plurality of virtual objects having the third spatial arrangement comprises: Based on determining that the three-dimensional environment is associated with a shared activity space template, the corresponding virtual object among the multiple virtual objects is displayed via the display generation component in a posture in which a first side of the corresponding virtual object is oriented toward the current viewpoint of the user and a second side of the corresponding virtual object, which is different from the first side, is oriented toward a second viewpoint of a second user.

10. The method of claim 7, wherein displaying the plurality of virtual objects having the third spatial arrangement comprises: Based on determining that the three-dimensional environment is associated with a group activity space template, a representation of a second user is displayed via the display generation component in a pose oriented toward the current viewpoint orientation of the user of the electronic device.

11. The method according to claim 1, further comprising: detecting, while displaying, via the display generating component, the three-dimensional environment including a second user associated with a second viewpoint in the three-dimensional environment, an indication of movement of the second viewpoint of the second user from a first corresponding viewpoint to a second corresponding viewpoint in the three-dimensional environment, wherein the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user is a first corresponding spatial arrangement that satisfies the one or more criteria; receiving, via the one or more input devices, a second input corresponding to a request to update the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user to satisfy the one or more criteria while displaying the three-dimensional environment with the second viewpoint of the second user at the second corresponding viewpoint; as well as In response to receiving the second input, the spatial arrangement of the plurality of virtual objects is updated to a second corresponding spatial arrangement that satisfies the one or more criteria according to the second corresponding viewpoint of the second user.

12. The method according to claim 1, further comprising: receiving, via the one or more input devices, a sequence of one or more inputs corresponding to requests to update one or more positions of the plurality of virtual objects in the three-dimensional environment while displaying the three-dimensional environment via the display generation component, wherein the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user is a first corresponding spatial arrangement that satisfies the one or more criteria; in response to receiving the sequence of the one or more inputs, displaying, via the display generation component, the plurality of virtual objects at respective locations in the three-dimensional environment according to the sequence of the one or more inputs in a second respective spatial arrangement that does not satisfy the one or more criteria; receiving, while displaying the three-dimensional environment, including displaying the plurality of virtual objects at the respective locations in the three-dimensional environment, via the one or more input devices, a second input corresponding to a request to update the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user to satisfy the one or more criteria; as well as In response to receiving the second input, the positioning of the plurality of virtual objects is updated to a third respective spatial arrangement that satisfies the one or more criteria based on the respective positioning of the plurality of virtual objects in the three-dimensional environment.

13. The method according to claim 12, further comprising: detecting, while displaying the three-dimensional environment via the display generation component, one or more indications of a request by a second user in the three-dimensional environment to update one or more positions of the plurality of virtual objects in the three-dimensional environment, wherein the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user is a first corresponding spatial arrangement that satisfies the one or more criteria; in response to detecting the one or more indications, displaying, via the display generation component, the plurality of virtual objects at respective locations in the three-dimensional environment according to the sequence of the one or more inputs in a second respective spatial arrangement that does not satisfy the one or more criteria; receiving, while displaying the three-dimensional environment, including displaying the plurality of virtual objects at the respective locations in the three-dimensional environment, via the one or more input devices, a second input corresponding to a request to update the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user to satisfy the one or more criteria; as well as In response to receiving the second input, the positioning of the plurality of virtual objects is updated to a third respective spatial arrangement that satisfies the one or more criteria based on the respective positioning of the plurality of virtual objects in the three-dimensional environment.

14. The method according to claim 1, further comprising: When the spatial arrangement of the plurality of virtual objects does not satisfy the one or more criteria: Based on determining that the input corresponding to the request to update the spatial arrangement of the multiple virtual objects has not been received, maintaining the spatial arrangement of the multiple virtual objects until the input corresponding to the request to update the spatial arrangement of the multiple virtual objects has been received.

15. The method according to claim 1, further comprising: Displaying the plurality of virtual objects in the three-dimensional environment includes displaying a first virtual object of the plurality of virtual objects at a location beyond a predefined threshold distance from the current viewpoint of the user; displaying the plurality of virtual objects in the three-dimensional environment, including, when displaying the first of the plurality of virtual objects at the location beyond the predefined threshold distance from the current viewpoint of the user, receiving, via the one or more input devices, a second input corresponding to a request to update the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user to satisfy the one or more criteria; as well as In response to receiving the second input, updating the viewpoint of the user to a corresponding viewpoint within the predefined threshold distance of the first virtual object, wherein the spatial arrangement of the plurality of virtual objects relative to the corresponding viewpoint satisfies the one or more criteria.

16. The method according to claim 1, further comprising: displaying, via the display generation component, the plurality of virtual objects with a first spacing between a first virtual object of the plurality of virtual objects and a second virtual object of the plurality of virtual objects, wherein the first spacing does not satisfy one or more spacing criteria of the one or more criteria; receiving, via the one or more input devices, a second input corresponding to a request to update the spatial arrangement of the plurality of virtual objects relative to the current viewpoint of the user to satisfy the one or more criteria while displaying the plurality of virtual objects with the first spacing between the first virtual object and the second virtual object; as well as In response to receiving the second input, the plurality of virtual objects are displayed via the display generation component with a second spacing between the first virtual object and the second virtual object, wherein the second spacing satisfies the one or more spacing criteria.

17. The method of claim 1, wherein detecting the movement of the current viewpoint of the user from the first viewpoint to the second viewpoint in the three-dimensional environment comprises: Movement of the electronic device in a physical environment of the electronic device or movement of the display generating component in a physical environment of the display generating component is detected via the one or more input devices.

18. An electronic device, comprising: one or more processors; Memory; and One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for executing the method according to any one of claims 1 to 17.

19. A non-transitory computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by one or more processors of an electronic device, cause the electronic device to perform the method according to any one of claims 1 to 17.