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"

Desaturate SpotLight

Hello, I have a security camera with a mesh that desaturates a part of the environment. But I want the spotlight transforms base color of objects in black and white. (In particular if the player enters in the security camera's area.) LightFunction don't accepts sceneTexture. Thank's

alt text

Product Version: UE 4.12
Tags:
cctv.png (124.9 kB)
more ▼

asked Oct 31 '16 at 07:31 PM in Rendering

avatar image

François33
13 3 5

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Hi François,

What you want is location based materials. Watch this tutorial for tips https://www.youtube.com/watch?v=XYPPd5oLoPM

He uses the sphere mask for opacity in the video, but I would recommend using it as an alpha input and lerp between your colored character and a desaturated version in the material. Just make sure the security camera's spotlight position is being passed into the vector parameter. Here is a screenshot example.

Hope that helps,

Ed

alt text

temp.jpg (43.2 kB)
more ▼

answered Nov 01 '16 at 07:32 PM

avatar image François33 Nov 02 '16 at 03:18 PM

Thank you, this is very interesting, I think that's complementary with my solution. I use PostProcess component with a trigger.

alt text

bw_cam.gif (5.1 MB)
(comments are locked)
10|2000 characters needed characters left
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