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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Material - Refraction + overall emissive

Hello UEnginauts!

I am currently working on some particles, and created this "Vertex-count-agnostic morped mesh" for it: alt text

The thing is, due to the refraction I cant get the whole object to be slightly emissive when its dark. Result in pure darkness: alt text

I can up the emissive all I want, but it only makes the already visible parts emissive.. and Id like to make the whole object slightly emissive. I cannot set the shader to unlit because the vertex animation setup in the shader needs some of the inputs that will be disabled if I do so.

Does anybody have any idea on how to give the mesh some overall brightness regardless of the refraction?

Product Version: UE 4.9
more ▼

asked Sep 21 '15 at 08:36 PM in Rendering

avatar image

9.2k 283 63 330

avatar image Jacky Sep 21 '15 at 08:39 PM

What is the refraction value you are using?

avatar image Luos Sep 21 '15 at 09:10 PM

doesnt really matter. Ive tried -10, 0, 1, 0.5, lerped it trough fresnels, 100, 10k. the only way the overall emissive works properly is if I totally disconnect it.

avatar image Jacky Sep 21 '15 at 09:17 PM

Try 1.05. Refraction value of 1 means no refraction and you should generally keep it between 1-1.1. It wont give you the perfect result but thats as good as it gets with refraction. I had the same issue with vehicle headlights in the past and ended up removing refraction alltogether. : \

avatar image Luos Sep 21 '15 at 09:23 PM

doesnt work, besides already trying any value from -10 to 10 and way beyond it doesnt give me any good results at all. I need the entire mesh to be lit, not parts of it.

I do appreciate the help though.

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

1 answer: sort voted first

Hi Luos -

In your setup, Refraction needs something to refract and your no-lighting scene has no information to pass into the translucent shader. The only way to get the information to show emissive information is to either raise your opacity to closer to one or lower your refraction index.

Here is a brief Test Project to show you:

Test Project 4.9.1

Thank You -

Eric Ketchum

more ▼

answered Sep 23 '15 at 04:03 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 735

avatar image Luos Sep 23 '15 at 05:45 PM

Hey Eric, as always thanks for answering! Today I was reading into refraction, and some additional attempts to see what kind of results I could get.

After some attempts I ended up with this: alt text

And the result in the end is:

https://i.gyazo.com/27927fa4448991666459fa142f23254b.mp4 gif version: alt text

And in pitch blackness: alt text

Ill probably add a variable in the blueprint where you can increase emissive for when its night/dark location.

Thanks for the showcase, ill keep it handy when im finalizing this blobbagoop thing.

(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