O'Reilly logo

Microsoft HoloLens Developer’s Guide by Dennis Vroegop

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining images in three dimensions.

We need to tell the GPU what we want our objects to look like. We cannot simply give the GPU a bunch of pixels. If we could do that, we would not need the GPU at all, but we would be doing all the calculations ourselves. That is something we do not want to do--it is extremely complicated and time-consuming and would result in a very slow code. The GPU in combination with DirectX knows how to transform 3D coordinates into pixels on a screen, so we only need to provide the system with our vertices.

A vertex has at least 3 parameters--an X, a Y, and a Z coordinate. X is the horizontal position, Y the vertical, and the Z is the direction forward or backward from the perspective of the user. Positive X goes ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required