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"

Get the material color from a line trace

Hi guys,

I am trying to figure out a way to get the color off of a material from a line trace.

For example: If I have a box and the Material on the box is made up of blue, purple, and yellow squares all on one texture. How do I return the color that the trace hits?

I have done some looking around and haven't been able to find a solution yet. If you have an idea, please let me know.

Product Version: UE 4.15
Tags:
more ▼

asked May 25 '17 at 03:20 AM in Blueprint Scripting

avatar image

invisiblebattles
11 2 3 7

avatar image Milkazar May 29 '17 at 02:28 AM

Don't think that's easily possible in BP, but I might be wrong. Just brainstorming, you'd need to get the hit face (or directly the vertex maybe) and then check it's rgb value. Again, don't know if possible in BP. But what's your goal? Maybe you could get away with adding collision boxes to each "color square" in the actor, and just check for the hit component.

(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