Grasshopper

algorithmic modeling for Rhino

After reading “Sculpt and detail realistic rocks” from 3DArtist n°91 (February 2016 ?) here is an attempt to replicate the beginning.

First I began with a sphere mesh with a script which generates a sphere with the maximum number of triangles but not much than a defined threshold.

I scaled that mesh just to fit Rhino grid, but it is not mandatory. What is useful, is to scale not uniformly the mesh (Scale NU). It could be done after cellular modifier applied or before or before and after. The 3 options are possible in the script. If you don’t need them just put 1 in scale sliders.

Ellipsoid mesh is the populated with points, I put 2 independents populations to randomize a bit further. For each vertices of the mesh the closest distance from the populated points is calculated.

Here is an illustration in color of this distance.

 

This distance is then used to calculate a bump. If domain for bump is beginning with negatives values to 0, it carves the mesh. Instead it bumps/inflates it.

 

Some images to illustrate the difference with populating 100 points with one or two populations.

Here some images to illustrate the application of scale before carving or after.

 

 

 

Next phase apply noise. At the moment I don't find it good.

Views: 20677

Attachments:

Replies to This Discussion

Here is a new example, it looks like Cranal texture from Cinema4d, 

it used 3D noise, simplex noise and Perlin noise 

http://www.food4rhino.com/project/4dnoise?etx

As these model outputs values between -1 to 1, I apply first and absolute fonction followed by a lower truncation and a rescaling. A graph mapper is also used after the rescaling. After that each vertex of the mesh is translated (bump map). Et voilà ! 

Beware, calculations on Fertility model are long (2 minutes). 

Attachments:

A script with som updates, can generate Cranal or Dents texture (names from Cinema4d).

As example there is a mesh plane, a sphere mesh or Fertility mesh. 

Attachments:
Attachments:

And the  version using an output as a mesh. Here a sphere.

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service