Page 1 of 1

Material that imits Vray's Toon effect.

Posted: Thu Aug 04, 2016 5:20 am
by bahamut
bahamut : YO. Guys.
bahamut : i have a problem. Is there any possibility to have in indigo something like outlined edges?
bahamut : like with vray toon?
bahamut : I need to do some quasi technical animations and they would like tho have it that way ;)
Ono-Sendai : hmm
Ono-Sendai : yeah probably
Ono-Sendai : with albedo shader on diffuse using cos theta stuff
Ono-Sendai : will try that later
bahamut : Please do :D
bahamut : I don't want to buy vray for this
Ono-Sendai : :)
Ono-Sendai : can u make a forum thread for it?
Ono-Sendai : will post my material in there

Done ;)

Re: Material that imits Vray's Toon effect.

Posted: Thu Aug 04, 2016 6:19 am
by contegufo
Luminance slot?

Re: Material that imits Vray's Toon effect.

Posted: Thu Aug 04, 2016 6:37 am
by bahamut
I was thinking about those: https://flyingarchitecture.com/forum/data/forum/618.jpg
Black lines. The rest should remain normal :)

Re: Material that imits Vray's Toon effect.

Posted: Thu Aug 04, 2016 7:37 am
by OnoSendai
Here's an attempt.

Re: Material that imits Vray's Toon effect.

Posted: Thu Aug 04, 2016 11:51 pm
by bahamut
Looks very promissing :)

Re: Material that imits Vray's Toon effect.

Posted: Fri Aug 05, 2016 12:35 am
by bahamut
UNfortunately i got this message: A problem occurred with the scene:
Error while building scene: Error while loading diffuse material 'mat1': Invalid character '?'.
buffer, line 6:
vec3(line ? 0.1 : 0.6)
^.

What version of idigo should I be using?

Re: Material that imits Vray's Toon effect.

Posted: Fri Aug 05, 2016 12:53 am
by Zalevskiy
del

Re: Material that imits Vray's Toon effect.

Posted: Fri Aug 05, 2016 2:40 am
by FakeShamus
sorry for my ignorance, Ono, but can you explain the || bit of the code within "line"? seems like an "and" or "also" type operation? this effect is similar to somethings I have been trying to work out on my own, combining meanCurvature() with some other property, but I think my approach has been super convoluted so far. I'd like to understand this more...

Re: Material that imits Vray's Toon effect.

Posted: Fri Aug 05, 2016 2:57 am
by OnoSendai
|| is logical or.

Re: Material that imits Vray's Toon effect.

Posted: Fri Aug 05, 2016 3:01 am
by FakeShamus
ok, roughly what I suspected, but somehow couldn't find info on it anywhere. thanks!

Re: Material that imits Vray's Toon effect.

Posted: Fri Aug 05, 2016 6:59 am
by pixie
OnoSendai wrote:Here's an attempt.
isl potential is humongous!

Re: Material that imits Vray's Toon effect.

Posted: Sat Aug 06, 2016 4:22 am
by contegufo
To me it seems not work.

Re: Material that imits Vray's Toon effect.

Posted: Mon Aug 08, 2016 6:53 am
by CTZn
The shader is working but it is not fit for your scene, contegufo. It works best with smooth surfaces. Subdividing geometries may produce better results too.

Re: Material that imits Vray's Toon effect.

Posted: Mon Aug 08, 2016 11:41 am
by pixie
CTZn wrote:The shader is working but it is not fit for your scene, contegufo. It works best with smooth surfaces. Subdividing geometries may produce better results too.
And the should have a little bevel too.