1
$\begingroup$

I edited my question to hopefully make it more clear and easy to answer:

What is my goal? I want something similar to this in blender: https://www.youtube.com/watch?v=RfyXNhOnQQg&t=3m2s

My starting point is a plane where I delete faces based on vertex color to "paint" geometry. So far so good. Then I select the faces in the corner and edge of the plane, so give them a different material. Starting point

But now here is my problem: I want every face at edge and corner have a different material, based at which direction is outside. For example for the orange corner, the outside is +Y/-X. But how do I get this attribute and select with it? Desired result

If it's not possible with this method, I'm open for other ideas. My goal is just to automatically place a fitting texture to corners and edges to save a lot of time in contrast by placing every cube/texture by hand.

Thanks in advance for every help!

$\endgroup$
4
  • 1
    $\begingroup$ Are your corner tiles rotations of one another, or separate entities? $\endgroup$
    – Robin Betts
    Commented Oct 5, 2023 at 7:35
  • 1
    $\begingroup$ Best case separate entities, but rotation could work too. $\endgroup$
    – Trick
    Commented Oct 5, 2023 at 18:56
  • $\begingroup$ Possibly related: how can I make instances responsible to each-other $\endgroup$ Commented Oct 9, 2023 at 20:30
  • $\begingroup$ @MarkusvonBroady thanks, will look into it! $\endgroup$
    – Trick
    Commented Oct 9, 2023 at 22:02

1 Answer 1

0
$\begingroup$

Here is my attempt:

enter image description here

Inside node group:

enter image description here

The idea is to look at 4 edges of faces and set a color based on there this edge is located around face center.

$\endgroup$
6
  • $\begingroup$ thanks a lot, looks convenient. Unfortunately I couldn't get it to work if I put my vertex paint method in front to delete faces depending on where I paint. Seems that the indices get messed up. $\endgroup$
    – Trick
    Commented Oct 10, 2023 at 1:23
  • $\begingroup$ you should plug mesh data into node groups after removing vertices $\endgroup$
    – Crantisz
    Commented Oct 10, 2023 at 14:23
  • $\begingroup$ Ah, I had something else wrong, works now! I think that answers my initial question. But maybe I can get it a bit further: Is it also possible to select the inner corner faces (black marked)? imgur.com/a/qYq2exN $\endgroup$
    – Trick
    Commented Oct 10, 2023 at 23:29
  • $\begingroup$ @Trick it's feasible, but more complicated. It should get vertices of 4 corners and check how many face corners are connected to each vertex. If it is 4,4,4,3 it should be that face. $\endgroup$
    – Crantisz
    Commented Oct 11, 2023 at 9:51
  • $\begingroup$ I understand the logic behind that and tried it several ways, but I have no idea how to archieve that so that I can isolate the wanted faces. The whole attribute and index thing is not very intuitive for me. $\endgroup$
    – Trick
    Commented Oct 12, 2023 at 2:25

You must log in to answer this question.

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