We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

SSAO and transperant materials

Home Forums Graphics / Blender SSAO and transperant materials

  • This topic has 8 replies, 3 voices, and was last updated 5 years ago by elk.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #13461
    elk
    Customer

    Hi.

    Is there a way to turn of SSAO calculations for a specific object ?

    I have a ground plane with faded “edges”, and if i have AO on that will darken the transparent areas so the mesh edges show as a faint dark “overlay”

    #13468
    elk
    Customer

    I also have another problem related to transparent materials. Sry about the bad Gif attachement, but i hope the point comes accrose.

    I am now using no depth write on bothe the glass/window material, and the ground plane, I set the z-depth of the ground plane to make it render before/behind the other transperant materials. I thought rendering without depth Write would fixs this issue with the ordering of transperant materials, but it seems to me the origin point of the object is still part of the calculation. For the closest window the origin is to the left of the camera, so moving forward will bring it behind it, and i think that is why it is changing the rendering when i move closer and further away.

    As I must be able to go around and see the transperant materials from multiple angles, and multiple “stacked” transperant materials I can’t force an order with the z-depth.

    Is there something i missed ?

    #13470
    elk
    Customer

    Gif did not seem to want to upload, hopefully an mp4 will be better ..

    #13474

    Is there a way to turn of SSAO calculations for a specific object ?

    There’s no way to do it now.

    As I must be able to go around and see the transperant materials from multiple angles, and multiple “stacked” transperant materials I can’t force an order with the z-depth.

    Can you share a blend file with a transparent objects?

    Co-founder and lead graphics specialist at Soft8Soft.

    #13476
    elk
    Customer

    Thanks for quick reply Mikhail.

    I am starting to get a bit more familliar with the code, so I guess I will do a bit of digging. Feel free to share if you know where i should start looking.

    I can try to strip down my file, or set up a new one to demonstrate this. Will post again once i got something ready.

    #13481
    elk
    Customer

    Here is a quick file i set up. I tried to recreate it, but could not recreate it, so I made a new app, and appended two of my trouble objects (the window panes).

    Try moving forward and back and you should see the “pop” before you meat the first window.

    If you turn Depth Write back on for the material, it will pop out entirely.

    Using 2.8 btw…

    Attachments:
    You must be logged in to view attached files.
    #13499

    Hi,

    I checked your file (thanks for attaching that). The reason for that behavior is that the engine compares the distance to the centers of objects to decide which one is to be rendered in which order. So a possible cure here can be to divide prolonged objects into smaller ones.

    Chief 3D Verger | LinkedIn | Twitter

    #13501

    I’ve made some changes in yor example and it helped.

    Attachments:
    You must be logged in to view attached files.

    Co-founder and lead graphics specialist at Soft8Soft.

    #13507
    elk
    Customer

    Thanks for the quick help guys.

    Was hoping that without Depth Write on it would just work. but i guess the problem is the origin going behind the camera and getting “culled” from the calculations.

    Gonna try with offsetting the origins also, but the smaller pieces tip will help in many cases.

    Cheers. :good:

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.