POV-Ray : Newsgroups : povray.advanced-users : clutter.mcr and trace() : Re: clutter.mcr and trace() Server Time
25 Feb 2024 07:58:58 EST (-0500)
  Re: clutter.mcr and trace()  
From: Bald Eagle
Date: 17 May 2021 19:55:00
Message: <web.60a301c0584c33991f9dae3025979125@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:
> On 5/17/2021 4:56 AM, Thomas de Groot wrote:
> > Thinking aloud here... assuming that you can render the landscape itself
> > without trouble (I assume you can) then using a gradient texture going
> > e.g. from black (bottom) to white (top) on the landscape, and rendering
> > that with an orthographic camera from above, within a white sphere
> > containing a finish {emission 1 diffuse 0}... that would do the job imo.
> > Make a large render, at least 2048x2048px.
> >
> The problem is that the pixels in a heightmap represent _vertices_ (and
> are therefore n+1 pixels per side) whereas a rendered image as you
> describe shows _faces_. So there will be a discrepancy (that I would
> like to avoid).

Why don't you just set up an orthographic scene, and plot 1-unit-square box with
a grayscale rgb value corresponding to the height.  Then you have an image with
each pixel representing a vertex.

Post a reply to this message

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