POV-Ray : Newsgroups : povray.advanced-users : Editing or creating an image or heightfield in POV-Ray : Re: Editing or creating an image or heightfield in POV-Ray Server Time
20 May 2024 00:08:40 EDT (-0400)
  Re: Editing or creating an image or heightfield in POV-Ray  
From: Bald Eagle
Date: 10 Sep 2023 14:10:00
Message: <web.64fe0616574212401f9dae3025979125@news.povray.org>
"ingo" <nomail@nomail> wrote:

> Does the starting point have to be an image? You can use a function in a HF.
> https://wiki.povray.org/content/Reference:Function_Pattern#Function_Image

Good to know, sorry that you lost your archive.

I've (ab)used splines in functions, but I don't know if I could do that in 2D to
get a heightfield.

I could use a function to make the HF, but I'm still presently at a loss for how
I'd modify the values at each <x, y> position, since I still can't make discrete
modifications, due to the nature of functions, etc.  Going around in circles.

It seems like we _should_ have a way to "write" to the <x,y> pixel data stored
in memory after POV-Ray loads an image file, but we don't.
It also seems like we _should_ have a way to make images and HF's from a 2D
array, but we don't.

I guess I'll just bite the bullet and remember how to make a mesh, calculate the
normals, make smooth triangles..... {sigh}.

I was just hoping for an easier, lazier way.

- BW


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.