gBuffer.Velocity can't extract from gBuffer.
I use this code in shader custom node:
MaterialFloat2 UV = MaterialFloat2(ScreenAlignedPosition(Parameters.ScreenPosition).xy); FScreenSpaceData ScreenSpaceData = GetScreenSpaceData(UV, false); return ScreenSpaceData.GBuffer.Velocity.xy;
Can't get gBuffer.Velocity. No error but just black. But I use VisualizeTexture velocity in cmd. it can show velocity in a little window. Can any one teach me how to do it?
we talk about it at forum, Please visit it: https://forums.unrealengine.com/showthread.php?92505-Pixel-Tracking-Methods-Optical-Flow-Methods
asked Jun 28 '17 at 01:50 AM in Rendering
I add new texture like a
in DefferedShadingCommon.usf and write they in PostProcessing.cpp. Create Sample Shader and write velocity data like in (PostProcessMotionBlur.usf) visualize velocity to my texture. Then create new float4 data in ScreenSpaceData in shaders. Return then data in material template in new menu in SceneTexture node.
answered Jun 30 '17 at 08:47 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here