KeyShot Forum

Technical discussions => General discussion => Topic started by: Finema on June 12, 2015, 11:50:24 PM

Title: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 12, 2015, 11:50:24 PM
Hi,
I've seen this webinar : Mastering Transparent Materials in KeyShot.
But it's not clear for me about the glass with liquid inside.
I understand the liquid surface must touch the glass surface but must it be bigger or just touch ? and the above liquid also ?
Could you post it here the .obj of the glass with the 3 surfaces ? or a slide shema ?
Thanks a lot.
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 12:19:17 AM
There ya go Finema, try one of mine ;)

https://grabcad.com/library/another-shot-tumbler-1

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 12:50:03 AM
thanks TpwUK but in your .bip file you have only 2 surfaces (glass + liquid), not 3...
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 01:03:32 AM
There are two ways to render liquid in a glass...

1. The liquid top is used to slice the glass inside surface. Then those trimmed surfaces are joined to create the liquid
2. The liquid and the glass are modelled as solids. Doing things this way means you have to shrink the liquid part by a very small amount or you will see where the glass and liquid surfaces touch.

Both methods are therefore imprecise when it comes to reality, as far as i am aware the first method (which i use) gives the more accurate result visually and is the easier method.

Which part of this exercise are you more interested in, the rendering or the modelling aspect ?

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 01:21:22 AM
i'm interested by the modeling aspect in the way 1 with 3 surfaces as in the webinar...
because at this moment, i use way 2 and the top of liquid is not realistic
thanks again
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 01:43:59 AM
NURBs or Polygon modelling ?

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 01:53:03 AM
nurbs :)
thanks
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 01:58:40 AM
Okay, gimme a few moments and i will model one for you - 3DM or STEP ?

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 02:09:04 AM
3dm :)
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 02:19:08 AM
Glass is a solid, but i have left the parts of the liquid as surfaces so you can see what was done, you can join them back together again to form a solid liquid when you are ready.

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 02:38:30 AM
Thanks Martin,
But i would like only 2 surfaces and a solid (glass). I want to reproduce exactly the webinar, and i don't know i must enlarge the liquid parts.
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 03:04:47 AM
You should be able to join the liquid parts as you want/need them ... Let me see if i can find the webinar you are following and i will look at how the modelling is done :)

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 03:07:39 AM
the webinar is here : https://www.keyshot.com/learning/webinars/

Mastering Transparent Materials in KeyShot > begin 34 minutes

thanks again
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 03:10:17 AM
Ok you need to join the Green and the Cyan surfaces to make the liquids top surface :)

Then you will have Glass, Liquid Side and Bottom surfaces and the Liquid top only surface

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 03:41:05 AM
if i use your model i have that > (see the screenshot)
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 03:48:21 AM
That's what i was saying about having to scale the liquid very slightly and why it's awkward rendering wise

in KeyShot, select the liquid surfaces the click position and the scale them to .998

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 03:54:02 AM
if i do that i have >>>
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 04:18:55 AM
ok here's mine with no scaling - my model as draughted

Start over, when you import this time, import the NURBs data and set KS to use NURBs rendering mode

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 05:52:37 AM
yes but the top liquid is dark
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 05:58:55 AM
here an other example >
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 06:32:51 AM
Golden rule number one - never settle for what you first see ...Play with colours, HDRi lighting, reflect/refract settings, add a ground plane increase bounces use global lighting etc.

Here's the same model with some materials and lighting adjustments. refract altered, more bounces and better shadows with caustics. Have fun, play with settings and make it look how you want it to look. You won't break anything :)


Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 06:34:54 AM
As for the dark top, don't forget to adjust bounces, and also remember that it's standing on a surface and will be reflecting the darker shades from the bottom as well as from the top :)

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 13, 2015, 09:39:38 AM
thanks Martin
vut i haven"t forget bounces and all but i would like to see a picture (tray) with glass and liquid and top liquid
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Esben Oxholm on June 13, 2015, 10:09:14 AM
Quote from: Finema on June 12, 2015, 11:50:24 PM
Hi,
I've seen this webinar : Mastering Transparent Materials in KeyShot.
But it's not clear for me about the glass with liquid inside.
I understand the liquid surface must touch the glass surface but must it be bigger or just touch ? and the above liquid also ?
Could you post it here the .obj of the glass with the 3 surfaces ? or a slide shema ?
Thanks a lot.

Hey Finema.
Here's a glass with liquid consting of 3 surfaces. I've tried to do it like they shows in the webinar.
http://adobe.ly/1BahW0O

I think the trick is to have no inner glass surface where there is liquid. Then you do not need to scale anything.
Take a look at the drawing below. The blue surface (the bottom of the liquid) takes over where the red surface (the glass) stops.

Anyone, please correct me if I'm wrong.
Hope it helps.
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 13, 2015, 10:36:38 AM
That's method 1 as discussed earlier in the post Esben, nice glass too :)

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Esben Oxholm on June 13, 2015, 11:24:58 AM
Quote from: TpwUK on June 13, 2015, 10:36:38 AM
That's method 1 as discussed earlier in the post Esben, nice glass too :)
Martin

Thanks Martin... and Great. I wasn't sure I understood your description correctly, or if you meant the same, but you did :)
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 14, 2015, 12:57:59 AM
Thanks Martin and Esben.
I've understand now.....  ;)
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 14, 2015, 01:15:27 AM
here my last test >
i don't know why i have white scratches on the glass
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 14, 2015, 02:51:29 AM
It's a good looking result to me Finema - Do you mean the banding, I have seen that in real glass too, it could be down to the tessellation on import if you used raw NURBs with no render mesh. If i remember rightly you can adjust the density of the mesh under your documents properties in Rhino

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 14, 2015, 02:57:22 AM
Thanks Martin !!
You are right ! It a pleasure to learn with guy like you :)
thanks again  ;)
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: richardfunnell on June 15, 2015, 11:25:13 AM
Hi Finema,

Sorry for the delayed response, but the original file from the webinar is now attached.

I've also attached a version modeled off the original Bodum double walled tumbler set, this has an extra layer of glass like it really is in production.
It was simplified for the webinar so it would be easier to see.

Thanks!
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 15, 2015, 11:55:02 AM
Thanks Richard - I have borrowed the model too, wanna check it out :)

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 15, 2015, 11:41:14 PM
Thanks a lot Richard !
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 16, 2015, 02:54:32 AM
here my render with this technique
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 16, 2015, 03:03:23 AM
Looks pretty good Finema, if you get time I am sure Richard would love some feedback regarding his webinar :)

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 16, 2015, 08:16:34 AM
Always in this way, if i add some ice cubes, the liquid bottom is too transparent i think...
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 16, 2015, 08:21:17 AM
Hi Finema, don't forget you can reduce the transparency of the liquid too :)

Martin
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: Finema on June 16, 2015, 08:30:10 AM
Yes Martin,
but i do that i lost the colour of the liquid bottom. All become too dark.
Thanks.
Title: Re: Webinar Mastering Transparent Materials in KeyShot
Post by: TpwUK on June 16, 2015, 09:19:21 AM
Ok - Then play with the refraction to counter the darkening :)

Martin