3D irregular shapes

edited November 2016 in How To...

Hi there, does anyone knows how to create irregular shapes to make stuff like rocks in processing? Something like this: http://rbblog.wpengine.netdna-cdn.com/wp-content/uploads/2010/05/making-gh-house-kostas-anninos-rock-all.jpg


  • edited November 2016

    @waltercorneli -- well, your image suggests:

    1. create coordinates for a simple regular mesh
    2. add random "noise" to move around the points on the mesh -- e.g. random()
    3. optionally "smooth" the noise by moving far points closer together.
    4. draw the object mesh.
    5. render the object with texture and light

    Check out the Object part of the reference, and also check out random().

Sign In or Register to comment.