- Microsoft HoloLens Developer's Guide
- Dennis Vroegop
- 230字
- 2021-07-02 19:08:01
Adding holographic objects
Our scene looks quite dull. We have nothing in our world besides a black background. So let's add something a bit more interesting to our world.
We will add a sphere in our world. To do this, take the following steps:
- Make sure that the camera is not selected anymore--click anywhere in the hierarchy panel and verify that the inspector window is empty.
- Click on the Create button at the top of the hierarchy window.
- Select Sphere. You will note that the sphere is added to the hierarchy, although it is not visible. The reason for this is that, in order to make the whole system performant, the insides of our 3D objects are not rendered. Since the sphere is placed at location {0,0,0}, the camera is inside the sphere and we cannot see it.
- Move the sphere by selecting it in the hierarchy panel and change its location in the inspector window. Move it about three meters away from the user and move it half a meter below the head of the user. Since the HoloLens is located at {0,0,0}, this means we have to place the sphere at {0,-0.5, 3}.
- Scale the sphere (a sphere with a diameter of 1 meter is quite large) and make it 25 centimeters.
You will end up with something like this:

Our scene with the newly added sphere
推薦閱讀
- JavaScript從入門到精通(微視頻精編版)
- Effective C#:改善C#代碼的50個(gè)有效方法(原書第3版)
- 匯編語(yǔ)言程序設(shè)計(jì)(第2版)
- Practical Windows Forensics
- 老“碼”識(shí)途
- MySQL數(shù)據(jù)庫(kù)管理與開發(fā)實(shí)踐教程 (清華電腦學(xué)堂)
- 算法訓(xùn)練營(yíng):提高篇(全彩版)
- Microsoft Azure Storage Essentials
- Python High Performance Programming
- Data Manipulation with R(Second Edition)
- Android初級(jí)應(yīng)用開發(fā)
- 前端架構(gòu)設(shè)計(jì)
- jMonkeyEngine 3.0 Beginner’s Guide
- C語(yǔ)言從入門到精通(第4版)
- Python for Secret Agents