設計自己的沉浸式環境Design your own immersive environments

注意

這是實驗性的功能。This is an experimental feature. 請試試看,它很有趣,但如果一切沒有如預期般運作,則不會感到驚訝。Give it a try and have fun with it, but don't be surprised if everything doesn't quite work as expected. 我們正在評估這項功能的可行性並對其使用感興趣,因此請告訴我們您的體驗 (以及您在 開發人員論壇) 找到的任何 bug。We're evaluating the viability of this feature and interest in using it, so please tell us about your experience (and any bugs you've found) in the developer forums.

2018 年4月更新 Windows 10開始,我們已啟用實驗性功能,可讓您將自訂環境新增至 [開始] 功能表) 上的 [位置選擇器] (,以做為 Windows Mixed Reality 首頁使用。Starting with the Windows 10 April 2018 update, we've enabled an experimental feature that lets you add custom environments to the Places picker (on the Start menu) to use as the Windows Mixed Reality home. Windows Mixed Reality 有兩個預設環境:懸崖之屋和 Skyloft,您可以選擇做為您的首頁。Windows Mixed Reality has two default environments, Cliff House and Skyloft, you can choose as your home. 建立自訂環境可讓您使用自己的建立來展開清單。Creating custom environments allows you to expand the list with your own creations. 這項功能是以早期的狀態提供,以評估建立者和開發人員的興趣。We're making this feature available in an early state to evaluate interest from creators and developers. 查看您所建立的各種領域,並瞭解如何使用不同的 authoring tools。See what kinds of worlds you create and understand how you work with different authoring tools.

使用自訂環境時,您會注意到 teleporting、與應用程式互動,以及放置全像投影一樣的運作方式,與在懸崖之屋和 Skyloft 中一樣。When using a custom environment you'll notice that teleporting, interacting with apps, and placing holograms works just like it does in the Cliff House and Skyloft. 您可以在幻想環境中流覽 web,或使用全像幻想式道具城市來填滿,這可能是無限的。You can browse the web in a fantasy landscape or fill a futuristic city with holograms - the possibilities are endless!

裝置支援Device support

功能Feature HoloLensHoloLens 沉浸式頭戴裝置Immersive headsets
自訂家用環境Custom home environments ✔️✔️

嘗試範例環境Trying a sample environment

我們建立了一個範例環境,顯示自訂家用環境的一些創意潛力。We've created a sample environment that shows off some of the creative possibilities of custom home environments. 請遵循下列步驟來試用:Follow these steps to try it out:

  1. 下載我們的範例幻想島環境 (連結點,以) 自動解壓縮的可執行檔。Download our sample Fantasy Island environment (link points to self-extracting executable).

    幻想島範例環境Fantasy Island sample environment
    幻想島範例環境Fantasy Island sample environment

  2. 執行您所下載的 Fantasy_Island.exe 檔案。Run the Fantasy_Island.exe file you downloaded.

    注意

    當您嘗試執行從 web (下載的 .exe 檔案,就像這樣的) ,您可能會遇到「Windows 已保護您的電腦」快顯視窗。When attempting to run a .exe file downloaded from the web (like this one), you may encounter a "Windows protected your PC" pop-up. 若要從此快顯視窗執行 Fantasy_Island.exe,請選取 [ 更多資訊 ],然後 繼續執行To run Fantasy_Island.exe from this pop-up, select More info and then Run anyway. 此安全性設定的目的是要防止您下載不想要信任的檔案,因此當您信任檔案的來源時,請選擇此選項。This security setting is meant to protect you from downloading files you may not want to trust, so please only choose this option when you trust the source of the file.

  3. 開啟 檔案總管 並在網址列中貼上下列檔案位置,以流覽至 [環境] 資料夾: %LOCALAPPDATA%\Packages\EnvironmentsApp_cw5n1h2txyewy\LocalStateOpen File Explorer and navigate to the environments folder by pasting the following file location in the address bar: %LOCALAPPDATA%\Packages\EnvironmentsApp_cw5n1h2txyewy\LocalState.

  4. 將您下載的範例環境複製到此資料夾。Copy the sample environment that you downloaded into this folder.

  5. 重新開機 混合實境入口 ,以重新整理位置選擇器中的環境清單。Restart Mixed Reality Portal to refresh the list of environments in the Places picker.

  6. 放在您的耳機上。Put on your headset. 一旦您在家中,請使用 [Windows] 按鈕來開啟 [開始] 功能表Once you're in the home, open the Start menu using the Windows button your controller.

  7. 選取釘選應用程式清單上方的 [ 地點 ] 圖示,以選擇主環境。Select the Places icon above the list of pinned apps to choose a home environment.

  8. 您會在您的地點清單中找到您下載的幻想島環境。You'll find the Fantasy Island environment that you downloaded in your list of places. 選取 [ 幻想島 ] 以進入新的自訂家用環境!Select Fantasy Island to enter your new custom home environment!

建立您自己的自訂環境Creating your own custom environment

除了使用我們的範例環境,您還可以使用您最愛的3D 編輯軟體來匯出自己的自訂環境。In addition to using our sample environments, you can export your own custom environments using your favorite 3D editing software.

模型指導方針Modeling guidelines

為您的環境建立模型時,請記住下列建議,讓使用者在 believably 規模的世界中產生正確的方向:When modeling your environment, keep the following recommendations in mind so that users spawns in the correct orientation in a believably sized world:

  1. 使用者將會產生0、0、0,以將您的產生位置置中到原點的中心。Users will spawn at 0,0,0 so center your spawn location around the origin.
  2. 工作單位應該設定為計量,以便能夠以全球規模撰寫資產。Working Units should be set to meters so that assets can be authored at world scale.
  3. 向上軸應設定為 "Y"。The Up axis should be set to “Y”.
  4. 資產應「轉寄」朝正 Z 軸。The asset should face “forward” towards the positive Z axis.
  5. 您不需要將所有的網格合併,但如果您是以資源限制的裝置為目標,則建議使用此選項。You don't have to combine all your meshes, but it's recommended if you're targeting resource-constrained devices.

匯出您的環境Exporting your environment

Windows Mixed Reality 依賴二進位 glTF (. glb) 做為環境的資產傳遞格式。Windows Mixed Reality relies on binary glTF (.glb) as the asset delivery format for environments. glTF 是 Khronos 群組所維護之3D 資產傳遞的專利免費開放標準。glTF is a royalty free open standard for 3D asset delivery maintained by the Khronos group. Microsoft 對 Windows 應用程式和體驗的格式支援將隨著 glTF 發展成為互通3D 內容的產業標準。Microsoft’s support for the format across Windows apps and experiences will grow as glTF evolves as an industry standard for interoperable 3D content.

匯出用來作為自訂家用環境之資產的第一個步驟是產生 glTF 2.0 模型。The first step in exporting assets to be used as custom home environments is generating a glTF 2.0 model. GlTF 工作群組會維護一份 支援的匯出工具和轉換器清單, 以建立 glTF 2.0 模型。The glTF working group maintains a list of supported exporters and converters to create a glTF 2.0 model. 若要開始使用,請使用此頁面上所列的其中一個程式來建立和匯出 glTF 2.0 模型,或使用其中一個支援的轉換器來轉換現有的模型。To get started, use one of the programs listed on this page to create and export a glTF 2.0 model, or convert an existing model using one of the supported converters.

此外,請參閱 [這篇實用的文章,其中提供了直接從 Blender 和 3DS Max 匯出 glTF 模型的藝術工作流程總覽。Additionally, check out [this helpful article, which provides an overview of an art workflow for exporting glTF models from Blender and 3DS Max directly.

環境限制Environment limits

所有環境都必須是 < 256 mb。All environments must be < 256 mbs. 大於 256 mb 的環境將無法載入,而且只會使用使用者周圍的預設 skybox 來切換回空白世界。Environments larger than 256 mbs will fail to load and fall back to an empty world with just the default skybox surrounding the user. 建立模型時,請記住此檔案大小限制。Keep this file size limit in mind when creating your models. 此外,如果您打算使用 WindowsMRAssetConverter (如下所述)將您的環境優化,請 cognizant 材質大小會隨著優化工具建立檔案大小較大但載入速度更快的材質而增加。Additionally, if you plan to optimize your environment using the WindowsMRAssetConverter as described below, be cognizant that the texture size will increase as the optimizer creates textures that have a larger file size, but load faster.

優化您的環境Optimizing your environment

Windows Mixed Reality 支援許多可大幅降低環境載入時間的選擇性優化。Windows Mixed Reality supports many optional optimizations that can significantly reduce your environment load times. 請特別注意具有許多材質的環境,因為它們有時候會在載入時出現。Pay special attention with environments that have lots of textures, as they'll sometimes time out while loading. 一般來說,我們建議所有資產都使用此步驟,不過,只有少數或低解析度紋理的較小環境並不一定需要它。In general, we recommend this step for all assets, however, smaller environments with few or low-resolution textures won't always require it.

為了簡化此程式,我們建立了 Windows Mixed Reality 的 資產轉換器 (可在 GitHub) 上 取得,以進行優化。To make this process easier, we've created the Windows Mixed Reality Asset Converter (available on GitHub) to do your optimizations. 這項工具會使用 Microsoft glTF 工具組中提供的一組公用程式,藉由執行額外的材質封裝、壓縮和解析度向下調整,來優化任何標準 2.0 glTF 或 glb。This tool uses a set of utilities available in the Microsoft glTF toolkit to optimize any standard 2.0 glTF or.glb by performing an extra texture packing, compression, and resolution down-scaling.

轉換器目前支援數個旗標,以調整優化的確切行為。The converter currently supports several flags to tweak the exact behavior of the optimizations. 建議您以下列旗標執行,以獲得最佳結果:We recommend running with the following flags for best results:

旗標Flag 建議值 (s) Recommended Value(s) 描述Description
-最大材質-大小-max-texture-size 1024或20481024 or 2048 調整值以改善紋理的品質,預設值為512x512。Tweak the value to improve the quality of the textures, default is 512x512. 較大的值會大幅影響環境的檔案大小,因此請記住 256-mb 的限制A larger value will significantly impact the file size of the environment so keep the 256-mb limit in mind
-最小-版本-min-version 18031803 只有在 windows >= 1803 的版本上才支援自訂環境。Custom environments are only supported on versions of windows >= 1803. 此旗標會移除較舊版本的材質,並減少最終資產的檔案大小This flag will remove textures for older versions and reduce the file size of the final asset

例如:For example:

WindowsMRAssetConverter FileToConvert.gltf -max-texture-size 1024 -min-version 1803

測試您的環境Testing your environment

當您擁有最終的 glb 環境之後,即可在耳機中進行測試。Once you have your final.glb environment, you're ready to test it out in the headset. 從「 試用範例環境 」一節的步驟2開始,使用您的自訂環境做為混合實境首頁。Start at step 2 in the "Trying a sample environment" section to use your custom environment as the mixed reality home.

傳送意見反應Sending feedback

在評估這項實驗性功能時,我們想要瞭解您使用自訂環境的方式、您可能發現的任何錯誤,以及您喜歡此功能的方式。While we're evaluating this experimental feature, we're interested in learning how you're using custom environments, any bugs you may find, and how you like the feature. 分享在 開發人員論壇中建立及使用自訂家用環境的任何意見反應。Share any feedback for creating and using custom home environments in the developer forums.

疑難排解與秘訣Troubleshooting and tips

如何? 變更環境的名稱?How do I change the name of the environment?

[環境] 資料夾中的檔案名將用於位置選擇器中。The file name in the environments folder will be used in the Places picker. 若要變更您的環境名稱,請重新命名環境檔案名,然後重新開機混合實境入口。To change the name of your environment, rename the environment file name, and then restart Mixed Reality Portal.

如何? 從我的地點選擇器移除自訂環境?How do I remove custom environments from my Places picker?

若要移除自訂環境,請在您的電腦上開啟環境資料夾 (%LOCALAPPDATA%\Packages\EnvironmentsApp_cw5n1h2txyewy\LocalState) 並刪除環境。To remove a custom environment, open the environments folder on your PC (%LOCALAPPDATA%\Packages\EnvironmentsApp_cw5n1h2txyewy\LocalState) and delete the environment. 一旦您重新開機混合實境入口,此環境將不會再出現在位置選擇器中。Once you restart Mixed Reality Portal, this environment will no longer appear in the Places picker.

如何? 預設為我最愛的自訂環境?How do I default to my favorite custom environment?

您目前無法變更預設環境。You can't currently change the default environment. 每次您重新開機混合實境入口時,您都會回到懸崖之屋環境。Each time you restart Mixed Reality Portal, you'll be returned to the Cliff House environment.

我產生了一個空格I spawn into a blank space

Windows Mixed Reality 不支援超過 256 mb 的環境Windows Mixed Reality doesn't support environments that exceed 256 mb. 當環境超過此限制時,您會進入空白的天空方塊,而不需要模型。When an environment exceeds this limit, you'll land in the empty sky box with no model.

載入我的環境需要很長的時間It takes a long time to load my environment

您可以為您的環境新增選擇性的優化,以加快載入的速度。You can add optional optimizations to your environment to make it load faster. 如需詳細資訊,請參閱「 將您的環境優化 」。See "Optimizing your environment" for details.

我的環境規模不正確The scale of my environment is incorrect

Windows Mixed Reality 會在載入環境時將 glTF 單位轉譯為1計量。Windows Mixed Reality translates glTF units to 1 meter when loading environments. 如果您的環境載入未預期的規模,請再次檢查您的匯出工具,以確定您是以1計量規模的模型化。If your environment loads up an unexpected scale, double check your exporter to ensure that you're modeling at a 1-meter scale.

我的環境中產生的位置不正確The spawn location in my environment is incorrect

預設產生位置位於環境中0、0、0。The default spawn location is located at 0,0,0 in the environment. 目前無法自訂此位置,因此您必須將您的環境與您想要的產生點上的來源一起匯出,以修改產生點。It's not currently possible to customize this location, so you must modify the spawn point by exporting your environment with the origin positioned at the spawn point you want.

音訊在環境中無法正確播放The audio doesn't sound correct in the environment

當您建立自訂環境時,它會使用聲場呈現模擬,而不符合您所建立的實體空間。When you create your custom environment, it will be using an acoustics rendering simulation that doesn't match the physical space you've created. 音效可能來自錯誤的方向,而且可能音效 muffled。Sound may come from the wrong directions and may sound muffled.

另請參閱See also