Extending Hololens app

Tinkering with Hololens app

With ongoing process of development with Hololens in this article we will try to work on the code modify it to our liking

 

Let’s break the Hololens app

1

We will now work on modifying the spinning render cpp file now 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, // -x

2,3,5,

 

3,4,1, // +x

3,1,7,

 

0,5,1, // -y

0,1,4,

 

2,3,7, // +y

2,7,6,

 

0,4,3, // -z

0,3,2,

 

5,6,7, // +z

5,7,1,

};

Now we run the app in Hololens emulator the output is as shown below

Screenshot (1386)

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 effect on the object creation.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s