July 2017
Beginner to intermediate
390 pages
10h 53m
English
The creation of the vertices and indices is done for us by the SpatialSurfaceObserver class, which is what we build in the call to BuildSpatialSurfaceObserver():
void BuildSpatialSurfaceObserver() { _spatialSurfaceObserver = new SpatialSurfaceObserver(); var positionFormat = DirectXPixelFormat.R32G32B32A32Float; var normalFormat = DirectXPixelFormat.R32G32B32A32Float; _spatialSurfaceMeshOptions = new SpatialSurfaceMeshOptions { IncludeVertexNormals = false, VertexPositionFormat = positionFormat, VertexNormalFormat = normalFormat, TriangleIndexFormat = DirectXPixelFormat.R16UInt }; var boundingBox = new SpatialBoundingBox { Center = new Vector3(0f, 0f, 0f), Extents = new Vector3(10f, 10f, 10f) }; var bounds ...Read now
Unlock full access