Pan around in the Preview at the bottom of the Material inspector and check that the 360 or 180 content looks correct.For equirectangular, choose Latitude Longitude Layout Mapping and then either the 360 or 180 degree sub-option depending on if the video covers a full 360 degree view, or just a front-facing 180 degree view. In order for the panoramic video to be properly displayed, the type of content in the video must be set correctly For cubemap content (such as a cross and strip layout as is common for static skybox textures) select the 6 Frames Layout Mapping.Drag the Render Texture from the Asset view to the texture slot in the new material.Set the Material’s Shader to Skybox/Panoramic.Create a new Material from Assets->Create. Create a Skybox Material: In order to render the panoramic video as a backdrop to the scene, replace the default Skybox with the video content.Switch the Render Mode to Render Texture and drag the newly created Render Texture from the Asset view to the Target Texture slot.Set the Depth Buffer option to No Depth Buffer(no need for depth information). ![]() ![]() Set the Render Texture’s Size to match that of the video exactly (the dimensions of the video are given under the “Source Info” section in the Preview UI in the Video Asset Inspector).Render the video to a Render Texture for precise display control: create a Render Texture from the Assets->Create.Create a Video Player by dragging the video asset to the scene hierarchy.Import the 360-degree video into Unity as an Asset.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |