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"

A material node for getting object's lighting?

Hello. This is a bit of a weird one but I'm wondering if there's a node that lets you get the lighting that's on the object using the material. Like say if there's a shadow being cast on the object or the object is in a dark room so it would return a black value where the shadow is and a white value where there's light. If you still don't get what I mean, imagine going into 'show lighting only' mode, is it possible to have that kind of view displayed on a material.

I'm trying to make a glow in the dark material, so if anyone knows a better way please share.

Product Version: UE 4.15
more ▼

asked May 05 '17 at 11:58 PM in Rendering

avatar image

Geosmith Tech.
68 17 18 20

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

1 answer: sort voted first

Unfortunately (or fortunately depending on how you look at it) UE uses a rendering system called deferred rendering. It first renders all the properties of the materials on the screen into different buffers and then for each light in the scene additively renders the lighting information into one final image. Because of this during the execution of your material, you have no idea where the lights are and thus such a node can't exist.

If you want a glow in the dark effect, you can assign the glow color into the emissive slot of your material and enable bloom in your post processing volume: https://docs.unrealengine.com/latest/INT/Engine/Rendering/PostProcessEffects/Bloom/

Without Bloom it would still be visible in the dark, but it wouldn't have that super glowy effect. Try to increase the value of your emissive color beyond 1 to have a strong effect.

And if you want the object to ONLY glow in the dark you would need to lighten up the rest of your scene so much that the glow of the object is dwarfed. Since UE is heavily based around realistic rendering there is no easy way to achieve some unrealistic shading effects.

more ▼

answered May 06 '17 at 06:07 AM

avatar image

243 10 7 13

avatar image Geosmith Tech. May 06 '17 at 10:48 AM

I'm not sure why I didn't just think that a low emissive colour would work as glow in the dark. Light enough to show in the dark but not bright enough to look like a light. Thanks.

(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