Voxel shadow fixes for interleaved buffers
This PR adds defines to assist with vertex pulling when the vertex buffers are interleaved. I'm also including a fix by @Popov72 for IBL shadow voxelization when using bones.
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). To prevent this PR from going to the changelog marked it with the "skip changelog" label.
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). To prevent this PR from going to the changelog marked it with the "skip changelog" label.
Snapshot stored with reference name: refs/pull/17376/merge
Test environment: https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/index.html
To test a playground add it to the URL, for example:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/17376/merge https://sandbox.babylonjs.com/?snapshot=refs/pull/17376/merge https://gui.babylonjs.com/?snapshot=refs/pull/17376/merge https://nme.babylonjs.com/?snapshot=refs/pull/17376/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/17376/merge#BCU1XR#0
Interaction tests
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/interactionplaywright/index.html
Devhost visualization test reporter:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/devhostplaywright/index.html
WebGL2 visualization test reporter:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/webgl2playwright/index.html
Visualization tests for WebGPU
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/webgpuplaywright/index.html
Interaction tests
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/interactionplaywright/index.html
WebGL2 visualization test reporter:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/webgl2playwright/index.html
Visualization tests for WebGPU
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/webgpuplaywright/index.html
Devhost visualization test reporter:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/devhostplaywright/index.html
@Popov72 I've included your fix and also made once that fixes the voxelization when calling it repeatedly.
This allows the voxelization to work with all the animated assets that I've tried. Though, I suspect an animated asset that moves a lot will pass outside the bounds of the voxelization since the bounds update doesn't take skinning into account.
Interaction tests
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/interactionplaywright/index.html
Devhost visualization test reporter:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/devhostplaywright/index.html
Visualization tests for WebGPU
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/webgpuplaywright/index.html
WebGL2 visualization test reporter:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/webgl2playwright/index.html
@MiiBond fyi cause I think some of the comments went in late :-)
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). To prevent this PR from going to the changelog marked it with the "skip changelog" label.
I didn't have time today, but I will review the PR tomorrow.
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). To prevent this PR from going to the changelog marked it with the "skip changelog" label.
You should remove package-lock.json from the PR.
cc @MiiBond for the last batch of comments :-)
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). To prevent this PR from going to the changelog marked it with the "skip changelog" label.
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). To prevent this PR from going to the changelog marked it with the "skip changelog" label.
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). To prevent this PR from going to the changelog marked it with the "skip changelog" label.
I finally got back to this. I barely remember what I was doing in this code but I think I've fixed most of the issues. I can see the shadows animate now for skinned meshes and morph target meshes.
Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s). To prevent this PR from going to the changelog marked it with the "skip changelog" label.
Snapshot stored with reference name: refs/pull/17376/merge
Test environment: https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/index.html
To test a playground add it to the URL, for example:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/index.html#WGZLGJ#4600
Links to test your changes to core in the published versions of the Babylon tools (does not contain changes you made to the tools themselves):
https://playground.babylonjs.com/?snapshot=refs/pull/17376/merge https://sandbox.babylonjs.com/?snapshot=refs/pull/17376/merge https://gui.babylonjs.com/?snapshot=refs/pull/17376/merge https://nme.babylonjs.com/?snapshot=refs/pull/17376/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/17376/merge#BCU1XR#0
If you made changes to the sandbox or playground in this PR, additional comments will be generated soon containing links to the dev versions of those tools.
Interaction tests
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/interactionplaywright/index.html
Visualization tests for WebGPU
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17376/merge/testResults/webgpuplaywright/index.html