Real-time potentially visible collection for streaming rendering
By using forward rendering technology and camera offset space to calculate potentially visible sets on the client, the visual jitter and de-occlusion artifact issues of streaming rendering in VR are solved, achieving high-quality, smooth rendering effects suitable for HMD and mobile device.
Patent Information
- Application Number
- CN201780097048.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2017-11-02
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2037-11-02
AI Technical Summary
Existing technologies struggle to achieve high-quality streaming rendering in virtual reality (VR), especially on head-mounted displays (HMDs), and suffer from visual jitter, de-occlusion artifacts and quality loss, especially on mobile devices When the rendering capability is insufficient and the delay is large.
It adopts switching from 3D data to forward rendering technology on the client, calculates the potential visible set (PVS) through the camera offset space, and preprocesses the triangle data on the server, transmits only the required polygons, reduces the rendering burden on the client, and utilizes Depth buffer simple rendering.
It achieves high-quality and smooth streaming rendering on HMD, reduces de-occlusion problems, reduces rendering delays, improves rendering performance, and is suitable for mobile devices.
Smart Images

Figure CN111373446B
Abstract
Description
Technical Field
[0001] The present invention relates to a method and apparatus for streaming rendering. Background Art
[0002] Real-time graphics require ever-increasing processing power. The recent boom in virtual reality (VR) has amplified this demand. To provide an immersive experience in VR, applications must provide high visual fidelity at high resolution and very high frame rates for both eyes when using a head-mounted display (HMD). Even recent high-end graphics processing units (GPUs) cannot meet this demand.
[0003] While tethered HMD systems support high-quality graphics and responsiveness when connected to high-end computers, a smooth user experience requires methods for avoiding visual judder. Asynchronous SpaceWarp [http: / / developer.oculus.com / blog / asynchronous-spacewarp] is such a technique: it updates the current frame at presentation time, transforming the last depth and color buffers according to recent head movement in order to mask small movements and make the user experience smoother. However, this technique is only correct for rotations, suffers from quality loss if the image is not significantly oversampled, and introduces tearing artifacts due to deocclusion caused by translational movement.
[0004] A concurrent trend has developed around using readily available mobile devices (such as mobile phones) directly as untethered HMDs. While there are advantages to computing rendering directly on the HMD, such as the availability of sensor data, the rendering capabilities provided by mobile chips are insufficient for high-quality content. Due to thermal constraints and limited battery power, it is unlikely that mobile GPUs will reach parity with desktop GPUs. As a remedy, untethered HMDs can be combined with remote servers as rendering devices (e.g., in the cloud or Wi-Fi connected desktop computers). However, Wi-Fi connections increase rendering latency by up to 100ms, and wide area connections increase rendering latency by up to 200ms. In order to increase mobility and keep the cost of gaming systems low by removing wired connections, various methods for reducing the negative impact of this high latency during remote rendering have been proposed.
[0005] Independent of setting up a powerful server and using another device (i.e., client) to display the exact scene, the previously proposed systems adopt similar concepts. At their core, they use image-based rendering techniques as outlined in a recent survey [Shu Shi and Cheng-Hsin Hsu. 2015. A Survey of Interactive Remote Rendering Systems. ACM Comput. Surv. 47, 4, Article 57 (May 2015), 29 pages. h.ps: / / doi.org / 10.1145 / 2719921]. The server delivers any number of images created for the previous view, a speculated new view, or a close-up view to the client; the client picks up one or more views and warps them according to the intermediate camera movements. Depending on the warping technique, the resulting new views can take into account depth information and de-occlusion, and can even speculatively fill in uncovered scene areas with imaginary content.
[0006] Image-based methods always suffer from the following drawbacks: fine scene structure and high-frequency information coexisting with large depth discontinuities poses difficult problems to overcome. While undersampled high-frequency content during normal rendering will "only" result in aliasing artifacts, warping techniques will significantly make these problems worse, as they reproject already underrepresented information onto a new sampling grid. Furthermore, when transferring or recovering depth information, undersampling of objects will result in disconnected parts after reprojection. Similarly, when large depth discontinuities are present in the scene, deoccluded areas will typically result in clearly visible artifacts. Summary of the invention
[0007] Therefore, an object of the present invention is to provide a method and apparatus for providing high-quality streaming rendering in real time.
[0008] This object is achieved by a method and an arrangement according to the independent claims. Advantageous embodiments are defined in the dependent claims.
[0009] According to one aspect of the invention, it is proposed to switch from an image-based approach to 3D data to a forward rendering technique on the client. Instead of distorting pixels from the previous frame, the client simply renders polygons, such as triangles, much like a traditional rendering system.
[0010] To reduce the rendering burden on the client, triangle data is pre-processed and shaded on the server, and only those polygons potentially required for rendering must be delivered to the client before they are needed.
[0011] To this end, the present invention introduces a camera offset space, which provides information about a given point or sampling position on the image plane under which camera offset the point is covered by a given polygon. By constructing the camera offset space for each pixel position, it is shown how the entire PVS of a rasterized image can be calculated for a translational camera movement. By raising the camera offset space by another two dimensions, it is shown how it can be used to calculate the PVS for arbitrary sampling positions and rotational camera movements. An implementation of the entire PVS calculation for current GPUs is provided by using a combination of rendering pipeline stages and calculation mode execution.
[0012] Compared to the prior art, the method of the present invention does not have any problem with deocclusion, because the entire PVS is transmitted to the client. Rendering on the client does not involve complex geometry construction from the depth buffer, single-step traversal of the depth image, or the requirement of proxy geometry. With the depth buffer, the PVS is simply rendered in terms of polygons. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] These and other aspects of the present invention will become more apparent when the following detailed description is studied in conjunction with the accompanying drawings, in which
[0014] Figure 1 a shows a streaming rendering method implemented on a server according to the first embodiment of the present invention.
[0015] Figure 1 b shows a method for rendering streamed graphics data received from a server.
[0016] Figure 2 Some examples of triangle constellations and camera offset space constellations are shown.
[0017] Figure 3 It is shown how the potentially visible set for a 3D area can be calculated over the 2D area for all edges as the rotation angle decreases (view from above).
[0018] Figure 4 Example steps of the proposed progressive visibility resolution algorithm are shown.
[0019] Figure 5 The pseudo code is used to illustrate a method for progressive visibility resolution according to an embodiment of the present invention, wherein the example steps are for Figure 4 Some triangles in .
[0020] Figure 6 Six possible cases where there are no contour intersections are shown.
[0021] Figure 7 A method for streaming rendering according to another embodiment of the present invention implemented on a server is shown.
[0022] Figure 8 Shown are example views of a large outdoor scene (4.6M triangles) recorded during different use case scenarios. DETAILED DESCRIPTION
[0023] Figure 1 a shows a method for streaming rendering implemented on a server according to a first embodiment of the present invention. In step 110, a potentially visible set (PVS) of polygons (triangles) is determined in real time using graphics data including polygons (triangles) and a current camera view as input.
[0024] According to the present invention, given a set of potential camera views or motions, the method determines whether an object can be sampled at a given position on the screen. By extending the method to all sampling positions on the screen, and further to all positions in between, the visibility of all objects can be determined relative to all other objects under all camera motions.
[0025] The potentially visible set of polygons is augmented with shading data in step 120. The resulting graphics data is encoded and sent or transmitted to the client in step 130.
[0026] Figure 1 b shows a method for rendering streamed graphics data received from a server. In step 140, the graphics data is decoded. In step 150, the decoded graphics data is rendered using information representing the user's head movement, for example, from which the user's current view perspective is updated.
[0027] To illustrate how to take a rendering stream of triangles without connections or correspondences to objects as input and construct a PVS from that data stream alone, a single triangle T in clip space = (p0; p1; p2), where p i =[x i y i z i w i ] T , and camera movements within the 3D cube region are considered as the first example. Let the supported camera movements be defined around the current camera position and describe a cube defined as 0±C in camera space, where C corresponds to the camera offset for which the PVS should be calculated.
[0028] The projection of a triangle is described as the projection of the edges of the triangle corresponding to planes in the (x, y, w) subspace of clip space. i The plane is given by the pairwise cross products of the x, y, and w coordinates of the vertices:
[0029]
[0030] in For the sampling position [x s y s ] T , we can test whether the sample location is covered by the triangle, thus determining its position relative to all three side planes.
[0031]
[0032] Then the triangle covers the samples. Point · The dot product of the indicated vectors.
[0033] Taking into account potential camera movement The camera (view) matrix is changed. For the previous view matrix V, the changed view matrix V' is given by the following equation:
[0034]
[0035] The point in object space p0 is transferred to its clip space using the model (M), view (V), and projection matrices (P):
[0036] p=P·V·M·p0
[0037] For potential camera movement and perspective projection, with near plane distance n, far plane distance f, and near plane size (2r, 2t), the position of a point in clip space is given by:
[0038]
[0039] Considering the previous discussion, only the x, y, and w coordinates of the point are relevant, so zz and zw, which are used to adjust the depth range of the projected point, can be ignored:
[0040]
[0041] For any camera offset in C, let
[0042]
[0043] Without loss of generality, consider the camera movement on e 12 The plane equation of the side e1′2 passing through two points p1′ and p2′ evolves as follows:
[0044]
[0045] Given a sample s = [s x s y 1]T (relative to the moving camera) to edge e′ 12 Distance This is given by the following equation:
[0046]
[0047] For s as the sampling position on the screen, the edge e′ 12 The offset Δ that coincides with fragment s is given by In other words, those camera offsets where the fragments move outside the triangle edges. It can be clearly observed that for a given triangle T and a given point s, corresponds to a plane in 3D space on Δ. This space is the camera offset space.
[0048]
[0049] in
[0050]
[0051] If only 2D camera offsets are allowed, ∆ w = 0, i.e., from the visibility of the plane, the offset space becomes 2D, and Corresponds to the line.
[0052] Consider not only one edge e 12 , and considering all three triangle edges, it becomes apparent that The combination of forms a tetrahedron in the 3D offset space and a triangle in the 2D offset space. Let the volume of the tetrahedron / coverage area of the triangle be denoted as T Δ . T Δ Describes for which camera offsets, fragment s will be covered by triangle T.
[0053] Similar to transferring triangles into camera offset space, we can also consider points in COS, that is, calculate at which offsets the projection of the vertex exactly coincides with the sample position. To calculate the normalized device coordinate (NDC) representation of a point in clip space, we only need to perform perspective division:
[0054]
[0055] Combining with equation 2 and Δ yields:
[0056]
[0057] For 3D offset space considering visibility from a cubic region, these two equations describe the line. For visibility from a flat region, that is, ∆ w =0, the equation describes a single point.
[0058] While the camera offset space provides information about at which offsets a fragment is covered by a triangle or just fits the projection of a vertex, it does not take into account the maximum supported camera motion. A camera motion is simply a cube in 3D offset space and a rectangle in 2D offset space, both bounded by the maximum offset ±C. Therefore, visibility considerations at a given camera offset should be limited to ±C.
[0059] By analyzing the derived equations, we can draw the following conclusions about COS: First, triangles farther from the camera cover a larger volume / area in COS. This is not surprising because objects far from the camera move less when the camera moves. This is exactly the opposite of the area covered by triangles when they are projected on the screen. Second, larger triangles at the same distance cover a larger area / volume than smaller triangles. This is also intuitive because larger triangles cover sampled locations under larger camera movements than smaller triangles. Third, along Δ w Stepping, with the cross section of the x / y plane increasing in size in COS. This effect describes that as the camera gets closer to a triangle, the projection of that triangle becomes larger and covers the sample position at a larger offset in x / y.
[0060] Figure 2 Some examples of triangle constellations and camera offset space constellations are shown. The most important fact about COS is that the volume / area of a triangle corresponds to the maximum camera offset it covers for a given fragment, regardless of the projected size of the triangle. At the same time, the maximum supported camera offset corresponds to a simple rectangle / cube. The combination of these facts allows for efficient visibility calculations in COS.
[0061] More specifically, Figure 2 (a) shows an example of projecting two triangles t1 and t2 with equal view space size. In (b) it is shown that closer triangles will be larger after projection. In (c) it is shown that when 2D COS is calculated for the marked sampling points, the relationship is reversed, as the distant triangles cover the samples for the larger offset. The rectangle shows the maximum supported camera offset for which triangle t1 completely covers triangle t2.
[0062] The camera offset space also helps in computing visibility between triangles for a single sampling position. To evaluate the potential visibility of two triangles T and Q at a patch s under possible camera offsets Δ, determine T Δ and Q Δ , that is, T Δ and Q Δ is embedded into the camera offset space. By using ±C (its volume / area in the offset space should be represented as CΔ ) Δ With Q Δ Three cases can be distinguished:
[0063] (1)T △ ∩Q △ ∩C △ =T △ ∩C △
[0064] (2)T △ ∩Q △ ∩C △ =Q △ ∩C △
[0065] (3) None of the above two situations.
[0066] In case (1), T Δ The internal part of ±C and Q Δ overlap, i.e., for every camera offset that samples T, Q will also be sampled. Therefore, if Q is closer to the camera for all those samples, then T will never be visible at sample s. In case (2), the relationship of the triangles is reversed, and if T is closer, then Q will never be visible. In case (3), both triangles can produce visible samples at s at different camera offsets.
[0067] Clearly, this already points to the fact that when considering visibility in COS, there is no need to explicitly distinguish between occluders and preceding occluded objects, since the relationship of the covered space in COS allows to be considered as either an occluder or an occluded object.
[0068] Determining whether a triangle is in front of another triangle in COS corresponds to determining the exact depth value that the triangle will generate for a fixed sample on the image plane at all camera offsets. To calculate this depth value, consider the formula described in uniform rasterization [Marc Olano and Trey Greer. 1997. Triangle scan conversion using 2D homogeneous coordinates, in Proceedings of the ACM SIGGRAPH / EUROGRAPHICS Symposium on Graphics Hardware, ACM, 89-95]. For a triangle at sample position s, the interpolated 1 / w component (which can be interpreted as the inverse of the depth) is:
[0069]
[0070] Taking the camera offset into account, the formula expands to:
[0071]
[0072] Solve this equation for w by taking the transposed adjoint matrix and computing the inverse of the determinant s , many of the terms cancel out to give:
[0073]
[0074] d x d y d w and d adj are all functions of (p0, p1, p2, s) and are therefore constant for a given triangle and a certain sampling position. The structure shows that by adding depth information to extend the 3D COS to 4D and the 2D COS to 3D, the triangles / tetrahedrons are embedded on flat hyperplanes in the corresponding spaces. This result allows two conclusions to be drawn. First, for each point in COS, there is a constant in both 2D and 3D COS (Δ w =0), the corresponding depth value can be efficiently calculated using Equation 9. Second, the 2D COS can be viewed as an orthogonal projection of a triangle from 3D space with a third dimension corresponding to depth. Determining visibility in this orthogonal projection within ±C results in visibility of the triangle in question at a given sampling position. Although more difficult to visualize, the same considerations apply to the 3D COS where depth forms the fourth dimension, where the orthogonal projection down to 3D results in visibility.
[0075] By applying the considerations derived for a single sample to all pixels of the rendered image, a PVS can be calculated for movement around the current camera position, taking into account occlusion between pairs of triangles. A simple union of all triangles potentially visible at any sample position will yield the entire PVS.
[0076] In order to also take into account rotational movement, the first step is to increase the field of view (fov). Therefore, sample positions to the left / right and above / below the current view are also considered. However, when rendering with a rotated camera, the sample positions will not coincide with the samples chosen with a wider fov. Although a triangle may never become visible at two adjacent sample positions in the reference view, the rotation will pick up samples between them and may reveal the triangle under consideration. When calculating the PVS, a higher sampling density can be taken into account, resulting in a good approximation of the PVS.
[0077] The intersection of many tetrahedrons may be too time-consuming, especially when taking into account the additional sampling due to rotation. Similar to previous work [Durand et al. 2000. Conservative visibility preprocessing using extended projections. In Proceedings of the 27th Annual Conference on Computer Graphics and Interactive Techniques, ACM Press / Addison-Wesley Publishing Co., 239-248], the PVS for a 3D region can also be calculated from multiple 2D regions, especially when taking into account camera rotation: For a cube primitive, visibility can be constructed for all six boundary planes by placing the camera at the center of each side plane and matching its dimensions to Δ.
[0078] Figure 3 It is shown how the potentially visible set for a 3D area (view from above) can be calculated over the 2D area for all edges as the rotation angle decreases. Specifically, the evaluated camera positions correspond to all side plane positions.
[0079] By additionally considering close to 180° fov, not only all camera positions on the cube primitive are considered, but also all viewing directions from the primitive. The union PVS of the entire side plane PVS thus matches the PVS for the cube primitive with the 360° fov (which will also require multiple passes). Using a side plane based approach allows the fov to be adjusted for more likely movements in the HMD scene (such as, for example, forward, sideways translation, and 90° roll). The envisioned algorithm thus renders the entire scene in multiple passes (fitting the desired view primitives), and delivers the PVS.
[0080] For a practical implementation of PVS that uses COS during rasterization, the COS for each pixel must be constructed and resolved. To construct the COS at each pixel location, All triangles T iAll need to be considered, that is, all triangles under any supported camera offset can cover the pixel. In order to collect all those triangles for each pixel, a list can be constructed during rendering, similar to the method used for order-independent transparency [Yang et al. 2010]. In order to be able to add all triangles that can cover the pixel to the list, they need to be enlarged before rasterization. This enlargement obviously depends on the maximum camera offset C and may be larger than the size of a pixel. However, a method similar to the workaround adopted before the GPU provided hardware-supported conservative rasterization can be used [Hasselgren et al., Conservative rasterization. GPU Gems 2 (2005), 677-690].
[0081] Storing information about each triangle of a fragment that may cover each pixel in a list allows the COS to be constructed for each pixel in the following steps. As visibility considerations revolve around depth relationships, it may be beneficial to sort these lists (again similar to order-independent transparency). A fragment list entry represents an entire triangle, so all vertex positions need to be stored so that the triangle can be transformed to a COS and its depth equation can be calculated. This also means that no single depth value can be associated with an entry in the fragment list, and the COS depth ranges of the entries may overlap. Therefore, sorting can only be done approximately so that the lists are processed in a quasi-front-to-back manner. The described implementation sorts according to the minimum vertex depth that places potential occluders early in each list.
[0082] The steps described above ensure that all triangles and only those that affect visibility at a given pixel location end up in the corresponding list. As mentioned before, resolving visibility between pairs of triangles is far from enough, because only the combination of many of the front triangles can form an occluder for more distant triangles.
[0083] Therefore, occluder fusion is adopted during visibility resolution in COS. The idea of occluder fusion is commonly used for entire objects during PVS construction. The present invention proposes an efficient version for triangles that is applicable to COS, namely, merging triangles into larger connected polygons in COS. The benefits of occluder fusion are twofold. First, considering the overlap of polygons and triangles may be more efficient than considering the overlap of many triangles with one triangle. Second, the fused occluder can be used as a whole occluding triangle, while its individual parts may not be enough. In order to obtain the same occlusion information without occluder fusion, the representation of the occluded object in COS will have to be clipped separately for all occluder triangles, rather than achieving the same result.
[0084] With occluder fusion, the process corresponds mathematically to
[0085] T △fused =T △0 ∪T △1 ∪T △2
[0086] O=Q △ ∩T △fused ∩C △.
[0087] Where T Δi A fused occluder is formed, and O obtains information about potential visibility. In the absence of occluder fusion, the process corresponds to
[0088] Q' △ =Q △ \T △0 \T △1 \T △2
[0089] 0 = Q′ △ ∩C △ .
[0090] The first version is faster (if T Δfused can be reused), is computationally efficient, and allows comparison with Q Δ The main problem with the second method is that all the intermediate Q Δ \T Δi The shapes of can become arbitrarily complex, and the fused occlusions can be constructed in such a way that their shapes allow efficient testing.
[0091] By limiting the method to 2D COS (as outlined above), the first strategy can be chosen and triangles can be fused into larger occluders if they share an edge in COS. Two triangles share an edge in COS if they also share an edge in world space. Following this strategy, closed surfaces are the only objects that form larger occluders.
[0092] Figure 4 Example steps of the proposed progressive visibility resolution algorithm are shown. Active edges are drawn thicker and reference points are indicated. Active occluder contours always correspond to active edges, intersections of external active edges are ignored.
[0093] More specifically, the first triangle Q Δ is transferred to COS(a) and saved as a potential occluder O Δ,0 (b). External triangle Q Δ is immediately discarded (c). Another triangle Q Δis processed (d) and forms a second occluder O Δ,1 (e). The next triangle Q Δ Is invisible (case b)(f). The triangle Q that shares two sides Δ (g) Remove the obstruction O Δ,0 and O Δ,1 Merge into a large occluder O Δ,0 (h). Triangle O intersecting the contour Δ is saved (i).
[0094] Figure 5 The pseudo code is used to illustrate a method for progressive visibility resolution according to an embodiment of the present invention, wherein the example steps are for Figure 4 The method traverses the roughly sorted list of triangles (lines 2-47) and determines the visibility of a triangle behind other triangles. Previously checked triangles are saved as potential occluders and are merged into larger occluders if they share edges.
[0095] For each triangle, its COS representation is determined (line 3). The method then computes its COS representation with respect to C Δ overlap, discarding triangles that may be in the list but are not actually visible at the supported camera offsets. This gives the list construction method the ability to work conservatively, which is necessary due to floating point inaccuracies. Δ and C Δ If there is overlap between the edges of the triangle and C Δ intersects (line 5). Although there are more efficient ways to perform this check, additional information about the triangle edges is obtained, which is used for more efficient testing in subsequent stages of the algorithm. Edges are classified as either interior, inexact, or crossing. Interior edges are completely contained in C Δ In the figure, the crossing edge starts from C Δ External arrival. Completely in C Δ The edges outside of are marked as inactive and are ignored during the algorithm. If all edges are inactive (line 10), then the triangle is either completely inside C Δ , and will not be visible at that sampling location, or will completely cover C Δ To check the latter, one can simply plug O into the triangle's edge equation to determine if it covers the origin of the COS, similar to how rasterization on the GPU utilizes triangle edge equations.
[0096] If the triangle was not discarded during the first step, then metadata about the triangle is set (lines 11-12). This includes the triangle’s Δ Internally, in CΔ One or three points inside the triangle are called the reference points of the triangle. Δ , then we choose the origin. Otherwise, for each edge marked as inside or crossing, we choose a representative point. This is any of the endpoints of the edge (q0, q1, or q2), depending on which points are in C Δ If both endpoints are in C Δ , then we calculate the same as C Δ In addition, the coefficients required to evaluate the depth function in COS are calculated and stored for later use.
[0097] With this information at hand, the actual visibility test can be run (lines 14-35). For each triangle, it is assumed to be initially visible. It is only discarded if it is determined to be hidden by any occluder, and the method iterates through this (line 15). For each occluder, whether it covers C Δ The information is stored and overwritten by C Δ In the case of , most of the method (lines 15-30) is skipped because in the case of occluders and C Δ The triangles inside must overlap completely, and the above situation (2) applies.
[0098] If the occluder does not cover C Δ , you need to determine the Occluder △ ∩Q △ ∩C △ =Q △ ∩C △ , that is, Q Δ Is it completely in C Δ To do this, first determine the interior of the occluder between the triangle and C Δ t is the shape of the occluder triangles T. This step is significantly more efficient when it relies on edge states. Instead of explicitly saving the surrounding contours, the method saves all the occluder triangles T Δ Iterate on (line 18), and compare Q Δ All edges of C are tested against all occluder triangle edges. If any edge is inactive, the test is simply skipped. This includes not only Δ The method performs not only external edges, but also edges inside occluders, which are set to inactive when the triangles are fused (line 28). Since the outlines of the occluders are not explicitly stored, the method may do additional work in this step. However, considering GPU implementations, this choice is wise because it significantly reduces dynamic data management, storage overhead, and indirection.
[0099] To compute the relationship between two edges, we first test if they are the same (line 23), if they are the same, the method stores the information for later fusion of the triangle with the occluder being tested. Otherwise, we check if there is an intersection between the edges (lines 25-26), and check if it is in C Δ If any of the edges are marked as being inside, the method does not actually need to calculate the exact intersection point i, since it is then known that the intersection point must be inside. Only when two edges intersect does the method proceed to verify whether the intersection point is inside or outside. In the case where the intersection point is outside, it is ignored since it does not affect the Occluder △ ∩Q △ ∩C △ If it is inside, then we know Q Δ Arrive at T Δ External and C Δ Occluder within △ Therefore, the triangle is not covered by the Occluder at all camera offsets. △ occluded, and the method continues to the next occluder (line 27).
[0100] At this point in the algorithm, if no overlap is found between the outline of the occluder and the triangle being tested, there are six possible cases to consider.
[0101] More specifically, Figure 6 Show C Δ There are six possible cases where there are no contour intersections. (a,b), (c,d), and (e,f) can be distinguished based on the locations of their respective reference points:
[0102] (a)Q Δ Completely in Occluder △ Interior
[0103] (b)Q Δ Only in C Δ Inner Occluder △ Interior
[0104] (c)Occluder △ Completely in Q Δ Interior
[0105] (d) Occluder △ Only in C Δ Inner Q Δ Interior
[0106] (e)Occluder △ and Q Δ Completely disjoint
[0107] (f) Occluder △ and Q Δ Only in C Δ Internal non-intersection
[0108] To distinguish these cases, the method uses Q Δ The reference points of C and the reference points saved for each occluder (Occluder.ref in the algorithm), these reference points must be Δ The point on the interior occluder outline. If Occluder.ref is in Q Δ interior (this can also be tested in the usual way using the edge equations), then either case (c) or case (d) is true. Then, the occluder does not cover Q Δ , and the method can continue to the next occluder (line 17). The reference point of the occluder is updated after the triangle is merged with the occluder or inserted as a new occluder (line 47). In addition, the reference point of the occluder must be a point on the outline of the occluder, otherwise the method may not be able to distinguish between cases (a,b) and (c,d). The rationale behind this test is that if there is a point on the outline of the occluder and Q Δ (In C Δ There is no intersection between the interior of C Δ The point on the interior of Q Δ Inside, the entire occluder outline (in C Δ must be included in Q Δ middle.
[0109] To distinguish between (a), (b) (both of which result in Q being invisible) and (e), (f) (both of which result in Q being unoccluded), the method tests whether the triangle reference point is within the Occluder △ ∩C △ The basic principle is the same as in the previous case, just in reverse. However, since the occluder is excluded from the Q Δ So the method can choose ∈Q △ As the reference point, any point is chosen to be located at C Δ , so the method only needs to determine whether it is inside the Occluder △ However, the occluder may have a concave shape, so the test is more involved than in the first case, and it is calculated as a final check (line 32). To this end, the method iterates over all occluder triangles again and checks trivially whether the point is inside any of them. In the case that it is, it has been verified that Q △ ∩C △In Occluder △ However, for Q to be occluded, Q must be behind the occluder, which is verified using the depth equation of the occluder triangle at the reference point (line 34). This is sufficient only if the triangle does not penetrate. To support this case, Q will have to be calculated Δ and the accurate 3D constellation in COS between all occluder triangles.
[0110] If all tests show that Q is visible, then Q Δ The triangle is added to the occluders and their states are updated (lines 47-37). If the triangle shares one or more edges with other occluders, it is attached to those occluders, creating a larger fused occluder. This step can also merge up to three occluders. In addition, the method sets the shared edges to inactive so that they are not tested for edge overlap. Additionally, it checks if any of the occluder edges are still active or intersecting. If neither is the case, the occluder covers C. Δ , and the method sets a coverall flag to speed up the testing of occluders.
[0111] After all triangles have been processed, all potentially visible triangles have been inserted as occluders, and they can be directly output as PVS for sample s. When the method is sorting the list by minimum depth, potential occluders should be processed first. However, because there may be depth overlap between triangles, triangles that arrive later can cover triangles that have been marked as C. Δ To test this case, the method can test each triangle against the entire occluder list again. However, in experiments performed by the inventors, the number of additional discarded triangles became negligible.
[0112] All considerations so far have considered only individual sample positions. However, for rotations, it is necessary to consider COS for positions in between. Furthermore, if positions in between samples are processed, the visibility pass is run at a reduced resolution. For this purpose, the sample offsets δ in the other two dimensions (i.e., x and y) are used, respectively. x and δ y ) to expand COS. They form a linear offset with respect to the sampling position s, and the maximum offset of ±pixelsize / 2 ensures Figure 5 The method shown considers all possible samples on the viewport. For a point, equation (8) for 2D COS expands to:
[0113]
[0114] This corresponds to a line in 4D space. This also means that the triangle edge is along δ x and δ y Dimensions slide and rotate as they move.
[0115] Although this extension makes COS significantly more complex, Figure 5 The changes to the method shown are manageable. The main change concerns edge intersection. Instead of determining whether a triangle edge intersects with C Δ intersects (line 5), the modified method needs to determine whether it intersects with C at any δ Δ Intersect. The same applies to edge-edge intersection (line 27).
[0116] All other calculations remain the same under the following assumptions: First, the depth relationship between triangles and occluders remains the same for any δ. Penetrating triangles have been excluded for which this assumption applies. Second, for δ=0, the inside-outside test between occluders and triangles continues to all sampling offsets. This assumption applies if the silhouette-triangle intersection algorithm reports whether there is an intersection at any sampling offset. If there is no intersection, the occluder reference point check (line 17) and the triangle reference point check (line 32) can be run with δ=0 to reach a conclusion for all δ.
[0117] Edge-C under sampling offset Δ The problem of intersection and edge-edge intersection is basically the same problem, where the first one does not apply any offset to C Δ Since we are only interested in the existence of an intersection, not the exact location of the intersection (unless both edges are marked as crossing), we can use a simple test for line segment intersection detection. Computing the orientation of all groups of point triplets forms an efficient test like this (ignoring sampling bias):
[0118] 0=(y1-y0)·(x2-x1)-(x1-x0)·(y2-y1),
[0119] where [x i y i ] T are the coordinates of point i.
[0120] These calculations are easily extended to the sampling offset dimension by plugging into Equation 10 for all points. Solving the resulting equation for δ yields a line that describes when the orientation of the three points changes while stepping through the sampling offset dimension. Computing this line for all four sets of orientations yields regions with different orientations. More often, region changes occur ±pixelsize / 2 and therefore need not be considered. If they occur internally, the method can simply compute the intersection of the lines, i.e., the points where the two orientations change. By evaluating the detection of line segment intersections at these points while ignoring those orientations that are flipped, it allows efficient testing of whether line segment intersections exist at any sampling offset.
[0121] The only remaining problem is to determine whether the intersection point of two edges detected and marked as crossing is within C for all sampling offsets. Δ Unfortunately, the function describing the exact intersection point is nonlinear in δ and does not allow for efficient computation. However, expressing the intersection point by plugging the parameter-free straight line equation of one edge into the parameterized equation of the other edge leads to a hyperbola in δ. Computing the first derivative of this function and setting it to zero leads to the maximum parameter range for the parameterized edge (under which the intersection point may occur). By additionally considering the intersection parameters at ±pixelsize / 2 and the boundaries (0,1) introduced by the edge itself, the result is a parameter range under which the intersection point may occur. In addition, since the edges are linearly constructed, the maximum displacement of each edge point is given by the maximum displacement of its endpoints, which are themselves given by Equation 10. Evaluating the straight line equations for the extreme values of the parameter range and expanding the resulting Δ range with the maximum endpoint displacement under δ gives a conservative estimate of where the intersection point of the edges in COS may occur. If this conservative estimate does not agree with C Δ If they intersect, then the edge intersection point must be at C Δ Using a conservative estimate here may result in the PVS being increased, but never removing necessary triangles.
[0122] Figure 7 A method for streaming rendering according to another embodiment of the present invention implemented on a server is shown.
[0123] In step 610, a potentially visible set of polygons is constructed based on the graphics data including polygons (triangles) and the current camera view by using a number of potential camera / view offsets. The COS PVS algorithm is implemented on the GPU using a combination of OpenGL and CUDA. The same functionality and similar performance can also be achieved by using any other graphics API and compute mode shader execution.
[0124] Starting with a simple geometry input, the PVS is calculated, which results in a list of triangles.
[0125] The creation of a PVS involves the combination of multiple 2D COS evaluations for up to six rasterized views. For a cubeview primitive that supports 360° rotation, six views need to be rasterized. By limiting the rotation to 180° around the y-axis, three views are sufficient.
[0126] In step 611, for each of these views, each input triangle is enlarged to cover all fragments that may be encountered by it under any supported camera offset. To do this, an approach similar to conservative rasterization is adopted in the geometry shader [Durand et al. 2000]. The enlargement of the triangle around each vertex must take into account both the distance between samples and the 1 / w factor shown in Equation 10. p The maximum camera offset for scaling. This fact complicates the method slightly because the common method of calculating the edge equations of the triangles and moving them apart is not possible because if the vertices have different w components, the edges will be constrained by the rotation. Therefore, all four maximum vertex offset positions are calculated, and the vertex offset position farthest from the initial edge is selected to construct a conservative estimate of the triangle coverage. If the vertices are behind the camera, that is, if their w coordinates are negative, the method discussed may fail. In these cases, the edges are clipped to nearby planes before moving them accordingly. When using the clipping rectangle method to construct the output geometry, it is still sufficient to create only a single triangle.
[0127] In step 612, fragment list construction is performed in the fragment shader, where the original triangle coordinates are inserted into the fragment lists. They are simply passed from the geometry shader. For fragment list construction, a singly linked list with a head pointer and a counter for each list is used. The cost for constructing these lists is slightly higher than when only transparency is considered because the geometry has been enlarged. In order to reduce the number of elements stored in the lists, early z discard values can be stored with each list: in the case of a triangle covering the entire COS, an atomic minimum instruction using the maximum depth of the triangle can be used to update the early z. Comparing other triangle minimum depth values with the stored early z values (before they are added to the list) allows us to discard them because they may never be seen at a given sampling.
[0128] The next steps involve binning and sorting. When the PVSs of all fragments for all rendered views will be merged, all lists can be stored in a single buffer and parsed in a single step. Working on different list sizes involves a very different number of steps. For short lists, you will want to use a single thread, intermediate sized lists can be processed in a small thread group (e.g., within a warp), and long lists should be worked on by many threads.
[0129] To this end, the lists are first partitioned according to their length in step 613, which is stored together with a pointer to the head of the list. This is done using a simple CUDA kernel using atomic operations. Currently, intervals are used for all powers of 2 up to lengths of 256, the interval size is then increased by 128 until 15616 is reached and all lengths above this are treated the same way.
[0130] In step 614, all lists are sorted according to the minimum vertex depth of all triangles. Very short lists (<8 elements) are sorted with one thread per list. For list sizes <64, a bitonic sort in groups of sub-warp size according to list length is used. For lists with <4096 elements, a radix sort within a block is used [Merrill. 2015. CUB v1.5.3: CUDA Unbound, a library of warp-wide, block-wide, and device-wide GPU parallel primitives. (2015)], and for larger lists, a full-device radix sort is used. The sort kernel not only sorts the lists, but also extracts them from the linked list representation into a flattened array representation for faster access during the parsing step. Different sort kernels can be executed in different streams and can run in parallel on the GPU.
[0131] In step 615, the visibility of individual triangles is resolved given a large number of different possible camera views. The resolution step also distinguishes between different list sizes. Very small lists are again implemented directly with Figure 5 The method shown in Figure 1 is run on a single thread. Small lists are executed using sub-warp groups. To parallelize the algorithm, first for all Q ΔOccluder fusion is performed in parallel, and each triangle is then tested against the fused triangles. The triangle fusion method can rely on efficient full-warp communication primitives, such as register reorganization instructions and warp voting. The triangle data is stored in shared memory. For larger lists, the same steps are performed, but rely on shared memory for communication. As the list grows larger, not all triangles are fusible before parsing due to shared memory constraints. In these cases, the method works on a batch basis, where each thread loads a triangle, performs occluder fusion with all other simultaneously incoming triangles and stored triangles from previous iterations, calculates its visibility, and only adds the triangle to the stored occluders if it is visible. This process continues until the entire list has been processed. In the event that the method runs out of shared memory to store intermediate results, the occluder set is unchanged, the triangle is marked as visible, but is not added to the occluders in shared memory. Due to the ordering of the list, the most important occluders should be constructed first anyway.
[0132] If the triangle is visible, a flag is set in global memory indicating that it needs to be shaded and transmitted to the client.
[0133] To ensure that the primitive order is unchanged when constructing the triangle list, a prefix sum is used in step 616 to compress the array of tagged triangles.
[0134] For object space shading in step 620, the approximate number of required sampling and shading for each triangle is calculated, stored in a texture that is compressed in step 630, and transmitted to the client.
[0135] On the client side, simple texturing rendering of the transferred triangles is performed according to the current view.
[0136] If the client's view reaches outside the support boundaries, it may be the case that the client will not be able to construct a completely correct view from the geometry it receives from the server. Incorrect de-occlusion may occur, or the geometry may be missing entirely.
[0137] Prediction of the required view can alleviate this situation. A deep neural network can be trained to predict user movement given the scene characteristics. This will yield the required camera bounds in terms of translation and rotation for different parts of the scene, depending on the use case.
[0138] Another way to mitigate the perceived inaccuracy of out-of-bounds view rendering (when this is detected by the client) can be to inpaint the erroneous scene area (Patel et al., Review of Different Inpainting Algorithms; International Journal of Computer Applications, 2012, vol. 59, no. 18, p. 30-34) or to utilize one of the image-based rendering (IBR) methods. However, these methods introduce their own set of artifacts, so the methods cannot guarantee that a completely correct view is constructed outside the supported bounds. Methods such as the following can be used for this purpose: asynchronous space warping, forward warping techniques [George Wolberg. 1998. Image morphing: a survey..e Visual Computer 14, 8-9 (1998), 360-372. H.ps: / / doi.org / 10.1007 / s003710050148], such as through a grid [Piotr Didyk, Tobias Ritschel, Elmar Eisemann, Karol Myszkowski, and Hans-Peter Seidel. 2010b. Adaptive Image-space Stereo View Synthesis. In Vision, Modeling and Visualization Workshop. Siegen, Germany, 299–306.; Kyungmin Lee, David Chu, Eduardo Cuervo, Johannes Kopf, Alec Wolman, Yury Degtyarev, Sergey Grizan, and Jason Marc Olano and Trey Greer.1997.Triangle scanconversion using 2D homogeneous coordinates.In Proceedings of the ACM SIGGRAPH / EUROGRAPHICS Symposium on Graphics Hardware. ACM, 89–95.] or ray tracing [Sven Widmer, D Pajak, Andr′e Schulz, Kari Pulli, Jan Kautz, Michael Goesele, and David Luebke. 2015. An Adaptive Acceleration Structure for Screen-space Ray Tracing. In Proceedings of the 7th Conference on High Performance Graphics (HPG'15). ACM, New York, NY, USA, 67–76. h.ps: / / doi.org / 10.1145 / 2790060.2790069] or backwarping [Huw Bowles, Kenny Mitchell, Robert W. Sumner, Jeremy Moore, and Markus Gross. 2012. Iterative Image Warping. Computer graphics forum 31, 2 (May 2012), 237–246.; Diego Nehab, Pedro V. Sander, Jason Lawrence, Natalya Tatarchuk, and John R. Isidoro. 2007. Accelerating Real-time Shading with ReverseReprojection Caching. In Proceedings of the 22Nd ACM SIGGRAPH / EUROGRAPHICS Symposium on Graphics Hardware(GH'07).Eurographics Association,Aire-la-Ville,Switzerland,Switzerland,25–35.hp: / / dl.acm.org / citation.cfm? id=1280094.1280098; Lei Yang, Yu-Chiu Tse, Pedro V. Sander, Jason Lawrence, Diego Nehab, Hugues Hoppe, and Clara L. Wilkins. 2011. Image-based Bidirectional SceneReprojection. ACM Trans. Graph. 30, 6, Article 150 (Dec.2011), 10 pages. h.ps: / / doi.org / 10.1145 / 2070781.2024184] Improved point sputtering [Shenchang Eric Chen and Lance Williams. 1993. View Interpolation for Image Synthesis. In Proceedings of the 20th Annual Conference on Computer Graphics and Interactive Techniques (SIGGRAPH'93). ACM, New York, NY, USA, 279–288. h.ps: / / doi.org / 10.1145 / 166117.166153]. .
[0139] There are multiple ways to compute the correct shading data for the PVS geometry on the client. The simplest way is that the client stores all the data needed to compute the true shading, and computes it for the reduced set of geometry received from the server. Since this may take up a lot of resources on the client, or even be beyond the client's reach, the server can pre-compute the shading data and send it to the client along with the PVS geometry data. The shading can be divided into a view-dependent part and a view-independent part. Both parts can be computed on the server, or the view-dependent part can be additionally computed on the client given the accurate view, and then correctly merged with the view-independent part received from the server.
[0140] Shading data can be collected per triangle, per view, per pixel, or per arbitrary sample. This shading data can be stored in a color buffer or texture to allow fast interpretation. It will then be encoded on the server, sent to the client along with the PVS geometry data, and then decoded by the client and used for rendering.
[0141] The predicted movements may also be included directly into the COS and transmitted to the client.
[0142] To evaluate the proposed method, it was tested on 3D scenes with various characteristics. The proposed PVS algorithm was run on an Intel Xeon CPU with 16GB of RAM and NVIDIA Titan X (pascal). Operates on 3.5GHz. For all tests, head movements of 5 to 10cm and ±30 degrees of rotation were considered. The camera fov was 60 degrees.
[0143] Figure 8Example views of a large outdoor scene (4.6M triangles) recorded during different use case scenarios are shown. The scene presents various challenges for the inventive method, including long fragment lists, small oblique angles, and multiple layers of slightly offset structures.
[0144] Starting from a reference view (a), a Potentially Visible Set (PVS) is determined for the region around the camera (b). To construct the PVS, fragments in each fragment list that can cover different sizes are collected and all triangles are resolved for visibility in the proposed camera offset space (c). The novel views rendered with the PVS for the viewpoint around the reference position are complete and have no holes (d)-(f).
[0145] The method clearly obtains currently visible triangles and objects that may become visible under head movement. In particular, the roof occludes most of the scene and no geometry behind the roof is classified as visible. When the viewpoint is to the right of the roof, a slight movement or rotation to the right opens the view to the mountains behind. The corresponding triangles are clearly classified as potentially visible. This indicates that both occluder fusion and potential visibility are working correctly.
[0146] The following table shows the size of the PVS, the computation time of each step, and the interval distribution used for the test scenario:
[0147]
[0148] For the average test scene of the tested rehearsals, the PVS algorithm reduces the number of triangles from 4.6M to 480-590k. In a mobile HMD scenario, such a reduction will lead to huge bandwidth reduction and rendering time savings on the client.
[0149] As can be seen, computing PVS for small resolutions already involves multiple millions of entries that need to be parsed. Although our implementation is just a prototype with massive optimization potential, it can determine the visibility of up to 25 million list entries per second. For Viking Village, the lists are never longer than about 15,000, and on average are between 40 and 100. In addition, the heat map shows that it is most common to have a few concentrated areas with very long list lengths, while most lists only show low to medium counts. Clearly, the visibility parsing step dominates performance, followed by the sorting step which is between 5x and 10x faster. Triangle expansion and fragment list creation, intervals and compression have a negligible impact on performance.
[0150] The measurements also show that working with a low resolution of 400x200 is reasonable. The algorithm of the present invention ensures that for visibility, the position between samples is also taken into account. An increase in resolution leads to a quasi-linear degradation of performance. However, when the resolution is further reduced, the performance gets worse, indicating that 400x200 seems to be a sweet spot for the tested scene. Obviously, as the camera offset increases, the triangles are further enlarged. Therefore, the fragment list becomes longer and the algorithm takes more time. However, doubling in the supported camera moves does not result in a two-fold slowdown, indicating that the proposed algorithm can scale well for larger camera offsets.
[0151] Starting with considerations about which camera offsets a triangle covers a certain pixel at, the present invention introduces the Camera Offset Space (COS). In COS, the coverage is a simple geometric shape. By including a function that describes the depth of a triangle at a sampled position for different camera moves, it can be determined for various camera offsets whether a triangle will be covered by another triangle. By extending this approach to all samples of the rendered scene and positions between samples, it is shown that the entire Potentially Visible Set (PVS) can be constructed. As with all PVS algorithms, it is very important to integrate occluder fusion for closed surfaces, for which connectivity information from the triangle data is extracted on the fly.
[0152] By identifying potential constellations of occluders and incoming triangles, an efficient algorithm for determining the visibility of a triangle relative to a fused occluder is provided. By implementing the algorithm with a combination of OpenGL and CUDA, the present invention provides a near real-time rate for an online PVS algorithm. Testing on various scenes indicates that the present method works very reliably and is suitable for streaming rendering scenes for head mounted displays.
[0153] In summary, the method of the invention provides the first PVS algorithm that works on the fly and without preprocessing. It does not even require triangle connectivity information or information about which triangles make up an object. Because the method works frame by frame, dynamic objects are naturally supported. All information is calculated directly from the input triangles.
Claims
1. A method for transmitting 3D model data from a server to a client for rendering, the 3D model data comprising polygons, the method comprising the following steps: - obtaining, by the server, a potentially visible set of polygons based on the current camera view; as well as - transmitting 3D model data including the potentially visible set of polygons from the server to the client, It is characterized in that The step of obtaining a potentially visible set of polygons comprises embedding each polygon in a camera offset space for a set of supported camera movements around the current camera position, wherein the camera offset space provides information for a given point or sample position on the image plane at which camera offset the point is covered by the polygon.
2. The method according to claim 1, characterized in that The 3D model data is further obtained based on a current state of the server or the client.
3. The method according to claim 2, characterized in that The 3D model data is further obtained based on a current view of the user.
4. The method according to claim 3, wherein: The 3D model data is further obtained based on the translation of the current view.
5. The method according to claim 4, wherein: The 3D model data is further obtained based on a rotation of the current view.
6. The method according to claim 1, wherein: The 3D model data includes shading information of the polygons.
7. The method according to claim 6, wherein: The shading information for the polygons allows the client to render a large number of views before the next shading information is sent.
8. The method according to claim 7, wherein: The potentially visible set of polygons is obtained in real time.
9. The method according to claim 8, wherein: The step of obtaining said 3D model data comprises the step of obtaining a second set of camera views for which a given polygon covers a given sampling position of the display.
10. The method according to claim 9, wherein: The camera view is specified in terms of a camera view offset.
11. The method according to one of claims 1 to 5, wherein: The step of obtaining the 3D model data is implemented on a dedicated graphics processing unit.
12. A method for rendering 3D model data on a client, comprising the following steps: - receiving 3D model data from a server, wherein the 3D model data has been transmitted using a method according to one of claims 1 to 11; -determine the current view; - rendering the received 3D model data to obtain an image based on the current view; as well as -Shows the rendered image.
13. The method according to claim 12, wherein: The current view is determined based on sensor data representing a user's motion.
14. The method according to claim 13, wherein: The user's action is head movement.
15. A streaming server adapted to perform the method according to one of claims 1 to 11.
16. A streaming client adapted to perform the method according to one of claims 12 to 14.
17. The streaming client according to claim 16, wherein: The client is a head mounted display.
18. The streaming client according to claim 16, wherein: The client is a tablet or a smart phone.
19. The streaming client according to claim 16, wherein: The client is a personal computer or a laptop.
20. The streaming client according to claim 16, wherein: The client includes a display.
Citation Information
Patent Citations
Model-based remote image reconstruction method and system
CN107174825A
Three-dimensional model data-providing program, three-dimensional model data-providing server, and three-dimensional model data transfer method
US20050256950A1
System and Method for Displaying Data Having Spatial Coordinates
US20130300740A1
Method and device for rendering selected portions of video in high resolution
US20150015789A1
Processing and / or transmitting 3D data
US20160300385A1
