Skip to content

Commit e61c5e6

Browse files
authored
Merge pull request #358 from Unity-Technologies/0.8.0.preview.4_staging
Merging 0.8.0.preview.4 back into master.
2 parents b396d12 + 0eda634 commit e61c5e6

File tree

9 files changed

+73
-30
lines changed

9 files changed

+73
-30
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
[![license badge](https://img.shields.io/badge/license-Apache--2.0-green.svg)](LICENSE.md)
88

99
<img src="https://img.shields.io/badge/unity-2019.4-green.svg?style=flat-square" alt="unity 2019.4">
10-
<img src="https://img.shields.io/badge/unity-2020.3-green.svg?style=flat-square" alt="unity 2020.3">
10+
<img src="https://img.shields.io/badge/unity-2020.2-green.svg?style=flat-square" alt="unity 2020.3">
1111

12-
> com.unity.perception is in active development. Its features and API are subject to significant change as development progresses.
12+
> `com.unity.perception` is in active development. Its features and API are subject to significant change as development progresses.
1313
1414

1515
# Perception Package ([Unity Computer Vision](https://unity.com/computer-vision))

TestProjects/PerceptionHDRP/Packages/packages-lock.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"com.unity.collections": "0.9.0-preview.6",
8282
"com.unity.nuget.newtonsoft-json": "1.1.2",
8383
"com.unity.render-pipelines.core": "7.1.6",
84-
"com.unity.simulation.capture": "0.0.10-preview.20",
84+
"com.unity.simulation.capture": "0.0.10-preview.23",
8585
"com.unity.simulation.client": "0.0.10-preview.10",
8686
"com.unity.simulation.core": "0.0.10-preview.22"
8787
}
@@ -126,11 +126,11 @@
126126
"url": "https://packages.unity.com"
127127
},
128128
"com.unity.simulation.capture": {
129-
"version": "0.0.10-preview.20",
129+
"version": "0.0.10-preview.23",
130130
"depth": 1,
131131
"source": "registry",
132132
"dependencies": {
133-
"com.unity.simulation.core": "0.0.10-preview.22"
133+
"com.unity.simulation.core": "0.0.10-preview.25"
134134
},
135135
"url": "https://packages.unity.com"
136136
},
@@ -142,10 +142,12 @@
142142
"url": "https://packages.unity.com"
143143
},
144144
"com.unity.simulation.core": {
145-
"version": "0.0.10-preview.22",
146-
"depth": 1,
145+
"version": "0.0.10-preview.25",
146+
"depth": 2,
147147
"source": "registry",
148-
"dependencies": {},
148+
"dependencies": {
149+
"com.unity.nuget.newtonsoft-json": "2.0.0-preview"
150+
},
149151
"url": "https://packages.unity.com"
150152
},
151153
"com.unity.test-framework": {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public IEnumerator MissingRendererFeature_ProducesLogError()
4141
var gameObject = new GameObject();
4242
gameObject.SetActive(false);
4343
gameObject.AddComponent<Camera>();
44+
gameObject.AddComponent<UniversalAdditionalCameraData>();
45+
4446
var perceptionCamera = gameObject.AddComponent<PerceptionCamera>();
4547
gameObject.SetActive(true);
4648
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.");

TestProjects/PerceptionURP/Packages/packages-lock.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"com.unity.collections": "0.9.0-preview.6",
8282
"com.unity.nuget.newtonsoft-json": "1.1.2",
8383
"com.unity.render-pipelines.core": "7.1.6",
84-
"com.unity.simulation.capture": "0.0.10-preview.20",
84+
"com.unity.simulation.capture": "0.0.10-preview.23",
8585
"com.unity.simulation.client": "0.0.10-preview.10",
8686
"com.unity.simulation.core": "0.0.10-preview.22"
8787
}
@@ -115,11 +115,11 @@
115115
"url": "https://packages.unity.com"
116116
},
117117
"com.unity.simulation.capture": {
118-
"version": "0.0.10-preview.20",
118+
"version": "0.0.10-preview.23",
119119
"depth": 1,
120120
"source": "registry",
121121
"dependencies": {
122-
"com.unity.simulation.core": "0.0.10-preview.22"
122+
"com.unity.simulation.core": "0.0.10-preview.25"
123123
},
124124
"url": "https://packages.unity.com"
125125
},
@@ -131,10 +131,12 @@
131131
"url": "https://packages.unity.com"
132132
},
133133
"com.unity.simulation.core": {
134-
"version": "0.0.10-preview.22",
135-
"depth": 1,
134+
"version": "0.0.10-preview.25",
135+
"depth": 2,
136136
"source": "registry",
137-
"dependencies": {},
137+
"dependencies": {
138+
"com.unity.nuget.newtonsoft-json": "2.0.0-preview"
139+
},
138140
"url": "https://packages.unity.com"
139141
},
140142
"com.unity.test-framework": {
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"MonoBehaviour": {
3+
"Version": 3,
4+
"EnableBurstCompilation": true,
5+
"EnableOptimisations": true,
6+
"EnableSafetyChecks": false,
7+
"EnableDebugInAllBuilds": false,
8+
"UsePlatformSDKLinker": false,
9+
"CpuMinTargetX32": 0,
10+
"CpuMaxTargetX32": 0,
11+
"CpuMinTargetX64": 0,
12+
"CpuMaxTargetX64": 0,
13+
"CpuTargetsX64": 72
14+
}
15+
}

