3
$\begingroup$

To make it simple: I have a project using dynamic paint. In the viewport the dynamic paint works as 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 hoping that someone of you knows how to fix this.

$\endgroup$

1 Answer 1

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$
3
  • $\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$ Commented Nov 3, 2016 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$ Commented Nov 3, 2016 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
    Commented Nov 4, 2016 at 0:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .