POV-Ray : Newsgroups : povray.general : Test Server Time
8 Aug 2024 01:19:17 EDT (-0400)
  Test (Message 1 to 10 of 10)  
From: Nekar Xenos
Subject: Test
Date: 8 May 2001 07:51:52
Message: <3af7ddd8@news.povray.org>
Just testing the wordwrapping settings.

--
#local Q=seed(7);#local B=<-2,2,5>;#local E=<2,-2,5>;#local C=<2,4,6>*4;blob{
threshold 1#while(vlength(B-E)>.1)#local S=B;#local B=B+<rand(Q),rand(Q),rand(
Q)>/20;#local B=B-2*(B-S)*(vlength(B-E)>vlength(S-E));sphere{0,1,1 scale.1//NX
translate<B.y,-B.x,B.z>}sphere{0,1,1 scale.1translate B}#end pigment{rgb C}}


Post a reply to this message

From: Warp
Subject: Re: Test
Date: 8 May 2001 10:01:54
Message: <3af7fc52@news.povray.org>
Nekar Xenos <j-p### [at] citywalkcoza> wrote:
: #local Q=seed(7);#local B=<-2,2,5>;#local E=<2,-2,5>;#local C=<2,4,6>*4;blob{
: threshold 1#while(vlength(B-E)>.1)#local S=B;#local B=B+<rand(Q),rand(Q),rand(
: Q)>/20;#local B=B-2*(B-S)*(vlength(B-E)>vlength(S-E));sphere{0,1,1 scale.1//NX
: translate<B.y,-B.x,B.z>}sphere{0,1,1 scale.1translate B}#end pigment{rgb C}}

  Why all that extra unnecessary stuff which makes the signature longer?
  Removing unnecessary stuff gives something like:

#local Q=seed(7);#local B=<-2,2,5>;#local E=<2,-2,5>;blob{#while
(vlength(B-E)>.1)#local S=B;#local B=B+<rand(Q),rand(Q),rand(
Q)>/20;#local B=B-2*(B-S)*(vlength(B-E)>vlength(S-E));sphere
{<B.y,-B.x,B.z>,.1,1}sphere{B,.1,1}#end pigment{rgb 9}}//     NX



-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Nekar Xenos
Subject: Re: Test
Date: 8 May 2001 10:27:10
Message: <3af8023e@news.povray.org>
>   Why all that extra unnecessary stuff which makes the signature longer?

Like this? (I don't understand the use of '?' and 'B.y' though - ABX helped me
there)
--
#local Q=seed(7);#local B=<-2,2,5>;#local E=<2,-2,5>;blob{threshold 1#while((E
-B).x>.1)#local S=B;#local B=B+<rand(Q),rand(Q),rand(Q)>/20;#local B=(vlength(
B-E)<vlength(S-E)?B:2*S-B);sphere{<B.y,-B.x,B.z>,.1,1}sphere{B,.1,1}#end
pigment{rgb<8,16,24>}}// nekar Xenos


Post a reply to this message

From: Christoph Hormann
Subject: Re: Test
Date: 8 May 2001 10:45:27
Message: <3AF806B0.D3078DA1@gmx.de>
Nekar Xenos wrote:
> 
> Like this? (I don't understand the use of '?' and 'B.y' though - ABX helped me
> there)

For (C?A:B) look in section 'Float Operators' in the docu.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Ron Parker
Subject: Re: Test
Date: 8 May 2001 10:50:45
Message: <slrn9fg1ua.ik2.ron.parker@fwi.com>
On Tue, 8 May 2001 16:30:29 +0200, Nekar Xenos wrote:
>>   Why all that extra unnecessary stuff which makes the signature longer?
>
>Like this? (I don't understand the use of '?' and 'B.y' though - ABX helped me
>there)
>--
>#local Q=seed(7);#local B=<-2,2,5>;#local E=<2,-2,5>;blob{threshold 1#while((E
>-B).x>.1)#local S=B;#local B=B+<rand(Q),rand(Q),rand(Q)>/20;#local B=(vlength(
>B-E)<vlength(S-E)?B:2*S-B);sphere{<B.y,-B.x,B.z>,.1,1}sphere{B,.1,1}#end
>pigment{rgb<8,16,24>}}// nekar Xenos

A few interesting excerpts from the docs:

|The default value if none is specified is threshold 1.0.

|Conditional expressions: The operand C is boolean while operands A and B 
|are any expressions. The result is of the same type as A and B.
|
|(C ? A : B)         if C then A else B

|You may use the dot operator to extract a single float component from a 
|vector. Suppose the identifier Spot was previously defined as a vector. 
|Then Spot.x is a float value that is the first component of this x, y, z 
|vector. Similarly Spot.y and Spot.z reference the 2nd and 3rd components. 

-- 
#local R=<7084844682857967,32787982,826975826580>#macro L(P)concat(#while(P)chr(
mod(P,100)),#local P=P/100;#end"")#end background{rgb 1}text{ttf L(R.x)L(R.y)0,0
translate<-.8,0,-1>}text{ttf L(R.x)L(R.z)0,0translate<-1.6,-.75,-1>}sphere{z/9e3
4/26/2001finish{reflection 1}}//ron.parker@povray.org My opinions, nobody else's


Post a reply to this message

From: Nekar Xenos
Subject: Re: Test
Date: 8 May 2001 10:58:48
Message: <3af809a8@news.povray.org>
Thanks.

I now remember that I have seen it in the docs, but I couldn't remember where.

Nekar Xenos


--
#local Q=seed(7);#local B=<-2,2,5>;#local E=<2,-2,5>;blob{threshold 1#while((E
-B).x>.1)#local S=B;#local B=B+<rand(Q),rand(Q),rand(Q)>/20;#local B=(vlength(
B-E)<vlength(S-E)?B:2*S-B);sphere{<B.y,-B.x,B.z>,.1,1}sphere{B,.1,1}#end
pigment{rgb<8,16,24>}}// nekar Xenos


Post a reply to this message

From: Ron Parker
Subject: Re: Test
Date: 8 May 2001 11:03:45
Message: <slrn9fg2mm.ik2.ron.parker@fwi.com>
On Tue, 8 May 2001 17:02:06 +0200, Nekar Xenos wrote:
>Thanks.
>
>I now remember that I have seen it in the docs, but I couldn't remember where.

The first excerpt was from the blob docs, and was a hint as to a way you can
make your sig even shorter (not my idea, though, just something you missed 
in Warp's adaptation.)

The second excerpt was from the "float operators" docs.

The third excerpt was from the "vector operators" docs.

-- 
#local R=<7084844682857967,32787982,826975826580>#macro L(P)concat(#while(P)chr(
mod(P,100)),#local P=P/100;#end"")#end background{rgb 1}text{ttf L(R.x)L(R.y)0,0
translate<-.8,0,-1>}text{ttf L(R.x)L(R.z)0,0translate<-1.6,-.75,-1>}sphere{z/9e3
4/26/2001finish{reflection 1}}//ron.parker@povray.org My opinions, nobody else's


Post a reply to this message

From: Warp
Subject: Re: Test
Date: 8 May 2001 11:28:20
Message: <3af81094@news.povray.org>
Nekar Xenos <j-p### [at] citywalkcoza> wrote:
: #local Q=seed(7);#local B=<-2,2,5>;#local E=<2,-2,5>;blob{threshold 1#while((E
: -B).x>.1)#local S=B;#local B=B+<rand(Q),rand(Q),rand(Q)>/20;#local B=(vlength(
: B-E)<vlength(S-E)?B:2*S-B);sphere{<B.y,-B.x,B.z>,.1,1}sphere{B,.1,1}#end
: pigment{rgb<8,16,24>}}// nekar Xenos

  If a bit wider version of the "X" doesn't bother you, you can make it
a three-liner:

#local Q=seed(7);#local B=<-2,2,5>;#local E=<2,-2,5>;union{#while((E-B).x>.1)
#local S=B;#local B=B+<rand(Q),rand(Q),rand(Q)>/20;#local B=(vlength(B-E)<
vlength(S-E)?B:2*S-B);sphere{<B.y,-B.x,B.z>,.1}sphere{B,.1}#end pigment{rgb 9}}



-- 
#macro N(D,I)#if(I<6)cylinder{M()#local D[I]=div(D[I],104);M().5,2pigment{
rgb M()}}N(D,(D[I]>99?I:I+1))#end#end#macro M()<mod(D[I],13)-6,mod(div(D[I
],13),8)-3,10>#end blob{N(array[6]{11117333955,
7382340,3358,3900569407,970,4254934330},0)}//                     - Warp -


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: test
Date: 26 Sep 2002 06:37:06
Message: <3d92e352@news.povray.org>
In article <3d92e2e8@news.povray.org> , "Timothy R. Cook" 
<tim### [at] scifi-fantasycom> wrote:

> ok, that works...
>
> why the heck can't I cancel my message using Mozilla 1.1?!?!?!?

Don't worry, it will be taken care of.


____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Timothy R  Cook
Subject: Re: test
Date: 26 Sep 2002 06:46:32
Message: <3d92e588$1@news.povray.org>
Thorsten Froehlich wrote:
> Don't worry, it will be taken care of.

Which, my ability to cancel messages with Moz 1.1, or the actual
cancellation of this particular message?

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

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