9

I'm trying to setup a image decal in cycles, and I can't figure how to setup the nodes to work fine. Does anyone know the solution?

blendFile

node setup

David
  • 49,291
  • 38
  • 159
  • 317
DavidGasku
  • 1,406
  • 2
  • 12
  • 24
  • For your case, just turn the mixing up to 1; How the f--- did you manage to get a viewer node into the material?! – someonewithpc Aug 22 '14 at 13:26
  • 2
    ahh, node wrangler addon, by Bartek Skorupa, one of my favourite addons. You can do a lot of things, for example, mix nodes with ALT+rightclick drags. – DavidGasku Aug 22 '14 at 13:32
  • the mix=1 doesn't use the second image alpha, so it turns black – DavidGasku Aug 22 '14 at 13:33
  • oh, damn. I just figured out. Just have to plug the alpha value into the factor socket – DavidGasku Aug 22 '14 at 13:34
  • well it seems related, but here the alpha is set in the mix color node, not in the mix shader. It won't hurt to have it around in the case someone has the same question in the future. – DavidGasku Aug 22 '14 at 13:56
  • Related: http://blender.stackexchange.com/q/8706/599 and http://blender.stackexchange.com/q/1258/599 – gandalf3 Aug 22 '14 at 18:34
  • @someonewithpc @DavidGasku Note that node wrangler is actually by Greg Zaal, but it was combined with node efficiency tools by Bartek Skorupa and then bundled with blender by default. It has lots of interesting features, but I mainly just use Ctrl+Shift+Click :) – gandalf3 Aug 22 '14 at 18:37
  • 2
    Thanks @gandalf3 :) Node Wrangler is a joint effort between Bartek and I, and even gets some commits from other devs occasionally. That repo on github is no longer the one we use, since the add-on is in blender by default now - so everyone's already got it installed and just needs to enable it. – Greg Zaal Aug 27 '14 at 13:31

1 Answers1

10

Just have to plug the alpha value of the decal into the factor socket of the mix node. Hope it is useful for someone in the future.

solution

DavidGasku
  • 1,406
  • 2
  • 12
  • 24