Display method and device of virtual content, computer device and storage medium
By acquiring the position and posture information of the virtual projection device, the problem of insufficient interaction between objects and the real environment in the virtual scene is solved, realizing the interaction and functional display of the virtual projection device and improving the user experience.
Patent Information
- Application Number
- CN202310158937.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-13
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-02-13
AI Technical Summary
Existing technologies lack the ability for objects in virtual scenes to interact with the real environment, making it impossible to achieve effective interaction between users and virtual projection devices.
By acquiring the position and posture information of the virtual projection device in the scene, the projection position is confirmed, and the target projection content is superimposed and displayed in the virtual scene, thereby realizing the interaction and functional display of the virtual projection device.
It enables interaction between virtual projection devices and the real environment, allowing users to experience the effects of projection devices more realistically and choose suitable projection devices.
Smart Images

Figure CN118484079B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of virtual display technology, and in particular to a method, apparatus, computer device, and storage medium for displaying virtual content. Background Technology
[0002] In related technologies, objects in the real environment are only reproduced in a virtual scene. The resulting virtual objects only display the size and position information of the objects in the real environment, and cannot interact with the real environment. For example, in the field of projection, it is only possible to display a virtual projection device corresponding to a real projection device to the user, but it is not possible to achieve interaction between the user and the virtual projection device. Summary of the Invention
[0003] This application discloses a method, apparatus, computer device, and storage medium for displaying virtual content.
[0004] In a first aspect, embodiments of this application provide a method for displaying virtual content, the method comprising: displaying a target projection scene; in response to a position confirmation operation, superimposing a target virtual projection device at a first target position in the target projection scene; and in response to a projection confirmation operation, superimposing target projection content corresponding to the target virtual projection device at a second target position in the target projection scene, wherein the second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene.
[0005] Secondly, embodiments of this application provide a virtual content display device, the device comprising: a scene display module for displaying a target projection scene; a device display module for superimposing a target virtual projection device at a first target position in the target projection scene in response to a position confirmation operation; and a projection display module for superimposing target projection content corresponding to the target virtual projection device at a second target position in the target projection scene in response to a projection confirmation operation, wherein the second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene.
[0006] Thirdly, embodiments of this application provide a computer device, including: one or more processors; a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to perform the methods described above.
[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing program code that can be invoked by a processor to execute the methods described above.
[0008] The solution provided in this application displays a target projection scene; in response to a position confirmation operation, a target virtual projection device is overlaid and displayed at a first target position in the target projection scene; in response to a projection confirmation operation, target projection content corresponding to the target virtual projection device is overlaid and displayed at a second target position in the target projection scene, where the second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene. Thus, upon receiving a position confirmation operation, the target virtual projection device can be restored and displayed at the confirmed first target position in the target projection scene. Simultaneously, upon receiving a projection confirmation operation, the second target position where the target projection content is to be displayed is further determined, and the target projection content is overlaid and displayed at the second target position in the target projection scene. In other words, by combining virtual interactive operation technology, both the virtual projection device corresponding to the real projection device is restored, and the projection function of the virtual projection device is also demonstrated, helping users to make a reasonable selection of the real projection device. Attached Figure Description
[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 A flowchart illustrating a method for displaying virtual content according to an embodiment of this application is shown.
[0011] Figure 2 It shows Figure 1 A flowchart illustrating a sub-step of step S110 in one embodiment.
[0012] Figure 3 A schematic diagram of a real-world projection scene provided in an embodiment of this application is shown.
[0013] Figure 4 A schematic diagram of a target projection scene provided in an embodiment of this application is shown.
[0014] Figure 5 A schematic diagram of a target projection scene provided in another embodiment of this application is shown.
[0015] Figure 6 It shows Figure 1 A flowchart illustrating a sub-step of step S130 in one embodiment.
[0016] Figure 7A flowchart illustrating a method for displaying virtual content according to another embodiment of this application is shown.
[0017] Figure 8 A schematic diagram of a target projection scene provided in another embodiment of this application is shown.
[0018] Figure 9 It shows Figure 7 This is a schematic diagram of a target projection scene illustrating a method for displaying virtual content.
[0019] Figure 10 It shows Figure 7 This is a schematic diagram of another target projection scenario for displaying virtual content.
[0020] Figure 11 A flowchart illustrating a method for displaying virtual content according to another embodiment of this application is shown.
[0021] Figure 12 It shows Figure 11 This is a schematic diagram of a target projection scene illustrating a method for displaying virtual content.
[0022] Figure 13 It shows Figure 11 A flowchart illustrating a sub-step of step S550 in one embodiment.
[0023] Figure 14 A flowchart illustrating a method for displaying virtual content according to another embodiment of this application is shown.
[0024] Figure 15 A structural block diagram of a virtual content display device according to an embodiment of this application is shown.
[0025] Figure 16 A structural block diagram of a computer device provided in an embodiment of this application is shown.
[0026] Figure 17 A structural block diagram of a computer-readable storage medium provided in an embodiment of this application is shown. Detailed Implementation
[0027] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative effort are within the scope of protection of the present application.
[0028] It should be noted that some processes described in the specification, claims, and accompanying drawings of this application include multiple operations that appear in a specific order. These operations may not be performed in the order they appear herein, or they may be performed in parallel. Operation numbers such as S110, S120, etc., are merely used to distinguish different operations and do not represent any execution order. Furthermore, these processes may include more or fewer operations, and these operations may be performed sequentially or in parallel. Also, the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover non-exclusive inclusion, such that a process, method, system, product, or server that includes a series of steps or sub-modules is not necessarily limited to those steps or sub-modules that are explicitly listed, but may include other steps or sub-modules that are not explicitly listed or that are inherent to such process, method, product, or device.
[0029] The inventors propose a method, apparatus, computer device, and storage medium for displaying virtual content. By acquiring the position and posture information of a virtual projection device in a scene, the projection position is confirmed, and the target projected content is displayed, thereby realizing the interaction and functional demonstration of the virtual projection device. The method for displaying virtual content provided in the embodiments of this application will be described in detail below.
[0030] Please refer to Figure 1 , Figure 1 A flowchart illustrating a method for displaying virtual content according to an embodiment of this application is shown. The following will be combined with... Figure 1 The method for displaying virtual content provided in this application embodiment is described in detail. This method for displaying virtual content may include the following steps:
[0031] Step S110: Display the target projection scene.
[0032] In this embodiment, the target projection scene is obtained by acquiring the real projection scene and then restoring the real projection scene in the virtual space based on the acquired scene image, thereby displaying the target projection scene corresponding to the real projection scene.
[0033] Among them, the devices used to display the target projection scene include, but are not limited to, mobile devices, virtual reality (VR) devices, and augmented reality (AR) devices.
[0034] Optionally, the target projection scene can be either a real scene or a virtual scene. For example, when the target projection scene is a virtual scene, it is a virtual projection scene obtained by reproducing a real projection scene in virtual space. The user sees the virtual projection scene through a virtual reality device, and the virtual projection device is superimposed on the virtual scene. When the target projection scene is a real scene, it can be a real projection scene that the user sees directly through an augmented reality device. The user can superimpose the virtual projection device on the surface of the real object corresponding to the real projection scene.
[0035] In some implementations, please refer to Figure 2 Step S110 may include the following steps:
[0036] Step S111: Obtain the scene image of the current real-world projection scene.
[0037] In this embodiment, it is necessary to obtain a scene image of the user's current real-world projection scenario, that is, a scene image of the actual usage scenario in which the user intends to place the projection device. The aforementioned real-world projection scenario includes, but is not limited to, home projection scenarios and office projection scenarios when the user actually uses the projection device.
[0038] Step S112: Based on the scene image, obtain the 3D modeling data corresponding to the real-world projection scene.
[0039] In this embodiment, based on the acquired scene image of the real projection scene, the three-dimensional information of the real projection scene is extracted to obtain the three-dimensional modeling data corresponding to the real projection scene. This three-dimensional modeling data includes, but is not limited to, the spatial structure scan data of the real projection scene and the three-dimensional point cloud data of the surfaces of various objects in the real projection scene.
[0040] Step S113: Generate the virtual projection scene corresponding to the real projection scene based on the 3D modeling data.
[0041] In this embodiment, based on the three-dimensional modeling data of the surfaces of each object in the real projection scene, the geometric structure of each object in the real projection scene is restored, the three-dimensional reconstruction of the real projection scene is completed, and a virtual projection scene corresponding to the real projection scene is generated.
[0042] Step S114: Display the virtual projection scene.
[0043] After completing the 3D reconstruction of the real projection scene, the generated virtual projection scene is displayed.
[0044] Please see Figure 3 and Figure 4 , Figure 3 A schematic diagram of a real-world projection scene provided in one embodiment of this application. Figure 4 A schematic diagram of a target projection scene provided in an embodiment of this application is shown. Figure 4 To and Figure 3 The target projection scene corresponding to the real projection scene.
[0045] Specifically, Figure 3 The real table, floor, and walls in the real-world projection scene are simplified and restored in the virtual space to obtain the cube corresponding to the real table, i.e., the virtual table; the horizontal plane corresponding to the real floor, i.e., the virtual floor; and the vertical plane corresponding to the real wall, i.e., the virtual wall.
[0046] In this embodiment, only the most basic 3D modeling data of the real projection scene is acquired, and the real textures existing in the real projection scene are not restored. Therefore, the amount of 3D modeling data corresponding to the real projection scene required is small, which can improve the speed of scene display.
[0047] In other implementations, specific 3D modeling data of the real-world projection scene can be obtained based on the scene image corresponding to the real-world projection scene, and texture data of the real-world projection scene can also be obtained. Based on the above data, the displayed target projection scene becomes more realistic, improving the user experience.
[0048] Step S120: In response to the location confirmation operation, the target virtual projection device is superimposed and displayed at the first target location in the target projection scene.
[0049] In this embodiment, the target virtual projection device is placed in the displayed target projection scene. In response to the position confirmation operation, i.e., selecting a position in the target projection scene as the first target position, confirming that the position is the placement position of the target virtual projection device, the target virtual projection device is superimposed and displayed on the first target position.
[0050] The location confirmation operation can be as follows: when the user controls the cursor to be superimposed on a location in the target projection scene through hand operation, if it is detected that the cursor has been superimposed on the location for more than a preset time, the location is confirmed as the first target location selected by the user for superimposing the target virtual projection device, and the target virtual projection device is superimposed on the location.
[0051] like Figure 5 As shown, Figure 5A schematic diagram of a target projection scene provided in another embodiment of this application is shown. Any position on the upper surface of the virtual table 201 in the target projection scene can be used as the first target position, and the target virtual projection device 202 can be superimposed on the first target position, that is, the target virtual projection device 202 is placed on the upper surface of the virtual table 201. In some embodiments, any position of the virtual ground 203 in the target projection scene can also be used as the first target position, and the target virtual projection device 202 will be placed on the virtual ground 203.
[0052] In some implementations, the virtual projection device may include multiple sub-projection devices, meaning that multiple sub-projection devices can be set up in the target projection scene for simultaneous projection. It is necessary to determine the placement position of each sub-projection device in the target projection scene; each sub-projection device corresponds to a specific placement position, and each sub-projection device is superimposed on its corresponding placement position in the target projection scene.
[0053] Step S130: In response to the projection confirmation operation, the target projection content corresponding to the target virtual projection device is superimposed and displayed at the second target position in the target projection scene. The second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene.
[0054] In this embodiment, in response to the projection confirmation operation, that is, after the target virtual projection device is placed at the first target position, the projection direction of the target virtual projection device in the target projection scene is obtained based on the position information of the first target position in the target projection scene and the posture information of the target virtual projection device in the target projection scene. The projection position in the target projection scene corresponding to the projection direction is confirmed as the second target position. The target projection content corresponding to the target virtual projection device is then superimposed and displayed at the second target position.
[0055] Based on this, users can obtain the projection image that the target virtual projection device would present when placed in a real usage scenario, allowing users to experience the usage effect of the projection device more realistically when selecting a projection device.
[0056] In some implementations, after the target virtual projection device is overlaid on the first target position, an operation window can be overlaid on the target projection scene. The operation window can display the prompt "Display projection content" and "OK" and "Cancel" operation buttons. Based on this, the projection confirmation operation can be that the user controls the cursor to be overlaid on the position of the "OK" operation button via hand operation. If the cursor is detected to be overlaid on that position for more than a preset time, it confirms that the user has selected to control the target virtual projection device for virtual projection.
[0057] In some implementations, the virtual projection device may include multiple sub-projection devices. Based on the placement position of each sub-projection device in the target projection scene and its posture information in the target projection scene, the projection position of each sub-projection device in the target projection scene is determined. Each sub-projection device corresponds to a projection position, and the target projection content corresponding to each sub-projection device is superimposed and displayed at its corresponding projection position in the target projection scene.
[0058] In this approach, using multiple sub-projection devices enables the present application to achieve virtual projection effects in different application scenarios. For example, in application scenarios where the distance between the placement of the projection device and the projection position is far, and the brightness parameters of the projection device are not high, it is possible to display two identical sub-projection devices projecting superimposed at the same projection position, thereby increasing the brightness and obtaining a clearer projection image.
[0059] In some implementations, please refer to Figure 6 Step S130 may include the following steps:
[0060] Step S131: In response to the projection confirmation operation, determine the projection direction of the target virtual projection device based on the posture information of the target virtual projection device in the target projection scene.
[0061] In this embodiment, the target virtual projection device has a certain attitude when placed at the first target position, and the direction of the emitted light from the target virtual projection device can be determined based on the attitude information. In the target projection scene, the direction of the emitted light corresponding to the target virtual projection device in this attitude is the projection direction of the target virtual projection device in the target projection scene.
[0062] Step S132: Determine the position of the second target to be projected based on the projection direction and the position of the first target.
[0063] In this embodiment, based on the projection direction of the target virtual projection device in the target projection scene and the position information of the first target position, the second target position where the target virtual projection device projects can be determined.
[0064] For example, please refer to Figure 5 Based on the projection direction of the target virtual projection device 202 in the figure and the position of the first target, it is determined that the virtual wall 204 is located on the light path of the light emitted from the target virtual projection device 202 in the target projection scene. The projection plane is confirmed to be the virtual wall 204, and the position of the second target to be projected on the virtual wall 204 is further confirmed.
[0065] Step S133: Overlay the target projection content at the second target position.
[0066] After confirming the location to be projected, based on the posture information of the target virtual projection device in the target projection scene and the position information of the first target location, the distance information between the first target location and the second target location, and the angle information between the vertical projection plane of the target virtual projection device and the plane where the second target location is located, are confirmed, so as to obtain the target projection content superimposed on the second target location by the target virtual projection device. The target projection content is the virtual projection image of the target virtual projection device.
[0067] For example, please refer to Figure 5 Since there is no tilt angle between the vertical projection plane of the target virtual projection device 202 and the plane where the second target is located, i.e. the virtual wall 204, the superimposed target projection content 205 is a regular rectangle.
[0068] In some implementations, the projected image may not perfectly align with the projection plane due to issues with the vertical or horizontal position of the second target location, resulting in a portion of the projected image being outside the projection plane and not displayed. Alternatively, the projection direction of the virtual projection device may cause an angle between the vertical projection plane and the plane containing the second target location, resulting in a tilted projected image.
[0069] In this embodiment, by constructing a target projection scene corresponding to the real projection scene, when a position confirmation operation is received, the target virtual projection device can be restored and displayed at the first target position confirmed in the target projection scene. Based on the position and posture information of the target virtual projection device in the scene, when a projection confirmation operation is received, the second target position where the target projection content is to be displayed is further determined, and the corresponding target projection content is displayed. This enables the virtual projection device to interact with the environment and demonstrate the projection function of the virtual projection device, allowing users to experience the use effect of the projection device more realistically when selecting a projection device.
[0070] Please refer to Figure 7 , Figure 7 A flowchart illustrating a method for displaying virtual content according to another embodiment of this application is shown. The following will be combined with... Figure 7 The method for displaying virtual content provided in this application embodiment is described in detail. This method for displaying virtual content may include the following steps:
[0071] Step S310: Display the target projection scene.
[0072] Step S320: In response to the location confirmation operation, the target virtual projection device is superimposed and displayed at the first target location in the target projection scene.
[0073] Step S330: In response to the projection confirmation operation, the target projection content corresponding to the target virtual projection device is superimposed and displayed at the second target position in the target projection scene. The second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene.
[0074] In this embodiment, the specific implementation of steps S310 to S330 can be found in the content of the foregoing embodiments, and will not be repeated here.
[0075] Step S340: In response to the position adjustment operation, adjust the superimposed display position of the target virtual projection device to the third target position in the target projection scene selected by the position adjustment operation.
[0076] In this embodiment, after the target projection content is overlaid and displayed, if the placement position of the target virtual projection device is adjusted, the position and orientation information of the target virtual projection device in the target projection scene will change, and its projection direction will change accordingly. In response to the position adjustment operation, i.e., a position in the target projection scene is selected as the third target position, and this position is confirmed as the placement position of the target virtual projection device after the position adjustment, the target virtual projection device is overlaid and displayed at the third target position.
[0077] In some implementations, after the target virtual projection device is overlaid on the first target position and virtual projection is completed, the position confirmation operation can be performed by the user controlling the cursor to be overlaid on another position in the target projection scene through hand operation. An operation window is overlaid on the target projection scene, and the operation window can display the prompt text "Adjust the placement position of the projection device" and the operation buttons "OK" and "Cancel". Based on this, after the user controls the cursor to be overlaid on the position of the "OK" operation button through hand operation, if it is detected that the cursor has been overlaid on that position for more than a preset time, it is confirmed that the position selected by the user through the position adjustment operation is the third target position used by the user to overlay the target virtual projection device, so that the target virtual projection device is overlaid on that position.
[0078] In some implementations, the third target position and the first target position can be the same position in the target projection scene, that is, the target virtual projection device is rotated at a certain angle from its original position. At this time, only the posture information of the target virtual projection device in the target projection scene is changed.
[0079] In other implementations, the third target position and the first target position are different positions in the target projection scene. The target virtual projection device is translated from the first target position to the third target position. That is, the direction of the emitted light of the target virtual projection device is parallel when it is in the third target position and when it is in the first target position. At this time, only the position information of the target virtual projection device changes in the target projection scene.
[0080] Step S350: Based on the third target position and the attitude information of the target virtual projection device in the target projection scene, determine the position of the fourth target to be projected in the target projection scene.
[0081] In this embodiment, the projection direction of the target virtual projection device is determined based on the attitude information of the target virtual projection device at the third target position. Based on the projection direction of the target virtual projection device in the target projection scene and the position information of the third target position, the fourth target position where the target virtual projection device projects can be determined.
[0082] Step S360: Overlay the target projection content onto the fourth target position.
[0083] After confirming the location to be projected, based on the posture information of the target virtual projection device in the target projection scene and the location information of the third target location, the distance information between the third target location and the fourth target location, and the angle information between the vertical projection plane of the target virtual projection device and the plane where the fourth target location is located, are confirmed, so as to obtain the target projection content superimposed on the fourth target location by the target virtual projection device, and to superimpose the target projection content on the fourth target location.
[0084] like Figure 8 As shown, Figure 8 A schematic diagram of a target projection scene provided in yet another embodiment of this application is shown. Figure 8 In the target projection scene, the target virtual projection device is superimposed on the first target position. Based on the first target position and the posture information of the target virtual projection device in the target projection scene, the projected image of the target virtual projection device on the virtual wall corresponds to the target projection content 401.
[0085] like Figure 9 As shown, Figure 9 It shows Figure 7 This diagram illustrates a target projection scene for a method of displaying virtual content. Figure 8 After the target virtual projection device performs a position adjustment operation, the display effect of the target projection scene is as follows: Figure 9 As shown. In Figure 9 In the target projection scene, the location of the third target is superimposed and displayed by the target virtual projection device. Figure 9The third target location and Figure 8 The first target position is the same position in the target projection scene. At this time, the target virtual projection device rotates at a certain angle from its original position. Based on the third target position and the posture information of the target virtual projection device in the target projection scene, the projected image of the target virtual projection device on the virtual wall corresponds to the target projection content 402.
[0086] like Figure 10 As shown, Figure 10 It shows Figure 7 This is a schematic diagram of another target projection scene for displaying virtual content. Figure 8 After the target virtual projection device performs a position adjustment operation, the display effect of the target projection scene is as follows: Figure 10 As shown. In Figure 10 In the target projection scene, the location of the third target is superimposed and displayed by the target virtual projection device. Figure 10 The third target location and Figure 8 The first target position is a different position in the target projection scene. At this time, the target virtual projection device is translated from the first target position to the third target position. The direction of the emitted light of the target virtual projection device at the third target position is parallel to that at the first target position. Based on the third target position and the attitude information of the target virtual projection device in the target projection scene, the projected image of the target virtual projection device on the virtual wall corresponds to the target projection content 403. That is, the distance between the target projection device and the virtual wall on which the projection is performed becomes closer, the projected image corresponding to the target virtual projection device becomes smaller, and the brightness of the projected image increases.
[0087] In this embodiment, after the target virtual projection device completes the projection, its position can be adjusted. Based on the position adjustment operation, the position and posture information of the target virtual projection device are reconfirmed, and the projection is adjusted to virtually display the projection result corresponding to the real environment after the projection device is adjusted, making the user experience more realistic.
[0088] Please refer to Figure 11 , Figure 11 A flowchart illustrating a method for displaying virtual content according to another embodiment of this application is shown. The following will be combined with... Figure 11 The method for displaying virtual content provided in this application embodiment is described in detail. This method for displaying virtual content may include the following steps:
[0089] Step S510: Display the target projection scene.
[0090] Step S520: In response to the location confirmation operation, the target virtual projection device is overlaid and displayed at the first target location in the target projection scene.
[0091] Step S530: In response to the projection confirmation operation, the target projection content corresponding to the target virtual projection device is superimposed and displayed at the second target position in the target projection scene. The second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene.
[0092] In this embodiment, the specific implementation of steps S510 to S530 can be found in the content of the foregoing embodiments, and will not be repeated here.
[0093] Optionally, the target projection content superimposed on the second target location includes, but is not limited to, images and videos. The projection effect of the target projection content corresponding to the target virtual projection device is related to the virtual projection parameters of the target virtual projection device.
[0094] In some implementations, the virtual projection parameters of the target virtual projection device can be preset projection parameters. In this case, the projection effect of the target virtual projection device at the second target position depends not only on the posture information of the target virtual projection device in the target projection scene and the distance information between the first target position and the second target position, but also on the preset projection parameters of the target virtual projection device. In this case, the best projection effect of the target virtual projection device may not be obtained.
[0095] Step S540: In response to the parameter adjustment operation, display various virtual projection parameters.
[0096] In this embodiment, to change the projection effect of the target projection content projected by the target virtual projection device in the target projection scene, the virtual projection parameters of the target virtual projection device can be adjusted. In response to the parameter adjustment operation, various virtual projection parameters of the target virtual projection device are displayed.
[0097] The virtual projection parameters of the target virtual projection device include, but are not limited to, brightness projection parameters, contrast projection parameters, and resolution projection parameters. Users can choose to adjust one virtual projection parameter of the target virtual projection device, or simultaneously adjust any of several of its multiple virtual projection parameters.
[0098] Step S550: In response to the parameter confirmation operation, the target projection content is adjusted according to the target projection parameters, and the adjusted target projection content is superimposed and displayed at the second target position in the target projection scene. The target projection parameters are at least one virtual projection parameter selected by the parameter confirmation operation from a variety of virtual projection parameters.
[0099] In this embodiment, after the virtual projection parameters of the target virtual projection device are adjusted, in response to the parameter confirmation operation, based on the posture information of the target virtual projection device in the target projection scene, the distance information between the first target position and the second target position, and the adjusted virtual projection parameters of the target virtual projection device, the target projection content corresponding to the adjusted target virtual projection device is superimposed and displayed at the second target position.
[0100] In some implementations, after the user completes the adjustment of the virtual projection parameters, an operation window can be overlaid in the target projection scene. This window can display the prompt "Execute the adjusted projection parameters" and "OK" and "Cancel" operation buttons. Based on this, the parameter confirmation operation can be as follows: the user controls the cursor to be overlaid at the location of the "OK" operation button using hand gestures; if the cursor remains overlaid at that location for more than a preset time, the user confirms that the virtual projection parameters of the target virtual projection device have been updated to the adjusted virtual projection parameters.
[0101] In some implementations, the virtual projection parameters of the target virtual projection device can be set to adaptive adjustment. That is, based on the posture information of the target virtual projection device in the target projection scene and the distance information between the first target position and the second target position, the virtual projection parameters that achieve the best projection effect of the target virtual projection device at the second target position are obtained and used as the current virtual projection parameters of the target virtual projection device.
[0102] like Figure 12 As shown, Figure 12 It shows Figure 11 This diagram illustrates a target projection scene for a method of displaying virtual content. Figure 12 In the target projection scene, the target virtual projection device is superimposed on the first target position. Based on the first target position and the posture information of the target virtual projection device in the target projection scene, the projected image of the target virtual projection device on the virtual wall corresponds to the target projection content 404. At this time, the target projection content 404 superimposed on the virtual wall is relatively blurry, and the display effect is poor. Therefore, based on the parameter adjustment operation, according to the posture information of the target virtual projection device in the target projection scene and the distance information between the first target position and the second target position, the virtual projection parameters of the target virtual projection device when the projection effect at the second target position is optimal are obtained, so as to adaptively adjust the virtual projection parameters of the target virtual projection device. Based on the parameter confirmation operation, the target projection content is adjusted according to the target projection parameters to make the projection effect of the target virtual projection device on the virtual wall optimal.
[0103] In some implementations, please refer to Figure 13 Step S550 may include the following steps:
[0104] Step S551: In response to the parameter confirmation operation, adjust the brightness of the target projection content according to the brightness adjustment parameters.
[0105] In this embodiment, after adjusting the brightness parameters of the target virtual projection device, in response to the parameter confirmation operation, the brightness of the target projection content corresponding to the target virtual projection device is adjusted based on the adjusted brightness parameters.
[0106] Step S552: The target projection content with adjusted brightness is superimposed and displayed at the second target position in the target projection scene.
[0107] In this embodiment, the target projection content corresponding to the target virtual projection device after brightness adjustment is obtained and superimposed on the second target position in the target projection scene.
[0108] In this embodiment, by adjusting the projection parameters of the target virtual projection device, the function of adjusting the artificial parameters of the real projection in the real world and adaptive adjustment is realized. The projection result corresponding to the adjustment of the projection device in the real environment is virtually displayed, and users can experience the detailed projection effect of the projection device under different parameters more realistically.
[0109] Please refer to Figure 14 , Figure 14 A flowchart illustrating a method for displaying virtual content according to another embodiment of this application is shown. The following will be combined with... Figure 14 The method for displaying virtual content provided in this application embodiment is described in detail. This method for displaying virtual content may include the following steps:
[0110] Step S610: Display the target projection scene.
[0111] Step S620: In response to the device viewing operation, display multiple preset virtual projection devices.
[0112] In this embodiment, the projection effect of different models of real projection devices is related to their virtual projection parameters, and different projection devices are required in different target projection scenarios. In response to a device viewing operation, multiple preset virtual projection devices are displayed for the user to select.
[0113] Optionally, preset virtual projection devices can be categorized to help users make selections. For example, they can be categorized according to usage scenarios, including but not limited to office and home types.
[0114] In some implementations, after displaying the target projection scene, an operation window can be overlaid on the target projection scene. This window can display the prompt "View Projection Device Model" and "OK" and "Cancel" operation buttons. Based on this, the device viewing operation can involve the user controlling the cursor to overlay on the location of the "OK" operation button using hand gestures. If the cursor remains overlaid on that location for more than a preset time, it confirms the user's selection to view the projection device model, thereby overlaying multiple preset virtual projection devices on the target projection scene.
[0115] In some implementations, if the actual application scenario is the purchase of projection equipment, that is, by simulating the display of virtual content, users can place the real projection equipment corresponding to the virtual projection equipment in the real projection scene for functional demonstration. Users can truly experience the projection effect of the projection equipment, which helps users select the most suitable projection equipment.
[0116] Step S630: In response to the device selection operation, obtain a preset virtual projection device selected from the plurality of preset virtual projection devices as the target virtual projection device.
[0117] In this embodiment, the user selects the desired virtual projection device from a plurality of preset virtual projection devices, and in response to the device selection operation, the preset virtual projection device selected by the user is obtained as the target virtual projection device.
[0118] Optionally, the device selection operation can be as follows: when the user controls the cursor to be superimposed on the location of one of the multiple preset virtual projection devices through hand operation, if it is detected that the cursor has been superimposed on the location for more than a preset time, the preset virtual projection device corresponding to that location is confirmed as the device selected by the user.
[0119] Step S640: In response to the location confirmation operation, the target virtual projection device is overlaid and displayed at the first target location in the target projection scene.
[0120] Step S650: In response to the projection confirmation operation, the target projection content corresponding to the target virtual projection device is superimposed and displayed at the second target position in the target projection scene. The second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene.
[0121] In this embodiment, the specific implementation methods of steps S610, S640 and S650 can be found in the content of the foregoing embodiments, and will not be repeated here.
[0122] In this embodiment, by setting up multiple preset virtual projection devices for users to choose from, it helps users with different projection needs to obtain the required projection devices and select the most suitable projection device based on the projection effect of the simulated projection devices in the virtual scene, thus helping users obtain the projection devices they want.
[0123] Please refer to Figure 15 , Figure 15 A structural block diagram of a virtual content display device 700 according to an embodiment of this application is shown. The virtual content display device 700 may include: a scene display module 710, a device display module 720, and a projection display module 730.
[0124] The scene display module 710 is used to display the target projection scene.
[0125] The device display module 720 is used to overlay and display the target virtual projection device at the first target position in the target projection scene in response to the position confirmation operation.
[0126] The projection display module 730 is used to respond to the projection confirmation operation and overlay the target projection content corresponding to the target virtual projection device at a second target position in the target projection scene. The second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene.
[0127] In this manner, the virtual content display device 700 may further include a position adjustment module. Specifically, the position adjustment module may be used to: adjust the superimposed display position of the target virtual projection device to a third target position in the target projection scene selected by the position adjustment operation in response to a position adjustment operation; determine a fourth target position to be projected in the target projection scene based on the third target position and the posture information of the target virtual projection device in the target projection scene; and superimpose the target projection content onto the fourth target position.
[0128] In this manner, the virtual content display device 700 may further include a parameter adjustment module and a parameter confirmation module. The parameter adjustment module displays multiple virtual projection parameters in response to a parameter adjustment operation. The parameter confirmation module adjusts the target projection content according to the target projection parameters in response to a parameter confirmation operation, and overlays the adjusted target projection content onto the second target position in the target projection scene. The target projection parameters are at least one virtual projection parameter selected by the parameter confirmation operation from among the multiple virtual projection parameters.
[0129] In some implementations, the target projection parameters include brightness adjustment parameters. The parameter confirmation module can also be used to: adjust the brightness of the target projection content according to the brightness adjustment parameters in response to the parameter confirmation operation; and overlay the brightness-adjusted target projection content onto the second target position in the target projection scene.
[0130] In some embodiments, the virtual content display device 700 further includes a device viewing module and a device selection module. The device viewing module displays a plurality of preset virtual projection devices in response to a device viewing operation. The device selection module, in response to a device selection operation, acquires a preset virtual projection device selected from the plurality of preset virtual projection devices as the target virtual projection device.
[0131] In other embodiments, the scene display module 710 may also be used to: acquire a scene image of the current real-world projection scene; acquire three-dimensional modeling data corresponding to the real-world projection scene based on the scene image; generate the virtual projection scene corresponding to the real-world projection scene based on the three-dimensional modeling data; and display the virtual projection scene.
[0132] In other embodiments, the device confirmation module may also be used to: in response to the projection confirmation operation, determine the projection direction of the target virtual projection device based on the posture information of the target virtual projection device in the target projection scene; determine the second target position to be projected based on the projection direction and the first target position; and overlay the target projection content at the second target position.
[0133] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0134] In the several embodiments provided in this application, the coupling between modules can be electrical, mechanical, or other forms of coupling.
[0135] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0136] In summary, by displaying the target projection scene; responding to a position confirmation operation, a target virtual projection device is overlaid and displayed at a first target position within the target projection scene; and responding to a projection confirmation operation, the target projection content corresponding to the target virtual projection device is overlaid and displayed at a second target position within the target projection scene. The second target position is determined based on the first target position and the posture information of the target virtual projection device within the target projection scene. Thus, upon receiving a position confirmation operation, the target virtual projection device can be restored and displayed at the confirmed first target position within the target projection scene. Simultaneously, upon receiving a projection confirmation operation, the second target position for displaying the target projection content is further determined, and this target projection content is overlaid and displayed at the second target position within the target projection scene. In other words, by combining virtual interactive operation technology, both the virtual projection device corresponding to the real projection device is restored, and the projection function of the virtual projection device is demonstrated, helping users make informed choices regarding the real projection device.
[0137] The following will combine Figure 16 This application describes a computer device 800.
[0138] Reference Figure 16 , Figure 16 The diagram shows a structural block diagram of a computer device 800 provided in an embodiment of this application. The above-described method provided in this embodiment of the application can be executed by the computer device 800.
[0139] The computer device 800 in this application embodiment may include one or more of the following components: processor 801, memory 802, and one or more application programs, wherein the one or more application programs may be stored in memory 802 and configured to be executed by one or more processors 801, and the one or more programs are configured to perform the methods as described in the foregoing method embodiments.
[0140] Processor 801 may include one or more processing cores. Processor 801 connects to various parts within the computer device 800 using various interfaces and lines, and performs various functions and processes data of the computer device 800 by running or executing instructions, programs, code sets, or instruction sets stored in memory 802, and by calling data stored in memory 802. Optionally, processor 801 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 801 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the aforementioned modem can also be integrated into processor 801 and implemented using a separate communication chip.
[0141] The memory 802 may include random access memory (RAM) or read-only memory (ROM). The memory 802 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 802 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method embodiments described below. The data storage area may also store data created by the computer device 800 during use (such as the various correspondences described above).
[0142] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0143] In the several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or other forms.
[0144] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.
[0145] Please refer to Figure 17 , Figure 17 A structural block diagram of a computer-readable storage medium provided in an embodiment of this application is shown. The computer-readable storage medium 900 stores program code that can be called by a processor to execute the methods described in the above method embodiments.
[0146] The computer-readable storage medium 900 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 900 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 900 has storage space for program code 910 that performs any of the method steps described above. This program code can be read from or written to one or more computer program products. The program code 910 may be compressed, for example, in a suitable form.
[0147] In some embodiments, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, causing the computer device to perform the steps in the above-described method embodiments.
[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A method for displaying virtual content, characterized in that, The method includes: Display the target projection scene; In response to a location confirmation operation, a target virtual projection device is overlaid and displayed at a first target location in the target projection scene; the first target location is the placement position of the target virtual projection device selected in the target projection scene in response to the location confirmation operation. In response to the projection confirmation operation, the target projection content corresponding to the target virtual projection device is superimposed and displayed at the second target position in the target projection scene. The second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene.
2. The method according to claim 1, characterized in that, After responding to the projection confirmation operation and overlaying the target projection content corresponding to the target virtual projection device at the second target position in the target projection scene, the method further includes: In response to the position adjustment operation, the overlay display position of the target virtual projection device is adjusted to the third target position in the target projection scene selected by the position adjustment operation; Based on the third target position and the attitude information of the target virtual projection device in the target projection scene, the position of the fourth target to be projected in the target projection scene is determined; The projected content of the target is superimposed and displayed at the fourth target position.
3. The method according to claim 1, characterized in that, After responding to the projection confirmation operation and overlaying the target projection content corresponding to the target virtual projection device at the second target position in the target projection scene, the method further includes: In response to parameter adjustment operations, various virtual projection parameters are displayed; In response to the parameter confirmation operation, the target projection content is adjusted according to the target projection parameters, and the adjusted target projection content is superimposed and displayed at the second target position in the target projection scene. The target projection parameters are at least one virtual projection parameter selected by the parameter confirmation operation from a variety of virtual projection parameters.
4. The method according to claim 3, characterized in that, The target projection parameters include brightness adjustment parameters. The step of adjusting the target projection content according to the target projection parameters in response to the parameter confirmation operation, and then overlaying the adjusted target projection content onto the second target position in the target projection scene, includes: In response to the parameter confirmation operation, the brightness of the target projected content is adjusted according to the brightness adjustment parameters; The brightness-adjusted target projection content is superimposed and displayed at the second target position in the target projection scene.
5. The method according to any one of claims 1-4, characterized in that, Before displaying the target virtual projection device overlaid at the first target position in the target projection scene in response to the position confirmation operation, the method further includes: In response to a device viewing operation, multiple preset virtual projection devices are displayed; In response to a device selection operation, a preset virtual projection device selected from a plurality of preset virtual projection devices is obtained as the target virtual projection device.
6. The method according to any one of claims 1-4, characterized in that, The target projection scene is a virtual projection scene, and the display of the target projection scene includes: Obtain the scene image of the current real-world projection scene; Based on the scene image, obtain the 3D modeling data corresponding to the real-world projection scene; Based on the 3D modeling data, a virtual projection scene corresponding to the real projection scene is generated; The virtual projection scene is displayed.
7. The method according to any one of claims 1-4, characterized in that, The step of responding to the projection confirmation operation by overlaying the target projection content corresponding to the target virtual projection device at the second target position in the target projection scene includes: In response to the projection confirmation operation, the projection direction of the target virtual projection device is determined based on the posture information of the target virtual projection device in the target projection scene; Based on the projection direction and the first target position, determine the position of the second target to be projected; The target projection content is superimposed and displayed at the second target position.
8. A display device for virtual content, characterized in that, The device includes: The scene display module is used to display the target projection scene; The device display module is configured to, in response to a location confirmation operation, overlay and display a target virtual projection device at a first target location in the target projection scene; the first target location is the placement position of the target virtual projection device selected in the target projection scene in response to the location confirmation operation; The projection display module is used to respond to a projection confirmation operation by overlaying the target projection content corresponding to the target virtual projection device at a second target position in the target projection scene. The second target position is determined based on the first target position and the posture information of the target virtual projection device in the target projection scene.
9. A computer device, characterized in that, The device includes: One or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs being configured to perform the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code that can be invoked by a processor to perform the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Display method and display system
CN114827559A
