phd-typst/related-work/3d-streaming.typ

213 lines
14 KiB
Plaintext
Raw Normal View History

2024-07-12 20:06:21 +01:00
#import "@preview/cetz:0.2.2"
2023-05-02 16:57:14 +01:00
== 3D streaming
2023-04-22 16:26:54 +01:00
In this thesis, we focus on the objective of delivering large, massive 3D scenes over the network.
While 3D streaming is not the most popular research field, there has been a special attention around 3D content compression, in particular progressive compression which can be considered a premise for 3D streaming.
In the next sections, we review the 3D streaming related work, from 3D compression and structuring to 3D interaction.
2023-05-02 16:57:14 +01:00
=== Compression and structuring
2023-04-22 16:26:54 +01:00
2024-03-17 17:04:44 +00:00
According to @maglo20153d, mesh compression can be divided into four categories:
2023-04-22 16:26:54 +01:00
- single-rate mesh compression, seeking to reduce the size of a mesh;
- progressive mesh compression, encoding meshes in many levels of resolution that can be downloaded and rendered one after the other;
- random accessible mesh compression, where different parts of the models can be decoded in an arbitrary order;
- mesh sequence compression, compressing mesh animations.
Since our objective is to stream 3D static scenes, single-rate mesh and mesh sequence compressions are less interesting for us.
This section thus focuses on progressive meshes and random accessible mesh compression.
2024-03-17 17:04:44 +00:00
Progressive meshes were introduced in @progressive-meshes and allow a progressive transmission of a mesh by sending a low resolution mesh first, called _base mesh_, and then transmitting detail information that a client can use to increase the resolution.
2024-07-12 20:06:21 +01:00
To do so, an algorithm, called _decimation algorithm_, starts from the original full resolution mesh and iteratively removes vertices and faces by merging vertices through the so-called _edge collapse_ operation (@rw:vertex-split).
#figure(
cetz.canvas({
import cetz.draw: *
scale(2)
let polygon = (
(0, 0.8),
(1, 0.9),
(1.2, 0),
(0.9, -0.8),
(0.2, -0.9),
(-0.2, 0),
)
let split = ((0.5, 0.5), (0.6, -0.5))
let polygon2 = polygon.map((arr) => (arr.at(0) + 3.0, arr.at(1)))
line(..polygon, close: true)
line(polygon.at(0), split.at(0))
line(polygon.at(1), split.at(0))
line(polygon.at(2), split.at(0))
line(polygon.at(3), split.at(1))
line(polygon.at(4), split.at(1))
line(polygon.at(5), split.at(1))
line(polygon.at(5), split.at(0))
line(polygon.at(2), split.at(1))
line(split.at(0), split.at(1), stroke: (paint: red, thickness: 2pt))
let center = (3.55, 0);
line(..polygon2, close: true)
for point in polygon2 {
line(point, center)
}
circle(center, radius: 1.5pt, stroke: none, fill: red)
content((2, 1.75), [Edge collapse])
bezier((0.5, 1), (3.5, 1), (2, 2), mark: (end: (symbol: "stealth")))
bezier((0.5, -1), (3.5, -1), (2, -2), mark: (start: (symbol: "stealth")))
content((2, -1.75), [Vertex split])
}),
caption: [Vertex split and edge collapse]
)<rw:vertex-split>
2023-04-22 16:26:54 +01:00
Every time two vertices are merged, a vertex and two faces are removed from the original mesh, decreasing the model resolution.
At the end of this content preparation phase, the mesh has been reorganized into a base mesh and a sequence of partially ordered edge split operations.
Thus, a client can start by downloading the base mesh, display it to the user, and keep downloading refinement operations (vertex splits) and display details as time goes by.
This process reduces the time a user has to wait before seeing a downloaded 3D object, thus increases the quality of experience.
#figure(
image("../assets/related-work/3d-streaming/progressivemesh.png", width: 100%),
caption: [Four levels of resolution of a mesh]
)
2024-03-17 17:04:44 +00:00
@streaming-compressed-webgl develop a dedicated progressive compression algorithm based on iterative decimation, for efficient decoding, in order to be usable on web clients.
With the same objective, @pop-buffer proposes pop buffer, a progressive compression method based on quantization that allows efficient decoding.
2023-04-22 16:26:54 +01:00
Following these, many approaches use multi triangulation, which creates mesh fragments at different levels of resolution and encodes the dependencies between fragments in a directed acyclic graph.
2024-03-17 17:04:44 +00:00
In @batched-multi-triangulation, the authors propose Nexus: a GPU optimized version of multi triangulation that pushes its performances to make real time rendering possible.
It is notably used in 3DHOP (3D Heritage Online Presenter, @3dhop), a framework to easily build web interfaces to present 3D objects to users in the context of cultural heritage.
2023-04-22 16:26:54 +01:00
Each of these approaches define its own compression and coding for a single mesh.
However, users are often interested in scenes that contain multiple meshes, and the need to structure content emerged.
2024-03-17 17:04:44 +00:00
To answer those issues, the Khronos group proposed a generic format called glTF (GL Transmission Format, @gltf) to handle all types of 3D content representations: point clouds, meshes, animated models, etc.
2023-04-22 16:26:54 +01:00
glTF is based on a JSON file, which encodes the structure of a scene of 3D objects.
It contains a scene graph with cameras, meshes, buffers, materials, textures and animations.
Although relevant for compression, transmission and in particular streaming, this standard does not yet consider view-dependent streaming, which is required for large scene remote visualization and which we address in our work.
2023-05-02 16:57:14 +01:00
=== Viewpoint dependency
2023-04-22 16:26:54 +01:00
3D streaming means that content is downloaded while the user is interacting with the 3D object.
In terms of quality of experience, it is desirable that the downloaded content falls into the user's field of view.
This means that the progressive compression must encode a spatial information in order to allow the decoder to determine content adapted to its viewpoint.
This is typically called _random accessible mesh compression_.
2024-03-17 17:04:44 +00:00
@maglo2013pomar is such an example of random accessible progressive mesh compression.
@cheng2008receiver proposes a receiver driven way of achieving viewpoint dependency with progressive mesh: the client starts by downloading the base mesh, and from then is able to estimate the importance of the different vertex splits, in order to choose which ones to download.
2023-04-22 16:26:54 +01:00
Doing so drastically reduces the server computational load, since it only has to send data, and improves the scalability of this framework.
In the case of streaming a large 3D scene, view-dependent streaming is fundamental: a user will only be seeing one small portion of the scene at each time, and a system that does not adapt its streaming to the user's point of view is bound to induce a low quality of experience.
A simple way to implement viewpoint dependency is to request the content that is spatially close to the user's camera.
2024-03-17 17:04:44 +00:00
This approach, implemented in Second Life and several other NVEs (e.g., @peer-texture-streaming), only depends on the location of the avatar, not on its viewing direction.
2023-04-22 16:26:54 +01:00
It exploits spatial coherence and works well for any continuous movement of the user, including turning.
Once the set of objects that are likely to be accessed by the user is determined, the next question is in what order should these objects be retrieved.
A simple approach is to retrieve the objects based on distance: the spatial distance from the user's virtual location and rotational distance from the user's view.
More recently, Google integrated Google Earth 3D module into Google Maps (@rw:google-maps).
Users are now able to go to Google Maps, and click the 3D button which shifts the camera from the aerial view.
Even though there are no associated publications to support this assertion, it seems clear that the streaming is view-dependent: low resolution from the center of the point of view gets downloaded first, and higher resolution data gets downloaded for closer objects than for distant ones.
#figure(
image("../assets/related-work/3d-streaming/googlemaps.png", width: 80%),
caption: [Screeshot of the 3D interface of Google Maps]
)<rw:google-maps>
Other approaches use level of details.
2024-03-17 17:04:44 +00:00
Level of details have been initially used for efficient 3D rendering @lod.
2023-04-22 16:26:54 +01:00
When the change from one level of detail to another is direct, it can create visual discomfort to the user.
2024-03-17 17:04:44 +00:00
This is called the _popping effect_ and level of details have the advantage of enabling techniques, such as geomorhping @hoppe-lod, to transition smoothly from one level of detail to another.
2023-04-22 16:26:54 +01:00
Level of details have then been used for 3D streaming.
2024-03-17 17:04:44 +00:00
For example, @streaming-hlod propose an out-of-core viewer for remote model visualization based by adapting hierarchical level of details @hlod to the context of 3D streaming.
Level of details can also be used to perform viewpoint dependant streaming, such as @view-dependent-lod.
2023-04-22 16:26:54 +01:00
2023-05-02 16:57:14 +01:00
=== Texture streaming
2023-04-22 16:26:54 +01:00
In order to increase the texture rendering speed, a common technique is the _mipmapping_ technique.
It consists in generating progressively lower resolutions of an initial texture.
Lower resolutions of the textures are used for polygons which are far away from the camera, and higher resolutions for polygons closer to the camera.
Not only this reduces the time needed to render the polygons, but it can also reduce the aliasing effect.
Using these lower resolutions can be especially interesting for streaming.
2024-03-17 17:04:44 +00:00
@mipmap-streaming proposes the PTM format which encode the mipmap levels of a texture that can be downloaded progressively, so that a lower resolution can be shown to the user while the higher resolutions are being downloaded.
2023-04-22 16:26:54 +01:00
2024-03-17 17:04:44 +00:00
Since 3D data can contain many textures, @simon2019streaming propose a way to stream a set of textures by encoding them into a video.
2023-04-22 16:26:54 +01:00
Each texture is segmented into tiles of a fixed size.
Those tiles are then ordered to minimize dissimilarities between consecutive tiles, and encoded as a video.
By benefiting from the video compression techniques, the authors are able to reach a better rate-distortion ratio than webp, which is the new standard for texture transmission, and jpeg.
2023-05-02 16:57:14 +01:00
=== Geometry and textures
2023-04-22 16:26:54 +01:00
2023-05-02 22:55:48 +01:00
As discussed in @f:3d, most 3D scenes consist in two main types of data: geometry and textures.
2023-04-22 16:26:54 +01:00
When addressing 3D streaming, one must handle the concurrency between geometry and textures, and the system needs to address this compromise.
2024-03-17 17:04:44 +00:00
Balancing between streaming of geometry and texture data is addressed by @batex3"), @visual-quality-assessment, and @mesh-texture-multiplexing.
2023-04-22 16:26:54 +01:00
Their approaches combine the distortion caused by having lower resolution meshes and textures into a single view independent metric.
2024-03-17 17:04:44 +00:00
@progressive-compression-textured-meshes also deals with the geometry / texture compromise.
2023-04-22 16:26:54 +01:00
This work designs a cost driven framework for 3D data compression, both in terms of geometry and textures.
The authors generate an atlas for textures that enables efficient compression and multi-resolution scheme.
All four works considered a single mesh, and have constraints on the types of meshes that they are able to compress.
Since the 3D scenes we are interested in in our work consist in soups of textured polygons, those constraints are not satisfied and we cannot use those techniques.
2023-05-02 16:57:14 +01:00
=== Streaming in game engines
2023-04-22 16:26:54 +01:00
In traditional video games, including online games, there is no requirement for 3D data streaming.
Video games either come with a physical support (CD, DVD, Blu-Ray) or they require the downloading of the game itself, which includes the 3D data, before letting the user play.
However, transferring data from the disk to the memory is already a form of streaming.
This is why optimized engines for video games use techniques that are reused for streaming such as level of details, to reduce the details of objects far away for the point of view and save the resources to enhance the level of detail of closer objects.
Some other online games, such as #link("https://secondlife.com")[Second Life], rely on user generated data, and thus are forced to send data from users to others.
In such scenarios, 3D streaming is appropriate and this is why the idea of streaming 3D content for video games has been investigated.
2024-03-17 17:04:44 +00:00
For example, @game-on-demand proposes an online game engine based on geometry streaming, that addresses the challenge of streaming 3D content at the same time as synchronization of the different players.
2023-04-22 16:26:54 +01:00
2023-05-02 16:57:14 +01:00
=== NVE streaming frameworks
2023-04-22 16:26:54 +01:00
2024-03-17 17:04:44 +00:00
An example of NVE streaming framework is 3D Tiles @3d-tiles, which is a specification for visualizing massive 3D geospatial data developed by Cesium and built on top of glTF.
2023-04-22 16:26:54 +01:00
Their main goal is to display 3D objects on top of regular maps, and their visualization consists in a top-down view, whereas we seek to let users freely navigate in our scenes, whether it be flying over the scene or moving along the roads.
#figure(
image("../assets/related-work/3d-streaming/3dtiles.png", width: 80%),
caption: [Screenshot of 3D Tiles interface]
2024-07-12 20:06:21 +01:00
)<rw:3d-tiles>
2023-04-22 16:26:54 +01:00
3D Tiles, as its name suggests, is based on a spacial partitionning of the scene.
2024-07-12 20:06:21 +01:00
It started with a regular octree, but has then been improved to a $k$-d tree (see @rw:3d-tiles).
2023-04-22 16:26:54 +01:00
#grid(
columns:(1fr, 0.1fr, 1fr),
figure(
image("../assets/related-work/3d-streaming/3d-tiles-octree.png", width: 100%),
caption: [With regular octree (depth 4)]
),
[],
figure(
image("../assets/related-work/3d-streaming/3d-tiles-kd-tree.png", width: 100%),
caption: [With $k$-d tree (depth 4)]
)
)
2024-07-12 20:06:21 +01:00
In~\citeyear{3d-tiles-10x}, 3D Tiles streaming system was improved by preloading the data at the camera's next position when known in advance (with ideas that are similar to those we discuss and implement in @bi, published in @bookmarks-impact) and by ordering tile requests depending on the user's position (with ideas that are similar to those we discuss and implement in @d3, published in @dash-3d).
2023-04-22 16:26:54 +01:00
2024-03-17 17:04:44 +00:00
@zampoglou is another example of a streaming framework: it is the first paper that proposes to use DASH to stream 3D content.
2023-04-22 16:26:54 +01:00
In their work, the authors describe a system that allows users to access 3D content at multiple resolutions.
They organize the content, following DASH terminology, into periods, adaptation sets, representations and segments.
Their first adaptation set codes the tree structure of the scene graph.
Each further adaptation set contains both geometry and texture information and is available at different resolutions defined in a corresponding representation.
To avoid requests that would take too long and thus introduce latency, the representations are split into segments.
The authors discuss the optimal number of polygons that should be stored in a single segment.
On the one hand, using segments containing very few faces will induce many HTTP requests from the client, and will lead to poor streaming efficiency.
On the other hand, if segments contain too many faces, the time to load the segment is long and the system loses adaptability.
Their approach works well for several objects, but does not handle view-dependent streaming, which is desirable in the use case of large NVEs.