Objects distorted behind glass material

This widget could not be displayed.

Objects distorted behind glass material

Anonymous
Not applicable

Hello, 

Im currently going through the process of adding materials to my Audi R8 model however the interior has been distored by the glass material I'm using for the windscreen? How do I stop this? 

Thanks

0 Likes
Reply
6,258 Views
13 Replies
Replies (13)

damaggio
Mentor
Mentor
I would guess is your refraction settings,,, might be too high, are you using a mia x or blinn ... What is your shader?
0 Likes

Anonymous
Not applicable

I'm using mia x and I dont know what shader I've used? How can you tell? Silly question maybe but I'm fairly new at all this haha

 

0 Likes

damaggio
Mentor
Mentor

Find your Mia x in the Hypershape window, there are presets there already made for you, they are great as a starting point, choose "Glass Thin" and you are done, just remember this is a shader that has under Advanced Refraction "Thin Walled" enable which does not calculate refractions , it is very useful for windows on buildings but for your car you "do" need refraction ,so choose "Solid" .

Refraction of glass is 1.500 and is already set.

Under BRDF is set to "Use Fresnel" ...if it looks okay you can leave as is but I usually adjust this value myself...somewhere around 0 degree reflection = .09 and leave always 90 degree reflection =1.0

Do your car entirely with Mias, it will look much more photo realistic.

0 Likes

Anonymous
Not applicable

Still no luck.. 😕 Applied the settings as you have suggested and still getting the distorted refractions? 

 

0 Likes

Anonymous
Not applicable

Solved it! Had to add gamma correction the the base layer colour and thats seems to have done the trick 

 

Thanks for the help 

0 Likes

damaggio
Mentor
Mentor

Reduce the refraction to 1.0 see the difference....also is your glass geometry that has thickness? real two sided glass? or is it just one single poly surface for the glass windows?...that could have an effect.....here's a low poly  car I did with mias, I believe I had reduced the refraction quite a bit here.

0 Likes

damaggio
Mentor
Mentor

Explain that better, what you mean base color....are you then using Mila shaders not Mia_X shaders?

0 Likes

Anonymous
Not applicable

I'm following a digital tutors tutorial and it was said that you must apply gamma correction to all materials with a base colour due to the rendering and/or lighting settings used.  I had forgot about this and to be honest wasn't sure if it would still apply as the glass is transparent. 

 

0 Likes

Anonymous
Not applicable

I am using the mia_material_x_passes material with the thin glass shader and gamma correction applied to the base colour under the diffuse tab

0 Likes

damaggio
Mentor
Mentor

A glass shader is  100 % black  there's no need to apply a gamma node there ( a gamma node does nothing to a black color or a white color), now, i'm not familiar with the Mia x passes so I don't know much about that, I did the same Digital tutors course a while ago but I render everything on Camera, no passes and I only use Mia X   Aaron....I'm glad you found the problem though.

0 Likes

damaggio
Mentor
Mentor
Yes you do need to gamma correct the other colors for the car...read more about linear workflow when you have a chance...is very important to understand.
0 Likes

Anonymous
Not applicable

I'll have a look into linear workflow like you said when I can. If thats the case with gamma correction I'm not too sure what I've done but for now its sorted.

 

The seats are there I promise haha but for some reason when I save the image from the render view it saves the image a lot darker. 

0 Likes

damaggio
Mentor
Mentor

in the render view window Save image> save color corrected images should be on, remember you are working in 32 bit image and you can adjust the exposure value before you save the image, this is a great feature in maya.

Make sure your render view "Display" is set to 32 bit and underneath _color management and Image Color Profile Linear srgb and Display color profile Srgb.

0 Likes