POV-Ray : Newsgroups : povray.binaries.images : Spherical displacement map : Re: Spherical displacement map Server Time
26 Apr 2024 22:47:47 EDT (-0400)
  Re: Spherical displacement map  
From: Thomas de Groot
Date: 12 Jul 2020 02:29:13
Message: <5f0aadb9@news.povray.org>
Op 12/07/2020 om 03:55 schreef Bald Eagle:
> I stuck with it and disabused my mind of whatever was plaguing it.
> 
> Primarily, it was a problem caused by evaluating the latitude using the
> cartesian coordinates of the full volume of the isosurface contained_by shape.
> 
> That threw everything out of the valid -1 to 1 input range for the acos
> function.
> 
> Just for future reference:
> 
> #declare Length = function (X, Y, Z)  {sqrt(pow(X,2)+pow(Y,2)+pow(Z,2))}
> #declare Lat = function (X, Y, Z) {acos ( min(Y/Length(X, Y, Z), 1) )}
> #declare Long = function (X, Y, Z) {atan2 (Z, X)}
> 
> 
> The displacement-map isosurface is on the left, and the bump_map from the same
> image is on the right.
> 
> {whew}
> 

Impressive. Good work. Depending on the ultimate use, one can opt for 
the bump_map or the displacement_map. The displacement_map looks very 
good: down to what level of detail?

-- 
Thomas


Post a reply to this message

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