POV-Ray : Newsgroups : povray.binaries.images : The back of the Moon : Re: The back of the Moon Server Time
31 Jul 2024 04:25:59 EDT (-0400)
  Re: The back of the Moon  
From: Jörg 'Yadgar' Bleimann
Date: 26 Apr 2010 21:05:25
Message: <4bd63855$1@news.povray.org>
High!

Rarius wrote:

> You are welcome to my source code if it can be any help.
> 
> #local pl_radius = 3396;
> #local min_alt = -8.208;
> #local max_alt = 21.249;
> #local alt_fct = max_alt - min_alt;
> 
> #local f_relief =
> function
> {
>   pigment
>   {
>     image_map { gif "mars_topo.gif" once interpolate 2}
>     warp { spherical }
>     scale<-1, 1, 1>
>     rotate<90, 0, 0>
>   }
> }
> isosurface
> {
>   function { f_sphere(x,y,z,pl_radius+min_alt) - 
> alt_fct*f_relief(x,y,z).gray }
>   contained_by { box { -4000,4000 } }
>   accuracy 0.002
>   max_gradient 2
> }
> 

Interesting... would this also work with only a small section of the 
global heightfield, let's say a quadrangle of 1 square degree? Since 
several years, there are 3-arcsecond-per-pixel altimetry data tiles of 
Earth avalable, which can be converted to 8-bit, 16-bit or 24-bit 
heightfields - using them all in one gigantic heightfield will kill any 
operating system in the near and intermediate future...

See you in Khyberspace!

Yadgar


Post a reply to this message

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