Displace pattern on mesh

Hi,

How do I displace pattern on an organic mesh I have created in grasshopper. I would need to replace this image going forward depending on the project and the pattern needs to fade out according to distance from a certain mesh.

Any help is appreciated.
Thank you!

File?

HI, thanks for your reply. I cannot share the file but I’m looking for a similar effect as in the below picture. (I have place an object at the top of the cylinder and the pattern fades based on the distance from it).
The mesh shape would be different in every instance my definition is run though.

Thank you!

You are looking for Image Sampler and attractor logic.

1 Like

Is every shape a hexagonal mesh? i.e. every mesh face is a hexagon?

You can use the MorphToMesh component and vary the O input according to the distance from your attractor object…

The M2M component just needs a mesh that represents your texture hexagon inside the reference polygon…

If you have a mesh with pentagons, hexagons and heptagons then just create the same texture mesh for each of those corresponding reference polygons.

To get the input values for O so the texture is faded the further it is from the attractor, do this from your target mesh…

1 Like

Hi,

Thank you for the reply. I tried this but the Morph to mesh component is outputting ‘Empty mesh parameter’ (attached picture below)

What am I doing wrong?

Thank you

Yes, But I’m not able to set it up.
I have 2 meshes one (one with pattern one without- do not know how to set it up so that the pattern only occurs in the desired area)

Hello
what you show on your reference image seems to be a texture displacement for the hexagons and some fading that could be done with attractor or texture. The main drawback of this approach is that it needs a fine mesh.

OR It could also be possible to map some grid on a mesh with shapemap and use it to make a pattern

OR if surface to use some classical hexagons
OR if revolving surface to use these tricks

So there are many solutions that depends on the geometry you have, what you really want …
instead of that

or

it could be best you post some geometry and script and if not possible try to make an example that could be shared.

1 Like

It’s really hard to tell what you are doing wrong without any geometry.
My guess is that your small mesh is not positioned inside the relevant reference polygon.

1 Like

I suggest that you convert the Mesh object to a Nurbs surface first. Then you can create these shapes on a plane and then use the Sporph to map them onto the surface. Here is one for your reference.


3dTexture.gh (18.8 KB)

4 Likes

I understand, I’ll try this plug-in as well.

Thank you!

This is amazing, I’ll try and incorporate this. Figured out my displacement problem but this is very useful.

Thank you!

You’re right, I accidentally referenced the mesh right before I transformed it a little, thank you!

1 Like