1
$\begingroup$

In a "Geometry Nodes" I use the "Proximity" node to set a different material if the distance between a cube and each face is less than a specific value.

It works fine, but now I would like the faces that have had their material changed to not change again when the cube distance is greater than the specific value.

Any ideas?

enter image description here The cube

enter image description here The nodes used.

The cube in action

Thanks for your time and help!

:)

$\endgroup$
2
  • 1
    $\begingroup$ The easy way would be to use dynamic paint. There is probably some other way to do it now with the simulation nodes that I haven't tried yet $\endgroup$
    – Alex
    Mar 9, 2023 at 18:31
  • $\begingroup$ I haven't thought about dynamic paint. I'll look it thanks Alex. $\endgroup$ Mar 10, 2023 at 6:42

1 Answer 1

0
$\begingroup$
  1. double your plane, rename it to "save", give it this GN modifier:

enter image description here

enter image description here

  1. in your plane, make a nodegroup of your node tree, then change your node tree to this:

enter image description here

  1. result:

enter image description here

of course you have to change the behaviour of your cube, because i don't think you want that behaviour - but this is another question ;)

Hope that helps.

$\endgroup$
5
  • $\begingroup$ I would never have thought to do it this way. Thanks Chris ! $\endgroup$ Mar 10, 2023 at 6:47
  • $\begingroup$ you can do it more "elegant" with the new simulation nodes - but i am not sure whether the new GN version would be ok for you... $\endgroup$
    – Chris
    Mar 10, 2023 at 7:43
  • $\begingroup$ I have the version 3.2.0. You would change to the new version 3.4.1? $\endgroup$ Mar 10, 2023 at 8:27
  • $\begingroup$ it depends...as usual ;) if you are working with Blender "just for fun" and not for customers - i would recommend using the newest so you learn the new things very early ;) and you can use the newest crazy features at first! ;) i am working with 3.6.... ;) $\endgroup$
    – Chris
    Mar 10, 2023 at 8:50
  • $\begingroup$ No doubt, this night i will upgrade Blender. Thanks ! :) $\endgroup$ Mar 10, 2023 at 8:58

You must log in to answer this question.

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