A cross-scene interaction method, system and medium for XR combined scenes
By implementing the cross-scene interaction method in the combined reality scene, users can easily use objects in one sub-scene to interact with another sub-scene, solving the problem of inconvenient operation in the existing technology and providing a stronger interactive experience and convenience. sex.
Patent Information
- Application Number
- CN202311543137.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-20
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2043-11-20
AI Technical Summary
In a combined reality scene, it is difficult for users to conveniently use objects in one sub-scene to interact with another sub-scene. Existing technology limits users to interact with only reduced tools in the sub-scene, resulting in inconvenient operations.
By implementing the cross-scene interaction method in the combined scene, users can use objects in the first sub-scene to trigger responses in the second sub-scene, including interaction methods such as object movement, light/indicator line/user sight entry, object emission, and object collision. , ensuring that the object’s motion trajectory and light path are continuous without changing the size and shape of the object, achieving a more convenient interactive experience.
It provides a more convenient and functional interactive experience. Users can directly use the tools of their own sub-scene to operate another sub-scene, which improves the interactivity and user experience of the combined scene.
Smart Images

Figure CN117666781B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual reality technology, and in particular to a cross-scene interaction method, system and medium for extended reality (XR) combined scenes. Background Art
[0002] Virtual reality (VR), augmented reality (AR), mixed reality (MR) and other technologies are interconnected and integrated, collectively referred to as extended reality technology (XR). A combined scene can be constructed by combining two or more single-person experience scenes and / or multi-person collaborative experience scenes. The combined scene is a sub-scene of the combined scene, and the sub-scene can be one or more of a virtual scene, a real scene, and a virtual-real mixed scene. When a user experiences a combined scene, the user can simultaneously view the stereoscopic three-dimensional information of all sub-scenes in the combined scene, and can further have a stereoscopic interactive experience with all sub-scenes. The combined scene can break the spatial isolation between scenes and construct a variety of experience activity types. For example, in a classroom, multiple single-person teaching activity scenes or multi-person collaborative teaching activity scenes can be combined to generate a teaching combination scene containing multiple sub-scenes. By changing the types of scenes and the number of scenes included, a wide variety of combined scenes can be constructed. Figure 1 For example, student 1 and student 2 are doing individual training respectively. Student 2 encounters difficulties in the training and needs help from student 1. The training scenes of student 1 and student 2 are combined to construct a combined scene of "student 1 doing individual training while helping student 2". The training scene instance of student 2 in the combined scene experienced by student 1 is synchronized with the training scene instance experienced by student 2. Thus, student 1 has an immersive experience of the combined scene of "student 1 doing individual training while helping student 2", and student 2 has an immersive experience of multi-person collaborative training with student 1. Figure 2 For example, all students in the classroom conduct individual training separately. The individual training scenes of all students in the classroom are combined together to construct a combined scene as the classroom scene. The teacher can view the individual training status of all students in the classroom scene and interact with the training scene of any student.
[0003] There are four main technical methods for building a combined scene. The first method is to load all sub-scenes in a single XR application and directly render the user's combined scene experience screen together, as described in paragraph 0094 of the specification of document 1. [1]The second method is to render each sub-scene of the combined scene separately to generate the user's immersive experience screen, and then perform occlusion calculation on the immersive experience screens of all sub-scenes to synthesize the user's combined scene experience screen [2-6]. The third method is to perform occlusion processing on the sub-scene to generate a binocular stereoscopic live broadcast screen and the binocular stereoscopic vision screens of other sub-scenes in the combined scene to synthesize the user's combined scene experience screen [7, 8]. The fourth method is that the sub-scene generates and transmits the scene's three-dimensional information (such as a voxel map) in real time, the received sub-scene three-dimensional information is loaded into the combined scene, and the combined scene is rendered to generate the user experience screen [9, 10].
[0004] In the prior art, a user can interact with any sub-scene in a combined scene by first determining which sub-scene the interaction is for, and then converting the interaction into the interaction within the corresponding sub-scene. For details, see paragraph 0114 of the specification of document 9 [9], paragraphs 0053-0059 of the specification of document 7 [7], and paragraph 0103 of the specification of document 4 [4].
[0005] In a combined scene, sub-scenes are generally divided into primary and secondary. For example, Figure 1 In the combined scene of Student 1, Student 1's experience space is generally dominated by Student 1's training scene, while Student 2's training scene is reduced and presented in Student 1's experience space, occupying only a small three-dimensional space, so as not to affect Student 1's own training as much as possible. When Student 1 interacts with Student 2's scene to provide training assistance to Student 2, in the prior art, only the practical tools in Student 2's scene can be used to practice on Student 2's scene. However, since Student 2's scene is reduced and presented in Student 1's experience space, it will be very inconvenient for Student 1 to pick up the practical tools in Student 2's scene. If Student 1 can directly use the tools of his own training scene to interact with the objects in Student 2's training scene, the inconvenience of the above interaction will be avoided, but the prior art does not support this. Summary of the invention
[0006] The main purpose of the present invention is to provide a cross-scene interaction method, system and medium for XR combined scenes. Based on the prior art that users can interact with any sub-scene in a combined scene, the present invention innovates a combined scene interaction method to enable users to use objects in a sub-scene in the combined scene to interact with other sub-scenes in the combined scene, providing users with a more convenient and more powerful interactive experience.
[0007] To achieve the above-mentioned purpose, the present invention proposes a cross-scene interaction method for XR combined scenes, characterized in that a user, in the combined scene, uses any object o1,l in its first sub-scene to trigger a response of the second sub-scene through interactive operation, and the system generates an XR combined scene cross-scene interactive experience screen for the user, wherein the sub-scenes of the combined scene are one or more of real scenes, virtual scenes, and virtual-real mixed scenes, the first sub-scene and the second sub-scene are any two sub-scenes in the combined scene, and the object o1,l is a real object or a virtual object.
[0008] Among them, the response of the second subscene is one of the following responses: the object of the first subscene is moved by the user to the second subscene, the object of the first subscene is moved by the user to the second subscene and directly triggers a further response of the second subscene, the object of the first subscene is moved by the user to the second subscene and triggers a further response of the second subscene under the user's interactive operation, the light / indicator line / user line of sight of the first subscene enters the second subscene, the light / indicator line / user line of sight of the first subscene shines on the object of the second subscene and directly triggers a further response of the second subscene, the light / indicator line / user line of sight of the first subscene shines on the object of the second subscene and triggers a further response of the second subscene under the user's operation, the object of the first subscene is launched into the second subscene, the object of the first subscene collides with the object in the second subscene after being launched into the second subscene, triggering a further response of the second subscene, the second subscene generates a connection with the object of the first subscene, and the object in the second subscene responds to the message or instruction of the object of the first subscene connected to it.
[0009] In addition, the combined scene cross-scene interactive experience screen simultaneously presents the contents of the first sub-scene and the second sub-scene, and presents the process of the user using the objects in the first sub-scene to trigger the response of the second sub-scene through interactive operations. It also includes in the cross-scene interactive experience screen that the movement trajectory of the object from the first sub-scene to the second sub-scene remains continuous, or the light path / indicator line / user line of sight from the first sub-scene to the second sub-scene remains continuous, or the connection line between the objects in the first sub-scene and the second sub-scene remains continuous.
[0010] Furthermore, the cross-scene interactive experience screen includes left and right eye images. In the three-dimensional information contained in the cross-scene interactive experience screen, the light path of the light / indicator line / user line of sight from the first sub-scene to the second sub-scene remains continuous, or the connection line between the objects in the first sub-scene and the second sub-scene remains continuous, or in the generated cross-scene activity experience screen sequence, the movement trajectory of the object from the first sub-scene to the second sub-scene remains continuous.
[0011] In addition, in the cross-scene interactive experience screen generated by the system for the user, the size of the object does not change suddenly when it enters the second subscene from the first subscene, and the shape is complete and not misaligned. The content presented in any subscene changes with the user's posture or does not change with the user's posture.
[0012] Moreover, any sub-scene within the combined scene can be synchronized with the state of scenes experienced by other users.
[0013] Specifically, the way in which the first subscene object o1,l appears in the second subscene is: calculate the three-dimensional imaging interval corresponding to the display interval of the second subscene in the combined scene in the first subscene coordinate system, or calculate the three-dimensional imaging interval corresponding to the display interval of the second subscene in the user field of view in the first subscene coordinate system; when the first subscene object o1,l enters the three-dimensional imaging interval, the object o1,l enters the second subscene, and the second subscene generates a clone of the object o1,l; the way in which the light / indicator line / user line of sight of the first subscene enters the second subscene is: calculate the three-dimensional imaging interval corresponding to the display interval of the second subscene in the combined scene in the first subscene coordinate system, or calculate the three-dimensional imaging interval corresponding to the display interval of the second subscene in the user field of view in the first subscene coordinate system; when the light / indicator line / user line of sight of the first subscene enters the three-dimensional imaging interval, the light / indicator line / user line of sight of the first subscene enters the second subscene, and the second subscene clones this light / indicator line / user line of sight.
[0014] Furthermore, the virtual handle and the virtual hand can move from the first subscene to the second subscene. When the object o1,l completely enters the three-dimensional imaging interval corresponding to the display interval of the second subscene in the coordinate system of the first subscene, the first subscene hides the object o1,l, and the clone of the object o1,l in the second subscene completely replaces the object o1,l in the first subscene and appears in the combined scene. In addition, when the object o1,l enters the second subscene from the first subscene, the initial posture of the clone of the object o1,l in the second subscene in the combined scene coordinate system is the same as the posture value of the object o1,l in the first subscene in the combined scene coordinate system; when the light / indicator line / user line of sight of the first subscene enters the second subscene, the optical path of the light / indicator line / user line of sight of the first subscene in the combined scene coordinate system is the same as or overlaps with the optical path of the clone of the second subscene.
[0015] To achieve the above-mentioned purpose, the present invention also proposes a cross-scene interaction system for XR combination scenes, characterized in that the system includes a memory, a processor, and a cross-scene interaction method program for XR combination scenes stored on the memory, and the cross-scene interaction method program for XR combination scenes is executed by the processor when it is executed according to any one of claims 1 to 8.
[0016] To achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is called by a processor, the cross-scene interaction method for XR combined scenes described in any one of claims 1 to 8 is executed.
[0017] The beneficial effect of the combined scene experience generation method, system and storage medium based on XR technology of the present invention is: enabling users to use objects in a sub-scene in the combined scene to interact with other sub-scenes of the combined scene, providing users with a more convenient and more powerful interactive experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 This is the combined scene example 1.
[0019] Figure 2 This is the combined scene example 2.
[0020] Figure 3 This is the cross-scenario interaction example 1 of the present invention.
[0021] Figure 4 This is a flow chart of the combined scene and cross-scene interaction method of the present invention.
[0022] Figure 5 It is a schematic diagram of the system structure of the first embodiment of the present invention.
[0023] Figure 6 This is the cross-scenario interaction example 2 of the present invention.
[0024] Figure 7 This is cross-scenario interaction example 3 of the present invention.
[0025] Figure 8 This is cross-scenario interaction example 4 of the present invention.
[0026] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and first to seventh embodiments. DETAILED DESCRIPTION
[0027] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0028] The present invention proposes a cross-scene interaction method for XR combined scenes, in which a user performs an interactive operation on an object in a first sub-scene in the combined scene to trigger a response in a second sub-scene. Figure 3 For example, in Figure 3In Figures a and b of , user A and user B are experiencing immersive training in scene 1 and scene 2 respectively. User A invites user B to provide help. Figure 3 As shown in Figures c and d of , the system presents the scene content within a certain three-dimensional interval of scene 1 to the immersive experience space of user B, thereby generating a combined scene immersive experience for user B that includes scene 1 and scene 2. Figure 3 As shown in Figure b, scene 2 contains a practical tool screwdriver. As shown in Figure d, user B uses the screwdriver in scene 2 to perform a cross-scene interactive operation of screwing the object in scene 1. The scenes spanned by the cross-scene interaction are any two sub-scenes in the combined scene. For example: Figure 1 In this example, student 1 can use objects in his / her own training scene to trigger responses in student 2's training scene. In the other case, student 1 can use objects in student 2's training scene to trigger responses in his / her own training scene. Figure 2 In the classroom scene, teachers can use any object in the student training scene to trigger the response of other student training scenes. The scenes spanned by cross-scene interaction can be one or two of the virtual scene, real scene, and virtual-real mixed scene.
[0029] Important technical terms involved in the present invention are explained below.
[0030] Scenarios and Scenario Examples
[0031] A scene defines the objects, object states, object operation logic, and interaction logic between objects contained in a three-dimensional space; a scene instance is a program process or thread that the system calls on computer processors, memory, graphics cards and other computing resources to run in real time according to the scene definition. This program process or thread calculates the state of each object in the scene in real time, renders the screen, and responds to user interaction. When a single scene has multiple user experiences at the same time, if the computing resources available to a single scene instance cannot generate experience screens for all users in real time, it is necessary to generate multiple scene instances for this scene and allocate them to each user. These scene instances establish communication connections to synchronize the state of objects in the scene, and each scene instance generates an experience screen for the corresponding user in real time, so that each user can experience this scene together.
[0032] XR scene imaging range
[0033] User p in the combined scene For an immersive interactive experience, i To form a combined scene One of the sub-scenes of When experiencing i Maybe only some of the scene content can or only some of the scene content needs to be in the combined scene In order to limit si Need to be in the combined scene The scene content presented to user p is set in a three-dimensional interval, scene s i Only the content in this three-dimensional interval needs to be imaged when generating the user p's experience screen. This set three-dimensional interval is the XR scene imaging interval. Among them, the imaging interval can be infinite, or it can be any three-dimensional shape interval such as a cube or a sphere.
[0034] Display range of XR scenes in combined scenes
[0035] Combination Scene Contains multiple sub-scenes. In order to make the sub-scenes No overlap or reduced overlap, for any sub-scene s i , in the combined scene Set a three-dimensional interval Ω i Used to present i , limit s i exist Further, when setting the combined scene Coordinate system and subscenes i When the rotation and translation scaling relationship between the coordinate systems is used, according to this rotation and translation scaling relationship, the three-dimensional interval Ω i Mapped to sub-scenes i The obtained three-dimensional interval Can be used as scenes i The imaging interval, in turn, according to this rotation, translation and scaling relationship, the scene s i Imaging range Mapping to combined scenes The obtained three-dimensional interval Ω i Can be used as scenes i In the combined scene Display interval.
[0036] Field of view coordinate system
[0037] The user field of view coordinate system is a coordinate system defined in the human eye field of view. For example, the midpoint between the binocular center points of the human eye is used as the origin of the coordinate system. The direction of the binocular line from the left eye to the right eye is defined as the positive direction of the x-axis, and the attention direction is defined as the positive direction of the z-axis. The positive direction of the y-axis is defined as perpendicular to the x-axis and the z-axis and satisfies the left-hand coordinate system.
[0038] First embodiment:
[0039] Combination scenarios of this embodiment It is composed of N virtual sub-scenes, where N is a natural number greater than 1, and the virtual sub-scenes are represented by s1, s2, ..., s NIndicates that the scene composition of any two sub-scenes can be the same. Figure 5 As shown, in this embodiment, the cross-scene interactive system for combined scenes mainly comprises: a user interface, a first virtual sub-scene instance, a second virtual sub-scene instance, ..., an Nth virtual sub-scene instance, and an image synthesis module. Among them, any i-th virtual sub-scene instance is a sub-scene s i Each virtual sub-scene instance receives the user's real-time posture and interactive operation information sent by the user interface, responds to the received interactive operation information, and has a communication connection between each virtual sub-scene instance. When the user interaction is cross-scene interaction, data can be transmitted between virtual sub-scenes. Each virtual sub-scene instance renders the user's binocular stereoscopic visual experience screen under the user's real-time posture and sends it to the image synthesis module. The image synthesis module performs occlusion calculations between the screens to synthesize the user's combined scene experience screen, which is displayed to the user through the user interface. The user interface is deployed on the user terminal device, the image synthesis module is deployed on the user terminal device or the cloud server, and the virtual sub-scene instances can be deployed entirely on the cloud server, or partially or entirely on the user terminal device.
[0040] User p1 in the combined scene Immersive experience and combined scenes Any sub-scene s i In the combined scene The display intervals are Ω i , in s i The corresponding imaging interval is Ω i c. Combined scenes The coordinate system is express, Any sub-scenes i The coordinate system is represented by Ψi (combined scene It can share the same coordinate system with one of the sub-scenes, for example Share the same coordinate system with s1), pre-set the coordinate system With i The rotation, translation and scaling relationship of s i Coordinate system Ψ i Down coordinate values to the combined scene Coordinate system The coordinate transformation relationship under Indicates that i Coordinate system Ψ i Lower pose angle to composite scene Coordinate system The attitude angle transformation relationship under Indicates that i Coordinate system Ψ iDownscaling to combined scenes Coordinate system Scaling relationship of the lower scale Among them, if s i Any object in o i,l In the coordinate system Ψ i The lower posture is [W i,l Θ i,l ], o i,l exist Coordinate system The lower posture is Then there is From this we can further obtain Any two sub-scenes s i With s j The coordinate system rotation, translation and scaling relationship includes: i Coordinate system Ψ i The coordinate value is transferred to the combined scene s j Coordinate system Ψ j The coordinate transformation relationship under ij Indicates that i Coordinate system Ψ i Lower posture angle to combined scene s j Coordinate system Ψ j The attitude angle transformation relationship under ij Indicates that i Coordinate system Ψ i Downscaling to combined scenes j Coordinate system Ψ j The scaling relationship of the downscale ij , where if s i Any object in o i,l In the coordinate system Ψ i The lower posture is [W i,l Θ i,l ], o i,l In s j Coordinate system Ψ j The lower posture is [W j,l Θ j,l ], then W j,l =H ij (W i,l ), Θ i,l =R ij (Θ j,l ), for the conversion of coordinate values and attitude angles between coordinate systems, please refer to paragraphs 133-141 of the specification of document 9 and paragraphs 80-99 and 118-120 of the specification of document 7.
[0041] User p1 in the combined scene For any object o in s11,l Perform interactive operations to trigger the response of sub-scene s2. Figure 4 As shown, the system implements the cross-scenario interaction method, which specifically includes the following steps: Step S00, generating a combined scene for user p1 Experience the screen and make p1 enter the combined scene
[0042] Step S10: User p1 combines the scene Any object o in subscene s1 1,l Perform interactive operations to trigger combined scenes Response of sub-scenario s2;
[0043] Step S20: Generate a combined scene for user p1 Cross-scene interactive experience screen.
[0044] The specific implementation of each step is described in detail below.
[0045] Step S00, generate a combined scene for user p1 Experience the screen to allow users to enter the combined scene
[0046] Any time t j , the user interface obtains the user p1 in the combined scene The posture of p1 in the combined scene The pupil distance is This pupil distance value can be the actual pupil distance of p1 or a manually specified value, such as 60cm. The user interface calculates the position and pupil distance of user p1 in all sub-scene coordinate systems and sends them to the corresponding scene instances. Each scene instance renders the scene content in the imaging interval in real time according to the position and pupil distance of p1 in its coordinate system to generate a binocular stereoscopic vision image. The image synthesis module performs occlusion calculation on the binocular stereoscopic vision image of all sub-scene instances to synthesize a combined scene for the user. The immersive experience screen is displayed to the user, allowing the user to enter the combined scene
[0047] Among them, for any sub-scene s i , the user interface is based on s i Coordinate system Ψ i To the combined scene Coordinate system The inverse transformation of the rotation, translation and scaling relationship can obtain the user coordinate system Lower position In the coordinate system Ψ i The corresponding pose value is [W j,i Θj,i ], Lower pupil distance In i The lower pupil distance is d i . In the pose [W j,i Θ j,i ] and pupil distance d i Next, i Rendering imaging interval Ω′ i The scene content inside generates binocular stereo vision images and is the left eye image, For the right eye image. and The image synthesis module receives the binocular stereoscopic vision images sent by all sub-scene instances and synthesizes the combined scene experience images. If the synthesis method needs to use image depth information when performing occlusion calculation, the sub-scene instance may also need to generate a depth image corresponding to the binocular stereoscopic vision image. For specific implementation, see references [2]-[6].
[0048] Step S10: User p1 combines the scene Object o in subscene s1 1,l Perform interactive operations to trigger scene combination scenes Response of sub-scenario s2
[0049] User p1 pairs combination scenario Object o in subscene s1 1,l Perform interactive operations, of which there are three main types. The following will introduce the three types of cross-scenario activities and their implementation in detail.
[0050] Type 1: User p1 in the combined scenario Put object o in subscene s1 1,l Move to sub-scene s2, o 1,l After entering s2, further response of the second sub-scene is directly triggered or further response of the second sub-scene is triggered under the interactive operation of the user.
[0051] Among them, user p1 is in the combined scene Display interval Ω1 picks up object o in s1 1,l , and move the object o 1,l arrive When the three-dimensional display interval Ω2 is 1,l Enter sub-scene s2. The display intervals Ω1 and Ω2 are respectively s1 and s2 in the combined scene In the display interval, in addition, the object o 1,l The movement trajectory from s1 to s2 is presented in the combined scene. There is continuity within. Figure 6 For example, in Figure 6 In figure a, the user picks up an object in scene instance 1. After figures b and c, the object moves from scene 1 to scene 2. The specific implementation is as follows.
[0052] 1) Pick up object o in s1 1,l
[0053] At any time t0, the interactive controller such as the hand or handle of user p1 is in the combined scene Display interval Ω1, user p1’s hand or interactive controller in the combined scene The posture is (For the sake of simplicity, the hand is also classified as an interactive controller, and only the interactive implementation of a single hand or a single interactive controller is described. On the basis of this implementation, the interactive implementation of both hands or multiple interactive controllers can be realized by simple superposition). is the position value, is the attitude angle value, User interface based on It is determined that this operation acts on scene instance s1, and the posture parameters of the interactive controller and the operation action A (such as gestures, controller buttons, etc.) need to be sent to scene instance s1. Coordinate system The transformation relationship between the coordinate value under s1 coordinate system Ψ1 And the attitude angle transformation relationship Bundle Transformed into the pose value of coordinate system Ψ1 The user interface connects A and Sent to scene instance s1, scene instance s1 takes the pose parameters Assigned to the virtual interaction controller in scene instance s1, s1 responds to the interaction operation A. If it satisfies the object o to be picked up 1,l When the conditions are met (for example, the interactive controller touches this object and the user presses the trigger button of the handle), user p1 picks up object o in s1 1,l , after picking up The pose parameters are Among them, F1 is the mapping relationship between the posture parameters of the picked object and the posture parameters of the interactive controller. This mapping relationship is generally set by default in s1 and is a common technical means. Pick up object o in s1 1,l .
[0054] 2) Put o 1,l Move into s2
[0055] User p1 in Display interval Ω1 moves o1,l , at any time t j , the user interface completes the Coordinate system The interactive controller pose value of the pose conversion between the s1 coordinate system Ψ1 Sent to scene instance s1, according to the mapping relationship F1, s1 updates o in real time 1,l According to the combined scene Coordinate system The rotation, translation and scaling relationship with the s1 coordinate system Ψ1 is used to calculate the imaging interval corresponding to Ω2 in s1 When o 1,l Enter When (for example, in s1, build can wrap An invisible object that can detect collisions and can be traversed. 1,l When you touch this invisible object, Enter ), then it is determined that o 1,l Enter s2.
[0056] At any time t k , o 1,l The specific implementation of entering s2 is as follows: s1 sends a message "object cross-scene entry" to s2 in for o 1,l The resource ID number of the scene instance (the scene instance reads and loads the resource corresponding to this ID number to instantiate the output 1,l , resources include models and functional logic programs, etc.), M0 is the message ID number of "object cross-scene entry", when s2 receives Then, s2 uses the resource ID number Check whether it has this resource. If so, use this resource to instantiate an o 1,l If there is no clone, read the ID number from s1 or other resource pools. The resource is then used to instantiate the 1,l s2 also needs to instantiate a virtual interactive controller. 1,l And the virtual interactive controller combines scenes in the process of crossing scenes The motion trajectory in the coordinate system is continuous, and the user interface completes the Coordinate system The interactive controller pose value of the pose conversion between the s2 coordinate system Ψ2 Sent to scene instance s2, assigned to the instantiated interaction controller, and o 1,l The clone of is set to the state of being picked up by this interaction controller. o in s2 1,lThe clone replaces the original o in s1 1,l Appear in the combination scene In the implementation, the o in s1 is 1,l Move into s2.
[0057] s1 in o 1,l The size of o in s2 1,l When the clones are the same size, if scene instances s1 and s2 are combined into a scene The coordinate system scaling factors are different, the scaling factors are λ1 and λ2 respectively, then o 1,l With o 1,l The clone is presented to the combined scene The size ratio is λ1 / λ2, due to the presentation to the combined scene The sizes are not consistent, so when moving across scenes, o 1,l The size of the object will suddenly change. To avoid sudden changes in size, if o 1,l The size is H, you can choose to set o 1,l The size of the clone in s2 is λ1H / λ2, so that o in s1 1,l With o 1,l The clone in s2 is presented in the combined scene The same scale as in. Or calculate o 1,l The distance δ between the clone in s2 and the boundary of the imaging interval of s2 is set as a threshold δ T , when δ≥δ T , then 1,l The size of the clone is H, when δ<δ T ,but This enables the cross-scenario process to 1,l By setting the scale of the virtual interactive controller in the same way, the interactive controller can be displayed in the combined scene with the same scale or with a gradual scale change during the cross-scene process, thereby avoiding the appearance of objects o 1,l The size of s2 changes suddenly when entering from s1.
[0058] When o 1,l After entering s2 completely, the user interface of p1 no longer transmits the position and interaction operation of the interactive controller to s1. 1,l When entering s2 from s1 but not completely entering s2, the user interface of p1 will transmit the position and interaction operation of the interactive controller to s1 and s2 at the same time. 1,l Whether to enter s2 completely is o 1,l The outline of the clone is within the imaging interval Ω′2 and does not intersect the boundary of Ω′2 at all, then o 1,l Completely enter s2, if o 1,lThe outline of the clone intersects the boundary of Ω′2, then o 1,l The object has not completely entered s2. Calculating the distance between the object and the interval boundary and whether they intersect is a common technical means and will not be described here.
[0059] 3) Operation 1,l Trigger further response from s2
[0060] When the o in s1 1,l After moving to s2, further response of the second sub-scene is directly triggered or further response of the second sub-scene is triggered under the interactive operation of user p1. This is a conventional method, and its specific implementation is not described here.
[0061] In addition, when in the combined scene Put o 1,l When moving back from display interval Ω2 to Ω1, s2 destroys o 1,l The clone, s1 recovery shows o 1,l , thus putting o 1,l Get it back to s1. For the specific implementation, please refer to the previous step of 1,l How to implement the shift from Ω1 to Ω2.
[0062] Type 2: Through the interactive operation of user p1 in s1, the object in s1 is launched to s2, triggering a response in scene s2.
[0063] The object emitted from s1 to s2 can be any object such as light, indicator line, user line of sight, bullet, etc. When light / indicator line / user line of sight is emitted from s1 to s2, it can also directly trigger the further response of sub-scene s2 or trigger the further response of the second sub-scene under the operation of user p1. The light path of light / indicator line / user line of sight across s1 and s2 is continuous in the combined scene; when an object with a moving trajectory such as a bullet is emitted from s1 to s2, it can also trigger the further response of s2 by colliding with the object. Similarly, the trajectory of the emitted object across scenes s1 and s2 is presented in the combined scene. There must be continuity within.
[0064] by Figure 7 For example, a user uses a laser pen to generate laser light in scene instance 1 and illuminates an object in scene instance 2. The specific implementation of emitting light / indicator line / user line of sight from s1 to s2 is as follows.
[0065] 1) Emit light / indicator line / user line of sight in s1
[0066] According to the combined scene The transformation relationship between the coordinate value and the attitude angle with the scene s1, the user interface transforms the posture of the user p1 and the interactive controller into the s1 coordinate system and transmits it to s1, and then the user p1 generates the user line of sight in s1 or emits light / indicator lines by picking up objects such as laser pens and spotlights. It is a common technology for the user p1 to generate the user line of sight in s1 or emit light / indicator lines by picking up objects such as laser pens and spotlights. Its specific implementation is not described here. At any time t k , the light / indicator line / user line of sight is emitted from the s1 coordinate system. Direction
[0067] 2) The light / indicator line / user’s line of sight emitted from s1 enters s2
[0068] Based on the launch point And the launch direction Calculate the optical path of the light / indicator line / user line of sight, when the optical path and Ω2 correspond to the imaging interval in s1 If there is an intersection, the light / indicator line / user sight line enters the scene instance s2. s2 needs to clone this light / indicator line / user sight line. Get the emission starting point And the launch direction In order to ensure that the light path of the light / indicator line / user line of sight is consistent in the combined scene coordinate system during the cross-scene process, according to the rotation, scaling and translation relationship between the s1 coordinate system Ψ1 and the s2 coordinate system Ψ2, the starting point of the light / indicator line / user line of sight in the s2 coordinate system is converted With the launch direction s1 sends a message to s2 that "light / indicator line / user's line of sight enters across the scene" in is the resource ID number of the light / indicator line / user line of sight source, M2 is the message ID number, after s2 receives this message, s2 responds according to the ID number Instantiate an emission source (if the emission source does not exist in the resource file s2, read it from s1 or other storage according to the ID number), the emission source generates light / indicator line / user line of sight, and the starting point is With the emission direction Thus, the light / indicator line / user sight emitted in s1 enters s2, and in the combined scene In the coordinate system, the light / indicator line / user line of sight is from The optical path of the display area Ω1 is continuous and consistent when it crosses Ω2. When user p1 changes the starting point and emission direction of the light / indicator line / user line of sight, it is determined in real time whether the optical path of the light / indicator line / user line of sight is still consistent with the imaging interval corresponding to Ω2 in s1. If there is still an intersection, s1 will transform the starting point and direction of the light / indicator line / user's line of sight through the s1 coordinate system Ψ1 and the s2 coordinate system Ψ2 in real time, and transmit it to s2 in real time. S2 will update the starting point and direction of the light / indicator line / user's line of sight in real time. When there is no longer any intersection, s2 destroys the emission source.
[0069] The starting point of the light / indicator line / user sight in s2 may be outside the imaging interval Ω′2, so the light / indicator line / user sight in s2 may not be generated or blocked by the content that is not in the imaging interval of s2 corresponding to Ω2, so that the light emitted in s1 is not in the combined scene. The optical path between the display interval Ω1 and Ω2 is interrupted. Further improvement: at any time t k , the light / indicator line / user line of sight emission starting point is The emission direction is When s1 determines that the light enters When s1 calculates the light / indicator line / user line of sight and The first intersection point τ of the boundary, obtain the position of τ in the s1 coordinate system Ψ1 In order to ensure the continuity of the light path of the light / indicator line / user line of sight in the combined scene coordinate system during the cross-scene process, according to the rotation, scaling and translation relationship between the s1 coordinate system Ψ1 and the s2 coordinate system Ψ2, the transformation is obtained The coordinate value in the s2 coordinate system Ψ2 is The attitude angle corresponding to Ψ2 is s1 sends a message to s2 that "light / indicator line / user's line of sight enters across the scene" s2 According to ID number Instantiate an emission source, which generates light / indicator line / user line of sight, and the starting point is With the emission direction This ensures that user p1 has a good understanding of the combined scenario In the immersive experience, the light / indicator line / user line of sight spans from the display area Ω1 to Ω2, and the light path is continuous.
[0070] 3) The emitted light / indicator line / user’s line of sight triggers further response from s2
[0071] When the light / indicator line / user's line of sight collides with an object in s2, it directly triggers a further response of s2 or triggers a further response of s2 under the user's interactive operation. Its implementation is a common technical means and will not be explained here.
[0072] When the object launched is a bullet or a shell with obvious motion process, let the launched object use o 1,l Indicates that 1,lThe specific implementation method of entering scene s2 trigger and triggering further response is as follows.
[0073] In s1, use your bare hands or a launcher to move o 1,l Launching is a common technical method, which will not be explained here. On this basis, at any time t k , when s1 determines o 1,l Enter Display interval Ω2 corresponding to the imaging interval in s1 When getting o 1,l The pose in the s1 coordinate system Ψ1 speed and direction of movement In order to ensure that the object's motion trajectory is continuous in the combined scene coordinate system during the cross-scene process, according to the rotation, scaling and translation relationship between the s1 coordinate system Ψ1 and the s2 coordinate system Ψ2, the transformation is obtained 1,l Pose in s2 coordinate system Ψ2 speed and direction of movement S1 sends a message to S2 that an object was thrown across scenes. in for o 1,l The resource ID number of M1 is the message ID number of "the object is thrown across the scene". After s2 receives this message, s2 instantiates an o 1,l The clone of speed and direction of movement Assign to o 1,l A clone of o 1,l During the movement, it collides with other objects in s2, triggering other activities in s2 to respond. 1,l Avoid presenting in combined scenes during cross-scene process The inner scale suddenly changes, in s2 o 1,l The scale setting of the clone body refers to the scale setting of the object of type 1. or
[0074] Type 3: User p1 connects object o in s1 through wiring or other means. 1,l and object o in scene s2 2,l Connect, user p1 in the combined scene In the display interval Ω1, for object o 1,l The interactive operation or 1,l The change of its own state causes s1 to send a message or instruction, which will trigger the object o in scene s2. 2,l The response of object o in s1 1,l and object o in scene s22,l The connection is presented in the combined scene There must be continuity within. Figure 8 For example, there is a power switch in scenario instance 1, and there is a motor in scenario instance 2. The power switch and the motor are connected with wires. When the user switches the power in scenario instance 1, the motor in scenario instance 2 will be turned on and off.
[0075] 1) Establish the connection between objects s1 and s2
[0076] At any time t0, user p1 interacts with s1 to enter the connection mode (for example, by selecting the connection mode through the UI), and p1 touches object o in s1. 1,l The connection point σ1, σ1 in the s1 coordinate system Ψ1 is At time t j , in s1, p1's interactive controller touches Display interval Ω2 corresponding to the imaging interval in s1 s1 sets the scene state to "cross-scene connection". s1 calculates the object o according to the rotation, translation and scaling relationship between its coordinate system Ψ1 and s2's coordinate system Ψ2. 1,l The position value of the connection point σ1 in the s2 coordinate system Ψ2 s1 sends a "cross-scene connection" message to s2 Where D1 is the communication address of scene instance s1, Γ1 is o 1,l M4 is the ID number of the "cross-scene connection" message, and parameter b is set to 0, indicating The coordinate value of the starting point of the connection line is sent to s2 by the user interface. The interactive controller posture and operation after the posture conversion from the combined scene coordinate system to the s2 coordinate system is performed. s2 receives the message Then, according to the message ID number M4, set the s2 scene state to "cross-scene connection" and save the coordinate value of the connection point position User p1 touches object o in scene instance s2 2,l The connection point σ2, the position coordinate value of σ2 is s2Generate arrive After the connection is generated, s2 cancels the "cross-scene connection" state, obtains the cross-scene connection relationship <Γ2 Γ1> and D1, and stores the data [<Γ2 Γ1> D1]. In order to ensure that the connection between objects in different scenes is consistent in the combined scene coordinate system, s2 calculates the position value of the connection point σ2 in the s1 coordinate system Ψ1 according to the rotation, translation and scaling relationship between the coordinate system Ψ2 and the s1 coordinate system Ψ1. S2 sends a message "cross-scenario connection" to S1 based on S1's communication address D1. Where D2 is the communication address of s2, Γ2 is o2,l M4 is the ID number of the "cross-scene connection" message, and parameter b is set to 1, indicating is the coordinate value of the end point of the connection. After that, we obtain the cross-scene connection relationship <Γ1 Γ2> and D2, store the data [<Γ1 Γ2> D2], and generate s1 arrive s1 completes the connection and cancels the "cross-scene connection" status.
[0077] 2) Manipulating the object in s2 triggers the response of the object in s1 or manipulating the object in s1 triggers the response of the object in s2
[0078] Any user in s2 takes an object o 2,l Operation, according to the preset functional logic, o 2,l It will be determined whether it is necessary to move the object o to s1 according to [<Γ2 Γ1> D1] 1,l Send a message or command, and what message or command to send, object o in s1 1,l After receiving the message or instruction, respond, in turn, the user in s1 to o 1,l After the operation, according to the preset functional logic, according to [<Γ1 Γ2> D2], o 1,l o to s2 2,l Send a message or command when o 2,l After receiving a message or instruction, respond accordingly.
[0079] Step S20: Generate a combined scene cross-scene interactive experience screen for user p1
[0080] Combined scene cross-scene interactive experience screen simultaneously presents the content of s1 and s2 and presents the user using the object o in s1 1,l The process of triggering s2 response through interactive operation also includes in the cross-scenario interactive experience screen, o 1,l The motion trajectory from s1 to s2 remains continuous, or the optical path of the light / indicator line / user sight from s1 to s2 remains continuous, or the line connecting the objects in s1 and s2 remains continuous. Furthermore, the cross-scene interactive experience screen includes left and right eye images, and in the three-dimensional information contained in the cross-scene interactive experience screen, the optical path of the light / indicator line / user sight from s1 to s2 remains continuous, or the line connecting the objects in s1 and s2 remains continuous, or in the generated cross-scene activity experience screen sequence, the motion trajectory of the object from s1 to s2 remains continuous. The specific implementation is as follows.
[0081] Any time t j1 , the user interface obtains the user p1 in the combined scene According to the rotation, translation and scaling relationship between the coordinate systems, the pose and pupil distance of user p1 in all sub-scene coordinate systems are calculated and sent to the corresponding scene instances respectively. Each scene instance renders the scene content in the imaging interval in real time according to the pose and pupil distance of p1 in its coordinate system to generate a binocular stereo vision picture image. The image synthesis module performs occlusion calculation on the binocular stereo vision picture images of all sub-scene instances to synthesize a combined scene for the user. The immersive experience screen is displayed to the user, allowing the user to enter the combined scene For the specific implementation, please refer to step S00, which will not be repeated here. Because step S10 has ensured that: the optical path of the light / indicator line / user line of sight across scenes is consistent or continuous in the combined scene coordinate system, the motion trajectory of the object across scenes is continuous in the combined scene coordinate system, and the lines between objects in different scenes are consistent in the combined scene coordinate system. Therefore, when the timestamps of the rendering images of each sub-scene instance of the combined scene are completely synchronized (each scene instance is converted according to the user's posture at the same time in the combined scene to obtain the user's posture and pupil distance in its coordinate system, and renders the binocular stereoscopic vision experience picture), in the user combined scene experience obtained by calculating and synthesizing the occlusion of each sub-scene picture, the optical path of the light / indicator line / user line of sight across scenes, the motion trajectory of the object across scenes, and the lines between objects in different scenes are all kept continuous.
[0082] By establishing a communication connection between an instance of any sub-scene in the combined scene and an instance of the scene experienced by other users, and synchronizing the states of each object in the scene, the state of any sub-scene in the combined scene can be synchronized with the scenes experienced by other users.
[0083] Second embodiment
[0084] In the first embodiment, the experience screen of the combined scene is synthesized from the experience screens generated by each sub-scene instance. This embodiment uses a single XR application process to instantiate all sub-scenes, and directly renders and generates the combined scene user experience screen. There is no need to render each sub-scene separately and then synthesize it to obtain the combined scene experience screen. The disadvantage is that it places extremely high performance requirements on a single rendering server. Even this XR application process can further include a user interface. From the first embodiment and the method described in paragraph 0094 of the specification of document 1, it is easy to obtain the specific implementation of the cross-scene interaction method of this embodiment, which will not be repeated here.
[0085] Third embodiment
[0086] In this embodiment, the combined scene sub-scene generates scene three-dimensional information (such as voxel map) in real time, the generated scene three-dimensional information is loaded into the combined scene, and the combined scene is rendered to generate a user experience screen. The first embodiment is improved, step S10 is the same as the first embodiment, and the specific implementation of step S00 and step S20 to generate the user combined scene experience screen including cross-scene interaction is detailed in references [9] and
[10] , which will not be repeated here.
[0087] Fourth embodiment
[0088] In this embodiment, the sub-scene can generate a binocular stereoscopic live broadcast picture and synthesize the binocular stereoscopic pictures of other sub-scenes in the combined scene to obtain the user experience picture of the combined scene. The immersive experience is provided in the scene s1 and s2. Both scenes s1 and s2 are combined scenes. Inner sub-scene. S1 generates an immersive interactive binocular stereoscopic vision picture for user P1 (the position of the binocular stereoscopic vision picture imaging follows the position change of user P1), S2 generates a binocular stereoscopic vision live broadcast picture and broadcasts it (the s2 binocular stereoscopic vision live broadcast picture does not follow the position change of user P1), the s2 binocular stereoscopic vision live broadcast picture and the immersive interactive binocular stereoscopic vision picture generated by S1 for user P1, and the combined scene The binocular stereoscopic vision images of other contents are synthesized to obtain the combined scene experience image of the viewer p1.
[0089] For s2, binocular stereoscopic live broadcast images are generated. The live broadcast image generation parameters set include: live broadcast is often aimed at a certain audience group, and live broadcast images need to be generated based on a benchmark audience. The pupil distance is Set the s2 imaging interval to Ω′2, where the reference audience field of view coordinate system is s2 coordinate system is Ψ2, and Ψ2 is also set to The rotation-translation scaling relation H2, where Ψ2 to The scaling factor is λ2; the display interval of s2 in the reference audience field of view is set to Ω2. Wherein, Ω2=H2(Ω′2), that is, according to the rotation, translation and scaling relationship between the coordinate systems, the imaging interval Ω′2 is mapped to the display interval Ω2.
[0090] The field of view coordinate system of p1 is The pupil distance for generating the combined scene experience screen for user p1 is d1, which can be the actual pupil distance of p1 or a manually set value (for example, 60 cm). That is, the reference audience field of view coordinate system With the user p1 field of view coordinate system There is no rotation or translation between them, only a scaling relationship. The display interval Ω2 of the field of view, according to the scaling relationship of the coordinate system, the display interval corresponding to the field of view p1 for
[0091] s1 coordinate system is Ψ1, combined scene The coordinate system is Set Ψ1 to The coordinate system rotation, translation and scaling relationship H1 between them, where Ψ1 to The scaling factor is λ1; the imaging interval of s1 is set to Ω′1, and s1 is in the combined scene The display interval is Ω1. Among them, Ω1=H1(Ω′1), that is, according to Ψ1 to The coordinate system relationship between them is obtained by mapping the imaging interval Ω′1 to Ω1. From the scaling factor λ1, it can be obtained that s1 is the pupil distance of the binocular stereoscopic vision experience screen generated by p1 is d1 / λ1. s1 can be Shared coordinate system.
[0092] The cross-scenario interaction method of this embodiment also includes the following steps:
[0093] Step S00, generate a combined scene for user p1 Experience the screen to allow users to enter the combined scene
[0094] Step S10: User p1 combines the scene Object o in subscene s1 1,l Perform interactive operations to trigger scene combination scenes Response of sub-scenario s2;
[0095] Step 20, generate a combined scene cross-scene interactive experience screen for user p1.
[0096] The specific implementation of steps S00 and S20 for generating a user combined scene experience screen including cross-scene interaction for the user can be easily obtained by referring to references [7, 8], and will not be repeated here. The implementation of step S10 of this embodiment is described in detail below.
[0097] Interaction type 1: User p1 in the combination scene Put object o in subscene s1 1,l Move to sub-scene s2, o 1,l After entering s2, further response of the second sub-scenario is directly triggered or further response of the second sub-scenario is triggered under the interactive operation of the user.
[0098] 1) Pick up object o in s1 1,l
[0099] Its specific implementation is the same as that of the first embodiment.
[0100] 2) Put o 1,l Move into s2
[0101] User p1 in Display interval Ω1 moves o 1,l , at any time t j , the user interface completes the Coordinate system The interactive controller pose value of the pose conversion between the s1 coordinate system Ψ1 Sent to scene instance s1, based on the mapping relationship between the interactive controller pose and the picked object pose, s1 updates o in real time 1,l 's posture.
[0102] Let any time t k , p1 located in real time by the XR terminal in the combined scene Coordinate system The pose under is [W k,0 Q k,0 ],in, Q k,0 =(α k β k θ k ). Thus, To p1 field of view coordinate system The coordinate system transformation relationship is: the rotation angle is Q k,0 , the translation amount is W k,0 , the scaling factor is 1. and The inverse transformation of the relationship between coordinate systems can be obtained In the combined scene The corresponding display interval is By combining scene coordinate system The rotation, translation and scaling relationship with the s1 coordinate system Ψ1 can be further obtained The corresponding imaging interval in s1 When o 1,l Enter When (for example, in s1, build can wrap An invisible object that can detect collisions and can be traversed. 1,l When you touch this invisible object, Enter ), then it is determined that o 1,l Enter s2. Since the p1 position is constantly changing, To p1 field of view coordinate system The coordinate system transformation relationship is constantly changing, and the three-dimensional interval It is also constantly changing and needs to be updated in real time based on the p1 pose calculation. 1,l Entering s2 is implemented as follows: s1 determines o 1,l Enter the imaging area s1 sends a message to s2 that an object has entered a different scene. in for o 1,l The resource ID number, M0 is the message ID number of "object cross-scene entry", when s2 receives Then, s2 uses the resource ID number Check whether it has this resource. If so, use this resource to instantiate an o 1,l If there is no clone, read the ID number from s1 or other resource pools. The resource is then used to instantiate the 1,l s2 instantiates an interaction controller. 1,l And the interactive controller combines scenes in the process of crossing scenes The motion trajectory in the coordinate system is continuous, and the user interface completes the Coordinate system The interactive controller pose value of the pose conversion between the s2 coordinate system Ψ2 Sent to scene instance s2, assigned to the instantiated interaction controller, and o 1,l The clone of is set to the state of being picked up by this interaction controller. The interaction controller pose value is changed from Coordinate system The method of converting to the s2 coordinate system Ψ2 is: first, determine the real-time pose of p1 Coordinate system The rotation and translation relationship with the p1 field of view coordinate system. According to this relationship, the interactive controller posture value changes from Coordinate system Convert to p1 field of view coordinate system From the p1 field of view coordinate system With the reference audience field of view coordinate system The transformation relationship The interactive controller pose value is further converted to the reference audience field of view coordinate system, from the s2 coordinate system Ψ2 to the reference audience field of view coordinate system The inverse transformation of the rotation, translation and scaling relationship H2 is used to further obtain the pose value of the interactive controller in the s2 coordinate system Ψ2
[0103] o 1,l In the process of moving from s1 to s2, in order to avoid size mutation, if o 1,l The size is H, you can choose to set o 1,lThe size of the clone in s2 is Thus, o in s1 1,l With o 1,l The clone in s2 is presented in the combined scene The scale is the same as in. It is also possible to calculate o 1,l The distance δ between the clone in s2 and the boundary of the imaging interval of s2 is set as a threshold δ T , when δ≥δ T ,but The size of is H, when δ<δ T ,but This enables the cross-scenario process to 1,l Gradual change of size. By setting the scale of the interactive controller in the same way, the interactive controller can be displayed in the combined scene with the same scale or with a gradual change of scale when crossing scenes.
[0104] In o 1,l When entering s2 from s1 but not completely, the user interface of p1 will transmit the position and interaction operation of the interactive controller to both s1 and s2. 1,l After entering s2 completely, the user interface of p1 no longer transmits the position and interaction operation of the interactive controller to o in s1 and s2 1,l The clone replaces the original o in s1 1,l Appear in the combination scene middle.
[0105] 3) Operation 1,l Trigger further response from s2
[0106] When the o in s1 1,l After moving into s2, it directly triggers further response from s2 or user p1 continues to perform operation o 1,l Other responses that trigger s2 are conventional means, and their specific implementation will not be described here.
[0107] Interaction type 2: Through the interactive operation of user p1 in s1, the object in s1 is launched to s2, triggering a response in scene s2.
[0108] The specific implementation of emitting light / indicator line / user line of sight from s1 to s2 is as follows.
[0109] 1) Emit light / indicator line / user line of sight in s1
[0110] The specific implementation is the same as the first embodiment.
[0111] 2) The light / indicator line / user’s line of sight emitted from s1 enters s2
[0112] Based on the launch point And the launch direction Calculate the optical path of the light / indicator line / user's sight. When the light / indicator line / user's sight enters the p1 field of view display interval The corresponding imaging interval in s1 That is, the optical path and If there is an intersection, the light / indicator line / user line of sight enters scene instance s2. Get the emission starting point And the launch direction In order to ensure that the light path of the light / indicator line / user line of sight is consistent in the combined scene coordinate system during the cross-scene process, it is necessary to transform the coordinate system Ψ1 of the s1 coordinate system and the coordinate system Ψ2 of the s2 coordinate system according to the rotation, scaling and translation relationship. From Ψ1 to Ψ2 coordinate system, specifically, from s1 coordinate system Ψ1 to Coordinate system The rotation and translation relationship of p1 is determined by its real-time position. Coordinate system To p1 field of view coordinate system The rotation and translation relationship of p1 field of view coordinate system With the reference audience field of view coordinate system The transformation relationship s2 coordinate system Ψ2 to reference audience field of view coordinate system The inverse transformation of the rotation, translation and scaling relationship H2 finally and Convert to the s2 coordinate system to get the starting point of the light / indicator line / user line of sight in the s2 coordinate system With the launch direction s1 sends a message to s2 that "light / indicator line / user's line of sight enters across the scene" in is the resource ID number of the light / indicator line / user line of sight source, M2 is the message ID number, after s2 receives this message, s2 responds according to the ID number Instantiate an emission source, which generates light / indicator line / user line of sight, and the starting point is The emission direction is Thus, the light / indicator line / user sight emitted from s1 enters s2, and when user p1 is in the combined scene In the immersive experience, the light path of the light / indicator line / user line of sight from s1 to s2 is continuous and consistent. And due to the changing posture of p1, the display range of p1 field of view The corresponding imaging interval in s1 The p1 pose is recalculated in real time according to the constant changes of And further determine whether the optical path of the light / indicator line / user's line of sight is still consistent with If there is still an intersection, s1 will transform the starting point and direction of the light / indicator line / user's line of sight through the coordinate system of s1 coordinate system Ψ1 and s2 coordinate system Ψ2 in real time, and transmit it to s2 in real time. S2 will update the starting point and direction of the light / indicator line / user's line of sight in real time. When there is no longer any intersection, s2 destroys the emission source.
[0113] The starting point of the light / indicator line / user sight in s2 may be outside the imaging interval Ω′2, so the light / indicator line / user sight in s2 may not be generated or blocked by the content that is not in the imaging interval Ω′2 of s2, so that the light emitted in s1 is not in the combined scene. The light path is interrupted, and further improvement is made. At any time t k , the light / indicator line / user line of sight emission starting point is The emission direction is When s1 determines that the light enters the display interval of p1 field of view The corresponding imaging interval in s1 When s1 calculates the light / indicator line / user line of sight and The first intersection point τ of the boundary, obtain the position of τ in the s1 coordinate system Ψ1 In order to ensure the continuity of the light path of the light / indicator line / user line of sight in the combined scene coordinate system during the cross-scene process, according to the rotation, scaling and translation relationship between the s1 coordinate system Ψ1 and the s2 coordinate system Ψ2, the transformation is obtained The coordinate value in the s2 coordinate system Ψ2 is The attitude angle corresponding to Ψ2 is s1 sends a message to s2 that "light / indicator line / user's line of sight enters across the scene" s2 According to ID number Instantiate an emission source, which generates light / indicator line / user line of sight, and the starting point is With the emission direction This ensures that user p1 has a good understanding of the combined scenario In the immersive experience, the light / indicator line / user line of sight crosses from the display area Ω1 to Ω2, and the light path is continuous. It is also necessary to recalculate in real time based on the p1 pose. And further determine whether the optical path of the light / indicator line / user's line of sight is still consistent with There is an intersection. When there is still an intersection, s1 calculates and The first intersection point τ of the boundary, the emission direction of the light / indicator line / user line of sight and the position of τ are transformed through the coordinate system Ψ1 of s1 and the coordinate system Ψ2 of s2, and then transmitted to s2 in real time. S2 updates the starting point and direction of the light / indicator line / user line of sight in real time; when the optical path of the light / indicator line / user line of sight is When there is no longer any intersection, s2 destroys the emission source.
[0114] 3) The emitted light / indicator line / user’s line of sight triggers further response from s2
[0115] When the light / indicator line / user's line of sight collides with an object in s2, further response of s2 may be triggered directly or under the operation of the user. Its implementation is a common technical means and will not be explained here.
[0116] When the object launched is a bullet or a shell with obvious motion process, let the launched object use o 1,l Indicates that 1,l The specific implementation method of entering scene s2 trigger and triggering further response is as follows.
[0117] In s1, use your bare hands or a launcher to move o 1,l Launching is a common technical method, which will not be explained here. On this basis, at any time t k , when s1 determines that o 1,l Enter the p1 field of view display area The corresponding imaging interval in s1 When getting o 1,l The pose in the s1 coordinate system Ψ1 speed and direction of movement In order to ensure that the object's motion trajectory is continuous in the combined scene coordinate system during the cross-scene process, according to the rotation, scaling and translation relationship between the s1 coordinate system Ψ1 and the s2 coordinate system Ψ2 (this relationship changes with the position of p1, and the specific implementation of the conversion based on this relationship has been described in the previous article), the conversion is obtained 1,l Pose in s2 coordinate system Ψ2 speed and direction of movement S1 sends a message to S2 that an object was thrown across scenes. in for o 1,l The resource ID number of M1 is the message ID number of "the object is thrown across the scene". After s2 receives this message, s2 instantiates an o 1,l The clone of speed and direction of movement Assign to o 1,l The clone of s1 hides o 1,l . o 1,l During the movement, it collides with other objects in s2, triggering other activities in s2 to respond. 1,l Avoid presenting in combined scenes during cross-scene process The inner scale suddenly changes, in s2 o 1,l The clone scale setting refers to the object scale setting of type 1.
[0118] Interaction type 3: User p1 connects object o in s1 through wiring and other methods. 1,l and object o in scene s2 2,l Connect, user p1 in the combined scene In the display interval Ω1, for object o 1,l Perform interactive operations, which will trigger object o in scene s2 2,l The response of object o in s1 1,l and object o in scene s2 2,l The connection is presented in the combined scene There must be continuity within.
[0119] Since the rotation, translation and scaling relationship between the s1 coordinate system Ψ1 and the s2 coordinate system Ψ2 changes with the position of p1, the cross-scene connection is consistent with the o in s2. 2,l The position of the connecting point converted to the s1 coordinate system is constantly changing with the posture of p1. Similarly, this connecting line in s1 is connected to o 1,l The position of the connection point converted to the s2 coordinate system also changes with the position of p1, so both s1 and s2 need to update the position of the connection point of the cross-scene connection in real time according to the position of p1. On this basis, combined with the specific implementation of the interaction type three of the first invention embodiment, it is easy to obtain the specific implementation of the interaction type three of this embodiment, which will not be repeated here.
[0120] The posture conversion between coordinate systems and the system structure can be further described in detail in references [7] and [8]. In this embodiment, since the sub-scene s2 is presented in the combined scene through the live broadcast screen, the content presented by the sub-scene s2 does not change with the posture of the user p1. In the first to third embodiments, the content presented by the sub-scene changes with the posture of the user.
[0121] Fifth embodiment
[0122] On the basis of the first to fourth embodiments, the above-mentioned implementation methods are combined, and the sub-scenes in the combined scene can be presented in the combined scene experience screen in the same way or in different ways. The method is one or more of the following methods: the sub-scene generates a stereoscopic visual live screen and then synthesizes it with the stereoscopic visual screens of other sub-scenes in the combined scene to obtain a combined scene experience screen, the sub-scene generates an immersive experience screen for the user according to the real-time posture of the user and then synthesizes it with the stereoscopic visual screens of other sub-scenes of the combined scene to obtain a combined scene experience screen, the sub-scene generates three-dimensional scene information in real time and then loads it into the combined scene, and the sub-scene is directly rendered together with other parts or all other contents of the combined scene to generate a stereoscopic visual screen. When image synthesis is required, image synthesis can be performed in the cloud, or in the user terminal, or partially in the cloud and the remaining part in the user terminal. Combining the specific implementations of the first to fourth embodiments, it is easy to obtain the specific implementation of this embodiment.
[0123] Sixth embodiment
[0124] In step S20 of the first to fifth embodiments, when the timestamps of the rendered images between sub-scene instances are not synchronized, the optical path and the connection lines between objects in different scenes may be broken during the process of light / indicator line / user line of sight crossing the scene. When the object crosses from sub-scene s1 to sub-scene s2 but does not cross completely, the parts of the object in different scenes will be misplaced. In order to avoid the problem of breakage or misplacement, the first to fifth embodiments are improved, the specific implementation of step S20 is adjusted, and the sixth embodiment is given. The specific implementation is as follows.
[0125] For type 1 cross-scene interaction, when object o 1,l When entering s2 from sub-scene s1, even if o 1,l The overall outline does not enter the display interval of s2 in the combined scene or in the display interval of the user's field of view, and is hidden in s1. 1,l , s2 renders to generate binocular stereo vision images, complete rendering o 1,l The interactive controller between the clone and user p1 is not constrained by the imaging interval Ω′2, thus avoiding the problem of misalignment due to asynchronous timestamps when different scenes render parts of the same object. 1,l When entering s2 from subscene s1, o is not hidden in s1 1,l , s1 rendering o 1,l Not restricted by the imaging interval, and s2 is set not to render when rendering the screen 1,l (But 1,l Still exists in s1), it can also avoid the above-mentioned problems, where setting an object in the scene to exist but not be rendered is a function that is easy to implement in engines such as unity3D.
[0126] For type 2 cross-scene interaction, when the light / indicator line / user sight line emitted by s1 enters s2, s1's rendering of this light / indicator line / user sight line is not constrained by its imaging interval, and s2 is set not to render the light / indicator line / user sight line emitted by s1. Conversely, when the light / indicator line / user sight line emitted by s1 enters s2, s1 is set not to render this light / indicator line / user sight line, and the rendering of this light / indicator line / user sight line in s2 is not constrained by the imaging interval. Similarly, when object o 1,l When s1 is emitted to s2, o 1,l In one scene, the full rendering is not constrained by the imaging interval, and in the other scene, no rendering is performed.
[0127] For type three cross-scene interactions, the cross-scene connections are fully rendered in only one of the scenes without being constrained by the imaging range, and are not rendered in the other scene.
[0128] Seventh embodiment
[0129] The sub-scene of the combined scene can also be a real scene or a virtual-real mixed scene. Users can use the real objects in the real scene or the virtual-real mixed scene s1. 1,l The difference between the cross-scene interactive operation on the virtual objects of other sub-scenes s2 and the first to sixth embodiments is that in the first to sixth embodiments, the object o used for cross-scene interaction 1,l is virtual, and in this embodiment o 1,l is a real object. The first to sixth real-time examples are improved. In the specific implementation of cross-scene interaction, the user uses the real object o in s1 1,l The virtual objects of other sub-scenes s2 are operated across scenes. 1,l When cloning a body, the system first identifies and reconstructs it in three dimensions in the user interface. 1,l Send to s2, s2 reads and loads o 1,l The reconstructed three-dimensional model is based on the 1,l The identification information of the 3D model is bound to the prefabricated functional logic, so as to realize the S2 to O 1,l In addition, users can use virtual objects in the virtual-reality mixed scene s1 1,l Perform cross-scene interactive operations on virtual objects in other sub-scenes s2.
[0130] In addition, to achieve the above-mentioned objectives, the present invention proposes a cross-scene interaction system for XR combination scenes, the system comprising a memory, a processor, and a cross-scene interaction method program for XR combination scenes stored on the memory, the cross-scene interaction method program for XR combination scenes being executed by the processor when the cross-scene interaction method for XR combination scenes described in all the above-mentioned embodiments is executed.
[0131] To achieve the above objectives, the present invention also proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is called by a processor, the cross-scene interaction method for XR combined scenes described in all the above embodiments is executed.
[0132] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Equivalent structures or equivalent process changes made by the scheme using the contents of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
[0133] References
[0134] [1] Patent application number 202310228496.7 “Teaching method, system and medium based on immersive XR smart classroom”
[0135] [2] "A new dimensional space construction method, system and platform based on XR technology" (application number CN202210022608.9),
[0136] [3] Patent application "Ubiquitous training campus construction method, system and storage medium based on XR technology" (application number: CN202210908795.0),
[0137] [4] Patent application “A method, system and storage medium for generating XR combined scene experience” (Application No. 2023110288353),
[0138] [5] Patent application “A method, system and medium for generating combined scene experience based on XR technology” (application number 2023110286220)
[0139] [6] The method described in “A method, system, terminal and medium for generating XR combined scene experience images” (Application No. 2023112052542).
[0140] [7] “Method, system and medium for constructing immersive interactive live broadcast based on XR technology” (Application No. 202210906282.6)
[0141] [8] "A method, system, host terminal, client terminal and medium for constructing XR stereoscopic interactive live broadcast" Application No. 2023110283716
[0142] [9] "A method, system and storage medium for building an immersive classroom based on XR technology" (application number 202210427227.9)
[0143]
[10] “Method, system and storage medium for building an immersive command center” (application number 202210908758X).
Claims
1. A cross-scenario interaction method for extended reality (XR) combined scenarios, It is characterized in that A combined scene is constructed by combining two or more single-person experience scenes and / or multi-person collaborative experience scenes. The combined scenes are sub-scenes of the combined scene. The three-dimensional spaces corresponding to different sub-scenes are different. The three-dimensional spaces are different in that at least one of the objects contained in the three-dimensional space, the object states, the object's own operating logic, and the logic of interaction between objects is different. Each sub-scene has its corresponding scene instance. When a single scene has multiple users experiencing it at the same time, if the computing resources available to a single scene instance cannot generate experience screens for all users in real time, it is necessary to generate multiple scene instances for this scene and allocate them to each user. Communication connections are established between these scene instances to synchronize the object states in the scene. Each scene instance generates an experience screen for the corresponding user in real time, so that each user can share and experience this scene. In the combined scene, the user uses any object in the first sub-scene Through interactive operations, the response of the second sub-scene is triggered, and the system generates an XR combined scene cross-scene interactive experience screen for the user, where the sub-scenes of the combined scene are one or more of real scenes, virtual scenes, and virtual-real mixed scenes, and the first sub-scene and the second sub-scene are any two sub-scenes in the combined scene. The cross-scene interactive experience screen of the combined scene simultaneously presents the contents of the first sub-scene and the second sub-scene, and presents the process in which the user uses the object in the first sub-scene to trigger the response of the second sub-scene through interactive operation. The response of the second sub-scene is one of the following responses: the object of the first sub-scene is moved by the user to the second sub-scene, the object of the first sub-scene is moved by the user to the second sub-scene and directly triggers a further response of the second sub-scene, the object of the first sub-scene is moved by the user to the second sub-scene and triggers a further response of the second sub-scene under the interactive operation of the user, and the light / indicator line / user line of sight of the first sub-scene is moved. The first subscene enters the second subscene, the light / indicator line / user line of sight of the first subscene shines on the object of the second subscene and directly triggers the further response of the second subscene, the light / indicator line / user line of sight of the first subscene shines on the object of the second subscene and triggers the further response of the second subscene under the operation of the user, the object of the first subscene is launched into the second subscene, and the object of the first subscene collides with the object in the second subscene after being launched into the second subscene, triggering the further response of the second subscene, the second subscene generates a connection with the object of the first subscene, and the object in the second subscene responds to the message or instruction of the object of the first subscene connected to it.
2. According to the cross-scenario interaction method of claim 1, It is characterized in that When the object of the first subscene is moved by the user to enter the imaging interval of the second subscene in the three-dimensional interval corresponding to the first subscene or the display interval of the second subscene is in the three-dimensional interval corresponding to the first subscene, a response of the second subscene is triggered; or when the light / indicator line / user sight of the first subscene enters the imaging interval of the second subscene in the three-dimensional interval corresponding to the first subscene or the display interval of the second subscene is in the three-dimensional interval corresponding to the first subscene, a response of the second subscene is triggered, wherein the display interval is the display interval of the second subscene in the combined scene or the display interval of the user's field of view.
3. According to the cross-scenario interaction method of claim 2, It is characterized in that In the cross-scene interactive experience screen, the movement trajectory of an object from the first sub-scene into the second sub-scene remains continuous, or the light path of the light / indicator line / user line of sight from the first sub-scene into the second sub-scene remains continuous, or the connection line between the objects in the first sub-scene and the second sub-scene remains continuous.
4. The cross-scenario interaction method according to any one of claims 1 to 3, It is characterized in that The cross-scene interactive experience screen includes left and right eye images. In the three-dimensional information contained in the cross-scene interactive experience screen, the light path of the light / indicator line / user line of sight from the first sub-scene to the second sub-scene remains continuous, or the connection line between the objects in the first sub-scene and the second sub-scene remains continuous, or in the generated cross-scene activity experience screen sequence, the movement trajectory of the object from the first sub-scene to the second sub-scene remains continuous.
5. According to the cross-scenario interaction method of claim 4, It is characterized in that In the cross-scene interactive experience screen generated by the system for the user, the size of an object does not change suddenly when it enters the second subscene from the first subscene, and its shape is complete and not misplaced. The content presented in any subscene changes with the user's posture or does not change with the user's posture.
6. According to the cross-scenario interaction method of claim 5, It is characterized in that Any sub-scene within the combined scene can be synchronized in state with scenes experienced by other users; the scene content of the second sub-scene presented in the combined scene is constrained by the imaging interval or the display interval, and the display interval is a three-dimensional interval defined under the combined scene or the user's field of view.
7. According to the cross-scenario interaction method of claim 6, It is characterized in that First subscene object The method of appearing in the second sub-scene is: calculating the 3D imaging interval corresponding to the display interval of the second sub-scene in the combined scene in the first sub-scene coordinate system, or calculating the 3D imaging interval corresponding to the display interval of the second sub-scene in the user's field of view in the first sub-scene coordinate system, when the first sub-scene object When the object enters the three-dimensional imaging interval, Enter the second sub-scene, the second sub-scene generates objects a clone of the first subscene; the way in which the light / indicator line / user sight of the first subscene enters the second subscene is: calculate the three-dimensional imaging interval corresponding to the display interval of the second subscene in the combined scene in the first subscene coordinate system, or calculate the three-dimensional imaging interval corresponding to the display interval of the second subscene in the user field of view in the first subscene coordinate system; when the light / indicator line / user sight of the first subscene enters the three-dimensional imaging interval, the light / indicator line / user sight of the first subscene enters the second subscene, and the second subscene clones this light / indicator line / user sight.
8. The interactive method according to claim 7, It is characterized in that The virtual handle and virtual hand can move from the first sub-scene to the second sub-scene. The display interval of the second sub-scene completely enters the three-dimensional imaging interval corresponding to the coordinate system of the first sub-scene, and the first sub-scene hides the object , objects in the second subscene The clone completely replaces the object in the first subscene Appears in the combined scene, and in addition, when the object When entering the second sub-scene from the first sub-scene, the object The initial pose of the clone in the second sub-scene has the same pose value in the combined scene coordinate system as the first sub-scene object. The pose values are the same in the combined scene coordinate system; when the light / indicator line / user sight of the first sub-scene enters the second sub-scene, the optical path of the light / indicator line / user sight of the first sub-scene in the combined scene coordinate system is the same as or overlaps with the optical path of the clone of the second sub-scene; wherein, the sub-scenes in the combined scene can be presented in the combined scene experience screen in the same way or in different ways, and the method is one or more of the following methods: the sub-scene generates a stereoscopic visual live screen and then synthesizes it with the stereoscopic visual screens of other sub-scenes in the combined scene to obtain a combined scene experience screen, the sub-scene generates an immersive experience screen for the user and then synthesizes it with the stereoscopic visual screens of other sub-scenes of the combined scene to obtain a combined scene experience screen, the sub-scene generates scene three-dimensional information in real time and then loads it into the combined scene, and the sub-scene is directly rendered together with other parts or all other contents of the combined scene to generate a stereoscopic visual screen.
9. A cross-scenario interactive system for XR combined scenarios, It is characterized in that The system includes a memory, a processor, and a cross-scene interaction method program for XR combined scenes stored in the memory, and the cross-scene interaction method program for XR combined scenes is executed by the processor to perform the method described in any one of claims 1 to 8 when executed.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is called by the processor, the cross-scene interaction method for XR combined scenes according to any one of claims 1 to 8 is executed.
