Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Resolved How does one update the Bvh after modifying a model?

Discussion in 'Graphics Dev Blitz Day 2023 - Q&A' started by sacb0y, May 24, 2023.

  1. sacb0y

    sacb0y

    Joined:
    May 9, 2016
    Posts:
    805
    Something I noticed in my experiments with raytracing and HDRP is that if I modify a model with something like UModeler the raytracing would then be incorrect for a while.

    It took me a while to realize why but my guess is the mesh used for the raytracing information isn't updated.

    Is there a manual solution for this or do I need to bug the UModeler dev?
     
    sabojako likes this.
  2. INedelcu

    INedelcu

    Unity Technologies

    Joined:
    Jul 14, 2015
    Posts:
    160
    Hi! I'm not familiar with UModeler. We do intercept changes to Meshes when for example the asset gets deleted or updated or when you change import settings and reimport it pressing Apply.
    By default Renderers assume that their Meshes are considered as static geometry where the mesh content doesn't change. This is best for GPU performance because the BVH is static. If UModeler uses dynamic Mesh contents then you'll need to set Ray Tracing Mode to Dynamic Geometry in the Renderer inspector.
     

    Attached Files:

    sacb0y likes this.