Grasshopper

algorithmic modeling for Rhino

hi.

i am trying modify a surface with an image sampler.

is it possible to get control points of a surface in grasshopper?

my idea is to modify height of some points that would come from an image sampler


the thing is i modelled a city, with topographic data from gis program, but the river is not fine. so i wanted to take the image of the river from photoshop, and modify the surface with it.


would work?

other way?


thanks


pd.well, i saw the _heightfield command...this is what i need but on a 3d surface, and better if i could control the vector direction...
:)
ideas?

Views: 1142

Replies to This Discussion

well, i saw the _heightfield command...this is what i need but on a 3d surface, and better if i could control the vector direction...
:)
ideas?
The heightfield command is quite easy to recreate in GH, all you need is to sample the image on a grid of points, and use either of the Color channels (or a cumulative value) to move around a bunch of points that make the surface. You could either get the surface CVs using the OnNurbsSurface.GetCV method through code, or make a grid of points, move them, and use the [Surface from Points] component to make the surface.

The problem usually is that the points will always be on an orthogonal grid, and the image will also we always sampled on an orthogonal grid. For organic topology to show up (which I am assuming is the case with your river), you will need a pretty good resolution of image sampling, and correspondingly a very high number of points making your surface.

I would try to find a way to align the isocurves of the surface with the topology of the river, which can help you get a good surface with fairly lower point counts. In other words, I would try and create a surface by lofting curves that trace the topography of the river.
so, i have seen a distort script, that maybe could use instead of the image of the river...but i really want to use the image. maybe is not the right time, as you said, i will need many points...
but i like to get used to new buttons...and hadn't played much with image sample.
thanks for the help, really

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service