Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

Product Version: UE 4.15
more ▼

asked Jun 28 '17 at 01:50 AM in Rendering

avatar image

31 4 7

avatar image bluearc Jun 30 '17 at 02:21 AM

Please help....

avatar image TUBerlinNUE Oct 19 '17 at 02:33 PM

If I enter the same in a custom node I get the errors: [SM5] /Engine/Generated/Material.ush(1270,77-92): error X3000: unrecognized identifier 'FScreenSpaceData' [SM5] /Engine/Generated/Material.ush(1270,94-108): error X3000: unrecognized identifier 'ScreenSpaceData'

What did you do get rid of them?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I add new texture like a

 Texture2D ScreenSpaceAOTexture;
 SamplerState ScreenSpaceAOTextureSampler;

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.

more ▼

answered Jun 30 '17 at 08:47 AM

avatar image

26 3 4

avatar image bluearc Jun 30 '17 at 10:00 AM

Thanks Bro, Can you tell me more details about this?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question