EP-4741028-A1 - VIRTUAL SCENE ADJUSTMENT METHOD AND APPARATUS, AND RELATED DEVICE
Abstract
A virtual scene adjustment method is provided. In the method, a data exchange platform obtains status data that is of a first object and that is sent by a first device. The first object is an environmental object in a real scene or an item included in the real scene. The data exchange platform sends the status data of the first object to a second device. The second device obtains the status data of the first object, and adjusts, based on the status data of the first object, a second object that is included in a virtual scene and that corresponds to the first object.
Inventors
- CHEN, PU
- WU, Lilei
Assignees
- Huawei Cloud Computing Technologies Co., Ltd.
Dates
- Publication Date
- 20260513
- Application Date
- 20240115
Claims (20)
- A virtual scene adjustment method, wherein the method is applied to a data exchange platform, the data exchange platform is separately connected to a first device and a second device, the first device is configured to process status data of a first object comprised in a real scene, the first object is an environmental object or an item in the real scene, the second device is configured to process a virtual scene, the virtual scene is displayed in the real scene, and the method comprises: obtaining the status data that is of the first object and that is sent by the first device; and sending the status data of the first object to the second device, wherein the status data of the first object is used for adjusting a second object comprised in the virtual scene, and the second object corresponds to the first object.
- The method according to claim 1, wherein the first device is a collection device, and the status data of the first object is original status data obtained by the collection device through collection for the first object.
- The method according to claim 1, wherein the first device is a computing device, the computing device is connected to a collection device, the status data of the first object is an attribute parameter obtained by the computing device by processing original status data, and the original status data is obtained by the collection device through collection for the first object.
- The method according to claim 3, wherein the attribute parameter is an object attribute parameter of the first object.
- The method according to claim 3, wherein the attribute parameter is a device attribute parameter of a virtual device, and the device attribute parameter of the virtual device is used for adjusting, in the virtual scene, a virtual device used for controlling the second object.
- The method according to claim 1, wherein the first device is a first control device, the first control device is configured to control the first object, and the status data of the first object is control data generated by the control device for the first object.
- The method according to claim 6, wherein the method further comprises: obtaining status data that is of the second object and that is sent by the second device; and sending the status data of the second object to the first device, wherein the status data of the second object indicates the first control device to adjust the first object.
- The method according to claim 1, wherein the first device is a second control device, the second control device is configured to control the second object, and the method further comprises: obtaining status data that is of the second object and that is sent by the first device; and sending the status data of the second object to the second device, wherein the status data of the second object is used for adjusting the second object comprised in the virtual scene.
- The method according to any one of claims 1 to 8, wherein the data exchange platform is an internet of things IoT platform.
- A virtual scene adjustment method, wherein the method is applied to a second device, the second device is connected to a data exchange platform, and the method comprises: obtaining status data that is of a first object and that is sent by the data exchange platform, wherein the first object is an environmental object in a real scene or an item comprised in the real scene; and adjusting, based on the status data of the first object, a second object comprised in a virtual scene, wherein the second object corresponds to the first object, and an adjusted virtual scene is used for being displayed in the real scene.
- The method according to claim 10, wherein the adjusting, based on the status data of the first object, the second object comprised in the virtual scene comprises: adjusting the second object based on the status data of the first object; and rendering the virtual scene based on an adjusted second object.
- The method according to claim 11, wherein the status data of the first object is original status data obtained through collection for the first object, or is an object attribute parameter of the first object.
- The method according to claim 10, wherein the adjusting, based on the status data of the first object, the second object comprised in the virtual scene comprises: adjusting a virtual device based on the status data of the first object, wherein the virtual device is in the virtual scene, and the virtual device is configured to control the second object; and rendering the virtual scene by using an adjusted virtual device.
- The method according to claim 13, wherein the status data of the first object is one of a device attribute parameter of the virtual device, original status data obtained through collection for the first object, and control data for the first object.
- The method according to claim 10, wherein the data exchange platform is further connected to a first control device comprised in the real scene, the first control device is configured to control the first object, and the method further comprises: obtaining status data of the second object; and sending the status data of the second object to the data exchange platform, wherein the status data of the second object indicates the first control device to adjust the first object.
- The method according to claim 10, wherein the data exchange platform is further connected to a second control device comprised in the real scene, the second control device is configured to control the second object, and the method further comprises: obtaining status data that is of the second object and that is sent by the data exchange platform, wherein the status data of the second object is generated by the second control device; and adjusting, based on the status data of the second object, the second object comprised in the virtual scene.
- The method according to any one of claims 10 to 16, wherein the data exchange platform is an internet of things IoT platform.
- A virtual scene adjustment apparatus, wherein the apparatus is used in a data exchange platform, the data exchange platform is separately connected to a first device and a second device, the first device is configured to process status data of a first object comprised in a real scene, the first object is an environmental object or an item in the real scene, the second device is configured to process a virtual scene, the virtual scene is displayed in the real scene, and the apparatus comprises: an obtaining module, configured to obtain the status data that is of the first object and that is sent by the first device; and a sending module, configured to send the status data of the first object to the second device, wherein the status data of the first object is used for adjusting a second object comprised in the virtual scene, and the second object corresponds to the first object.
- A virtual scene adjustment apparatus, wherein the apparatus is used in a second device, the second device is connected to a data exchange platform, and the apparatus comprises: an obtaining module, configured to obtain status data that is of a first object and that is sent by the data exchange platform, wherein the first object is an environmental object in a real scene or an item comprised in the real scene; and an adjustment module, configured to adjust, based on the status data of the first object, a second object comprised in a virtual scene, wherein the second object corresponds to the first object, and an adjusted virtual scene is used for being displayed in the real scene.
- A computing device cluster, wherein the computing device cluster comprises at least one computing device, and each computing device comprises a processor and a memory, wherein the memory is configured to store instructions; and the processor is configured to cause, based on the instructions, the computing device cluster to perform the method according to any one of claims 1 to 9, or perform the method according to any one of claims 10 to 17.
Description
This application claims priority to Chinese Patent Application No. 202310966763.0, filed with the China National Intellectual Property Administration on August 2, 2023 and entitled "METHOD AND APPARATUS FOR INTERACTION BETWEEN VIRTUAL SCENE AND IOT DEVICE", which is incorporated herein by reference in its entirety. In addition, this application claims priority to Chinese Patent Application No. 202311344341.6, filed with the China National Intellectual Property Administration on October 17, 2023 and entitled "VIRTUAL SCENE ADJUSTMENT METHOD AND APPARATUS, AND RELATED DEVICE", which is incorporated herein by reference in its entirety. TECHNICAL FIELD This application relates to the field of data processing, and in particular, to a virtual scene adjustment method and apparatus, and a related device. BACKGROUND A virtual scene is a scene generated by using a computer and used for simulating a real scene. A user can view and interact with the virtual scene by using a display device, for example, a display, a projector, or a virtual reality (Virtual Reality, VR) device. Currently, when viewing the virtual scene by using the display device in the real scene, the user can clearly perceive a visual difference between the virtual scene displayed by the display device and the real scene. The visual difference between the virtual scene and the real scene is caused by poor coordination between the virtual scene and the real scene as the virtual scene and the real scene are not well integrated. The visual difference between the virtual scene and the real scene affects interaction between the user and the virtual scene, resulting in poor user experience. SUMMARY Embodiments of this application provide a virtual scene adjustment method and apparatus, and a related device. A data exchange platform sends status data of an environmental object or an item in a real scene to a device that processes a virtual scene, so that the device that processes the virtual scene synchronously adjusts an environmental object or an item in the virtual scene based on the status data. In this way, a visual difference between the virtual scene and the real scene is reduced, and the virtual scene and the real scene are better integrated. According to a first aspect, this application provides a virtual scene adjustment method, and the method is applied to a data exchange platform. The data exchange platform is separately connected to a first device and a second device. The first device is configured to process status data of a first object included in a real scene. The first object is an environmental object or an item in a real scene. The second device is configured to process a virtual scene displayed in the real scene. The data exchange platform obtains the status data that is of the first object and that is sent by the first device, and sends the status data of the first object to the second device. The second device can adjust, based on the status data of the first object, the second object corresponding to the first object included in the virtual scene. In this way, the second object in the virtual scene can be synchronously adjusted based on the status data of the first object, so that the displayed second object is better integrated with the real scene, to reduce a difference between the displayed virtual scene and the real scene. In a possible implementation, the first device is a collection device. The status data of the first object is original status data obtained by the collection device through collection for the first object. In this way, the second object can be adjusted by using the original status data for the first object, processing on the status data of the first object is reduced, and adjustment efficiency is improved. In a possible implementation, the first device is a computing device, and the computing device is connected to a collection device. The status data of the first object is an attribute parameter obtained by the computing device by processing original status data. The original status data is obtained by the collection device through collection for the first object. The original status data is processed, so that a data amount of data that needs to be transmitted can be reduced, and the data exchange platform transmits data. In a possible implementation, the attribute parameter is an object attribute parameter of the first object. The object attribute parameter is used for describing an attribute of the first object. In another possible implementation, the attribute parameter is a device attribute parameter of a virtual device. The device attribute parameter of the virtual device is used for adjusting, in the virtual scene, a virtual device used for controlling the second object. The device attribute parameter is used for adjusting the virtual device for controlling the second object, to enrich manners of adjusting the second object, and facilitate adjustment of the second object. In a possible implementation, the