3
$\begingroup$

To make it simple: I have a project using dynamic paint. In the viewport the dynamic paint works the it's supposed to work. But when rendering it the dynamic paint doesn't show/gets rendered.

In Viewport In Render View

I really have no idea what I did wrong so I'm hopping that someone of you knows how to fix this.

$\endgroup$
8
$\begingroup$

You may do it using the Attribute node with a paintmap information as a factor for mixing two materials. Here's the finished render:
enter image description here

First press Free Bake button in the Dynamic Paint Cache panel. Delete the blendcache folder from your computer.

Now select your sphere/ball and change the dynamic paint color to pure white. We'll be using the paint's color as a mask- I guess it's a good idea as you'll have more control over the materials later. enter image description here

In your case you have two different materials creating the radial pattern for cylinder. I created only one material for it, unwrapped with Project from View and attached a radial texture to it. You should do it too, cause it'd be simplier in the next stages. enter image description here

Now Bake the dynamic paint. In the Dynamic Paint Output panel press the '+' buton in the Paintmap Layer window. It should change from red to grey. enter image description here

Now in the Mesh Data header you have the baked paint information present in Vertex Colors panel. Copy the 'dp_paintmap name' with Ctrl+C. enter image description here

Now set up the nodes as pictured below. Add the Attribute node and paste the previously copied name in its window (Ctrl+V). Now we have the mask. Use it as a factor for mixing between the radial texture and anything you like (in my case it's a simple red color Diffuse shader, but it may be other material/texture you like). enter image description here

$\endgroup$
  • $\begingroup$ Following problem: When I click on Bake it only bakes 204 of the 240 frames. It doesn't stop after the 204th frame. It seems like it is just skips some frames. In the Dynamic Paint Cache it says: 204 frames on disk, not exact since frame 5 Frame 6 seems to be the first "gap". $\endgroup$ – Konrad Stüwe Nov 3 '16 at 22:08
  • $\begingroup$ Ignore my previous comment. Everything seemed a bit bugged so I started again from scratch. This time it worked perfectly. $\endgroup$ – Konrad Stüwe Nov 3 '16 at 23:50
  • $\begingroup$ Glad to hear I helped :). BTW You may also use the other dynamic paint method which uses image sequences. The answer here shows how to do it in Blender Internal, but you may addapt it into Cycles easily: blender.stackexchange.com/questions/6221/… $\endgroup$ – Paul Gonet Nov 4 '16 at 0:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.