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"

How make light sensors ?

Hi guys

I am making a kind of "light simulator" and i was asking myself: How make sensor in UE4 ? Like, you are in a room and you have one window. I would like to place a sensor in the middle of the room and know if there is a lot of luminosity or not.

I would be very thankful if smd help me.

Product Version: UE 4.22
Tags:
more ▼

asked Jul 11 '19 at 01:43 PM in Using UE4

avatar image

strikeblack91
1 1

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

2 answers: sort voted first

Super janky way to do it. Create a bp with a cube and a scene capture component. Have the scene capture component be ortho with a resolution of 1x1. Capture to a render target and grab the colour from that. You know the base value so you should be able to get some idea of the scene luminosity.

more ▼

answered Jul 11 '19 at 03:54 PM

avatar image

HarryHighDef
1.4k 1 14 17

avatar image strikeblack91 4 days ago

Hi HarryHighDef, thanks for your answer.

I don't know if understand well, but u mean something like this : https://www.youtube.com/watch?v=a9iho861SlY ?

But i have to get precisely the luminosity, to make a kind of "e-lux meter".

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

Pretty sure there is no way of doing that at least in blueprints. you will have to either create some bp components with trigger boxes or use some kind of line trace method or even if that doesnt work you will have to create your cpp code.

more ▼

answered Jul 11 '19 at 02:45 PM

avatar image

SupDeity
468 4 6 15

(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