Search

US-12626456-B2 - Electronic device for displaying virtual object and operation method thereof

US12626456B2US 12626456 B2US12626456 B2US 12626456B2US-12626456-B2

Abstract

A first electronic device is provided. The electronic device includes memory, a communication module, a display, and at least one processor. The memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, display a first virtual object, identify an input to the first virtual object, transmit information about a first event corresponding to the input to the first virtual object and first identification information of the first electronic device to the server when the first virtual object is in the active state, receive, second identification information of one among multiple electronic devices connected to the server and information about a second event for the first virtual object, and execute the first event when the second identification information corresponds to the first identification information.

Inventors

  • WOOHYUN JUNG
  • Jinwang AN

Assignees

  • SAMSUNG ELECTRONICS CO., LTD.

Dates

Publication Date
20260512
Application Date
20231204
Priority Date
20221208

Claims (19)

  1. 1 . A first electronic device comprising: memory; communication circuitry; a display; and a processor, wherein the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to: perform a connection to a server through the communication circuitry, display a first virtual object through the display, based on information about the first virtual object received from the server, identify a first input to the first virtual object, based on the first input to the first virtual object, identify whether the first virtual object is in an active state, transmit information about a first event corresponding to the first input to the first virtual object and first identification information of the first electronic device to the server when the first virtual object is in the active state, receive, from the server, second identification information of at least one among a plurality of electronic devices connected to the server and information about a second event for the first virtual object, and execute the first event when the second identification information corresponds to the first identification information, when the second identification information indicates that a number of at least one electronic device executing at least one event for the first virtual object is less than a predetermined number, display the first virtual object in an active state through the display, and when the second identification information indicates that the number of the at least one electronic device executing the at least one event for the first virtual object is equal to or greater than the predetermined number, display the first virtual object in an inactive state through the display.
  2. 2 . The electronic device of claim 1 , wherein the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, when the second identification information corresponds to the first identification information, identify that the first electronic device among the plurality of electronic devices connected to the server has first requested the first input to the first virtual object.
  3. 3 . The electronic device of claim 1 , wherein the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, when the second identification information does not correspond to the first identification information, identify that a second electronic device among the plurality of electronic devices connected to the server has requested a second input to the first virtual object before the first electronic device.
  4. 4 . The electronic device of claim 3 , wherein the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, based on the information about the second event, identify whether the second input to the first virtual object by the second electronic device ends.
  5. 5 . The electronic device of claim 4 , wherein the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to: display the first virtual object in an inactive state through the display when identifying that the second input to the first virtual object by the second electronic device does not end, and display the first virtual object in an active state through the display when identifying that the second input to the first virtual object by the second electronic device ends.
  6. 6 . The electronic device of claim 3 , wherein the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, when identifying that the second electronic device among the plurality of electronic devices connected to the server requests a second input to the first virtual object before the first electronic device, display the first virtual object in a waiting state to indicate waiting for execution of the first event.
  7. 7 . The electronic device of claim 6 , wherein the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, in the waiting state, display the second identification information of the second electronic device around the first virtual object.
  8. 8 . The electronic device of claim 1 , wherein the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to receive, from the server, the second identification information indicating a plurality of electronic devices when an event related to the first virtual object is simultaneously executed by the plurality of electronic devices.
  9. 9 . The electronic device of claim 8 , wherein the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to; identify identification information corresponding to the first identification information from the second identification information, and execute the first event when the identification information corresponding to the first identification information is identified from the second identification information.
  10. 10 . An operation method of a first electronic device, the operation method comprising: performing a connection to a server through communication circuitry included in the first electronic device; displaying a first virtual object through a display included in the first electronic device, based on information about the first virtual object received from the server; identifying a first input to the first virtual object; based on the first input to the first virtual object, identifying whether the first virtual object is in an active state; transmitting, to the server, a first event corresponding to the first input to the first virtual object and first identification information of the first electronic device when the first virtual object is in the active state; receiving, from the server, second identification information of at least one among a plurality of electronic devices connected to the server and information about a second event for the first virtual object; and executing the first event when the second identification information corresponds to the first identification information, when the second identification information indicates that a number of at least one electronic device executing at least one event for the first virtual object is less than a predetermined number, displaying the first virtual object in an active state through the display, and when the second identification information indicates that the number of the at least one electronic device executing the at least one event for the first virtual object is equal to or greater than the predetermined number, displaying the first virtual object in an inactive state through the display.
  11. 11 . The operation method of claim 10 , further comprising identifying that the first electronic device among the plurality of electronic devices connected to the server has first requested the first input to the first virtual object, when the second identification information corresponds to the first identification information.
  12. 12 . The operation method of claim 10 , further comprising identifying that a second electronic device among the plurality of electronic devices connected to the server has requested a second input to the first virtual object before the first electronic device, when the second identification information does not correspond to the first identification information.
  13. 13 . The operation method of claim 12 , further comprising, based on the information about the second event, identifying, whether the second input to the first virtual object by the second electronic device ends.
  14. 14 . The operation method of claim 13 , further comprising: displaying the first virtual object in an inactive state through the display when identifying that the second input to the first virtual object by the second electronic device does not end; and displaying the first virtual object in an active state through the display when identifying that the second input to the first virtual object by the second electronic device ends.
  15. 15 . The operation method of claim 12 , further comprising displaying the first virtual object in a waiting state to indicate waiting for execution of the first event, when identifying that the second electronic device among the plurality of electronic devices connected to the server requests a second input to the first virtual object before the first electronic device.
  16. 16 . The operation method of claim 15 , further comprising displaying, in the waiting state, the second identification information of the second electronic device around the first virtual object.
  17. 17 . The operation method of claim 10 , further comprising receiving, from the server, the second identification information indicating a plurality of electronic devices when an event related to the first virtual object is simultaneously executed by the plurality of electronic devices.
  18. 18 . The operation method of claim 17 , further comprising: identifying identification information corresponding to the first identification information from the second identification information; and executing the first event when the identification information corresponding to the first identification information is identified from the second identification information.
  19. 19 . A non-transitory computer-readable recording medium configured to store at least one instruction to: perform a connection to a server through communication circuitry included in a first electronic device; display a first virtual object through a display included in the first electronic device, based on information about the first virtual object received from the server; identify a first input to the first virtual object; based on the first input to the first virtual object, identify whether the first virtual object is in an active state; transmit, to the server, a first event corresponding to the first input to the first virtual object and first identification information of the first electronic device when the first virtual object is in the active state; receive, from the server, second identification information of at least one among a plurality of electronic devices connected to the server and information about a second event for the first virtual object; and execute the first event when the second identification information corresponds to the first identification information, when the second identification information indicates that a number of at least one electronic device executing at least one event for the first virtual object is less than a predetermined number, display the first virtual object in an active state through the display, and when the second identification information indicates that the number of the at least one electronic device executing the at least one event for the first virtual object is equal to or greater than the predetermined number, display the first virtual object in an inactive state through the display.

