Announcement

Collapse
No announcement yet.

Disabling motionblur on animated UVs

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

  • Disabling motionblur on animated UVs

    Hi guys,
    is it possible to override the motionblur on UVs only? We're working on a project where we've animated the UVs of certain objects, we want to render these objects with motionlbur, without having it blur the animated UVs. Any ideas?
    Thanks

  • #2
    Here's a fallback option with that UV motion blur, we can use this as V-Ray Post Translate Scripts as a workaround:

    Code:
    from vray.utils import *
    
    names = ["*pCubeShape*"]
    
    # Collect nodes from the list of names
    nodes = []
    for name in names:
        nodes.extend(findByName(name))
    
    # Perform some alteration on the nodes
    for node in nodes:
    
        # V-Ray can have GeomDisplacedMesh but also GeomStaticMesh
        if not node.type().endswith("Mesh"):
            continue
    
        # Get current UV value
        channels = node.get("map_channels")
    
        # Set the UV values (so V-Ray thinks they are static values)
        node.set("map_channels", channels)
    As long as we put in the right names pattern at the top in the render scene this should work. I could also apply this to *all* meshes in the scene instead of by name, but I'm not sure if this might influence other things.

    Positional motion blur will still work, it's just making V-Ray think the UV values are static.

    Comment


    • #3
      That’s a clever work-around; I’m impressed

      Best regards,
      Vlado
      I only act like I know everything, Rogers.

      Comment

      Working...
      X