简体   繁体   English

使用 MRTK 在全息透镜中显示天空盒

[英]Show skybox in hololens using MRTK

I'm using Unity and MRTK to create an immersive application for the hololens (similar to Holotour).我正在使用 Unity 和 MRTK 为全息镜头创建沉浸式应用程序(类似于 Holotour)。 In this application, I need to simulate the sky.在这个应用程序中,我需要模拟天空。 In Unity, a Skybox is sufficient to show this.在 Unity 中,一个天空盒就足以展示这一点。 However, in Hololens, it is not.然而,在 Hololens 中,情况并非如此。 How do I go about showing the sky/what's on the skybox in my Hololens? go 如何在我的 Hololens 中显示天空/天空盒上的内容? Thus far, I have tried adding a render texture for a camera high in the sky to an inverted sphere (ie a sphere that encompasses the playspace and shows the material of the sphere on the inside);到目前为止,我已经尝试将天空高处的相机的渲染纹理添加到倒置的球体(即包含游戏空间并在内部显示球体材质的球体); but that doesn't seem to work...但这似乎不起作用...

The HoloLens uses the Transparent camera display settings to determine how to clear the scene. HoloLens 使用透明相机显示设置来确定如何清除场景。 If you change Clear Flags to Skybox, you should get your desired effect.如果将 Clear Flags 更改为 Skybox,您应该会得到想要的效果。

在此处输入图像描述

In Window>Rendering>Lighting Settings, set "Skybox Material" to the skybox of your choice.在 Window>Rendering>Lighting Settings 中,将“Skybox Material”设置为您选择的天空盒。 Also make sure, that your Camera "ClearFlag" is set to "Skybox".还要确保您的相机“ClearFlag”设置为“Skybox”。

If in doubt, please refer to the docs .如有疑问,请参阅文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM