Commit 2e79fe5
Keypoint self occlusion (#351)
* WIP self-occlusion checks.
* More updates for self-occlusion
* Almost working using compute shaders. Need to switch to regular rendering now.
* Kind of working!
* Ok, officially working now
* Adding some tests for self-occlusion. Some fixes in KeypointLabeler
* Fix issues with orthographic views and points close to far plane
* Fixing remainder of tests.
* Removing comments
* Fixing issues in URP with orthographic view
* Updating JointLabel
* Updating JointLabel to include self-occlusion distance and drop the reference to the keypoint label config
* Adding gizmos for keypoints
* Adding and fixing remainder of tests.
* Fixing various bugs in keypoint self occlusion, including (hopefully) properly supporting player builds
* Fixing issues with large numbers of keypoints.
* Fixing issue with resizing buffers
* Add search for non-background pixel to keypoint depth check. Not perfect, but catches a few edge cases for now. Should migrate to doing all checks in shader at some point
* Apply object scale even when using the global occlusion distance.
* Make scaling of self-occlusion distance apply in every scenario
* Fix joint scale
* Moving self occlusion distance to the KeypointTemplate
* Model based occludder distance overrides
* Code cleaned up and commented
* Tests for self-occlusion scalar value
* Updated changelog file
* Updated class documentation
* Updates to documentation
* Removed added, but unneeded, import
* Mostly updated comments
* Adding some comments to the depth check shader
* Fixing test compile error and mistake in RenderTextureReader
* Fixes for PR comments
* Fix for shader to work properly in HDRP/URP
* Another attempt to fix shaders for URP & HDRP
* Tests are passing locally right now
* Setting hdrp enabled disabled again
* Another attempt
* Another try to get these shaders to compile correctly
* Magic test fix attempt
* Incorporating mohsen's test fix
* Update to fix compile error
* One more attempt at fixing the keypoint shader
* Attempt moving to newer unity version
* Upgrade projects to 2020.3.16f1.
* Updating shader to use PackageRequirements
* Fixing package name
* Updating to 2020.3.16
* Fixing keypoint depth issues on Linux
* More project updated for 2020.3 and fixing tests.
* Changing minimum version to 2020.3
* Cleaning up commented out code
Co-authored-by: Jon Hogins <[email protected]>1 parent 2c0de3a commit 2e79fe5
File tree
61 files changed
+3429
-1082
lines changed- .yamato
- TestProjects
- PerceptionHDRP
- Assets
- Prefabs
- Scenes
- Packages
- ProjectSettings
- UserSettings
- PerceptionURP
- Assets
- Human Pose Labeling and Randomization/Models and Animations
- Prefabs
- Scenes
- Settings
- Packages
- ProjectSettings
- UserSettings
- com.unity.perception
- Documentation~
- GroundTruth
- images
- Editor
- GroundTruth
- Icons
- Runtime/GroundTruth
- Labelers
- Resources
- Tests/Runtime
- GroundTruthTests
- TestAssets
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
61 files changed
+3429
-1082
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
11 | | - | |
| 11 | + | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | | - | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
| 44 | + | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
124 | 137 | | |
125 | 138 | | |
126 | 139 | | |
| |||
134 | 147 | | |
135 | 148 | | |
136 | 149 | | |
| 150 | + | |
| 151 | + | |
137 | 152 | | |
138 | 153 | | |
139 | 154 | | |
| |||
190 | 205 | | |
191 | 206 | | |
192 | 207 | | |
| 208 | + | |
| 209 | + | |
193 | 210 | | |
194 | 211 | | |
| 212 | + | |
195 | 213 | | |
196 | 214 | | |
197 | 215 | | |
198 | 216 | | |
199 | 217 | | |
| 218 | + | |
200 | 219 | | |
| 220 | + | |
201 | 221 | | |
202 | 222 | | |
203 | 223 | | |
| |||
258 | 278 | | |
259 | 279 | | |
260 | 280 | | |
| 281 | + | |
Lines changed: 120 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
156 | 160 | | |
157 | 161 | | |
158 | | - | |
159 | | - | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
166 | 173 | | |
167 | 174 | | |
168 | 175 | | |
169 | | - | |
170 | | - | |
| 176 | + | |
| 177 | + | |
171 | 178 | | |
172 | 179 | | |
173 | 180 | | |
174 | 181 | | |
175 | 182 | | |
176 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
177 | 187 | | |
178 | 188 | | |
179 | 189 | | |
180 | | - | |
181 | | - | |
| 190 | + | |
| 191 | + | |
182 | 192 | | |
183 | 193 | | |
184 | 194 | | |
185 | 195 | | |
186 | 196 | | |
187 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
188 | 201 | | |
189 | 202 | | |
190 | 203 | | |
191 | 204 | | |
| 205 | + | |
192 | 206 | | |
| 207 | + | |
193 | 208 | | |
194 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
195 | 213 | | |
196 | | - | |
197 | 214 | | |
198 | 215 | | |
199 | 216 | | |
| |||
211 | 228 | | |
212 | 229 | | |
213 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
214 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
215 | 245 | | |
216 | 246 | | |
217 | 247 | | |
| 248 | + | |
218 | 249 | | |
219 | 250 | | |
| 251 | + | |
220 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
221 | 257 | | |
222 | 258 | | |
223 | 259 | | |
224 | | - | |
225 | | - | |
226 | 260 | | |
227 | 261 | | |
228 | 262 | | |
229 | 263 | | |
230 | 264 | | |
231 | 265 | | |
232 | | - | |
| 266 | + | |
233 | 267 | | |
234 | 268 | | |
235 | 269 | | |
| |||
241 | 275 | | |
242 | 276 | | |
243 | 277 | | |
| 278 | + | |
244 | 279 | | |
245 | 280 | | |
246 | 281 | | |
| |||
253 | 288 | | |
254 | 289 | | |
255 | 290 | | |
| 291 | + | |
| 292 | + | |
256 | 293 | | |
257 | 294 | | |
258 | 295 | | |
| |||
295 | 332 | | |
296 | 333 | | |
297 | 334 | | |
| 335 | + | |
298 | 336 | | |
299 | 337 | | |
300 | 338 | | |
| |||
308 | 346 | | |
309 | 347 | | |
310 | 348 | | |
| 349 | + | |
311 | 350 | | |
312 | 351 | | |
313 | 352 | | |
| 353 | + | |
314 | 354 | | |
315 | 355 | | |
316 | 356 | | |
| |||
336 | 376 | | |
337 | 377 | | |
338 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
339 | 439 | | |
340 | 440 | | |
341 | 441 | | |
| |||
344 | 444 | | |
345 | 445 | | |
346 | 446 | | |
| 447 | + | |
347 | 448 | | |
348 | 449 | | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
0 commit comments