-
Notifications
You must be signed in to change notification settings - Fork 0
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
[BUG] Unsure if motion Vectors are working as i expected #7
Comments
The Velocity source doesn't need to be rgbaHalf, just rgHalf is enough. Have you tried to update the velocity strength in the pass parameters? Be aware the final motion vector strength will be scaled with the camera's ShutterTime and the frame's delta time too. Also, what do you mean by "as I expected"? I'm curious to know what you wanted as output. |
Ok got it... First, I'm not sure but these values seem to be a bit exaggerated for me, maybe the renderer used to create your image has scaled the vectors to make them noticeable on screen? Because AFAIK for the motion blur effect, motion vectors should be really small to not distort the final image. Secondly the motion vectors in the image seem to be in 3D space (I'm saying that because of the purple-blue variation). But the motion blur is building his motion vectors on the screen space, you can only have black, red, green and yellow colors. And also the color space variation is not static and depends on the camera position. I feel like what you want instead is vertex velocity? |
No surely not, can you please share your render pipeline? |
Just reproduced your entire pipeline, but I'm not having this issue, even deactivated SourcePass clear but everything is working. Is this actually affecting the motion blur effect? Also did the velocity texture in renderdoc start with the output of the old frame? Also, if you are having this issue in the editor, I've been through it a bit, It seems to be due to the fact the viewport got initialized with the size defined in Window settings and then resized to the Editor's viewport size. A quick trick is just to resize the viewport again, even a little, and the velocity map shows correct values. But for in-game windows it should not happen. |
Looks like it was the issue with the editor resizing :D it was effecting the motion blur but now i have resized it looks to be working fine |
Would this also effect the upscale pass because it errors something about texture size == 0 |
Yes it can be the cause, but only for the very first frame I think. But the upscale pass is not meant to be used by the editor. And I've done nothing to help in that 😅 This is a game-only feature, since even the scaling ratio (calculated from the selected preset) will be precomputed and hence not usable on sizeable windows... |
Would be very useful for the editor as it would allow developers on weaker machines to get that little extra performance. I feel it makes sense to have the editor viewport match the game as close as possible |
Also looks to also effect in game with the same issue for motion blur although maybe a little stronger |
This is the output of motion vectors under movement.
Velocity source texture is set to RGBAHalf
Using Deferred -> Sky -> Transparent -> Motion Blur (After Sharpening)
The text was updated successfully, but these errors were encountered: