浏览代码

Merge branch 'master' of github.com:Unity-Technologies/com.unity.perception into 0.2.0-staging

/RC_0.2.0-preview.1
Wesley Mareovich Smith 4 年前
当前提交
9e360efe
共有 29 个文件被更改,包括 413 次插入288 次删除
  1. 3
      TestProjects/PerceptionURP/Assets/Settings/ForwardRenderer.asset
  2. 2
      TestProjects/PerceptionURP/Assets/Settings/ForwardRenderer.asset.meta
  3. 5
      TestProjects/PerceptionURP/Assets/Settings/UniversalRPAsset.asset
  4. 2
      TestProjects/PerceptionURP/ProjectSettings/GraphicsSettings.asset
  5. 17
      com.unity.perception/Documentation~/GettingStarted.md
  6. 5
      com.unity.perception/Editor/Unity.Perception.Editor.asmdef
  7. 11
      com.unity.perception/Runtime/GroundTruth/GroundTruthRendererFeature.cs
  8. 25
      com.unity.perception/Runtime/GroundTruth/PerceptionCamera.cs
  9. 8
      com.unity.perception/Tests/Editor/Unity.Perception.Editor.Tests.asmdef
  10. 6
      com.unity.perception/Tests/Runtime/GroundTruthTests/PerceptionCameraIntegrationTests.cs
  11. 55
      TestProjects/PerceptionURP/Assets/Settings/NoGroundTruthURPAsset.asset
  12. 8
      TestProjects/PerceptionURP/Assets/Settings/NoGroundTruthURPAsset.asset.meta
  13. 38
      TestProjects/PerceptionURP/Assets/Settings/NoRendererFeatureRenderer.asset
  14. 8
      TestProjects/PerceptionURP/Assets/Settings/NoRendererFeatureRenderer.asset.meta
  15. 8
      TestProjects/PerceptionURP/Assets/Settings/UniversalRPAsset.asset.meta
  16. 8
      TestProjects/PerceptionURP/Assets/Tests.meta
  17. 115
      com.unity.perception/Documentation~/images/ScriptableRendererStep.png
  18. 8
      TestProjects/PerceptionURP/Assets/Tests/Editor.meta
  19. 53
      TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionCameraEditorUrpTests.cs
  20. 11
      TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionCameraEditorUrpTests.cs.meta
  21. 22
      TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionURP.EditorTests.asmdef
  22. 7
      TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionURP.EditorTests.asmdef.meta
  23. 8
      TestProjects/PerceptionURP/Assets/Settings/UniversalRP-HighQuality.asset.meta
  24. 8
      TestProjects/PerceptionURP/Assets/Resources.meta
  25. 253
      com.unity.perception/Tests/Runtime/GroundTruthTests/Main Camera.prefab
  26. 7
      com.unity.perception/Tests/Runtime/GroundTruthTests/Main Camera.prefab.meta
  27. 0
      /TestProjects/PerceptionURP/Assets/Settings/UniversalRPAsset.asset

3
TestProjects/PerceptionURP/Assets/Settings/ForwardRenderer.asset


m_EditorClassIdentifier:
m_RendererFeatures:
- {fileID: 5741507687788441411}
m_RendererFeatureMap:
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
shaders:
blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}

passOperation: 0
failOperation: 0
zFailOperation: 0
m_ShadowTransparentReceive: 1
--- !u!114 &5741507687788441411
MonoBehaviour:
m_ObjectHideFlags: 0

m_Script: {fileID: 11500000, guid: 780f1bb8e775c4245b86116069a82828, type: 3}
m_Name: Segmentation
m_EditorClassIdentifier:
m_Active: 1

2
TestProjects/PerceptionURP/Assets/Settings/ForwardRenderer.asset.meta


fileFormatVersion: 2
guid: 4a8e21d5c33334b11b34a596161b9360
guid: 86cfa956de1e1ca4f8d5f126f8f52b35
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0

5
TestProjects/PerceptionURP/Assets/Settings/UniversalRPAsset.asset


m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3}
m_Name: UniversalRP-HighQuality
m_Name: UniversalRPAsset
m_EditorClassIdentifier:
k_AssetVersion: 5
k_AssetPreviousVersion: 5

- {fileID: 11400000, guid: 4a8e21d5c33334b11b34a596161b9360, type: 2}
- {fileID: 11400000, guid: 86cfa956de1e1ca4f8d5f126f8f52b35, type: 2}
m_DefaultRendererIndex: 0
m_RequireDepthTexture: 0
m_RequireOpaqueTexture: 0

m_SupportsDynamicBatching: 0
m_MixedLightingSupported: 1
m_DebugLevel: 0
m_PostProcessingFeatureSet: 0
m_ColorGradingMode: 0
m_ColorGradingLutSize: 32
m_ShadowType: 1

2
TestProjects/PerceptionURP/ProjectSettings/GraphicsSettings.asset


m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0}
m_CustomRenderPipeline: {fileID: 11400000, guid: 19ba41d7c0026c3459d37c2fe90c55a0,
m_CustomRenderPipeline: {fileID: 11400000, guid: a6b7f179d262ade4fb856c528a71db82,
type: 2}
m_TransparencySortMode: 0
m_TransparencySortAxis: {x: 0, y: 0, z: 1}

17
com.unity.perception/Documentation~/GettingStarted.md


## Step 1: Create a project and install Perception
First, follow [this guide](SetupSteps.md) to install Perception in your project.
## Step 2: Create a new scene and camera
## Step 2 (for Universal Render Pipeline projects): Add GroundTruthRendererFeature
This step can be skipped for HDRP projects.
1. Select your project's `ScriptableRenderer` asset and open the inspector window. In most projects it is located at `Assets/Settings/ForwardRenderer.asset`.
2. Click `Add Renderer Feature` and select `Ground Truth Renderer Feature`
<img src="images/ScriptableRendererStep.PNG" align="middle"/>
## Step 3: Create a new scene and camera
1. Create a new scene using File -> New Scene
2. `ctrl+s` to save the scene and give it a name
3. Select the Main Camera and reset the Position transform to 0

<img src="images/MainCameraConfig.PNG" align="middle"/>
## Step 3: Create labeled objects
## Step 4: Create labeled objects
<img src="images/CompletedScene.PNG" align="middle"/>
1. On each cube, from the inspector panel add a **Labeling** component

3. Add a numerical value to the value field
Make sure the labels all have different values, for this example use increments of 10,000 to ensure they show up as very distinct colors in the segmentation images
## Step 4: Run simulation and generate dataset
## Step 5: Run simulation and generate dataset
1. Press play in the editor, allow the scene to run for a few seconds, and then exit playmode
2. In the console log you will see a Shutdown in Progress message that will show a file path to the location of the generated dataset.
>Example file path on a Windows PC : `C:/Users/<User Name>/AppData/LocalLow/DefaultCompany/UnityTestFramework\2e10ec21-9d97-4cee-b5a2-7e95e299afa4\RGB18f61842-ef8d-4b31-acb5-cb1da36fb7b1`

5
com.unity.perception/Editor/Unity.Perception.Editor.asmdef


"name": "com.unity.render-pipelines.high-definition",
"expression": "",
"define": "HDRP_PRESENT"
},
{
"name": "com.unity.render-pipelines.universal",
"expression": "",
"define": "URP_PRESENT"
}
],
"noEngineReferences": false

11
com.unity.perception/Runtime/GroundTruth/GroundTruthRendererFeature.cs


m_InstanceSegmentationPass.Execute(context, commandBuffer, renderingData.cameraData.camera, renderingData.cullResults);
CommandBufferPool.Release(commandBuffer);
}
public void Cleanup()
{
m_InstanceSegmentationPass.Cleanup();
}
}
class SemanticSegmentationUrpPass : ScriptableRenderPass

m_SemanticSegmentationCrossPipelinePass.Execute(context, commandBuffer, renderingData.cameraData.camera, renderingData.cullResults);
CommandBufferPool.Release(commandBuffer);
}
public void Cleanup()
{
m_SemanticSegmentationCrossPipelinePass.Cleanup();
}
}
public class GroundTruthRendererFeature : ScriptableRendererFeature

