cel shader and paint shader in effect.txt

share shaders here
  • Author
  • Message
Offline
*blah-blah-blah maniac*
Posts: 565
Joined: 05 Apr 2014, 10:29
Location: Taiwan

cel shader and paint shader in effect.txt

Hi everyone, :D
made them in effect.txt for easy adaptation. It only has simple bool control.

cel shader ref: http://en.wikipedia.org/wiki/Cel_shading
paint shader ref:http://www.codeproject.com/Articles/471 ... aintEffect

the cel shader is generated from normal texture which generated from depth texture.
effect.txt
cel shader and paint shader
(8.42 KiB) Downloaded 1568 times
here are some pics:

the normal texture( I suppose...)
Image

applies sobel filter to normal texture (inverse)
Image

paint effect
Image

combine both = borderland2 Lilith
Image

I still don't know the relation between .fx files, or whom might affect whom, so it will have different outcome if they are in different .fx, or in different priority.
_________________
Intel Xeon L5639 6C12T @3.96GHz | Gigabyte ga-x58a-ud3r | MSI GTX680 4G | 48G RAM | Intel 760p Nvme w clover bootloader
Flickr
YouTube

Offline
*blah-blah-blah maniac*
Posts: 504
Joined: 31 Dec 2011, 19:42

Re: cel shader and paint shader in effect.txt

Great job! Here are a couple with the paint shader and some color processing tweaks (paint radius increased to 3).

Image

Image

Trying to make it look like watercolor.
_________________
NLA v.2.0 beta - A test version of the latest NLA release.
Natural Lighting and Atmospherics for ENB - A Skyrim weather mod and preset.
High-Res bark textures - Some bark textures I made.
Dark Souls 2 ENB preset - Preset for Dark Souls 2.

Offline
*blah-blah-blah maniac*
Posts: 565
Joined: 05 Apr 2014, 10:29
Location: Taiwan

Re: cel shader and paint shader in effect.txt

Amazing!! You definitely caught the essence of water painting.
_________________
Intel Xeon L5639 6C12T @3.96GHz | Gigabyte ga-x58a-ud3r | MSI GTX680 4G | 48G RAM | Intel 760p Nvme w clover bootloader
Flickr
YouTube

Offline
Posts: 21
Joined: 23 Dec 2013, 16:04

Re: cel shader and paint shader in effect.txt

oo I gots competition :) Nice. I see we both generated "normals" from the depth info, we walk similar paths indeed..

Offline
*blah-blah-blah maniac*
Posts: 565
Joined: 05 Apr 2014, 10:29
Location: Taiwan

Re: cel shader and paint shader in effect.txt

JezuesFitzroy
I'm just testing out some hlsl coding, and your works are well ahead then mine. I'm hoping you can release your files, that can save me a lot of effort figuring out stroke based rendering.
_________________
Intel Xeon L5639 6C12T @3.96GHz | Gigabyte ga-x58a-ud3r | MSI GTX680 4G | 48G RAM | Intel 760p Nvme w clover bootloader
Flickr
YouTube

Offline
User avatar
*sensei*
Posts: 446
Joined: 17 Apr 2014, 22:12
Location: Schweden

Re: cel shader and paint shader in effect.txt

Kingeric1992
I love that last shot in the first post. Can I try it please? :)

Edit: I didn't even see the link provided at the top... Im such an idiot sometimes.
Last edited by Insomnia on 15 Jul 2014, 18:55, edited 1 time in total.
_________________
| i5 3350p @3.1 | 16 GB RAM | GTX1060 | Skyrim on SSD |
My Flickr
My Soundcloud
CGI ENB

Offline
*sensei*
Posts: 372
Joined: 28 Jul 2013, 23:26

Re: cel shader and paint shader in effect.txt

ooo we have texDepth in effect.txt nowadays? :) JOY!

texDepth opens up lots of fun possibilities... especially if you have original texture as well.

Gotta adapt my multipass sharpening to use texdepth as well so I can apply less sharpening on distant objects, should give superior results (more sharpening up close without making a mess off distant objects) :)

Offline
User avatar
*blah-blah-blah maniac*
Posts: 530
Joined: 30 Jan 2012, 13:18

Re: cel shader and paint shader in effect.txt

Lol texDepth in effect.txt is even in 0.075 back then, didn't you know that? :O

Offline
*sensei*
Posts: 372
Joined: 28 Jul 2013, 23:26

Re: cel shader and paint shader in effect.txt

No, it would of been damn handy to know that. Wouldn't of had to beg to make texDepth available in enbbloom.fx. O well, know if now, can apply some math against it for sharpening.

Offline
User avatar
*sensei*
Posts: 446
Joined: 17 Apr 2014, 22:12
Location: Schweden

Re: cel shader and paint shader in effect.txt

prod80
Depth based sharpening... Now that sounds interesting! :3
_________________
| i5 3350p @3.1 | 16 GB RAM | GTX1060 | Skyrim on SSD |
My Flickr
My Soundcloud
CGI ENB
Post Reply