官术网_书友最值得收藏!

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:

  1. Make sure that the camera is not selected anymore--click anywhere in the hierarchy panel and verify that the inspector window is empty.
  2. Click on the Create button at the top of the hierarchy window.
  3. 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.
  4. 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}.
  5. 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
主站蜘蛛池模板: 綦江县| 乌拉特后旗| 弋阳县| 大余县| 乐平市| 江源县| 新沂市| 青铜峡市| 云林县| 思茅市| 勐海县| 大埔县| 清新县| 铅山县| 耿马| 怀远县| 鲜城| 闻喜县| 哈巴河县| 洛隆县| 涟水县| 读书| 休宁县| 泽普县| 宁安市| 天峨县| 五寨县| 肇源县| 临泉县| 安陆市| 澎湖县| 太和县| 阜宁县| 绥化市| 龙岩市| 思南县| 霍州市| 沙洋县| 阳山县| 镶黄旗| 乐昌市|