com.unity.perception/CHANGELOG.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,51 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1212
### Known Issues
1313

1414
### Added
15-
Added support for 'step' button in editor.
16-
17-
Added random seed field to the Run in Unity Simulation Window
18-
1915
User can now choose the base folder location to store their generated data.
2016

2117
Added 'projection' field in the capture.sensor metadata. Values are either "perspective" or "orthographic"
2218

2319
### Changed
24-
Increased color variety in instance segmentation images
2520

26-
The PoissonDiskSampling utility now samples a larger region of points to then crop to size of the intended region to prevent edge case bias.
21+
Changed the JSON serialization key of Normal Sampler's standard deviation property from "standardDeviation" to "stddev". Scneario JSON configurations that were generated using previous versions will need to be manually updated to reflect this change.
2722

28-
Upgraded capture package dependency to 0.0.10-preview.22 to fix an issue with URP where post processing effects were not included when capturing images.
23+
### Deprecated
2924

30-
Changed the JSON serialization key of Normal Sampler's standard deviation property from "standardDeviation" to "stddev". Scneario JSON configurations that were generated using previous versions will need to be manually updated to reflect this change.
25+
### Removed
26+
27+
### Fixed
28+
29+
## [0.8.0-preview.4] - 2021-07-05
30+
31+
### Upgrade Notes
32+
33+
### Known Issues
34+
35+
When using URP in OSX, having MSAA enabled on the camera while the post-processing option is disabled may cause the output RGB images to be blank. As a workaround, you can disable MSAA and use FXAA instead, until the issue is fixed.
36+
37+
### Added
38+
39+
Added support for 'step' button in editor.
40+
41+
Added random seed field to the Run in Unity Simulation Window.
42+
43+
### Changed
44+
45+
Increased color variety in instance segmentation images.
46+
47+
The PoissonDiskSampling utility now samples a larger region of points to then crop to size of the intended region to prevent edge case bias.
48+
49+
Upgraded capture package dependency to 0.0.10-preview.23 to fix two issues: (1) Post processing effects were not included when capturing images in URP (2) RGB images were upside-down when post processing effects were enabled and FXAA disabled.
3150

3251
### Deprecated
3352

3453
### Removed
3554

3655
### Fixed
56+
3757
Fixed keypoint labeling bug when visualizations are disabled.
3858

39-
Fixed an issue where Simulation Delta Time values larger than 100 seconds (in Perception Camera) would cause incorrect capture scheduling behavior.
59+
Fixed an issue where Simulation Delta Time values larger than 100 seconds in Perception Camera would cause incorrect capture scheduling behavior.
4060

4161
Fixed an issue where Categorical Parameters sometimes tried to fetch items at `i = categories.Count`, which caused an exception.
4262

com.unity.perception/Runtime/GroundTruth/Labelers/KeypointLabeler.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ private void OnRenderedObjectInfoReadback(int frameCount, NativeArray<RenderedOb
224224
{
225225
include = true;
226226
break;
227-
}
228-
}
227+
}
228+
}
229229

230230
if (!include && objectFilter == KeypointObjectFilter.VisibleAndOccluded)
231231
include = keypointSet.Value.keypoints.Any(k => k.state == 1);
232-
}
232+
}
233233
if (include)
234234
m_KeypointEntriesToReport.Add(entry);
235235
}
@@ -617,4 +617,4 @@ KeypointJson TemplateToJson(KeypointTemplate input)
617617
return json;
618618
}
619619
}
620-
}
620+
}

com.unity.perception/Tests/Editor/PerceptionCameraEditorTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using Moq;
1313
using Moq.Protected;
1414
using UnityEngine.Rendering;
15-
1615
#endif
1716

1817
namespace EditorTests
@@ -205,8 +204,11 @@ static GameObject SetupCamera(Action<PerceptionCamera> initPerceptionCameraCallb
205204
var camera = cameraObject.AddComponent<Camera>();
206205
camera.orthographic = true;
207206
camera.orthographicSize = 1;
207+
208208
#if HDRP_PRESENT
209209
cameraObject.AddComponent<UnityEngine.Rendering.HighDefinition.HDAdditionalCameraData>();
210+
#elif URP_PRESENT
211+
cameraObject.AddComponent<UnityEngine.Rendering.Universal.UniversalAdditionalCameraData>();
210212
#endif
211213

212214
var perceptionCamera = cameraObject.AddComponent<PerceptionCamera>();

com.unity.perception/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"com.unity.collections": "0.9.0-preview.6",
55
"com.unity.nuget.newtonsoft-json": "1.1.2",
66
"com.unity.render-pipelines.core": "7.1.6",
7-
"com.unity.simulation.capture": "0.0.10-preview.22",
7+
"com.unity.simulation.capture": "0.0.10-preview.23",
88
"com.unity.simulation.client": "0.0.10-preview.10",
99
"com.unity.simulation.core": "0.0.10-preview.22"
1010
},
1111
"description": "Tools for generating large-scale data sets for perception-based machine learning training and validation",
1212
"displayName": "Perception",
1313
"name": "com.unity.perception",
1414
"unity": "2019.4",
15-
"version": "0.8.0-preview.3",
15+
"version": "0.8.0-preview.4",
1616
"samples": [
1717
{
1818
"displayName": "Tutorial Files",

0 commit comments

Comments
 (0)