x

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"

How can I access GBufferVelocity

My end goal is to output a postprocess material that outputs per-pixel velocities from the previous to current frame. UE4 already has pixel velocities implemented for use in their motion blur pipeline, I simply need to extract it from the gbuffer UE4 shader source

First I am using a custom material node and trying to extract the gbuffer by GetGBufferData(float2 uv, bool normalize) but I am running into compile errors. To test basic usage, my custom node has 0 inputs and 1 output, a float1.

My usage -

 GBufferData gbuffer = GetGBufferData(float2(0, 0), false);
 return 1.0
Product Version: UE 4.20
Tags:
more ▼

asked Aug 16 '18 at 02:44 PM in Blueprint Scripting

avatar image

pigthecat
11 1 1

avatar image dZh0 Aug 16 '18 at 03:08 PM

I'm almost sure that I can't help you but still...

What are the compile errors?

avatar image pigthecat Aug 16 '18 at 03:13 PM

this is also a problem - currently the live preview just shows up as "dirty" and no errors are outputted. It simply hangs. If i comment out the first line it renders a white screen (correct) which made me think line 1 was giving a compile error. I can't for the life of me find the compile button or the errors in the material editor either.

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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