POV-Ray : Newsgroups : povray.advanced-users : Trace() and memory Server Time
29 Jul 2024 18:22:16 EDT (-0400)
  Trace() and memory (Message 11 to 13 of 13)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Rune
Subject: Re: Trace() and memory
Date: 12 Dec 2001 18:21:15
Message: <3c17e66b@news.povray.org>
"Alf Peake" wrote:
> the difficulty of testing for <0,0,0>. This is the first time
> I've seen this solution and it seems so simple. I can't believe
> I missed it when I first tried to figure out an easy answer :(

It's my preferred method too because it's so simple looking, and it even
parses faster than the alternatives even though you wouldn't think so! Some
tests I posted a long time ago (in povray.general I think) showed that.

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated Nov 5)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

From: Ron Parker
Subject: Re: Trace() and memory
Date: 12 Dec 2001 21:14:29
Message: <slrna1g3o8.8l3.ron.parker@fwi.com>
On Thu, 13 Dec 2001 00:21:21 +0100, Rune wrote:
> "Alf Peake" wrote:
>> the difficulty of testing for <0,0,0>. This is the first time
>> I've seen this solution and it seems so simple. I can't believe
>> I missed it when I first tried to figure out an easy answer :(
> 
> It's my preferred method too because it's so simple looking, and it even
> parses faster than the alternatives even though you wouldn't think so! Some
> tests I posted a long time ago (in povray.general I think) showed that.

Faster than vdot(Norm,Norm)  (probably, because the latter takes longer to
parse...)

-- 
plane{-z,-3normal{crackle scale.2#local a=5;#while(a)warp{repeat x flip x}rotate
z*60#local a=a-1;#end translate-9*x}pigment{rgb 1}}light_source{-9red 1rotate 60
*z}light_source{-9rgb y rotate-z*60}light_source{9-z*18rgb z}text{ttf"arial.ttf"
"RP".01,0translate-<.6,.4,.02>pigment{bozo}}light_source{-z*3rgb-.2}//Ron Parker


Post a reply to this message

From:
Subject: Re: Trace() and memory
Date: 12 Dec 2001 21:19:31
Message: <er3g1u0n23okq486ph06v4sku4ot1b3ifp@4ax.com>

wrote:
> you want something like this ?

here are visualizations from showed code

http://news.povray.org/kk1f1u0tvda2ul55rclt1or8opfkah6i5j@4ax.com
http://news.povray.org/spkf1ugdk9ffq6q3shrfs0f1sqrgf8v9se@4ax.com

ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)&_((x+y)*.7,z,.1)&_((x+y+2)*.7,z,.1)&_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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