question

Sylvain Perat avatar image
Sylvain Perat asked ·

[TOON SHADER] How can i have a glass toon shader without having to set the specular weight to 1 ?

I would like to make a toon glass shader, using the new arnold toon shader. The problem is, with transmission weight set to 1, it doesnt work, unless i set the specular weight to 1. But then i got reflection on this surface, that i dont want. I can cheat a bit and disable the specular visibility of the objects visible in reflections, but then i loose the ability to have the reflection of this objects on an other surface. And if i have a lot of objects, it would be tedious anyway. Is this behavior normal or is it a bug ? Because nothing in the documentation specify that i need to have the specular weight to 1.0 to have the transmission working. And that seems weird anyway. (I made sure to uncheck opaque for my glass object ).

I made a simple scene to test this out : a directional light, a large plane, a simple wall, two teapots (one on each side of the wall), and some basic geometries to test reflections. All objects except the wall, have a toon shader with specular set to 0.1. The wall have opaque unchecked.

Wall with transmission set to 1.0, and specular to 0 :

Wall with transmission set to 1.0, and specular to 1.0 :

Wall with transmission set to 1.0, and specular to 1.0, and front teapot with visible in specular reflection unchecked :

arnold5shadertoon
tr1.jpg (137.0 KiB)
tr2.jpg (192.8 KiB)
tr3.jpg (170.6 KiB)
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Sylvain Perat avatar image
Sylvain Perat answered ·

Well if disable energy conserving, with base weight at 0, and specular weight at 0, i have this :

If i bump base weight to 0.5, it have this :

But i found a way : With transmission at 0.85 (just for the exemple), base weight at 0, and specular weight at 1, and i set indirect specular to 0 instead of 1 in the advanced tab, it gives me the desired result.





tr5.jpg (148.9 KiB)
tr6.jpg (180.4 KiB)
tr7.jpg (178.5 KiB)
1 comment Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Well done!

0 Likes 0 · ·
Dai Arna avatar image
Dai Arna answered ·

I'm having the same problem.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Lee Griggs avatar image
Lee Griggs answered ·

Have you tried disabling Energy Conserving to see if that helps?


teapot.jpg (129.6 KiB)
teapot.jpg (129.4 KiB)
Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.