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"

Making custom chromatic aberration. Can I distort color channels individually?

I'm trying to make a post process and I've run into a bit of trouble. My goal is to create a custom chromatic aberration effect that I can control based on depth of field. I'd like it to behave the same as depth of field, only instead of blurring the image in the areas that are out of focus, it separates the color channels more and more. I've got the scene texture and I've separated the color channels. Is there some node I can pass them through to stretch, translate, or otherwise distort them based on a 0 to 1 variable before I append them again? That variable would come from the depth of field function, or something from the pixel depth function. Is what I'm describing possible? Am I looking at it all wrong? Thanks for the help.

Product Version: UE 4.21
Tags:
help-me-please.png (98.4 kB)
more ▼

asked Feb 20 '19 at 01:21 AM in Rendering

avatar image

Lord Puj
6 1 2 2

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

1 answer: sort voted first

You have to deal with UV coordinates to scale the screen texture. Here's example of Depth Chromatic aberration. It's not optimized, but a good place to start.

I've scaled Red and Green channels by 2% and 1% respectively by using Remap to Range. This function is useful if you need to set U and V separately. Lerp just blends scaled UV with original depending on Depth.

Keep in Mind that it's better to blend UV's an not Scene Color.

Example

more ▼

answered Feb 20 '19 at 01:34 PM

avatar image

S-ed
1.3k 27 23 44

avatar image Starkium Mar 23 '19 at 11:57 AM

HELL YEAH, I'm gunna use this for my enter the spider-verse VR game.

(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