Influence Voronoi noise with points?

   3432   3   1
User Avatar
Member
26 posts
Joined: Sept. 2010
Offline
Hello!

I'm attempting to control a voronoi pattern with a set of points but instead of using the Voronoi SOP, would it be possible to take a set of points into a Shader builder network or a Copnet?

*Please read my attachment comments

- Samboosa.

Attachments:
simple_voronoi.jpg (212.7 KB)
network.jpg (231.5 KB)

User Avatar
Member
8766 posts
Joined: July 2007
Offline
you can just import points as the pointcloud with large radius and limited to one point
then import id ot ptnum from that point and generate a random color to get colored voronoi cells

or import distance to get radial gradients from centers within voronoi cells
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
8766 posts
Joined: July 2007
Offline
here is example of both methods combined, so colored cells with gradient
you need to generate pointcloud first from /obj/object/rop_pc
then just render

Attachments:
voronoi_shader_from_pointcloud.hip (163.9 KB)

Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
26 posts
Joined: Sept. 2010
Offline
Thank you for your help Tante!

I kind of see what you're doing, but it's beyond my knowledge at this moment…

Also what I'm trying to do is create voronoi patterns within the shape of an irregular polygon…so a shader might not be the best option at this moment.

FYI I'm following the cmiVFX tutorial on procedural city generation, but I'm trying to find a way to generate the cells, but not limit the voronoi to a square.

- Samboosa.
  • Quick Links