I'm looking to create some procedural low poly rocks and boulders for a game.
I haven't found much interesting information on the internet other than 3D software articles. Not sure what way to go.
I'm looking to create some procedural low poly rocks and boulders for a game.
I haven't found much interesting information on the internet other than 3D software articles. Not sure what way to go.
One approach could be to start with a sphere, perhaps pick some random parameters to stretch it varying amounts so some rocks are roughly round, while others are roughly egg shaped, then use 3D perlin or simplex noise and it's fractal variants (see the fbm methods in the link) to push vertices in towards the center, or pull them out, by some multiple of the perlin noise result. You would just pass the 3d coordinate of each vertex to the 3d perlin noise function, get back a float in the range [0,1], and use that to push or pull the vertex.
If you let me know what environment/language you are working with I can go into more detail.
When I create rocks in modelling softwares, I start from an icosaeder, fhen stretch it around, scale it a nit, then I just pick random vertices and I pull them a bit out. I suppose, the same can be made with code
par_shapes.h
single-file library for parametric meshes has arock
generation algorithm based on simplex noise. You may be able to derive some inspiration from the implementation. \$\endgroup\$ – Lars Viklund Feb 11 '16 at 15:49