2
$\begingroup$

Using this setup in animation nodes I created a phantom effect for my text with a wave modifier, but when I apply a boolean modifier it gets rid of the transparency of my text. Is there a way to apply the boolean without effecting the text transparency?

enter image description here

$\endgroup$

1 Answer 1

3
$\begingroup$

You are storing your transparency information in vertex colors layers. Some modifiers—including the boolean modifier—are destructive when it comes to mesh data such as vertex color layers. So upon applying a boolean modifier carrying vertex color data, the data is destroyed.

You have two ways to fix this, you either use another medium to pass the transparency information to cycles, or you dispense the boolean modifier in favour of another approach to achieve the same effect.

Dispense The Boolean Modifier

A more efficient approach would be to write a shader that changes the transparency of the fragments dynamically. Use the object space texture coordinates of an empty as the vector input of a Quadratic Sphere Gradient node and get the fragments that their gradient value is larger than zero. Use the output as a transparency mask and animate the empty location and scale to get the effect you had before:

Node Tree

$\endgroup$
9
  • $\begingroup$ This looks excellent! Do you have any suggestions for material I should read into/ google that would help me understand logic nodes / modifiers / anything else that had come up in the questions you have helped me with? $\endgroup$ Commented Jan 14, 2019 at 15:40
  • $\begingroup$ @NickSieben Not really. Most of this knowledge is gained by experience. So spend a lot of time trying things around until you get the hang of it. Please accept the answer if it answers your question. $\endgroup$
    – Omar Emara
    Commented Jan 14, 2019 at 16:42
  • $\begingroup$ I will when I can try it tonight. Thank you $\endgroup$ Commented Jan 14, 2019 at 17:17
  • $\begingroup$ I cant seem to get this working properly, I have it connected to a mix shader, mixing with the transparency node, and I have half a cube visible, but no amount of scale seems to effect it. Im not sure if I have the node connection proper after what you show. $\endgroup$ Commented Jan 15, 2019 at 2:15
  • $\begingroup$ It could be broken in 2.8, I did get it to work in 2.79b $\endgroup$ Commented Jan 15, 2019 at 2:50

You must log in to answer this question.

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