Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid motion vectors for dynamic object in GBuffer / defaultVS #358

Open
kopaka1822 opened this issue May 26, 2023 · 0 comments
Open

Invalid motion vectors for dynamic object in GBuffer / defaultVS #358

kopaka1822 opened this issue May 26, 2023 · 0 comments

Comments

@kopaka1822
Copy link

I was wondering why the motion vectors for animated scenes looked wrong when taken from the GBufferRaster, but they were correct in the VBufferRaster.

I replaced the respective code in the Source/Falcor/Scene/Raster.slang with the motion vector code from the VBuffer
Before (Raster.slang ~97): uint prevVertexIndex = gScene.meshes[instance.geometryIndex].prevVbOffset + vIn.vertexID;
After the fix: uint prevVertexIndex = gScene.meshes[instance.geometryID].prevVbOffset + vIn.vertexID;

and now it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant