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"

[Closed] Draw Material to Render Target doesn't seem to work with MIDs

I've been unsuccessful in getting the render to texture workflow working with Dynamic Material Instances and am assuming this is a bug. I tried making a non-dynamic material and dynamic material version of the same Blueprint using the same render targets and materials and only the non-dynamic version appears to writing to the render targets properly.

Here's what I tested with, a rudimentary afterimage effect using two rendertargets:

Non-dynamic, references set by hand, works: Works

Dynamic, references set at runtime, doesn't work: Doesn't work

Product Version: UE 4.13 Preview
more ▼

asked Aug 09 '16 at 05:22 PM in Bug Reports

avatar image

384 34 39 45

avatar image Ed Burgess ♦♦ STAFF Aug 10 '16 at 06:54 PM

Hi SF,

I'd like to help you out with this issue. First off I have a couple of questions/comments.

I noticed something in your screenshot of the material parameters being set at runtime. The dynamic material instance that you created isn't being being set into the material parameter for the "Draw Material to Render Target" node. You have it set to M_Phosphor_De....(can't see the rest) essentially not putting that Dynamic Material to use. Is that intentional?

I could further assist you if you could explain exactly what it is you are trying to achieve. What is your goal here?

I was personally unable to reproduce any errors involving dynamic materials in the context you specified.


Ed Burgess

avatar image SFtheWolf Aug 11 '16 at 12:57 AM

My goodness what a basic error, how embarrassing! Thank you for resolving this for me.

For anyone else interested, here's the working setup I ended up with for a basic after image effect that I'll be using in my CRT screen construction suite:

alt text alt text alt text

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

The question has been closed Aug 11 '16 at 12:59 AM by SFtheWolf for the following reason:

Not a bug after all, my own error was resolved in the comments.

1 answer: sort voted first

There are 2 CreateDynamicMaterialInstance nodes. Try one that is bound to a static mesh.

more ▼

answered Aug 10 '16 at 07:27 AM

avatar image

63 1 4

avatar image SFtheWolf Aug 10 '16 at 08:39 AM

Just tried. Doesn't seem to have made a difference.

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

Follow this question

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

Answers to this question