Dynamic Paint Works Only in Viewport Render
Open, ConfirmedPublic

Description

I created a material effect that requires the use of Blender's Dynamic Paint to work the best way possible. It works correctly with a baked image sequence, but vertex colors don't work. There is another effect that does work in the rendered scene with vertex colors, on both the wetmap and paint map, but this file doesn't seem to work.

System Information
Windows 10 Home

Nvidia GeForce GTX 970

Blender Version
Broken: e8299c8

Short description of error

Full rendered materials do not respond to dynamic paint vertex color influence.

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

To repeat:

  1. Download the .blend file,
  1. go to any frame between frames 150 and 191,
  1. check in viewport render
  1. perform full render.

Interestingly, it works on both the paintmap and wetmap on an entirely new scene, but not this one with this specific material.

Details

Type
Bug
Aaron Carlisle (Blendify) triaged this task as "Confirmed" priority.

The problem comes from the subsurf modifier (it is disabled in preview mode (0), while enabled for final rendering).

Note that if you put dynamic paint modifier before subsurf in the stack, everything works OK.

Mehh, this even more complicated… There is a dependency cycle here, detected by legacy depsgraph. So tried with new depsgraph and… got a nice crash on startup (first evaluation of the scene) - new one also reports a dependency cycle btw.

Summoning @Sergey Sharybin (sergey) here, maybe he can figure out what’s happening here more easily than me :/

Bah, am now getting a straight crash when trying to switch to Cycles viewport render…

blender: /home/i74700deb64/blender/__work__/src/intern/cycles/blender/blender_mesh.cpp:67: void ccl::face_split_tri_indices(int, int*, int*): Assertion `face_flag & FACE_FLAG_DIVIDE_13' failed.

@Sergey Sharybin (sergey) assigning to you since I suspect some nasty DEG issue is at play here (and maybe a new Cycles one too? did not crash back in April.