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"

[Closed] (Mobile Specific) changing light color during game possible?

Again me and again mobile related stuff.

In Unity I can add directional light and change it's color/intensity in-game on mobile device. Thanks to that my shooting effects are looking good.

How can I achieve shooting lighting effect in UE4 on Mobile? I tried with color grading but it isn't looking good.

Product Version: Not Selected
Tags:
more ▼

asked May 23 '14 at 09:20 PM in Rendering

avatar image

intoxicat3
677 71 92 148

avatar image intoxicat3 May 28 '14 at 03:49 PM

Anyone can help me out?

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

The question has been closed May 28 '14 at 10:07 PM by Tim Hobson for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

Hi Intoxicat3,

You can find the information you are looking for on our Lighting for Mobile Platforms.

Just go about setting this through your level Blueprint.

As for the shooting lighting effect? Can you post a screen shot or illustrate what you are trying to accomplish?

Thank you!

Tim

more ▼

answered May 28 '14 at 05:06 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 888 103 878

avatar image intoxicat3 May 28 '14 at 05:26 PM

What I wan't to accomplish is just light up space near weapon on Mobile, exactly like you guys are lighting up in Shooter Example when shooting.

I've added light to my blueprint (both mobile and stationary) both spot and directional and tried to change color - hoped that it will change weapon color but nothing is happening.

avatar image Tim Hobson ♦♦ STAFF May 28 '14 at 06:07 PM

Are you referring to the muzzle fire that lights up when you shoot the weapon?

On the documentation page that was previously linked, the only lights that are capable of changing color during gameplay is lights that can be stationary. The directional light is the only one that is stationary. The spot light and point light are both static.

You could always set up a point light that is triggered within the BP to come on during an action. It could have the set color you'd like then be toggled off.

The change light for stationary directional is functional.

You can test this in the directional by (This is what i did for a quick setup to test) having a "event begin play" node, run that to a delay (set time to a few seconds) > Set light color node (with the target being the directional light from your scene outliner) > on the set light color node run a pin from 'new light color' > Make Linear color > punch in a value (i put in 1 in R channel to be full red to easily see.)

For the static to setup you could do the same first two nodes > Toggle Visibility (with the target being the point or spot light that is static) > watch the light turn off.

Being able to play around with some of these features in Blueprints should get you the result you're looking for. It might require a little bit of work and thinking outside the box. :)

I hope this helps!

Tim

avatar image intoxicat3 May 28 '14 at 07:25 PM

Thanks Tim - it';s working from Level Blueprint!

Last thing: can we layer objects that will be lighted up with some light source? I'm referring to Lighting Channels from UE3.

avatar image Tim Hobson ♦♦ STAFF May 28 '14 at 08:50 PM

Glad it's working for you now! :)

But currently we do not have light channels within UE4. This has been entered as a feature request but it is currently not on the Trello Roadmap for features to implement.

Tim

avatar image intoxicat3 May 28 '14 at 09:19 PM

Thanks for info. Lighting channels was really useful in UE3 hope UE4 will have it as well. Again - thanks for help!

(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