POV-Ray : Newsgroups : povray.binaries.images : Why does just this take a million years to render? : Re: Why does just this take a million years to render? Server Time
9 Aug 2024 11:20:53 EDT (-0400)
  Re: Why does just this take a million years to render?  
From: Mike Williams
Date: 16 Feb 2005 01:25:31
Message: <RJv3tGASRuECFwRx@econym.demon.co.uk>
Wasn't it Bryan Valencia who wrote:

>Also, I am confused as to why the 'land' all seems to be below y=0 when the
>code is adding functions to y.

The surface exists at points where the whole function evaluates to zero.
The functions you added to y can take values between 0 and 100.1. So to
get the whole function to add up to zero, y must take values between 0
and -100.1.

#declare LandContour=function{
 y+f_mymarble(x/100,y/100,z/100)*100
 +f_mygranite(x,y,z)/10
}

E.g. suppose for some values of x, y and z
         f_mymarble(x/100,y/100,z/100) evaluates to 0.5
     and f_mygranite(x,y,z) evaluates to 0.5
then your LandContour surface exists where
         y + 50 + 0.05  =  0
So y must be -50.05

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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