With an ongoing process of development with Hololens in this article we will try to work on the code and modify it to our liking.
Let's brea down the Hololens app,
We will now work on modifying the spinning render cpp file now and we need to check on which points we need to modify for Hololens rendering of the cube.
We attack the part where it is written as cube indices. Let's look on changing the co-ordinates first.
- static const unsigned short cubeIndices [] =
- {
- 2,5,0,
- 2,3,5,
-
- 3,4,1,
- 3,1,7,
-
- 0,5,1,
- 0,1,4,
-
- 2,3,7,
- 2,7,6,
-
- 0,4,3,
- 0,3,2,
-
- 5,6,7,
- 5,7,1,
- };
Now if we run the app in the Hololens emulator the output is as shown below,
Further modifications to continue.
Conclusion:
We find out that it's easy to change shapes of an object and the content needs to be changed in cube renderer cpp file. With changes we can get lot of effects on the object creation.
Read more articles on Microsoft Hololens: