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"

Making a flashlight. Blinding light when standing near a surface.

alt text

On this screenshot I have a flashlight setup - a spot light source with intensity 100 and attenuation radius of 2000. Is there any way to make it not being so blindingly bright when standing next to a surface? I mean, sure I could just lower the intensity, but then it won't illuminate anything further than couple meters.

So far the only thing I could think of is making it toggle between long-range light and short-range light like some flashlights do irl.

But I'm more curious about other solutions to this problem, if anyone has any ideas.

Product Version: UE 4.12
more ▼

asked Aug 03 '16 at 04:52 AM in Using UE4

avatar image

51 11 15 22

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

1 answer: sort voted first

You have two options.

1) Use a ray trace. If it hits a target, calculate the distance and lerp the intensity relative to that distance.

2) Use a light function. https://docs.unrealengine.com/latest/INT/Engine/Rendering/LightingAndShadows/LightFunctions/

more ▼

answered Aug 03 '16 at 05:40 AM

avatar image

1.2k 31 8 40

avatar image Kligan Aug 03 '16 at 06:14 AM

I'm not exactly sure how light function would help in that particular situation... I'm not really familiar with it's capabilities.

But thanks for the advice regardless! I'll look into it.

(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