|
 |
On 10/09/2023 18:01, Bald Eagle wrote:
>
> With regard to TdG's interest in erosion, I was thinking about doing a quick
> test with an image map converted to a height_field.
>
> The only problem here is that I don't recall if there was a way to edit the
> pixel data in the image_map, or in the height_field, or to somehow use a
> function {} or a 2D array to create an image or heightfield...
>
> Or maybe a way to add/subtract / overlay onto the base image.
> I can't use arrays in functions, otherwise I could do image_map {function
> {array}}
>
> It would be useful to not have to load an image, convert that to an array, use
> that array to create a mesh, then use the algorithm I'm experimenting with to
> edit the mesh.....
>
> Does anyone have any ideas?
>
> - BW
>
Long time ago, I made a code that, given a png image, would plot for
each pixel a box of the original color and store this value in a 2d array.
Code attached
Maybe it can give you some ideas for your problem ?
--
Kurtz le pirate
Compagnie de la Banquise
Post a reply to this message
Attachments:
Download 'eval_pigment1.pov.txt' (3 KB)
|
 |