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"

Changing Vector Parameter in Additive Material via BP causes strange results

Hey guys,

I need help. I have a lamp blueprint, which consists of a mesh, two shapeplanes that imitate lensflares and a spotlight. For some reason the light color of my lensflares does not match the color of the spotlight, even though they both receive the same color channel. Why does this happen? How can I fix it? The same thing happens when I use a point light. You can see the screenshots of my code below.

There are no post process fx used on the attached scene and there is no color overlap from another light or fog. The aura of the light in the attached image is a fake lens flare created by two shape planes. These shape planes have a lens flare material (additive), which contains a vector parameter connected to a multiply node which in turn multiplies the vector parameter with the original lens flare texture. This vector determines the color of these lens flares. Everything looks and works fine until I start the game. The blueprint is supposed to assign the same random color to the spotlight and these shape planes. But for some reason the colors of both components do not match, even though they receive the same color values in the blueprint on BeginPlay. In the image the spotlight color is white, but the lens flare color is purple. I cannot figure out why this happens. Both should be either white or purple, but not two different colors. This happens across the board on every instance of this blueprint in various color combinations every time I start the game.

Any advice is greatly appreciated, because I'm at a loss.

alt text alt text alt text alt text

Product Version: UE 4.20
Tags:
help2.jpg (163.1 kB)
help3.jpg (287.2 kB)
help4.jpg (282.9 kB)
help1.jpg (99.0 kB)
more ▼

asked Sep 06 '18 at 10:23 AM in Blueprint Scripting

avatar image

jalte
13 4 5 10

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

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