Dec
17

Dark diagonals on window glass panes

By

I didn’t intend to write an article about materials just yet –  it’s still “work in progress” – but I have stumbled on a bit of interesting phenomena regarding glass and I thought it best to get it here while it’s hot. It’s also a modelling problem in a way.

I used to model the glass pane as a solid object in another 3d software, that is as a thin box, it seemed to work better like this.

I did this in Blender at first also but after setting transparency and reflectivity to the glass material I got an unexpected black diagonal line across my window, as you can see on the window in the middle of the render. The other windows are made from a simple plane.

window with thickness (center of image) shows black diagonal

Window with thickness (center of image) shows black diagonal

Here are the settings I used (I’m still working to improve them):

Glass material with Ztransp

Glass material with Ztransp

As you can see I was using Ztransp because I had read somewhere it’s better for simple architectural glass. I am still testing this idea. Glass in architecture visualisations doesn’t need all the fancy glass characteristics of 3d artwork glass like caustics and refraction so Ztransp sounded good. Refraction can cause unwanted distortions in this kind of project though I didn’t notice that in Blender.

First I checked the object properties and my glass object was solid, the faces were quads and the normals properly oriented. I moved the light a bit but got the same effect.

After some more tests I managed to find the problem, the black diagonal happened because of the Ztransp transparency in conjunction with the raytraced shadow and the small distance between the two faces of the object. I looked at the shadow settings in the lights panel but couldn’t find anything there. So one solution is to leave Ztransp alone and use raytraced transparency. It might not be so bad but I’ll have to make some more tests to find the exact difference between the two methods.

I found that to keep using Ztransp you have to either make the glass from a single plane OR turn off the “traceable” button in the Links and pipeline panel (in the material buttons). This will stop the material from casting raytraced shadows which was not a problem in my example.

I should note some wierdness that happened while I was switching between raytraced transparency and Ztrans, like the setting didn’t update at once, but I’m not sure, I’ll look into that again.

Definitely I will have to dig some more into the “glass” topic.

Categories : Materials
  • Hy , Mama ^.^
    this site is very cool with simple style + great content
    i add this site in my faforis

    i am architectrel etudiant in Algeria
    and i work in blender from 2 month
    an this site will help me
    please dont stop this site will be the first if allah wont .

    this is my firt work XD

    http://forums.blendernewbies.com/viewtopic.php?f=22&t=3202

  • Oana

    Thank you and good luck with your work, looks very good so far! I feel encouraged by the feedback received and will keep posting 🙂

  • Treva Van Fossen

    I’m always on the prowl for Blender tutorials. I recently added your site to my bookmarks. I’m glad of it! This explanation on glass will be quite helpful to me, because my big project will have lots of windows. I’m such a stickler for detail that an undesired visual issue, like the one that you described, would drive me nuts. Thanks for sharing it.

    I share Mohamed’s wish for you to keep Blendermama and the tutorials online and active. Keep up the good work!