Commit 78a6147
Improve lighting in soccer pitch.
Plane geoms in mujoco don't actually have a height, they extend infinitely downward. Instead, the third number in the size argument represents the size of the grid which is used for rendering lighting. Lighting values for the plane are calculated at each grid vertex and interpolated in between. The current large grid size is what's causing the lighting artifacts we've been seeing in soccer videos.
This CL reduces the grid size, which makes lighting on the ground look much more realistic. It also renames the grid size variable to reflect its true purpose.]
PiperOrigin-RevId: 300565743
Change-Id: I9c5810cbaec576eeb012f584ad7c1dc659faa4cd1 parent 29e8d14 commit 78a6147
2 files changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
| 327 | + | |
327 | 328 | | |
328 | 329 | | |
329 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments