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"

Positional array feeding into a material

So I have seen this question asked before but there has never been a solution and the last time I could see it posted was from over a year ago.

I want to take an array of positional data from actors inside my level and feed them into a material parameter, dynamically in real time. I want to then take this positional information and use it mask certain areas of my level (They are all using the same material) I can achieve this pretty easily with one position and possibly scale it up manually but without feeding in an array it will get pretty tedious and eventually unworkable.

I have seen that the engine does not support arrays for materials at them moment but if there is even a way I can use C++ that will too or work around that would do.

[1]: /storage/temp/115046-pos.png

Product Version: UE 4.12
Tags:
pos.png (220.1 kB)
more ▼

asked Nov 15 '16 at 09:42 PM in Blueprint Scripting

avatar image

Lutherbrian
31 1 5 6

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

1 answer: sort voted first

You should consider feeding material a texture instead of array. Think about how you can store the data you need to pass through in a texture(positions, that are to be masked, in your case) and use something like render target to store it.

more ▼

answered Nov 16 '16 at 12:37 AM

avatar image

Deathrey
7.9k 130 31 293

(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