Glass rendering with transparency-which lighting?

Glass rendering with transparency-which lighting?

Kris_LW
Contributor Contributor
2,212 Views
16 Replies
Message 1 of 17

Glass rendering with transparency-which lighting?

Kris_LW
Contributor
Contributor

Hello,

I have issues with a glass rendering with transparency.
I need it later with transparency/ alpha for photoshop, preferably with shadow and reflection.
The following problems:
- If I set all lights with transmission 0, I get a bad result. I despair at the light source, does anyone have ideas?
- I have set the plane for shadow and reflection to zero in the camera, otherwise I will lose transparency again. But I can't get the shadow and reflection that way.

 

It's probably quite simple, but I'm going round in circles...

This is how the lighting appears:

k_liaras_0-1696927324322.png


But the colours should look like this:

k_liaras_1-1696927366400.png

I hope someone can help me.

 

Greetings,

Kris

 

0 Likes
Accepted solutions (3)
2,213 Views
16 Replies
Replies (16)
Message 2 of 17

lee_griggs
Autodesk
Autodesk

Are you using standard_surface.transmit_aovs?

lee_griggs_0-1698139194232.png

 

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 3 of 17

Kris_LW
Contributor
Contributor

Hi Lee, thank you for your reply. Transmit AOV in the materials ist enabled and the Arnold Skydome and Arnold Sky ist set to 0 in Transmission. I´m slowly getting there with changing the material settings. The big question is now, can I get a shadow out of a plane with shadow_matte and without losing all my light (which happened already when I tried...)?

0 Likes
Message 4 of 17

lee_griggs
Autodesk
Autodesk

The shadow_mate isn't giving you a shadow? Is transmission_weight for the glass at 1?

Can you upload the scene?

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 5 of 17

Kris_LW
Contributor
Contributor

Hi Lee, the shadow matte is giving me no shadow and is also deleting my transparency in the alpha. 
I must be missing something. Here is a test file. I converted it to 3ds (I didn´t know that I can´t upload c4d files), I hope it works. 
Thank you and greetings, Kris

Message 6 of 17

lee_griggs
Autodesk
Autodesk

You can Zip the C4D file and upload it here.

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 7 of 17

Kris_LW
Contributor
Contributor

Ah! Here it is 🙂

0 Likes
Message 8 of 17

Kris_LW
Contributor
Contributor

Hi Lee, do you have an idea for my problem?
Many greetings, Kris

@lee_griggs 

0 Likes
Message 9 of 17

Kris_LW
Contributor
Contributor

I´m sorry for the duplicate, I´ll continue here.
I couldn´t find it anymore, I´m new to the forum.

Here I send u a file where you can see my problem. I also put a cube in to compare. 

Message 10 of 17

lee_griggs
Autodesk
Autodesk
Accepted solution

I see a shadow when I add an HDR map to the skydome_light.color. This is with a new shadow_matte shader assigned to the plane.

lee_griggs_0-1704447174094.png

 

lee_griggs_1-1704447185784.png

lee_griggs_2-1704447198903.png

 

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 11 of 17

lee_griggs
Autodesk
Autodesk
Accepted solution

Thin_walled was enabled. It should only be enabled for single-sided geometry without any thickness. Also, your IOR was 0. It should be 1.5 for glass. These might be what is causing you issues.

 

lee_griggs_0-1704448058671.png

 

Here is the scene. You will need to replace the HDR map with one of your own.

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 12 of 17

Kris_LW
Contributor
Contributor

Thank you Lee! I took your file  and put in my own HDR texture.
I have a shadow but my glasses are not transparent/translucent:

Kris_LW_1-1704449950086.png

Do you also have a solution to render the shadow on an extra layer with multi-pass?

 

Thank you for you effort!

0 Likes
Message 13 of 17

lee_griggs
Autodesk
Autodesk
Accepted solution

You can't see an alpha for the cubes because the plane is in the way. If I move the plane to one side you can see the glass alpha. 

lee_griggs_0-1704452990312.png

Also, the skydome light is visible in the transmission of the cube. If you reduce it to zero you can see the alpha for the cubes.

lee_griggs_1-1704453044498.png

 

 

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 14 of 17

Kris_LW
Contributor
Contributor

Oookaaayyy, got it 🤣
My mistake was that I thought the shadow_matte makes the plane completely invisible!

I learned:
To solve my problem I must do one rendering only with the glasses and alpha and another rendering with the shadow from shadow_matte and put them together in Photoshop.

 

One last quastion on this:
If I don´t have a transparent object and want to render it on alpha with the shadow_matte, how can I get a file with multiple layers and an extra shadow layer? As it is possible with the standard c4d renderer.
I don´t knwo how to do it with c4dtoa. I hope you know what I mean.

 

Thank you so much! 

0 Likes
Message 15 of 17

Kris_LW
Contributor
Contributor

@lee_griggs 

This is what I was searching for:

Kris_LW_0-1704461729417.png

I guess it´s not possible with c4dtoa, I have to use another program.

0 Likes
Message 16 of 17

lee_griggs
Autodesk
Autodesk

You can use Takes to setup different variations of the scene (one with the Plane enabled and one with disabled, etc), and render each take to its output file. If you just want the shadow as a separate layer for comp, then you can add the shadow_matte and shadow_mask AOVs.

 

https://help.autodesk.com/view/ARNOL/ENU/?guid=arnold_core_ac_shadow_matte_html

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes
Message 17 of 17

lee_griggs
Autodesk
Autodesk

You might find these tutorials useful:

 

https://www.youtube.com/watch?v=-lEdyBUuWP8

https://www.youtube.com/watch?v=350LeWYinW4

https://www.youtube.com/watch?v=Q7DlalC5bjw

 

Lee Griggs
Arnold rendering specialist
AUTODESK
0 Likes