Drawing a jagged edge

Im trying to draw something like this. Ideally in a way in which i can move the points up and down to make a “wave” effect.


Any help? I’ve been trying with the rectangle SOP and Grid SOP but i cannot find a way so that the points only move in X-Y and not in Z which seems to be what Noise SOP does

the Noise SOP will transform points based on their normal. You can change this with a point SOP:

You can also make sure this only affects the top most row of a grid:

Here’s a tox to get you started.
base_wave.tox (1014 Bytes)

1 Like

Wonderful Matthew! That’s just what I needed and I learnt a lot.
In this case the nx for point should not change if I leave me.inputNormal[0] or if I just assign 0 to it right?

Thanks a lot for this and all your tuts!
I’ll share when i give the project some shape.

Correct - you can do either. You can always use the SOP to DAT to see the current values of normals if you want to see it in a table instead.

Ok, so I got it working.
My idea is to have several of these with different movements and different colors.

I got this by creating different Geometries.

Would there be a way to do this programatically? With Copy SOP i get to make them move differently but can’t give them different colors.
With instancing I can give them different colors but all with the same random movement.
I´m guessing that the random point movement I could do with the instancing. Any ideas?

You can stamp copies with an attribute that will then let you grab color information from a TOP or CHOP. That’s one way to get there. There’s a write-up about copy SOPs and stamps here:

Matthew, sorry for the late response.
Just wanted to say that your comment (and your tutorials) set me on the right path. I learnt so much along the way on how primitives work and how you can assign properties to them that then affect them when they are rendered.
Came to share what I did with that knowledge.
I was inspired by a beer can label and wanted to replicate it. It actually moves a bit slower than that cause the idea is that it works as a moving painting.

Thanks!

1 Like