POV-Ray : Newsgroups : povray.binaries.images : Yet another lighthouse (111kB) Server Time
3 Aug 2024 02:21:33 EDT (-0400)
  Yet another lighthouse (111kB) (Message 31 to 32 of 32)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Alain
Subject: Re: Yet another lighthouse (111kB)
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

From: Kyle
Subject: Re: Yet another lighthouse (111kB)
Date: 20 Apr 2007 10:45:08
Message: <dekh23576s6dpmqjlnv9b5o323mvjquqe8@4ax.com>
On Fri, 20 Apr 2007 08:44:21 -0400, Alain <ele### [at] netscapenet> wrote:

>You can gain some speed with this version:
>f_p_LighthouseIsland(x,y,z).x/10

Ahh, hadn't caught that.  Thanks for the tip!


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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