Virtual scene adjustment method and apparatus, and related device
By sending real-scene status data on the data exchange platform and adjusting virtual scenes simultaneously, the problem of visual differences between virtual scenes and real-scenes is solved, and better integration and user experience is achieved.
Patent Information
- Application Number
- PCT/CN2024/072297
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-10-17
- Filing Date
- 2024-01-15
- Publication Date
- 2025-02-06
AI Technical Summary
The visual difference between virtual scenes and real scenes leads to poor user experience, making it difficult to achieve a good integration of virtual scenes and real scenes.
Through the data exchange platform, the state data of the environmental objects or objects in the real scene is sent to the device processing the virtual scene to the device, and the environmental objects or objects in the virtual scene are adjusted simultaneously, thereby reducing visual differences.
Effectively reduce the visual differences between virtual scenes and real scenes, better integrate virtual scenes and real scenes, and improve the interactive experience between users and virtual scenes.
Smart Images

Figure CN2024072297_06022025_PF_FP_ABST
Abstract
Description
A virtual scene adjustment method, device and related equipment
[0001] This application claims priority to Chinese patent application No. 202310966763.0, filed with the State Intellectual Property Office on August 2, 2023, entitled “A Method and Apparatus for Interacting a Virtual Scene with IoT Devices,” the entire contents of which are hereby incorporated by reference into this application. Furthermore, this application claims priority to Chinese patent application No. 202311344341.6, filed with the State Intellectual Property Office on October 17, 2023, entitled “A Method, Apparatus, and Related Equipment for Adjusting a Virtual Scene,” the entire contents of which are hereby incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of data processing, and in particular to a method, apparatus and related equipment for adjusting a virtual scene. Background Art
[0003] A virtual scene is a computer-generated scene that simulates a real-world scene. Users can view and interact with the virtual scene through display devices such as monitors, projectors, or virtual reality (VR) devices.
[0004] Currently, when users use display devices to view virtual scenes in real-world settings, they notice a noticeable visual difference between the virtual and real-world scenes. This visual difference is caused by the difficulty in properly integrating the virtual scene with the real world, resulting in a lack of coordination between the two. This visual difference hinders user interaction with the virtual scene, resulting in a poor user experience.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a method, device and related devices for adjusting a virtual scene, which sends status data of environmental objects or objects in a real scene to a device for processing the virtual scene through a data exchange platform, so that the device for processing the virtual scene can synchronously adjust the environmental objects or objects in the virtual scene based on the status data, thereby reducing the visual difference between the virtual scene and the real scene and better integrating the virtual scene with the real scene.
[0007] In the first aspect, the present application provides a method for adjusting a virtual scene, which is applied to a data exchange platform. The data exchange platform is connected to a first device and a second device respectively. The first device is used to process the status data of a first object included in the real scene. The first object is an environmental object or object in the real scene. The second device is used to process the virtual scene displayed in the real scene. The data exchange platform obtains the status data of the first object sent by the first device, and sends the status data of the first object to the second device. The second device uses the status data of the first object to adjust the second object corresponding to the first object included in the virtual scene. In this way, it is possible to synchronously adjust the second object in the virtual scene based on the status data of the first object, so that the displayed second object is better integrated with the real scene, reducing the difference between the displayed virtual scene and the real scene.
[0008] In one possible implementation, the first device is a collection device. The state data of the first object is raw state data collected by the collection device for the first object. This allows the raw state data of the first object to be used to adjust the second object, reducing processing of the first object's state data and improving adjustment efficiency.
[0009] In one possible implementation, the first device is a computing device connected to a collection device. The state data of the first object is attribute parameters obtained by processing raw state data by the computing device. The raw state data is collected by the collection device for the first object. Processing the raw state data can reduce the amount of data to be transmitted, facilitating data transmission on the data exchange platform.
[0010] In one possible implementation, the attribute parameters are object attribute parameters of the first object. Object attribute parameters are used to describe the attributes of the first object itself. In another possible implementation, the attribute parameters are device attribute parameters of a virtual device. The device attribute parameters of the virtual device are used to adjust the virtual device used to control the second object in the virtual scene. The device attribute parameters are used to adjust the virtual device that controls the second object, enriching the methods for adjusting the second object and facilitating adjustments to the second object.
[0011] In one possible implementation, the first device is a first control device. The first control device is configured to control a first object. The state data of the first object is control data generated by the control device for the first object. This allows the control data for controlling the first object to be used to adjust the second object, thereby improving the efficiency of adjusting the second object.
[0012] In one possible implementation, the data exchange platform further obtains status data of the second object sent by the second device. The data exchange platform sends the status data of the second object to the first device. The status data of the second object is used to instruct the first control device to adjust the first object. In this way, when adjusting the second object in the virtual scene, the first object in the real scene is correspondingly adjusted, reducing the visual difference between the virtual and real scenes and improving the integration of the virtual and real scenes.
[0013] In one possible implementation, the first device is a second control device. The second control device is used to control a second object. The data exchange platform also obtains status data of the second object sent by the first device and sends the status data of the second object to the second device. The status data of the second object is used to adjust the second object included in the virtual scene. Using the second control device, the second object in the virtual scene can be directly adjusted using a device in the real scene, facilitating adjustment of the second object.
[0014] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0015] In the second aspect, the present application provides a method for adjusting a virtual scene. The method is applied to a second device. The second device is connected to a data exchange platform. The second device obtains status data of a first object sent by the data exchange platform. The first object is an environmental object of a real scene or an object included in the real scene. The second device uses the status data of the first object to adjust the second object included in the virtual scene. The second object corresponds to the first object, and the adjusted virtual scene is displayed in the real scene. The second device can adjust the second object in the virtual scene based on the status data of the first object in the real scene obtained. In this way, it is possible to adjust the virtual scene based on the real scene, so that the virtual scene is better integrated with the real scene, and the visual difference between the virtual scene and the real scene displayed in the real scene is reduced.
[0016] In one possible implementation, the second device uses the state data of the first object to adjust the second object and renders a virtual scene based on the adjusted second object. The state data of the first object can be used to directly adjust the second object. Furthermore, the state data of the first object is raw state data collected for the first object, or object attribute parameters of the first object.
[0017] In one possible implementation, the second device uses the state data of the first object to adjust a virtual device used to control the second object. The virtual device is part of a virtual scene. The second device uses the adjusted virtual device to render the virtual scene. This allows adjustments to be made to the second object by adjusting the virtual device that controls it, enriching the methods for adjusting the second object. Furthermore, the state data of the first object is one of device attribute parameters of the virtual device, raw state data collected for the first object, and control data for the first object.
[0018] In one possible implementation, the data exchange platform is further connected to a first control device included in the real scene. The first control device is used to control a first object. A second device obtains status data of a second object and sends the status data of the second object to the data exchange platform. The status data of the second object is used to instruct the first control device to adjust the first object. In this way, the first object in the real scene can be adjusted based on the status data of the second object, so that the virtual scene is better integrated with the real scene, and the visual difference between the virtual scene and the real scene displayed in the real scene is reduced.
[0019] In one possible implementation, the data exchange platform is further connected to a second control device included in the real scene. The second control device is configured to control a second object. The second device receives status data of the second object generated by the second control device and sent by the data exchange platform, and uses the status data of the second object to adjust the second object included in the virtual scene. In this way, the second control device can be used to directly adjust the second object in the virtual scene using a device in the real scene, facilitating adjustment of the second object.
[0020] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0021] In the third aspect, the present application provides a device for adjusting a virtual scene, which is applied to a data exchange platform, and the data exchange platform is connected to a first device and a second device respectively. The first device is used to process status data of a first object included in a real scene, and the first object is an environmental object or object of the real scene. The second device is used to process a virtual scene, and the virtual scene is displayed in the real scene. The device includes: an acquisition module, which is used to acquire the status data of the first object sent by the first device; and a sending module, which is used to send the status data of the first object to the second device, and the status data of the first object is used to adjust the second object included in the virtual scene, and the second object corresponds to the first object.
[0022] In a possible implementation, the first device is a collection device, and the state data of the first object is original state data collected by the collection device for the first object.
[0023] In a possible implementation, the first device is a computing device connected to a collection device, and the state data of the first object is an attribute parameter obtained by the computing device from processing original state data, and the original state data is collected by the collection device for the first object.
[0024] In a possible implementation manner, the attribute parameter is an object attribute parameter of the first object.
[0025] In a possible implementation, the attribute parameter is a device attribute parameter of a virtual device, and the device attribute parameter of the virtual device is used to adjust the virtual device used to control the second object in the virtual scene.
[0026] In a possible implementation, the first device is a first control device, which is used 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.
[0027] In a possible implementation, the acquisition module is further used to acquire the status data of the second object sent by the second device; the sending module is further used to send the status data of the second object to the first device, and the status data of the second object is used to instruct the first control device to adjust the first object.
[0028] In one possible implementation, the first device is a second control device, the second control device is used to control the second object, and the acquisition module is also used to obtain the status data of the second object sent by the first device; the sending module is also used to send the status data of the second object to the second device, and the status data of the second object is used to adjust the second object included in the virtual scene.
[0029] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0030] In a fourth aspect, the present application provides a device for adjusting a virtual scene, which is applied to a second device, and the second device is connected to a data exchange platform. The device includes: an acquisition module for acquiring status data of a first object sent by the data exchange platform, where the first object is an environmental object of a real scene or an object included in the real scene; an adjustment module for adjusting a second object included in the virtual scene using the status data of the first object, where the second object corresponds to the first object, and the adjusted virtual scene is used to be displayed in the real scene.
[0031] In a possible implementation, the adjustment module is specifically configured to adjust the second object using the state data of the first object; and render the virtual scene based on the adjusted second object.
[0032] In a possible implementation, the state data of the first object is original state data collected for the first object, or is an object attribute parameter of the first object.
[0033] In a possible implementation, the adjustment module is specifically used to adjust a virtual device using the status data of the first object, where the virtual device belongs to the virtual scene and is used to control the second object; and the virtual scene is rendered using the adjusted virtual device.
[0034] In a possible implementation, the state data of the first object is one of a device attribute parameter of a virtual device, original state data collected for the first object, and control data for the first object.
[0035] In one possible implementation, the data exchange platform is also connected to a first control device included in the real scene, the first control device is used to control the first object, and the acquisition module is also used to obtain status data of the second object; the device also includes a sending module; the sending module is also used to send the status data of the second object to the data exchange platform, and the status data of the second object is used to instruct the first control device to adjust the first object.
[0036] In one possible implementation, the data exchange platform is also connected to a second control device included in the real scene, and the second control device is used to control the second object. The acquisition module is also used to obtain the status data of the second object sent by the data exchange platform, and the status data of the second object is generated by the second control device; the adjustment module is also used to use the status data of the second object to adjust the second object included in the virtual scene.
[0037] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0038] In a fifth aspect, the present application provides a computing device cluster, wherein the computing device cluster includes at least one computing device, each computing device includes a processor and a memory; the memory is used to store instructions, and when the computing device cluster is running, the processor in each computing device executes the instructions stored in the memory, so that the computing device cluster executes the virtual scene adjustment method in the above-mentioned first aspect or any possible implementation of the first aspect, or the virtual scene adjustment method in the above-mentioned second aspect or any possible implementation of the second aspect. It should be noted that the memory can be integrated into the processor or can be independent of the processor. Each computing device may also include a bus. The processor is connected to the memory via a bus. The memory may include a readable memory and a random access memory.
[0039] In a sixth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the computer-readable storage medium is run on a computing device cluster (the computing device cluster includes at least one computing device), the computing device cluster executes the virtual scene adjustment method described in the above-mentioned first aspect or any one of the implementations of the first aspect, or the virtual scene adjustment method described in the above-mentioned second aspect or any one of the implementations of the second aspect.
[0040] In the seventh aspect, the present application provides a computer program product comprising instructions, which, when run on a computing device cluster (the computing device cluster includes at least one computing device), enables the computing device cluster to execute the virtual scene adjustment method described in the above-mentioned first aspect or any one of the implementations of the first aspect, or the virtual scene adjustment method described in the above-mentioned second aspect or any one of the implementations of the second aspect.
[0041] Based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] FIG1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
[0043] FIG2 is a schematic diagram of another application scenario provided by an embodiment of the present application;
[0044] FIG3 is a schematic diagram of another application scenario provided by an embodiment of the present application;
[0045] FIG4 is a schematic diagram of another application scenario provided by an embodiment of the present application;
[0046] FIG5 is a flow chart of a method for adjusting a virtual scene according to an embodiment of the present application;
[0047] FIG6 is a flow chart of another method for adjusting a virtual scene according to an embodiment of the present application;
[0048] FIG7 is a flow chart of another method for adjusting a virtual scene according to an embodiment of the present application;
[0049] FIG8 is a schematic structural diagram of a virtual scene adjustment device provided in an embodiment of the present application;
[0050] FIG9 is a schematic structural diagram of another virtual scene adjustment device provided in an embodiment of the present application;
[0051] FIG10 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0052] FIG11 is a schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0053] FIG12 is a schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] The following will describe the solutions in the embodiments provided in this application in conjunction with the drawings in this application.
[0055] The terms "first," "second," and the like in the specification, claims, and drawings of this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate. This is merely a way of distinguishing objects with the same attributes in the embodiments of this application.
[0056] Users interact with virtual scenes in real-world scenarios using display devices. For example, users use display devices such as monitors, projectors, or VR devices to view virtual scenes in real-world scenarios. However, significant visual differences exist between virtual and real-world scenes, resulting in a poor user experience when interacting with them. These visual differences are due, in part, to the different scene styles and, in part, to the different content displayed. For example, the lighting conditions in virtual scenes differ from those in real-world scenes. This makes it difficult to integrate the virtual and real-world scenes, creating a disharmony between the two, impacting the user experience.
[0057] Based on this, an embodiment of the present application provides a method for adjusting a virtual scene. In this method, a data exchange platform obtains status data of a first object sent by a first device. The first device is used to process the status data of the first object included in the real scene. The first object is an environmental object of the real scene or an object included in the real scene. The data exchange platform sends the status data of the first object to the second device. The second device obtains the status data of the first object sent by the data exchange platform, and uses the status data of the first object to adjust the second object included in the virtual scene corresponding to the first object. The adjusted virtual scene can be displayed in the real scene. Based on the adjustment of the environmental object or object in the real scene, the virtual scene is adjusted synchronously and accordingly, so that some capabilities of the virtual scene are consistent with some capabilities in the real scene, which facilitates better integration of the virtual scene and the real scene. In this way, the visual difference between the virtual scene and the real scene perceived by the user when viewing the virtual scene in the real scene can be reduced, so that the user's experience in the virtual scene is similar to that in the real scene, and the user's interactive experience with the virtual scene is improved.
[0058] The embodiments of the present application do not limit the application scenarios of the virtual scene adjustment method. As some examples, Figure 1 is a schematic diagram of an application scenario provided by the embodiments of the present application.
[0059] As shown in FIG1 , the virtual scene adjustment method provided in an embodiment of the present application can be applied to a data exchange platform 101. The data exchange platform 101 is connected to a first device 102 and a second device 103, respectively. The data exchange platform 101 is used to implement data exchange between the first device 102 and the second device 103. As an example, the data exchange platform 101 is an Internet of Things (IoT) platform.
[0060] The first device 102 is associated with a real-world scene and is configured to process state data of a first object included in the real-world scene. As an example, the first object is an environmental object in the real-world scene. For example, the first object is light, temperature, or wind speed. As another example, the first object is an object included in the real-world scene. For example, the first object is a curtain or a television. The first device 102 generates state data of the first object.
[0061] The embodiment of the present application does not limit the device type of the first device 102 .
[0062] As an example, referring to FIG2 , the first device 102 is a collection device 1021. The collection device can collect raw state data for a first object as the state data of the first object. For example, the first object is light, and the collection device is, for example, a camera, a light intensity sensor, or an artificial intelligence (AI) light source detection device. For another example, the first object is wind force, and the collection device is a wind force detection device. For another example, the first object is curtains. The collection device is a curtain detection device.
[0063] As another example, referring to FIG3 , first device 102 is a computing device 1022. Computing device 1022 is also connected to acquisition device 104. Acquisition device 104 acquires state data of a real scene and sends the state data to computing device 1022. Computing device 1022 determines state data of a first object based on the acquired state data.
[0064] As another example, referring to FIG4 , the first device 102 is a first control device 1023. The first control device 1023 is used to control the first object. In one implementation, the first control device 1023 directly controls the first object. Taking the first object as lighting as an example, the first control device 1023 is a lamp with a lighting adjustment function. Taking the first object as curtains as an example, the first device is a curtain control device. In another implementation, the first control device 1023 controls the first object through the third device 105. The third device 105 is, for example, a device that controls the first object. Taking the first object as lighting as an example, the third device 105 is, for example, a lamp, and the first control device 1023 is, for example, a light adjustment device, or, for example, a light source adjustment device. The first control device 1023 generates control data for the first object, that is, status data of the first object.
[0065] The data exchange platform 101 obtains the state data of the first object sent by the first device 102 and sends the state data of the first object to the second device 103 .
[0066] The second device 103 is used to process the virtual scene. Based on the acquired state data of the first object, the second device 103 adjusts the second object corresponding to the first object included in the virtual scene. The embodiment of the present application does not limit the device type of the second device 103. As an example, the second device 103 is a rendering device. The rendering device can render two-dimensional or three-dimensional images and run the virtual scene. The rendering device is also connected to the display device 106. The rendering device is connected to the display device 106 via a high-definition multimedia interface (HDMI) or a wireless network. The display device 106 is, for example, a device capable of displaying a virtual scene, such as a monitor, a projector, or an AR device. After adjusting the virtual scene, the rendering device generates display data of the virtual scene. The rendering device sends the display data to the display device 106. The display device 106 displays the virtual scene based on the display data. As another example, the second device 103 is a rendering device with a display function. For example, the second device is a computer. After adjusting the virtual scene, the second device 103 displays the virtual scene.
[0067] It should be noted that the application scenarios shown in the above Figures 1 to 4 are only examples, and the application scenarios of the virtual scene adjustment method provided in this application are not limited to the application scenarios shown in Figures 1 to 4.
[0068] Next, various non-limiting specific implementations of the virtual scene adjustment method provided in this application are described in detail.
[0069] Referring to FIG. 5 , this figure is a flow chart of a method for adjusting a virtual scene provided in an embodiment of the present application, including S501 - S506 .
[0070] S501: A first device generates status data of a first object.
[0071] The first object is an environmental object in a real scene or an object with an adjustable state. The first object may be, for example, an environmental object such as light, wind, or temperature. The first object may also be an object with an adjustable state such as a curtain or a television.
[0072] The first device belongs to a real scene, and the first device can process status data of the first object.
[0073] The state data of the first object is used to describe the state of the first object. The embodiment of the present application does not limit the specific type of the state data of the first object. The specific type of the state data of the first object is related to the type of the first object and the type of the first device.
[0074] The following provides examples of status data of the first object of three different types of first devices.
[0075] The first type: Taking the application scenario shown in Figure 2 as an example, the first device is the acquisition device.
[0076] The acquisition device acquires the original state data of the real scene for the first object in real time or at a fixed time. The original state data acquired by the acquisition device is the state data of the first object. Taking the first object as light as an example, the acquisition device is, for example, a camera, a light intensity sensor or an AI detection light source device. Taking the acquisition device as an example, the camera acquires the illumination image of the real scene, that is, the state data of the first object. The illumination image can be in red, green, blue (RGB) data format, or in YUV (a color encoding method) data format. Taking the acquisition device as a light intensity sensor as an example, the light intensity sensor acquires the illumination intensity of the real scene in real time or at a fixed time, and generates a numerical value of the illumination intensity, that is, the state data of the first object. Taking the first object as a curtain as an example, the acquisition device is, for example, a curtain detection device. The curtain detection device is used to detect whether the curtain is in an open state or a closed state, and obtain the state data of the first object.
[0077] It should be noted that when the first object is an environmental object, the acquisition device is configured near the display device displaying the virtual scene, so that the acquisition device collects environmental data near the display device, thereby achieving better integration of the virtual scene and the nearby real scene.
[0078] The second type: Taking the application scenario shown in FIG3 as an example, the first device is a computing device.
[0079] The computing device is connected to the collection device. The collection device collects raw state data of the first object in real time or at a fixed time interval and transmits the collected raw state data to the computing device. The computing device processes the raw state data transmitted by the collection device to obtain attribute parameters. The attribute parameters are data used to describe the attributes of the first object in a real-world environment.
[0080] In some cases, the data volume of the attribute parameter is smaller than the data volume of the original state data. This facilitates the data exchange platform to transmit the state data of the first object, especially for data exchange platforms with limited data transmission volume, and can save the data transmission cost required by the data exchange platform to transmit the state data of the first object.
[0081] In one possible implementation, a second object in a virtual scene corresponding to a first object can be configured without the aid of another virtual device. The attribute parameter is an object attribute parameter of the first object. For example, if the first object is lighting, the attribute parameter may be, for example, illumination intensity data of the lighting. The second device directly adjusts the illumination intensity of the ambient light in the virtual scene based on the illumination intensity data of the lighting.
[0082] For example, taking the first object as illumination and the acquisition device as a camera, the acquisition device acquires an illumination image and sends the illumination image to the computing device. Based on the illumination image, the computing device determines the intensity data of the illumination, that is, the object attribute parameters of the first object. As an example, the illumination image is in RGB data format. The computing device converts the illumination image into YUV data format and determines the intensity data of the illumination based on the illumination intensity represented by Y. As another example, the illumination image is in YUV data format. The computing device determines the intensity data of the illumination based on the illumination intensity represented by Y. The above implementation method of determining the object attribute parameters of the first object is only an example and is not limited to this in the embodiments of the present application.
[0083] In another possible implementation, the virtual device controls a second object in a virtual scene corresponding to the first object. The attribute parameters are device attribute parameters of the virtual device. Taking the first object as lighting as an example, the device attribute parameters of the virtual device include, for example, the illumination intensity, position, and orientation of the virtual light source. Based on the device attribute parameters of the virtual device, the second device can adjust the virtual light source included in the virtual scene, thereby adjusting the lighting in the virtual scene. By using the device attribute parameters of the virtual device to adjust the second object in the virtual scene, a more natural display effect of the virtual scene can be obtained, thereby improving the user experience of interacting with the virtual scene.
[0084] The embodiments of the present application do not limit the implementation method of the computing device determining the device attribute parameters of the virtual device based on the original state data, and can be pre-set based on the needs of data processing. As an example, taking the first object as lighting and the acquisition device as a camera as an example, a light source prediction model is pre-established. The light source prediction model is an artificial intelligence model. The light source prediction model is pre-trained using training data. The training data includes a lighting image and a label corresponding to the lighting image, and the label is the device attribute data of the light source. The computing device uses the light source prediction model to process the lighting image acquired from the camera to obtain the device attribute data of the light source output by the light source prediction model.
[0085] The third type: taking the application scenario shown in FIG4 as an example, the first device is a first control device.
[0086] The first control device is capable of controlling the first object, and the control data generated by the first control device for the first object is status data of the first object. The embodiments of the present application do not limit the triggering method for the first control device to generate the control data for the first object. In one possible implementation, the first control device generates the control data for the first object based on a trigger from a user using the control device. In another possible implementation, the first control device automatically triggers the generation of the control data for the first object.
[0087] The above are specific types of the state data of the first object in three different scenarios provided in the embodiments of this application. The above three scenarios are only examples and are not limited in the embodiments of this application.
[0088] In addition, the embodiments of the present application do not limit the triggering method for the first device to generate the status data of the first object. In one implementation, the first device generates the status data of the first object when it detects a change in the status of the first object. In another implementation, the first device generates the status data of the first object at a regular interval. In yet another implementation, the first device triggers the generation of the status data of the first object based on a user's operation to adjust the status of the first object.
[0089] S502: The first device sends status data of the first object to the data exchange platform.
[0090] The interaction mode between the first device and the data exchange platform can be pre-agreed. As an example, the first device sends an adjustment message to the data exchange platform. The adjustment message includes the state data of the first object.
[0091] S503: The data exchange platform obtains status data of the first object.
[0092] S504: The data exchange platform sends the status data of the first object to the second device.
[0093] The data exchange platform determines a second device that needs to process the state data of the first object based on the acquired state data of the first object. The second device is used to process the virtual scene.
[0094] In one possible implementation, the data exchange platform pre-establishes a correspondence between the first device and the second device. For example, the data exchange platform stores the correspondence between the device identifier of the first device and the device identifier of the second device. The data exchange platform determines the second device based on the device identifier of the first device included in the adjustment message sent by the first device and the correspondence between the device identifiers of the first device and the second device.
[0095] In another possible implementation, a subscription relationship is pre-established between the data exchange platform and a virtual device included in a virtual scene processed by the second device. The virtual device is used to control a second object in the virtual scene. The second object corresponds to the first object. The second object is an environmental object or object in the virtual scene. A specific example of the subscription relationship is that the virtual device subscribes to topic data. The topic data is, for example, data related to the first object. The data exchange platform publishes the acquired status data of the first object. Based on the pre-established subscription relationship, the data exchange platform determines the second device.
[0096] The interaction mode between the data exchange platform and the second device can be pre-agreed. As an example, the data exchange platform sends an adjustment message to the second device. The adjustment message includes the state data of the first object.
[0097] S505: The second device obtains status data of the first object.
[0098] S506: The second device adjusts the second object included in the virtual scene using the state data of the first object.
[0099] The first object corresponds to the second object, and the second device adjusts the second object accordingly based on the status data of the first object.
[0100] The manner in which the second device adjusts the second object is determined based on the type of the status data of the first object.
[0101] In one possible implementation, the state data of the first object is state data specific to the first object itself. For example, the state data of the first object is raw state data collected for the first object, or is an object attribute parameter of the first object. The second device uses the state data of the first object to adjust the second object. For example, if the first object is lighting and the state data of the first object is the intensity of the lighting, the second device uses the intensity of the lighting to adjust the intensity of the ambient light in the virtual scene to the same intensity as the lighting.
[0102] It should be noted that, when the state data of the first object is the original state data collected for the first object, the second device first processes the original state data to obtain the object attribute parameters of the first object. The embodiment of the present application does not limit the implementation method of determining the object attribute parameters of the first object based on the original state data. Taking the first object as illumination and the original state data of the first object as the illumination image as an example, the computing device determines the intensity data of the illumination, that is, the object attribute parameters of the first object, based on the illumination image. As an example, the illumination image is in RGB data format. The second device converts the illumination image into YUV data format, and determines the intensity data of the illumination based on the illumination intensity represented by Y. As another example, the illumination image is in YUV data format. The second device determines the intensity data of the illumination based on the illumination intensity represented by Y.
[0103] The second device re-renders the virtual scene based on the adjusted second object to achieve corresponding update of the virtual scene.
[0104] In another possible implementation, the state data of the first object is state data for a virtual device that controls the second object. For example, the state data of the first object is device attribute parameters of the virtual device, or is raw state data for the first object, or is control data for the first object. The second device can process the raw state data for the first object to obtain the device attribute parameters of the virtual device, for example, by using a trained artificial intelligence model to obtain the device attribute parameters of the virtual device. The second device uses the state data of the first object to adjust the virtual device, thereby adjusting the second object.
[0105] In some cases, the virtual scene has already established a virtual device to control the second object. The second device adjusts the configuration parameters of the virtual device based on the status data of the first object. In other cases, the virtual scene does not have a virtual device pre-established to control the second object. The second device establishes a virtual device in the virtual scene based on the adjustment parameters of the first object. It should be noted that the virtual device established in the virtual scene can be a device corresponding to an object included in the real scene, or it can be a virtual device that only belongs to the virtual scene.
[0106] The second device re-renders the virtual scene based on the adjusted virtual device to achieve corresponding updates of the virtual scene.
[0107] The adjusted virtual scene is used to display on a display device. As an example, the second device has a display function. For example, the second device has a display screen. After re-rendering the virtual scene, the second device displays the virtual scene. As another example, the second device does not have a display function and is connected to another display device. The display device is part of the real scene. The second device generates display data based on the re-rendered virtual scene. The second device sends the display data to the display device, so that the display device displays the virtual scene in the real scene based on the display data.
[0108] In this way, it is possible to adjust environmental objects or objects based on the real scene and adjust the virtual scene accordingly. Based on the virtual scene adjustment method provided in the embodiment of the present application, some capabilities of the virtual scene are consistent with some capabilities of the real scene, so that the virtual scene is better integrated with the real scene, thereby reducing the visual difference between the virtual scene and the real scene for the user, making the user's experience in the virtual scene similar to that in the real scene, and improving the user's interactive experience with the virtual scene.
[0109] In addition, in some possible implementation scenarios, a second control device in the real scene can control a second object in the virtual scene. The embodiment of the present application provides another method for adjusting a virtual scene, which includes the following steps in addition to the above steps.
[0110] Referring to FIG. 6 , which is a flow chart of another method for adjusting a virtual scene provided in an embodiment of the present application, in addition to the above-mentioned S501 - S506 , the method further includes S601 - S606 .
[0111] S601: The first device generates status data of the second object.
[0112] The first device is a second control device. The second control device is a control device included in the real scene. The second control device is a pre-configured control device for adjusting a second object in the virtual scene. As an example, the second control device is a control device for controlling the lighting in the virtual scene. As another example, the second control device is a control device for controlling the curtains in the virtual scene.
[0113] The state data of the second object generated by the first device is used to describe the state of the second object. The state data of the second object is, for example, control data for the second object.
[0114] The embodiments of the present application do not limit the triggering method for the second control device to generate status data for the second object. In one possible implementation, the second control device generates status data for the second object based on a trigger from a user using the control device. In another possible implementation, the second control device automatically triggers the generation of status data for the second object.
[0115] S602: The first device sends status data of the second object to the data exchange platform.
[0116] The interaction mode between the first device and the data exchange platform can be pre-agreed. As an example, the first device sends an adjustment message to the data exchange platform. The adjustment message includes the state data of the second object.
[0117] S603: The data exchange platform obtains the status data of the second object sent by the first device.
[0118] S604: The data exchange platform sends the status data of the second object to the second device.
[0119] In one possible implementation, the data exchange platform pre-establishes a correspondence between the first device and the second device. For example, the data exchange platform stores the correspondence between the device identifier of the first device and the device identifier of the second device. The data exchange platform determines the second device based on the device identifier of the first device included in the adjustment message sent by the first device and the correspondence between the device identifiers of the first device and the second device.
[0120] In another possible implementation, a subscription relationship is pre-established between the data exchange platform and a virtual device included in a virtual scene processed by the second device. The virtual device is used to control a second object in the virtual scene. The second object is an environmental object or object in the virtual scene. For example, the subscription relationship may include the virtual device subscribing to topic data. The topic data may be data related to the second object. The data exchange platform publishes the acquired status data of the second object. Based on the pre-established subscription relationship, the data exchange platform determines the second device.
[0121] The interaction mode between the data exchange platform and the second device can be pre-agreed. As an example, the data exchange platform sends an adjustment message to the second device. The adjustment message includes the state data of the second object.
[0122] S605: The second device obtains the status data of the second object sent by the data exchange platform.
[0123] S606: The second device adjusts the second object included in the virtual scene using the state data of the second object.
[0124] In one possible implementation, the state data of the second object is state data specific to the second object itself. The second device uses the state data of the second object to adjust the second object. For example, if the second object is lighting and the state data of the second object is the intensity of the lighting, the second device uses the intensity of the lighting to adjust the intensity of the ambient light in the virtual scene to the same intensity as the lighting.
[0125] The second device re-renders the virtual scene based on the adjusted second object to achieve corresponding update of the virtual scene.
[0126] In another possible implementation, the state data of the second object is state data for a virtual device that controls the second object. For example, the state data of the second object is device attribute parameters of the virtual device, or control data for the second object. The second device uses the state data of the second object to adjust the virtual device, thereby adjusting the second object.
[0127] The second device re-renders the virtual scene based on the adjusted virtual device to achieve corresponding updates of the virtual scene.
[0128] The adjusted virtual scene is used to be displayed on a display device.
[0129] Based on the above S601-S606, it can be seen that the user can use the control devices included in the real scene to adjust the virtual scene. In this way, the user can flexibly adjust the virtual scene based on the needs of viewing the virtual scene using the control devices included in the real scene, achieving a better interaction effect between the user and the virtual scene.
[0130] The above methods all describe methods for adjusting a virtual scene based on a real scene. The present application also provides a method for adjusting a virtual scene. In addition to the above methods, a real scene can also be adjusted through a virtual scene.
[0131] Referring to FIG. 7 , which is a flow chart of another method for adjusting a virtual scene provided in an embodiment of the present application, in addition to the above steps, the method further includes S701 - S705 .
[0132] It should be noted that this method is applied in a scenario where the first device is a first control device.
[0133] S701: The second device generates status data of a second object.
[0134] The state data of the second object is used to describe the state of the second object.
[0135] The embodiment of the present application does not limit the method of triggering the second device to generate status data of the second object.
[0136] In one possible implementation, the status data of the second object can be triggered and generated by the user during the process of interacting with the virtual scene. The embodiment of the present application does not limit the manner in which the user triggers the second device to generate the status data of the second object. As an example, the interaction interface between the user and the virtual scene includes a control interface for the virtual scene. The control interface, for example, includes adjustment controls for the second object, such as adjustment buttons, selection panels, and other adjustment controls. The user can trigger the adjustment control to trigger the second device to generate the status data of the second object.
[0137] In another possible implementation, the second device automatically triggers generation of status data of the second object based on a preset virtual scene adjustment rule.
[0138] S702: The second device sends status data of the second object to the data exchange platform.
[0139] The interaction mode between the second device and the data exchange platform can be pre-agreed. As an example, the second device sends an adjustment message to the data exchange platform. The adjustment message includes the state data of the second object.
[0140] S703: The data exchange platform obtains the status data of the second object sent by the second device.
[0141] S704: The data exchange platform sends the status data of the second object to the first device.
[0142] The data exchange platform determines a first device that needs to process the status data of the second object based on the acquired status data of the second object.
[0143] In one possible implementation, the data exchange platform pre-establishes a correspondence between the first device and the second device. For example, the data exchange platform stores the correspondence between the device identifier of the first device and the device identifier of the second device. The data exchange platform identifies the first device based on the device identifier of the second device included in the adjustment message sent by the second device and the correspondence between the device identifiers of the first device and the second device.
[0144] In another possible implementation, a subscription relationship is pre-established between the data exchange platform and a first device, namely, a first control device. For example, the subscription relationship may include the first device subscribing to topic data. The topic data may be data related to a first object. The data exchange platform publishes the acquired control data of a second object. The first object and the second object correspond to each other. The control data of the second object is related to the first object. The data exchange platform identifies the first device based on the pre-established subscription relationship.
[0145] The interaction mode between the data exchange platform and the first device can be pre-agreed. As an example, the data exchange platform sends an adjustment message to the first device. The adjustment message includes the state data of the second object.
[0146] S705: The first device obtains status data of the second object, and adjusts the first object using the status data of the second object.
[0147] The first device adjusts the first object based on the status data of the second object. In one possible implementation, the first device generates control data for the first object based on the status data of the second object. As an example, the first device directly controls the first object, and the first device executes the control data for the first object. As another example, the first device controls the first object through another device, such as a third device. The first device sends the control data for the first object to the third device, so that the third device executes the control data for the first object, thereby adjusting the first object in a real-world scenario.
[0148] This can establish a connection between the virtual scene and the real scene, making it easier for users to control the real scene through the virtual scene, and improving the user experience of interacting with the virtual scene.
[0149] The present application also provides a virtual scene adjustment device, which is applied to a data exchange platform, wherein the data exchange platform is connected to a first device and a second device respectively, wherein the first device is used to process the state data of a first object included in a real scene, wherein the first object is an environmental object or object in the real scene, and the second device is used to process a virtual scene, wherein the virtual scene is displayed within the real scene. The device is shown in FIG8 and includes:
[0150] An acquisition module 801 is configured to acquire status data of the first object sent by the first device;
[0151] The sending module 802 is configured to send the state data of the first object to the second device, where the state data of the first object is used to adjust a second object included in the virtual scene, where the second object corresponds to the first object.
[0152] In a possible implementation, the first device is a collection device, and the state data of the first object is original state data collected by the collection device for the first object.
[0153] In a possible implementation, the first device is a computing device connected to a collection device, and the state data of the first object is an attribute parameter obtained by the computing device from processing original state data, and the original state data is collected by the collection device for the first object.
[0154] In a possible implementation manner, the attribute parameter is an object attribute parameter of the first object.
[0155] In a possible implementation, the attribute parameter is a device attribute parameter of a virtual device, and the device attribute parameter of the virtual device is used to adjust the virtual device used to control the second object in the virtual scene.
[0156] In a possible implementation, the first device is a first control device, which is used 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.
[0157] In a possible implementation, the acquisition module 801 is further configured to acquire status data of the second object sent by the second device;
[0158] The sending module 802 is further configured to send status data of the second object to the first device, where the status data of the second object is used to instruct the first control device to adjust the first object.
[0159] In a possible implementation, the first device is a second control device, and the second control device is used to control the second object. The acquisition module 801 is further used to acquire the status data of the second object sent by the first device;
[0160] The sending module 802 is further configured to send status data of the second object to the second device, where the status data of the second object is used to adjust the second object included in the virtual scene.
[0161] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0162] The acquisition module 801 and the sending module 802 can be implemented by software or hardware. For example, the implementation of the acquisition module 801 is described below using the acquisition module 801 as an example. Similarly, the implementation of the sending module 802 can refer to the implementation of the acquisition module 801.
[0163] As an example of a software functional unit, the acquisition module 801 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the acquisition module 801 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.
[0164] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.
[0165] As an example of a hardware functional unit, the acquisition module 801 may include at least one computing device, such as a server. Alternatively, the acquisition module 801 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0166] The multiple computing devices included in acquisition module 801 can be distributed in the same region or in different regions. The multiple computing devices included in acquisition module 801 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in acquisition module 801 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.
[0167] It should be noted that, in other embodiments, the acquisition module 801 can be used to execute any step in the above-mentioned method for adjusting the virtual scene applied to the data exchange platform, and the sending module 802 can be used to execute any step in the method for adjusting the virtual scene applied to the data exchange platform. The steps that the acquisition module 801 and the sending module 802 are responsible for implementing can be specified as needed. The full functions of the virtual scene adjustment device are realized by respectively implementing different steps in the method for adjusting the virtual scene applied to the data exchange platform through the acquisition module 801 and the sending module 802.
[0168] The present application also provides another virtual scene adjustment device, which is applied to a second device connected to a data exchange platform. The device is shown in FIG9 and includes:
[0169] An acquisition module 901 is configured to acquire state data of a first object sent by the data exchange platform, where the first object is an environmental object of a real scene or an object included in the real scene;
[0170] The adjustment module 902 is configured to adjust a second object included in the virtual scene using the state data of the first object, where the second object corresponds to the first object, and the adjusted virtual scene is used to be displayed in the real scene.
[0171] In a possible implementation, the adjustment module 902 is specifically configured to adjust the second object using the state data of the first object; and render the virtual scene based on the adjusted second object.
[0172] In a possible implementation, the state data of the first object is original state data collected for the first object, or is an object attribute parameter of the first object.
[0173] In one possible implementation, the adjustment module 902 is specifically used to adjust a virtual device using the status data of the first object, where the virtual device belongs to the virtual scene and is used to control the second object; and to render the virtual scene using the adjusted virtual device.
[0174] In a possible implementation, the state data of the first object is one of a device attribute parameter of a virtual device, original state data collected for the first object, and control data for the first object.
[0175] In a possible implementation, the data exchange platform is further connected to a first control device included in the real scene, the first control device is used to control the first object, and the acquisition module 901 is further used to acquire status data of the second object;
[0176] The device further includes a sending module 903;
[0177] The sending module 903 is further configured to send status data of the second object to the data exchange platform, where the status data of the second object is used to instruct the first control device to adjust the first object.
[0178] In one possible implementation, the data exchange platform is further connected to a second control device included in the real scene, where the second control device is used to control the second object. The acquisition module 901 is further used to acquire status data of the second object sent by the data exchange platform, where the status data of the second object is generated by the second control device.
[0179] The adjustment module 902 is further configured to adjust the second object included in the virtual scene using the state data of the second object.
[0180] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0181] The acquisition module 901, adjustment module 902, and sending module 903 can all be implemented in software or hardware. For example, the implementation of acquisition module 901 will be described below using acquisition module 901 as an example. Similarly, the implementation of adjustment module 902 and sending module 903 can refer to the implementation of acquisition module 901.
[0182] As an example of a software functional unit, the acquisition module 901 may include code running on a computing instance. The computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Furthermore, the computing instance may be one or more. For example, the acquisition module 901 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including one data center or multiple geographically close data centers. Typically, a region may include multiple AZs.
[0183] Similarly, multiple hosts / virtual machines / containers running the code can be distributed within the same virtual private cloud (VPC) or across multiple VPCs. Typically, a VPC is set up within a region. Cross-region communication between two VPCs within the same region, or between VPCs in different regions, requires a communication gateway within each VPC to interconnect the VPCs.
[0184] As an example of a hardware functional unit, the acquisition module 901 may include at least one computing device, such as a server. Alternatively, the acquisition module 901 may be implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0185] The multiple computing devices included in acquisition module 901 can be distributed in the same region or in different regions. The multiple computing devices included in acquisition module 901 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in acquisition module 901 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of servers, ASICs, PLDs, CPLDs, FPGAs, GALs, and other computing devices.
[0186] It should be noted that, in other embodiments, the acquisition module 901 can be used to execute any step in the above-mentioned method for adjusting the virtual scene applied to the second device, the adjustment module 902 can be used to execute any step in the method for adjusting the virtual scene applied to the second device, and the sending module 903 can be used to execute any step in the method for adjusting the virtual scene applied to the second device. The steps that the acquisition module 901, the adjustment module 902, and the sending module 903 are responsible for implementing can be specified as needed. The full functions of the virtual scene adjustment device are realized by respectively implementing different steps in the method for adjusting the virtual scene applied to the second device through the acquisition module 901, the adjustment module 902, and the sending module 903.
[0187] This application also provides a computing device 1000. As shown in Figure 10, computing device 1000 includes a bus 1002, a processor 1004, a memory 1006, and a communication interface 1008. Processor 1004, memory 1006, and communication interface 1008 communicate with each other via bus 1002. Computing device 1000 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in computing device 1000.
[0188] Bus 1002 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, among others. Buses may be classified as address buses, data buses, control buses, and the like. For ease of illustration, FIG10 illustrates a single bus line, but this does not imply a single bus or type of bus. Bus 1002 may include a path for transmitting information between various components of computing device 1000 (e.g., memory 1006, processor 1004, and communication interface 1008).
[0189] The processor 1004 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0190] The memory 1006 may include volatile memory, such as random access memory (RAM). The processor 1004 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid state drive (SSD).
[0191] Memory 1006 stores executable program code. As shown in FIG10 , processor 1004 executes the executable program code to implement the functions of acquisition module 801 and transmission module 802 , thereby implementing a method for adjusting a virtual scene applied to a data exchange platform. Memory 1006 stores instructions for executing the method for adjusting a virtual scene applied to a data exchange platform.
[0192] Alternatively, the processor 1004 executes the executable program code to respectively implement the functions of the aforementioned acquisition module 901, adjustment module 902, and sending module 903, thereby implementing the adjustment method for the virtual scene applied to the second device. That is, the memory 1006 stores instructions for executing the adjustment method for the virtual scene applied to the second device.
[0193] The communication interface 1008 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1000 and other devices or a communication network.
[0194] Embodiments of the present application also provide a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smartphone.
[0195] As shown in Figure 11, the computing device cluster includes at least one computing device 1000. The memory 1006 in one or more computing devices 1000 in the computing device cluster may store the same instructions for executing the method for adjusting the virtual scene applied to the data exchange platform.
[0196] In some possible implementations, the memory 1006 of one or more computing devices 1000 in the computing device cluster may also store partial instructions for executing the method for adjusting the virtual scene applied to the data exchange platform. In other words, the combination of one or more computing devices 1000 can jointly execute the instructions for executing the method for adjusting the virtual scene applied to the data exchange platform.
[0197] It should be noted that the memory 1006 in different computing devices 1000 in the computing device cluster can store different instructions, each for executing a portion of the functions of the virtual scene adjustment device applied to the data exchange platform. In other words, the instructions stored in the memory 1006 in different computing devices 1000 can implement the functions of one or more modules in the acquisition module 801 and the sending module 802.
[0198] In some possible implementations, one or more computing devices in a computing device cluster may be connected via a network. The network may be a wide area network (WAN) or a local area network (LAN), etc. FIG12 illustrates a possible implementation. As shown in FIG12 , two computing devices 1000A and 1000B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 1006 in the computing device 1000A stores instructions for executing the functions of the acquisition module 801. Simultaneously, the memory 1006 in the computing device 1000B stores instructions for executing the functions of the sending module 802.
[0199] The connection method between the computing device clusters shown in Figure 12 can be considered to take into account the needs of the adjustment method of the virtual scene applied to the data exchange platform provided in this application (such as storing a large amount of data), so it is considered to hand over the functions implemented by the sending module 802 to the computing device 1000B for execution.
[0200] It should be understood that the functionality of the computing device 1000A shown in FIG12 may also be accomplished by multiple computing devices 1000. Similarly, the functionality of the computing device 1000B may also be accomplished by multiple computing devices 1000.
[0201] The present application also provides another computing device cluster. The connection relationship between the computing devices in this computing device cluster can be similar to the connection method of the computing device cluster described in Figures 11 and 12. The difference is that the memory 1006 of one or more computing devices 1000 in this computing device cluster can store the same instructions for executing the virtual scene adjustment method applied to the second device.
[0202] In some possible implementations, the memory 1006 of one or more computing devices 1000 in the computing device cluster may also store partial instructions for executing the method for adjusting the virtual scene applied to the second device. In other words, the combination of one or more computing devices 1000 can jointly execute the instructions for the method for adjusting the virtual scene applied to the second device.
[0203] It should be noted that the memory 1006 in different computing devices 1000 in the computing device cluster may store different instructions for executing part of the functions of the virtual scene adjustment device applied to the second device. In other words, the instructions stored in the memory 1006 in different computing devices 1000 may implement the functions of one or more of the acquisition module 901, the adjustment module 902, and the sending module 903.
[0204] The present application also provides a computer program product comprising instructions. The computer program product may be software or a program product comprising instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes a method for adjusting a virtual scene applied to a data exchange platform or a method for adjusting a virtual scene applied to a second device.
[0205] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by a computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid-state drive). The computer-readable storage medium includes instructions that instruct the computing device to execute an adjustment method for a virtual scene applied to a data exchange platform, or instruct the computing device to execute an adjustment method for a virtual scene applied to a second device.
[0206] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the protection scope of the technical solutions of the various embodiments of the present invention.
Claims
1. A method for adjusting a virtual scene, characterized in that: The method is applied to a data exchange platform, the data exchange platform is connected to a first device and a second device respectively, the first device is used to process state data of a first object included in a real scene, the first object is an environmental object or an object of the real scene, the second device is used to process a virtual scene, and the virtual scene is displayed in the real scene, the method includes: Acquire status data of the first object sent by the first device; The state data of the first object is sent to the second device, where the state data of the first object is used to adjust a second object included in the virtual scene, where the second object corresponds to the first object.
2. The method according to claim 1, characterized in that The first device is a collection device, and the state data of the first object is original state data collected by the collection device for the first object.
3. The method according to claim 1, characterized in that: The first device is a computing device, which is connected to a collection device. The state data of the first object is an attribute parameter obtained by the computing device based on original state data. The original state data is collected by the collection device for the first object.
4. The method according to claim 3, characterized in that The attribute parameter is an object attribute parameter of the first object.
5. The method according to claim 3, characterized in that: The attribute parameter is a device attribute parameter of a virtual device, and the device attribute parameter of the virtual device is used to adjust the virtual device used to control the second object in the virtual scene.
6. The method according to claim 1, characterized in that The first device is a first control device, which is used to control the first object, and the state data of the first object is control data generated by the control device for the first object.
7. The method according to claim 6, characterized in that The method further comprises: Acquire status data of the second object sent by the second device; The state data of the second object is sent to the first device, where the state data of the second object is used to instruct the first control device to adjust the first object.
8. The method according to claim 1, characterized in that The first device is a second control device, and the second control device is used to control the second object. The method further includes: Acquire status data of the second object sent by the first device; The state data of the second object is sent to the second device, where the state data of the second object is used to adjust the second object included in the virtual scene.
9. The method according to any one of claims 1 to 8, characterized in that: The data exchange platform is an Internet of Things (IoT) platform.
10. A method for adjusting a virtual scene, characterized in that: The method is applied to a second device, the second device is connected to a data exchange platform, and the method includes: Acquire state data of a first object sent by the data exchange platform, where the first object is an environmental object of a real scene or an object included in the real scene; The state data of the first object is used to adjust a second object included in the virtual scene, where the second object corresponds to the first object, and the adjusted virtual scene is used to be displayed in the real scene.
11. The method according to claim 10, characterized in that The step of adjusting the second object included in the virtual scene by using the state data of the first object comprises: Using the state data of the first object, adjusting the second object; The virtual scene is rendered based on the adjusted second object.
12. The method according to claim 11, characterized in that The state data of the first object is original state data collected for the first object, or is an object attribute parameter of the first object.
13. The method according to claim 10, characterized in that The step of adjusting the second object included in the virtual scene by using the state data of the first object comprises: Using the state data of the first object, adjusting a virtual device, the virtual device belonging to the virtual scene, the virtual device being used to control the second object; The virtual scene is rendered using the adjusted virtual device.
14. The method according to claim 13, characterized in that The state data of the first object is one of a device attribute parameter of a virtual device, original state data collected for the first object, and control data for the first object.
15. The method according to claim 10, characterized in that The data exchange platform is also connected to a first control device included in the real scene, and the first control device is used to control the first object. The method further includes: Obtaining status data of a second object; The state data of the second object is sent to the data exchange platform, where the state data of the second object is used to instruct the first control device to adjust the first object.
16. The method according to claim 10, characterized in that The data exchange platform is also connected to a second control device included in the real scene, and the second control device is used to control the second object. The method further includes: Acquire status data of a second object sent by the data exchange platform, where the status data of the second object is generated by the second control device; The second object included in the virtual scene is adjusted using the state data of the second object.
17. The method according to any one of claims 10 to 16, characterized in that: The data exchange platform is an Internet of Things (IoT) platform.
18. A virtual scene adjustment device, characterized in that: The device is applied to a data exchange platform, the data exchange platform is connected to a first device and a second device respectively, the first device is used to process state data of a first object included in a real scene, the first object is an environmental object or an object of the real scene, the second device is used to process a virtual scene, and the virtual scene is displayed in the real scene, the device includes: an acquisition module, configured to acquire the status data of the first object sent by the first device; The sending module is used to send the state data of the first object to the second device, where the state data of the first object is used to adjust the second object included in the virtual scene, where the second object corresponds to the first object.
19. A virtual scene adjustment device, characterized in that: The apparatus is applied to a second device, the second device is connected to a data exchange platform, and the apparatus includes: An acquisition module, used to acquire state data of a first object sent by the data exchange platform, where the first object is an environmental object of a real scene or an object included in the real scene; The adjustment module is used to adjust a second object included in the virtual scene using the state data of the first object, wherein the second object corresponds to the first object, and the adjusted virtual scene is used to be displayed in the real scene.
20. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, each computing device including a processor and a memory: The memory is used to store instructions; The processor is configured to cause the computing device cluster to execute the method of any one of claims 1 to 9 or the method of any one of claims 10 to 17 according to the instructions.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computing device, enable the computing device to execute the method according to any one of claims 1 to 9, or the method according to any one of claims 10 to 17.
22. A computer program product comprising instructions, characterized in that When it is executed on a computing device, the computing device is enabled to execute the method according to any one of claims 1 to 9, or the method according to any one of claims 10 to 17.
Citation Information
Patent Citations
Virtual scene adjusting method and device and related equipment
CN119425072A
Virtual object driving method and device, display equipment and computer storage medium
CN111862341A
Multi-object interaction method based on meta universe and related equipment
CN113946211A
Virtual display method and device and storage medium
CN114332374A
Interaction state updating method and device
CN116258764A