Description

CROSS-REFERENCE TO RELATED APPLICATION(S) This application is a continuation application, claiming priority under § 365(c), of an International application No. PCT/KR2023/019030, filed on Nov. 23, 2023, which is based on and claims the benefit of a Korean patent application number 10-2022-0170631, filed on Dec. 8, 2022, in the Korean Intellectual Property Office, the disclosure of which is incorporated by reference herein in its entirety. BACKGROUND Field The disclosure relates to an electronic device for displaying a virtual object and a method for operating the same. Description of Related Art Metaverse-related content is being actively provided. For example, augmented reality-based metaverse-related content in which additional information is superimposed on the real-world environment may be provided. As metaverse-related content is advanced, metaverse services may be accessed by multiple users. An increasing number of various services and additional functions are being provided through wearable electronic devices such as augmented reality glasses (AR glasses), video see-through (VST) devices, and head-mounted display (HMD) devices. In order to increase the utility value of these electronic devices and satisfy the needs of different users, telecommunications service providers or electronic device manufacturers are competitively developing electronic devices to provide various features and differentiate themselves from other companies. As a result, various functions provided through wearable electronic devices are becoming increasingly advanced. AR glasses or VR glasses may provide a realistic experience to a user by displaying virtual images while worn on the user's body. AR glasses or video see-through (VST) devices may replace the usability of a smartphone in various fields such as game entertainment, education, and social networking service (SNS). Users may be provided with content similar to reality through AR glasses or the video see-through (VST) devices, and may experience a sensation being in a virtual world through interactions. The above information is presented as background information only to assist with an understanding of the disclosure. No determination has been made, and no assertion is made, as to whether any of the above might be applicable as prior art with regard to the disclosure. SUMMARY Aspects of the disclosure are to address at least the above-mentioned problems and/or disadvantages and to provide at least the advantages described below. Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments. According to an embodiment, a first electronic device may include memory, a communication module, a display, and a processor. According to an embodiment, the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, perform a connection to a server through the communication module. According to an embodiment, the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, display a first virtual object through the display, based on information about the first virtual object received from the server. According to an embodiment, the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, identify a first input to the first virtual object. According to an embodiment, the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, based on the first input to the first virtual object, identify whether the first virtual object is in an active state. According to an embodiment, the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, transmit information about a first event corresponding to the first input to the first virtual object and first identification information of the first electronic device to the server when the first virtual object is in the active state. According to an embodiment, the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, receive, from the server, second identification information of one among a plurality of electronic devices connected to the server and information about a second event for the first virtual object. According to an embodiment, the memory stores at least one instruction configured to cause, when executed by the processor, the first electronic device to, execute the first event when the second identification information corresponds to the first identification information. According to an embodiment, a method for operating a first electronic device may include performing a connection to a server through a communication module i