if (!EditorApplication.isPlaying)
return;
#endif
perceptionCamera.OnGroundTruthRendererFeatureRun();
foreach (var pass in perceptionCamera.passes)
renderer.EnqueuePass(pass);
}

25
com.unity.perception/Runtime/GroundTruth/PerceptionCamera.cs


#endif
bool m_CapturedLastFrame;
//only used to confirm that GroundTruthRendererFeature is present in URP
bool m_GroundTruthRendererFeatureRun;
/// <summary>
/// The <see cref="SensorHandle"/> associated with this camera. Use this to report additional annotations and metrics at runtime.

SetupInstanceSegmentation();
RenderPipelineManager.beginCameraRendering += OnBeginCameraRendering;
RenderPipelineManager.endCameraRendering += CheckForRendererFeature;
void CheckForRendererFeature(ScriptableRenderContext context, Camera camera)
{
if (camera == GetComponent<Camera>())
{
#if URP_PRESENT
if (!m_GroundTruthRendererFeatureRun)
{
Debug.LogError("GroundTruthRendererFeature must be present on the ScriptableRenderer associated with the camera. The ScriptableRenderer can be accessed through Edit -> Project Settings... -> Graphics -> Scriptable Render Pipeline Settings -> Renderer List.");
enabled = false;
}
#endif
RenderPipelineManager.endCameraRendering -= CheckForRendererFeature;
}
}
// Update is called once per frame
void Update()
{

return true;
}
return false;
}
internal void OnGroundTruthRendererFeatureRun()
{
//only used to confirm that GroundTruthRendererFeature is present in URP
m_GroundTruthRendererFeatureRun = true;
}
}
}

8
com.unity.perception/Tests/Editor/Unity.Perception.Editor.Tests.asmdef


