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.

Issues with shadows with version 3.8 for Blender

Home Forums General Questions Issues with shadows with version 3.8 for Blender

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #45297
    jfgb
    Participant

    I am having issues with Sun Lamp generated shadows with Verger3D 3.8 for Blender.

    Attached files show of how it looks in Blender and how it does in Verge3D ( with 1024 and 4096 Cube and Cascade shadow maps).
    The las two images show Eevee Render Properties and Sun Light settings.

    Attachments:
    You must be logged in to view attached files.
    #45302
    jfgb
    Participant

    … light settings

    Attachments:
    You must be logged in to view attached files.
    #46758
    jfgb
    Participant

    Hi,

    I finally figured where my problem came from: the quality of the shadows depends on the “Max Distance” parameter of the “Cascaded Shadow Map” of my sun light in Blender: the longer I set this distance, the more jagged shadows look at a close distance. My apologies for blaming it on the v3dFechaHora 3.81 version.

    The thing is that I wanted to have shadows visible both at long and close distances, so I found a workaround: on a “when moved active camera -> while moving” event I run a script to measure the distance betweem the camera and the center of the scene and update the “Camera.shadow.maxDistance” accordingly.

    I am still not sure that is the best solution or not, but it works for me at no apparent performance cost.

    #46760
    xeon
    Customer

    Interesting solution. I will have to give that a try sometime.
    Did you consider baking the shadows? If yes, what made you decide not to bake shadows?

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #46761
    jfgb
    Participant

    No shadow baking: the sun will change position, to show where will it be entering the house at different preset dates and times of day. I wish I had an equivalent of the “Sun Position” add-on for blender…

    #46763
    xeon
    Customer

    Interesting use case. A sun/shadow study.

    You may want to try to setup your Sun Position in Blender. I would then animate the sun with a parented empty attached then I would bake the empty to get all the positional/rotational information for every frame. Then in V3D you could attach your light/sun source to that empty so that it tracks the way you want and keep the live shadows.

    If you are making a fully interactive experience where the user enters their GPS coordinates and orientation of the building …and the sun tracks to that location….that will require some interesting programming…but it can be done.

    Xeon
    Route 66 Digital
    Interactive Solutions - https://www.r66d.com
    Tutorials - https://www.xeons3dlab.com

    #46766

    Just in case – we recorded a tutorial on shadows a few days ago. It might help:

    Chief 3D Verger | LinkedIn | Twitter

    #46773
    jfgb
    Participant

    Yes, that was ,my original intention, that the user may be able to input coordinates, date, UTC time, orientation, etc. to reposition the sun.

    I did try to translate the python sun position add-on to javascript, but soon realised the task was too hard and time consuming for my skills. Besides, as it happens so often, someone had already done it:
    https://github.com/mourner/suncalc. It is a JS library that provides Azimuth and Altitude from date, time and coordinates, but I can’t get to convert them to v3d scene coordinates…

    So, while I am not in production (I’m doing this for a couple of friends and learning, for the moment) I’ll make do with the baked coordinates and positions and give it another go later. Thank you for your interest and time.

    #46774
    jfgb
    Participant

    Thank you for the link: I’ve been looking forward to a tutorial like this!

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