Author Topic: Colored glass prisms  (Read 3668 times)

2019-06-18, 16:08:11

alberto_royo

  • Active Users
  • **
  • Posts: 38
    • View Profile
Hello everybody.
We have a problem trying to generate an image that a client proposes to us. Does anyone think about how to solve it?
I enclose the reference photograph, a capture of our scene and an attempt (unfortunate).
Thank you very much in advance,

2019-06-18, 17:21:10
Reply #1

jrgby

  • Active Users
  • **
  • Posts: 70
    • View Profile
Pretty sure that's not glass but cast resin with a tilted pour - see right block with diagonal line running through, and also the slightly less than flat faces.
The tilted pour is a kind of trick to achieve gradients in acrylic that isn't just laminating an acetate print onto one surface.

I've tried to render this effect before and I'm not sure it's totally possible - see attached image. This is just gradient map in volumetric absorption colour slot, which almost gets you there but the refactions aren't really right. Maybe good enough for what you need though?

2019-06-19, 08:17:47
Reply #2

alberto_royo

  • Active Users
  • **
  • Posts: 38
    • View Profile
Wow that's great, I did not know the tilted pour technique, but I get the feeling that you're right. Thank you very much, I will try and show you the result.

2019-06-19, 10:45:32
Reply #3

alberto_royo

  • Active Users
  • **
  • Posts: 38
    • View Profile
Well, inspired by what you have told me, I have prepared this test that I have sent to the client to see it ... but instead of using the gradient map, I have built it in geometry, 2 bodies one inside the other.

2019-06-19, 11:03:11
Reply #4

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I wonder how did you get that soft transition between mediums if it's  two separate geometries? Looks pretty close to reference.

P.S. i think you should move glass cubes slightly up, it can be seen where they intersect with the ground plane.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-06-19, 11:13:58
Reply #5

alberto_royo

  • Active Users
  • **
  • Posts: 38
    • View Profile
The truth is that I do not know where the transition comes from, you can see how I built the geometry with one body inside another, more or less how a glass with liquid is built ...

2019-06-19, 11:19:24
Reply #6

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Did you lowered refraction glossiness on any of those materials? I think that would explain blurry transition.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-06-19, 11:35:09
Reply #7

alberto_royo

  • Active Users
  • **
  • Posts: 38
    • View Profile
No, as you can see they are normal glasses, without anything special ... they also have an edge bump plus a noise to produce slight undulations ...

2019-06-19, 11:41:06
Reply #8

jrgby

  • Active Users
  • **
  • Posts: 70
    • View Profile
Looks to me like the transition is from the angle of the camera. At the meeting of the two materials in that angle the red material is thinnest and therefore paler.


2019-06-19, 11:49:24
Reply #9

jrgby

  • Active Users
  • **
  • Posts: 70
    • View Profile
Here's a sample we've got kicking around, hopefully clear from the change in angles.

If there was a nice way to do this with just material, without having to slice geometry I'd love to know!

2019-06-19, 12:10:24
Reply #10

alberto_royo

  • Active Users
  • **
  • Posts: 38
    • View Profile
Really, that would be the ideal, only material, but in this case it seemed to us that it was solved better with geometry. And on the other hand, it does seem that the gradient comes from the change of point of view

2019-06-19, 12:16:14
Reply #11

alberto_royo

  • Active Users
  • **
  • Posts: 38
    • View Profile
And I am very grateful to jrgby for enlightening us in a field that is totally unknown to us, thank you very much!!

2019-06-19, 12:38:14
Reply #12

jrgby

  • Active Users
  • **
  • Posts: 70
    • View Profile
No problem. Actually, thank you for suggesting body within body because this is a much better method. I just tried it now and it looks true to life from all angles, which is great.
I had only thought of slicing 1 body and capping open boundries, which doesn't really work.

2019-07-02, 13:33:23
Reply #13

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
I am pretty sure this could be done with just a material using the "inside volume" mapping mode, however that is possible only for the Corona Volume Mtl, which cannot have surface effects such as reflectivity or refraction...
Interesting topic! Caustics in practice!
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us