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"

Can you read pixel value of material / dynamic material

I can read the pixel value of a Texture2D. There are answers regarding that here on AnswerHub.

Is the pixel data available from a dynamic material instance?

I want to apply changes to the material at runtime, then read pixel data.

Thank you

Product Version: UE 4.11
Tags:
more ▼

asked May 10 '16 at 04:45 AM in C++ Programming

avatar image

mikepurvis
2.5k 101 66 260

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

1 answer: sort voted first

You can read the pixel data of an Texture2D but only if you are in editor, that data get's stripped out when cooking so you have to hold it in your own data structures.

Regarding a DMI, you might want to use a render target, these two posts might get you started: Output material to render target and Print a post process on Texture.

more ▼

answered May 10 '16 at 06:23 AM

avatar image

Moss
6.4k 127 98 606

avatar image mikepurvis May 11 '16 at 03:41 AM

I compiled development and shipping. Cooked, made a Development Build and made a Shipping build. I was able to read the data from a Texture2D at Runtime in both Development and Shipping build.

So, something changed or the documentation is wrong because it works at runtime.

I'll accept your answer, because no one else even bothered. But, the correct answer appears to be. No.

(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