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"

Light Color for Post Process Cel Shader

Hey, so I've been experimenting with cel shaders and need some advice.

Render

I took the post process path because I wanted all the shadows.

The alternative seemed to require a lot of line trace for shadow effects and I didn't want to do this for every object. Example of what I mean for reference: https://www.youtube.com/watch?v=L68UqaZ6JP4

Great for stylized characters but not for my purposes.

Anyway, I'm looking for a way to get the lighting color information from the scene lights. Here is my Post Process material.

post processing material

I noticed when playing if you press F4, it will give you only lighting.

Color Light

If I could get that information and use it in the highlight I think that could work, but I can't seem to find it.

Can this be done? What would you recommend?

Product Version: UE 4.14
Tags:
postprocessmat.png (221.6 kB)
rendertest.png (1.9 MB)
screenshot00007.png (352.8 kB)
more ▼

asked Mar 09 '17 at 06:09 AM in Rendering

avatar image

Psygel
8 2 4 8

avatar image Chef_Seth Apr 09 '17 at 12:59 AM

Could you possibly give more information on how you set up your cel shading? I'm afraid I don't have an answer for your question but I'm in desperate need of a lighting system like this and everything I've found online hasn't worked and I haven't been able to get it to work.

avatar image Psygel Apr 09 '17 at 05:15 AM

It's a post process volume. The blueprint pictured is a material plugged into the post process volume. Find "Rendering Features" in the volume. Add an array element. Select your material.

It's not super versatile but maybe it's what you want. Good luck.

avatar image Chef_Seth Apr 09 '17 at 05:43 AM

What are the texture samples you're using in the post process? Also how do you determine what color each object is in the scene if it's done using a post process?

avatar image Psygel Apr 09 '17 at 06:18 AM

Those are just vector parameters. I used a blue, light gray and a dull orange. Personal preference. You could also use constants3vector if you want.

The textures in the scene are also just vector constants applied to materials. You could use any texture for those. The post process only effects lighting so whatever material you use will work.

Note in the blueprint it gets the scenetexture:diffusecolor and multiplies it back over the light information. So the diffuse used in your materials will be kept and used in the effect.

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

0 answers: sort voted first
Be the first one to answer this question
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