POV-Ray : Newsgroups : povray.general : Height field to mesh - more resolution : Re: Height field to mesh - more resolution Server Time
17 Jun 2024 08:01:39 EDT (-0400)
  Re: Height field to mesh - more resolution  
From: ingo
Date: 7 Dec 2023 05:00:00
Message: <web.657196c32c1eda4417bac71e8ffb8ce3@news.povray.org>
"Leroy" <whe### [at] gmailcom> wrote:
> I made a  Mesh2 with 12800 triangles and 81*81 pov units square.

Very very nice!

I always wondered why POV-Ray does not interpolate the image for height fields,
as it can for image_maps. It is one of the reasons I wrote my curves.inc. The
idea to use it to interpolate images with different splines to vary the HF
output. Imagine using a TCB spline and vary the tension of the curvature.

But then I got side tracked by doing the curves.nim version and povmesh.nim to
speed things up a lot, but never got to create any proper HF mesh with it.

curve.inc:
https://ingoogni.nl/download/

curve.nim:
https://gist.github.com/ingoogni/490d2d50710bab4fe5e689714e9ef287
(the Nim version has better explanation of what the various parameters do than
the inc file)

povmesh.nim:
https://gist.github.com/ingoogni/ca030e955daf7f8138cedfe488ca0013

ingo


Post a reply to this message

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