Author Topic: Double reflection over glass  (Read 6798 times)

2017-11-13, 07:06:45

iacdxb

  • Active Users
  • **
  • Posts: 771
  • 3D Deisgner
    • View Profile
    • www.behance.net/iacdxb
Hi,

Getting double reflection over glass, outer and inner. Any idea how can I fix that...?
Model I think it is ok. Some reflection and refraction issue i think.

...
« Last Edit: 2017-11-13, 07:45:23 by iacdxb »
Windows, Cinema 4D 2023.

2017-11-13, 17:03:43
Reply #1

Beanzvision

  • Former Corona Team Member
  • Active Users
  • **
  • Posts: 3882
  • Bengamin
    • View Profile
    • Cormats
Strange, I just did a quick test render and it seems to be fine here. Is there a mesh inside for a liquid?
Bengamin Jerrems:
Portfolio l Click me!

2017-11-14, 03:19:27
Reply #2

iacdxb

  • Active Users
  • **
  • Posts: 771
  • 3D Deisgner
    • View Profile
    • www.behance.net/iacdxb
yes... inside also mesh.

Glass with thickness and then mesh for liquid.

...
Windows, Cinema 4D 2023.

2017-11-14, 03:34:25
Reply #3

Eddoron

  • Active Users
  • **
  • Posts: 552
  • Achieved Pedestrian
    • View Profile
This seems to be a nested dielectrics issue then.
The approach varies from engine to engine using different techniques, like the "infinitesimal gap" or inverted normals for one side of the fluid or have the fluid mesh slightly penetrate the glasses mesh etc.
I don't know how corona handles this and it would be nice to hear from the devs about the optimal solution.

edit: seems like the standard C4D approach works with the liquid mesh penetrating the walls slightly (0,2% larger in the pic).
At same size, checkerboard artifacts would appear.
« Last Edit: 2017-11-14, 04:11:08 by Eddoron »

2017-11-14, 04:16:30
Reply #4

iacdxb

  • Active Users
  • **
  • Posts: 771
  • 3D Deisgner
    • View Profile
    • www.behance.net/iacdxb
ahhhh..... yes corona handle it a bit different. glass, liquid and then glass thickness....!!!
https://coronarenderer.freshdesk.com/support/solutions/articles/5000515618-how-to-model-a-liquid-in-glass-in-corona-

"STRANGE METHOD"

...

« Last Edit: 2017-11-14, 05:04:46 by iacdxb »
Windows, Cinema 4D 2023.

2017-11-14, 06:33:48
Reply #5

Cinemike

  • Active Users
  • **
  • Posts: 1017
    • View Profile
ahhhh..... yes corona handle it a bit different. glass, liquid and then glass thickness....!!!
https://coronarenderer.freshdesk.com/support/solutions/articles/5000515618-how-to-model-a-liquid-in-glass-in-corona-

"STRANGE METHOD"

...

Glass thickness?
You scale the liquid a big so it extends into the glass. That's what I know from the AR, from Vray and it works fine in Corona, too, just like in the tutorial.

2017-11-14, 06:41:36
Reply #6

iacdxb

  • Active Users
  • **
  • Posts: 771
  • 3D Deisgner
    • View Profile
    • www.behance.net/iacdxb
C4D AR and Vray works as real.... liquid mesh inside glass, not in-between glass thickness. First time saw this method.

...

« Last Edit: 2017-11-14, 07:26:14 by iacdxb »
Windows, Cinema 4D 2023.

2017-11-14, 18:55:17
Reply #7

Cinemike

  • Active Users
  • **
  • Posts: 1017
    • View Profile
C4D AR and Vray works as real.... liquid mesh inside glass, not in-between glass thickness. First time saw this method.

...

Unless we are completely misunderstanding each other, Vray works the same (as is AR):
https://www.vray.com/vray_for_rhino/manual/liquid_inside_transparent_glass.shtml

2017-11-15, 15:54:45
Reply #8

Nejc Kilar

  • Corona Team
  • Active Users
  • ****
  • Posts: 1335
    • View Profile
    • My personal website
This seems to be a nested dielectrics issue then.
The approach varies from engine to engine using different techniques, like the "infinitesimal gap" or inverted normals for one side of the fluid or have the fluid mesh slightly penetrate the glasses mesh etc.
I don't know how corona handles this and it would be nice to hear from the devs about the optimal solution.

edit: seems like the standard C4D approach works with the liquid mesh penetrating the walls slightly (0,2% larger in the pic).
At same size, checkerboard artifacts would appear.

I can confirm this :) With Corona you need to slightly intersect the two meshes.
Nejc Kilar | chaos-corona.com
Educational Content Creator | contact us

2017-11-15, 20:24:25
Reply #9

Cinemike

  • Active Users
  • **
  • Posts: 1017
    • View Profile
There is another way, though, but it is more complicated than just "normal move" the liquid's surface into the glass:
- Create the glass vessel, create the cap of the liquid, then select the polys where glass and liquid would meet (involves cutting and connecting), and create a selection tag of them (after you joint them with the "cap").
- Assign a glass material to the whole object and a liquid material to the selection.

Works, but I always prefer the "scale" way to go.