POV-Ray : Newsgroups : povray.binaries.images : Yet another lighthouse (111kB) : Re: Yet another lighthouse (111kB) Server Time
3 Aug 2024 04:19:47 EDT (-0400)
  Re: Yet another lighthouse (111kB)  
From: Alain
Date: 20 Apr 2007 08:44:38
Message: <4628b5b6$1@news.povray.org>
Kyle nous apporta ses lumieres en ce 19-04-2007 22:08:
> On Wed, 18 Apr 2007 14:13:16 -0700, William Tracy <wtr### [at] calpolyedu> wrote:

>>> Your rocks look like pillow lava, though, is it a granite pattern? Why not 
>>> wrinkles?
>> Yeah, the rock looks funky... but I really like that water! :-)

> Thanks!  

> Here's the code for the island and the water.  The island could use some work. 
Maybe I'll work on
> it for my next "final" version.


>>>> snip >>>

> #declare f_LighthouseIsland = 
>   function { 
>     f_sphere(x/2.5, select(y-1/4, y, (y-1/8)*2), z/2.5, 1/4)
>     - f_p_LighthouseIsland(x,y,z).gray/10
>   }
 >>>> snip >>>
You can gain some speed with this version:
f_p_LighthouseIsland(x,y,z).x/10

This works because your pigment is already in shades of gray and all 3 
components are equal. Now, you don't have to evaluate all 3 and average them.
This don't work if you use a pigment with a built in color_map like boxo, agate 
or wood.

-- 
Alain
-------------------------------------------------
Commercialism: Let's package this shit.


Post a reply to this message

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