"Unity.Collections",
"Unity.Entities",
"Unity.Simulation.Core",
"Unity.RenderPipelines.HighDefinition.Runtime"
"Unity.RenderPipelines.HighDefinition.Runtime",
"Unity.RenderPipelines.Universal.Runtime"
],
"includePlatforms": [
"Editor"

"name": "com.unity.render-pipelines.high-definition",
"expression": "",
"define": "HDRP_PRESENT"
},
{
"name": "com.unity.render-pipelines.universal",
"expression": "",
"define": "URP_PRESENT"
},
{
"name": "nuget.moq",

6
com.unity.perception/Tests/Runtime/GroundTruthTests/PerceptionCameraIntegrationTests.cs


static IdLabelConfig CreateLabelingConfiguration()
{
var label = "label";
var labelingConfiguration = ScriptableObject.CreateInstance<IdLabelConfig>();
var labelConfig = ScriptableObject.CreateInstance<IdLabelConfig>();
labelingConfiguration.Init(new List<IdLabelEntry>
labelConfig.Init(new List<IdLabelEntry>
{
new IdLabelEntry
{

});
return labelingConfiguration;
return labelConfig;
}
static SemanticSegmentationLabelConfig CreateSemanticSegmentationLabelConfig()
{

55
TestProjects/PerceptionURP/Assets/Settings/NoGroundTruthURPAsset.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bf2edee5c58d82540a51f03df9d42094, type: 3}
m_Name: NoGroundTruthURPAsset
m_EditorClassIdentifier:
k_AssetVersion: 5
k_AssetPreviousVersion: 5
m_RendererType: 1
m_RendererData: {fileID: 0}
m_RendererDataList:
- {fileID: 11400000, guid: 4a8e21d5c33334b11b34a596161b9360, type: 2}
m_DefaultRendererIndex: 0
m_RequireDepthTexture: 0
m_RequireOpaqueTexture: 0
m_OpaqueDownsampling: 1
m_SupportsTerrainHoles: 1
m_SupportsHDR: 0
m_MSAA: 1
m_RenderScale: 1
m_MainLightRenderingMode: 1
m_MainLightShadowsSupported: 1
m_MainLightShadowmapResolution: 2048
m_AdditionalLightsRenderingMode: 1
m_AdditionalLightsPerObjectLimit: 4
m_AdditionalLightShadowsSupported: 0
m_AdditionalLightsShadowmapResolution: 512
m_ShadowDistance: 50
m_ShadowCascades: 0
m_Cascade2Split: 0.25
m_Cascade4Split: {x: 0.067, y: 0.2, z: 0.467}
m_ShadowDepthBias: 1
m_ShadowNormalBias: 1
m_SoftShadowsSupported: 0
m_UseSRPBatcher: 1
m_SupportsDynamicBatching: 0
m_MixedLightingSupported: 1
m_DebugLevel: 0
m_PostProcessingFeatureSet: 0
m_ColorGradingMode: 0
m_ColorGradingLutSize: 32
m_ShadowType: 1
m_LocalShadowsSupported: 0
m_LocalShadowsAtlasResolution: 256
m_MaxPixelLights: 0
m_ShadowAtlasResolution: 256
m_ShaderVariantLogLevel: 0

8
TestProjects/PerceptionURP/Assets/Settings/NoGroundTruthURPAsset.asset.meta


fileFormatVersion: 2
guid: 729cd2a264937e74a8a577dfeba1b5ff
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

38
TestProjects/PerceptionURP/Assets/Settings/NoRendererFeatureRenderer.asset


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: de640fe3d0db1804a85f9fc8f5cadab6, type: 3}
m_Name: NoRendererFeatureRenderer
m_EditorClassIdentifier:
m_RendererFeatures: []
m_RendererFeatureMap:
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
shaders:
blitPS: {fileID: 4800000, guid: c17132b1f77d20942aa75f8429c0f8bc, type: 3}
copyDepthPS: {fileID: 4800000, guid: d6dae50ee9e1bfa4db75f19f99355220, type: 3}
screenSpaceShadowPS: {fileID: 4800000, guid: 0f854b35a0cf61a429bd5dcfea30eddd,
type: 3}
samplingPS: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
fallbackErrorPS: {fileID: 4800000, guid: e6e9a19c3678ded42a3bc431ebef7dbd, type: 3}
m_OpaqueLayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_TransparentLayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_DefaultStencilState:
overrideStencilState: 0
stencilReference: 0
stencilCompareFunction: 8
passOperation: 0
failOperation: 0
zFailOperation: 0
m_ShadowTransparentReceive: 1

8
TestProjects/PerceptionURP/Assets/Settings/NoRendererFeatureRenderer.asset.meta


fileFormatVersion: 2
guid: 4a8e21d5c33334b11b34a596161b9360
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
TestProjects/PerceptionURP/Assets/Settings/UniversalRPAsset.asset.meta


fileFormatVersion: 2
guid: a6b7f179d262ade4fb856c528a71db82
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
TestProjects/PerceptionURP/Assets/Tests.meta


fileFormatVersion: 2
guid: 2b5d792d2a60c974b80dba7adcb7753f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

115
com.unity.perception/Documentation~/images/ScriptableRendererStep.png

之前 之后
宽度: 708  |  高度: 465  |  大小: 36 KiB

8
TestProjects/PerceptionURP/Assets/Tests/Editor.meta


fileFormatVersion: 2
guid: a6a0af69d8a2a5a4f83c46cef584f62f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

53
TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionCameraEditorUrpTests.cs


using System;
using System.Collections;
using System.IO;
using NUnit.Framework;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UnityEngine.Perception.GroundTruth;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools;
namespace EditorTests
{
[TestFixture]
public class PerceptionCameraEditorUrpTests
{
[TearDown]
public void TearDown()
{
GraphicsSettings.renderPipelineAsset = AssetDatabase.LoadAssetAtPath<UniversalRenderPipelineAsset>("Assets/Settings/UniversalRPAsset.asset");
}
[UnityTest]
public IEnumerator MissingRendererFeature_ProducesLogError()
{
int sceneCount = SceneManager.sceneCount;
for (int i = sceneCount - 1; i >= 0; i--)
{
EditorSceneManager.CloseScene(SceneManager.GetSceneAt(i), true);
}
EditorSceneManager.NewScene(NewSceneSetup.EmptyScene);
var urpAsset = AssetDatabase.LoadAssetAtPath<UniversalRenderPipelineAsset>("Assets/Settings/NoGroundTruthURPAsset.asset");
GraphicsSettings.renderPipelineAsset = urpAsset;
yield return new EnterPlayMode();
var gameObject = new GameObject();
gameObject.SetActive(false);
gameObject.AddComponent<Camera>();
var perceptionCamera = gameObject.AddComponent<PerceptionCamera>();
gameObject.SetActive(true);
LogAssert.Expect(LogType.Error, "GroundTruthRendererFeature must be present on the ScriptableRenderer associated with the camera. The ScriptableRenderer can be accessed through Edit -> Project Settings... -> Graphics -> Scriptable Render Pipeline Settings -> Renderer List.");
yield return null;
Assert.IsFalse(perceptionCamera.enabled);
yield return new ExitPlayMode();
GraphicsSettings.renderPipelineAsset = AssetDatabase.LoadAssetAtPath<UniversalRenderPipelineAsset>("Assets/Settings/UniversalRPAsset.asset");
}
}
}

11
TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionCameraEditorUrpTests.cs.meta


fileFormatVersion: 2
guid: 3b66cae7c70440e4f91e67be950cb98d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

22
TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionURP.EditorTests.asmdef


{
"name": "PerceptionURP.EditorTests",
"references": [
"GUID:15fc0a57446b3144c949da3e2b9737a9",
"GUID:a3867139fb5f48e43972bdbc58ef9b3c"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"nunit.framework.dll"
],
"autoReferenced": true,
"defineConstraints": [
"UNITY_INCLUDE_TESTS"
],
"versionDefines": [],
"noEngineReferences": false
}

7
TestProjects/PerceptionURP/Assets/Tests/Editor/PerceptionURP.EditorTests.asmdef.meta


fileFormatVersion: 2
guid: 8fcc94536427be642b8f23f3c902b04c
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

8
TestProjects/PerceptionURP/Assets/Settings/UniversalRP-HighQuality.asset.meta


fileFormatVersion: 2
guid: 19ba41d7c0026c3459d37c2fe90c55a0
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:

8
TestProjects/PerceptionURP/Assets/Resources.meta


fileFormatVersion: 2
guid: a9ac6d4ef2846ce4cbb891bbf2650223
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

253
com.unity.perception/Tests/Runtime/GroundTruthTests/Main Camera.prefab


%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2608298934752318752
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2608298934752318763}
- component: {fileID: 2608298934752318756}
- component: {fileID: 2608298934752318757}
- component: {fileID: 2608298934752318758}
- component: {fileID: 2608298934752318759}
m_Layer: 0
m_Name: Main Camera
m_TagString: MainCamera
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2608298934752318763
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2608298934752318752}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1, z: -10}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!20 &2608298934752318756
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2608298934752318752}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: -1
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 0
m_AllowMSAA: 0
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!81 &2608298934752318757
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2608298934752318752}
m_Enabled: 1
--- !u!114 &2608298934752318758
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2608298934752318752}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 23c1ce4fb46143f46bc5cb5224c934f6, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Version: 6
m_ObsoleteRenderingPath: 0
m_ObsoleteFrameSettings:
overrides: 0
enableShadow: 0
enableContactShadows: 0
enableShadowMask: 0
enableSSR: 0
enableSSAO: 0
enableSubsurfaceScattering: 0
enableTransmission: 0
enableAtmosphericScattering: 0
enableVolumetrics: 0
enableReprojectionForVolumetrics: 0
enableLightLayers: 0
enableExposureControl: 1
diffuseGlobalDimmer: 0
specularGlobalDimmer: 0
shaderLitMode: 0
enableDepthPrepassWithDeferredRendering: 0
enableTransparentPrepass: 0
enableMotionVectors: 0
enableObjectMotionVectors: 0
enableDecals: 0
enableRoughRefraction: 0
enableTransparentPostpass: 0
enableDistortion: 0
enablePostprocess: 0
enableOpaqueObjects: 0
enableTransparentObjects: 0
enableRealtimePlanarReflection: 0
enableMSAA: 0
enableAsyncCompute: 0
runLightListAsync: 0
runSSRAsync: 0
runSSAOAsync: 0
runContactShadowsAsync: 0
runVolumeVoxelizationAsync: 0
lightLoopSettings:
overrides: 0
enableDeferredTileAndCluster: 0
enableComputeLightEvaluation: 0
enableComputeLightVariants: 0
enableComputeMaterialVariants: 0
enableFptlForForwardOpaque: 0
enableBigTilePrepass: 0
isFptlEnabled: 0
clearColorMode: 0
backgroundColorHDR: {r: 0.025, g: 0.07, b: 0.19, a: 0}
clearDepth: 1
volumeLayerMask:
serializedVersion: 2
m_Bits: 1
volumeAnchorOverride: {fileID: 0}
antialiasing: 0
SMAAQuality: 2
dithering: 0
stopNaNs: 0
physicalParameters:
m_Iso: 200
m_ShutterSpeed: 0.005
m_Aperture: 16
m_BladeCount: 5
m_Curvature: {x: 2, y: 11}
m_BarrelClipping: 0.25
m_Anamorphism: 0
flipYMode: 0
fullscreenPassthrough: 0
allowDynamicResolution: 0
customRenderingSettings: 0
invertFaceCulling: 0
probeLayerMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPathCustomFrameSettings:
bitDatas:
data1: 69730941533981
data2: 4539628424926265344
lodBias: 1
lodBiasMode: 0
lodBiasQualityLevel: 0
maximumLODLevel: 0
maximumLODLevelMode: 0
maximumLODLevelQualityLevel: 0
materialQuality: 0
renderingPathCustomFrameSettingsOverrideMask:
mask:
data1: 0
data2: 0
defaultFrameSettings: 0
--- !u!114 &2608298934752318759
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2608298934752318752}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 26d6499a6bd256e47b859377446493a1, type: 3}
m_Name:
m_EditorClassIdentifier:
isGlobal: 1
customPasses:
- id: 0
- id: 1
- id: 2
injectionPoint: 0
references:
version: 1
00000000:
type: {class: InstanceSegmentationPass, ns: UnityEngine.SimViz.Sensors, asm: Unity.SimViz.GroundTruth}
data:
name: Custom Pass
enabled: 1
targetColorBuffer: 1
targetDepthBuffer: 1
clearFlags: 0
passFoldout: 0
targetCamera: {fileID: 0}
layerMask:
serializedVersion: 2
m_Bits: 4294967295
targetTexture: {fileID: 8400000, guid: 6519b622da084c14ba19d257dbc156d8, type: 2}
reassignIds: 0
idStart: 1
idStep: 1
00000001:
type: {class: SemanticSegmentationPass, ns: UnityEngine.SimViz.Sensors, asm: Unity.SimViz.GroundTruth}
data:
name: Custom Pass
enabled: 1
targetColorBuffer: 1
targetDepthBuffer: 1
clearFlags: 0
passFoldout: 0
targetCamera: {fileID: 0}
targetTexture: {fileID: 8400000, guid: 7498338473af7ff4fbbfb55598b6d24e, type: 2}
labelingConfiguration: {fileID: 11400000, guid: 16a81d3f01f4f4345b113509e93fdab6,
type: 2}
00000002:
type: {class: LabelHistogramPass, ns: UnityEngine.SimViz.Sensors, asm: Unity.SimViz.GroundTruth}
data:
name: Custom Pass
enabled: 1
targetColorBuffer: 1
targetDepthBuffer: 1
clearFlags: 0
passFoldout: 0
targetCamera: {fileID: 0}
SegmentationTexture: {fileID: 8400000, guid: 6519b622da084c14ba19d257dbc156d8,
type: 2}
LabelingConfiguration: {fileID: 11400000, guid: 16a81d3f01f4f4345b113509e93fdab6,
type: 2}

7
com.unity.perception/Tests/Runtime/GroundTruthTests/Main Camera.prefab.meta


fileFormatVersion: 2
guid: b423c67e7ddf25444b8b047b1e9c7735
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

/TestProjects/PerceptionURP/Assets/Settings/UniversalRP-HighQuality.asset → /TestProjects/PerceptionURP/Assets/Settings/UniversalRPAsset.asset

正在加载...
取消
保存