Announcement

Collapse
No announcement yet.

VolumeGrid shader velocity issue

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VolumeGrid shader velocity issue

    Hi,

    One of our FX artists was testing out the volume rendering and bumped into an issue. Looks like the velocity motion blur in the volumeGrid shader isn't working as you expect it.

    His words:
    "As the renderings clearly shows, the velocity cannot be read. I tried different scattering method inside the shader. Backwards makes it a bit better but still not really present. I changed the sampling as well as the mblur multiplier to see if something is happening. I tried different mblur settings on the vray render node.
    The Geo node has velocity mblur active, the shader is set to volumetric geometry, vray has mblur enabled and the vectors have been split and corretly mapped to the shader under "fields". Not sure if its a bug, wrong implementation or my mistake."

    Test scene attached.
    V-Ray build: V-Ray:4.30.03 - 11th May

    V-Ray render:
    Click image for larger version  Name:	Volume_vray.JPG Views:	0 Size:	4.2 KB ID:	1074145

    Mantra render:
    Click image for larger version  Name:	Volume_mantra.JPG Views:	0 Size:	4.1 KB ID:	1074146

    Volume properties:
    Click image for larger version  Name:	Volume_Properties.JPG Views:	0 Size:	40.4 KB ID:	1074147

    Best,
    David.
    Attached Files
    Last edited by david.anastacio; 11-06-2020, 05:26 AM.
    David Anastácio // Accenture Song - VFX
    https://www.accenture.com/us-en/serv...visual-effects

  • #2
    Hi again,

    Any idea about this chakarov or Gosho.Genchev ?
    David Anastácio // Accenture Song - VFX
    https://www.accenture.com/us-en/serv...visual-effects

    Comment


    • #3
      Hey David,

      motion blur for volumes in V-Ray is computed differently compared to Mantra which is causing the renders you're seeing. The problem boils down to the fact that there is velocity information present only at the shell of the converted geo, ie. the very edges of the volume. Simulations don't present this issue because the bounding box of the sim is always filled with velocity data.

      Anything you do to add velocity information in the empty voxels will resolve this.

      I've attached an example file showing one way to do this here: https://drive.google.com/file/d/1O9s...ew?usp=sharing
      I am re-creating the velocity by sampling the source geometry as a point cloud and filling the voxels. It looks like this:

      Click image for larger version

Name:	voxel_vel_update.png
Views:	881
Size:	482.4 KB
ID:	1074595


      There is more detailed information here, I'm copying the relevant info in the quote below:
      https://forums.chaosgroup.com/forum/...e-from-houdini

      [1. By tracing the velocity for a specific voxel backwards and stretching the content for the newly found voxel at position (current voxel + velocity*-1). This is the closest to what Mantra seems to be doing, which is directly stretching the content for the currently shaded voxel. If you'd like to set up V-Ray to render volumetric motion blur this way, you need to set an option on the volume grid, like this: " setAttr "VRayVolumeGrid1.mbgrid" 1; ". By default, this is set to 0.

      Please give the option above a shot. It won't look exactly like Mantra but should produce good results. You may also need to tweak the Motion Blur Multiplier option.

      2. The default option expects grid velocity information to be present around the content (e.g. density) of the blurred voxel. This works really well for simulations where the entire velocity grid's bounding box contains velocity information but may give you trouble if you've generated a VDB with a random velocity field right around the edges of the density. In such cases, the density will be stretched as far as the velocity vectors go, and will abruptly end there.
      We're looking into improving this - I'm really hoping we could simply make the Backward Trace do exactly the same as Mantra.


      Hope that helps!
      gosho.genchev@chaosgroup.com

      Comment


      • #4
        Hi,

        Yes it did help.

        And thanks for the example file Gosho.Genchev, was very usefull. You guys should post this kind of stuff in the Tutorial section of the Vray for HOudini help page: https://docs.chaosgroup.com/display/...DINI/Tutorials
        The improvement to the backward Trace comming up soon or something for later?

        Best,
        David.
        David Anastácio // Accenture Song - VFX
        https://www.accenture.com/us-en/serv...visual-effects

        Comment


        • #5
          Indeed, I'll update the docs with the info above.

          One of the devs on the V-Houdini team is looking into the backward trace - I don't want to bore you with technical details but I'm hoping resolving one minor problem that we found recently will make the Backward Trace method close to equivalent to Mantra.
          I'll keep you updated on this one.

          Best regards!
          gosho.genchev@chaosgroup.com

          Comment


          • #6
            HI Gosho.Genchev, that's very good to hear. We are looking forward to that.

            Thanks,
            David.
            David Anastácio // Accenture Song - VFX
            https://www.accenture.com/us-en/serv...visual-effects

            Comment

            Working...
            X