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"

Refraction doesn't look right

I've been playing with refraction for a couple of hours, however I can't seem to get the results that I'd expect. The method for achieving refraction used in the documentation doesn't look as it should.

Instead of this:

alt text

It should look like this: alt text

Am I doing something wrong? Here's my shader (the fresnel node uses default parameters): alt text

Product Version: UE 4.17
capture.png (503.9 kB)
p023hqnk.jpg (11.9 kB)
capture.png (56.5 kB)
more ▼

asked Sep 15 '17 at 01:10 AM in Rendering

avatar image

126 15 20 25

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

1 answer: sort voted first

Well, refraction technique in UE4 involves simply taking the image of the scene, and tilting it according to the index specified. Hiding the obvious seam and discontinuities is up to you. For example, you could reduce IOR using depth fade and / or fresnel. In addition, it also seems to me that refraction index is inverted, and to get the refraction to shift the correct way, you would need an index of 0.75 instead of 1.33.

Last, but not least, screen-space refraction is not well-suited for this kind of job. It works well if you add a ripple normal map. For still water and clear, correct refractions, perhaps you could implement a refraction visualization system the same way, as plannar reflections work, that is using scene capture to render refracted scene, but that is indeed expensive.

more ▼

answered Sep 15 '17 at 03:07 PM

avatar image

7.9k 130 31 293

(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