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.

Need to allow negative shadow bias

Home Forums Bug Reports and Feature Requests Need to allow negative shadow bias

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1832
    jem
    Customer

    I am working with very thin wall objects. I am having problems with shadows on these objects. If you look at the attached screenshot, you will see a banding effect. Those bands are not the material. Those bands are an artifact of the shadow on the dark side of the object. The bands will disappear if I make the object thicker, but that is not a viable solution.

    After much researching, I found that I can eliminate the banding if I make the lightObj.shadow.bias value slightly negative. I was able to do this with a little code:

    v3dApp.scene.getObjectByName(“Lamp2”).shadow.bias = – 0.001;

    At this level of bias, the artifacts disappear and the shadows are still reasonably attached to their objects. See the “noshadowbias.png” screenshot.

    I had to make this adjustment in the JavaScript because the Verge3d bias setting in Blender must be zero or greater.

    If anyone has a different suggestion for shadows on thin objects, I would be happy to have them. If not, may I request that the Verge3D Blender plugin allow negative values for shadow bias?

    Thanks,
    Jem

    Jeremy Wernick

    #1836

    If not, may I request that the Verge3D Blender plugin allow negative values for shadow bias?

    This change will be included in the maintenance release expected later today.

    Chief 3D Verger | LinkedIn | Twitter

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