POV-Ray : Newsgroups : povray.general : Binary meshes? : Re: Binary meshes? Server Time
26 Jun 2024 15:40:36 EDT (-0400)
  Re: Binary meshes?  
From: Jörg 'Yadgar' Bleimann
Date: 18 Jun 2015 21:26:02
Message: <55836faa@news.povray.org>
Hi(gh)!

On 17.06.2015 23:54, Alain wrote:

> I'd start with an hight_field, then, start to play with functions and
> isosurface.
> Take your TIFF image, convert it into an image pattern, then into a
> function.
> The image's coordinates would become the longitudes and latitudes, to be
> adjusted by the base coordinates of the location to be rendered, and the
> values of each points would be added to a base radius to give the actual
> elevation.
>
> Just don't convert into a mesh.

O.k., this would avoid the memory-consuming generation of ASCII script 
code - of course at the expense of rendering time. But I never found out 
how to constrain such a function to a certain surface area defined by 
geographic coordinates rather than just producing a whole "sphere"...

The more sophisticated approach would be hacking the very source code of 
POV-Ray, adding an object type "Geo_Mesh", which internally would be 
treated just like a heightfield - you would specify an image map (or 
even ASCII matrix file) containing the elevation data, then geographic 
coordinates for opposite corners, finally the "base radius" of the 
sphere to which the elevation values would be added.

Does such a patch for POV-Ray already exist - or would I be the first to 
write it?

See you in Khyberspace!

Yadgar


Post a reply to this message

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