POV-Ray : Newsgroups : povray.binaries.images : I'll ask for help here, too Server Time
18 Nov 2024 14:24:14 EST (-0500)
  I'll ask for help here, too (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Timothy R  Cook
Subject: I'll ask for help here, too
Date: 14 Aug 2002 03:14:50
Message: <3D5A0364.5020001@scifi-fantasy.com>
Observe figure 1.  Randomly-filled-with-sphere_sweep
cylinder.  Good.
Observe figure 2.  Randomly-filled-along-xy-axes,-
but-the-z-axis-isn't-random.
I want figure 2 filled with the randomness of figure
1.
How do I do that?

-- 
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


Attachments:
Download 'junk2.jpg' (39 KB) Download 'junk.jpg' (55 KB)

Preview of image 'junk2.jpg'
junk2.jpg

Preview of image 'junk.jpg'
junk.jpg


 

From: gemelli david
Subject: Re: I'll ask for help here, too
Date: 14 Aug 2002 04:46:52
Message: <3D5A195D.1030206@xlstudio.com>
Timothy R. Cook wrote:

> Observe figure 1.  Randomly-filled-with-sphere_sweep
> cylinder.  Good.
> Observe figure 2.  Randomly-filled-along-xy-axes,-
> but-the-z-axis-isn't-random.
> I want figure 2 filled with the randomness of figure
> 1.
> How do I do that?

make the z axis a random number from 0 to 1 that will be a coefficient 
of your z equation  ?

               David.


Post a reply to this message

From: Bill DeWitt
Subject: Re: I'll ask for help here, too
Date: 14 Aug 2002 07:55:41
Message: <3d5a453d$1@news.povray.org>
"Timothy R. Cook" <tim### [at] scifi-fantasycom> wrote in message
news:3D5### [at] scifi-fantasycom...
> Observe figure 1.  Randomly-filled-with-sphere_sweep
> cylinder.  Good.
> Observe figure 2.  Randomly-filled-along-xy-axes,-
> but-the-z-axis-isn't-random.
> I want figure 2 filled with the randomness of figure
> 1.
> How do I do that?

    It probably really is, but to get to the bottom in the diminishing space
available, while still varying in xy, it can't look like it is very much.
You may need more z in your randomness rather than more randomness in your
z.


Post a reply to this message

From: Sebastian H 
Subject: Re: I'll ask for help here, too
Date: 14 Aug 2002 11:13:03
Message: <3d5a737f$1@news.povray.org>
> You may need more z in your randomness rather than more randomness in your
> z.

:-)


Post a reply to this message

From: Timothy R  Cook
Subject: Re: I'll ask for help here, too
Date: 14 Aug 2002 13:52:22
Message: <3D5A98D1.8030606@scifi-fantasy.com>
Bill DeWitt wrote:
>     It probably really is, but to get to the bottom in the diminishing space
> available, while still varying in xy, it can't look like it is very much.
> You may need more z in your randomness rather than more randomness in your
> z.

Er...huh?  The Z isn't random.  How do I know?

observe figure 1, which uses following:
sphere_sweep{
#declare points=100;
cubic_spline points,
#declare Seed=seed(10000);
#declare N=1;
#while(N<=points)
#declare Theta=rand(Seed)*360;
#declare Z=(N/100)+1.2;
#declare R=(rand(Seed)*0.25)+((Z-1.2)*(Z-1.2)*2);
#declare X=R*cos(Theta);
#declare Y=R*sin(Theta);
<X, Y, Z> 0.02
#declare N=N+1;
#end
texture{ pigment{ color rgb <1.0, 1.0, 1.0> } }
}

observe figure 2, which uses following:
sphere_sweep{
#declare points=100;
cubic_spline points,
#declare Seed=seed(10000);
#declare N=1;
#while(N<=points)
#declare Theta=rand(Seed)*360;
#declare Z=rand(Seed)+1.2;
#declare R=(rand(Seed)*0.25)+((Z-1.2)*(Z-1.2)*2);
#declare X=R*cos(Theta);
#declare Y=R*sin(Theta);
<X, Y, Z> 0.02
#declare N=N+1;
#end
texture{ pigment{ color rgb <1.0, 1.0, 1.0> } }
}

I want the jumbled-upness of figure 2 in the shape of
figure 1.  figure 2 has the random points, but they're
selected in such a way that parts of the sphere_sweep
are drawin outside the curve.

-- 
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


Attachments:
Download 'junk3.jpg' (43 KB) Download 'junk4.jpg' (50 KB)

Preview of image 'junk3.jpg'
junk3.jpg

Preview of image 'junk4.jpg'
junk4.jpg


 

From: Tony LaVigne
Subject: Re: I'll ask for help here, too
Date: 14 Aug 2002 14:10:11
Message: <web.3d5a996d5e6d1328d97cd3e00@news.povray.org>
Timothy R. Cook wrote:
>Observe figure 1.  Randomly-filled-with-sphere_sweep
>cylinder.  Good.
>Observe figure 2.  Randomly-filled-along-xy-axes,-
>but-the-z-axis-isn't-random.
>I want figure 2 filled with the randomness of figure
>1.
>How do I do that?

If R_env= envelope you want to keep it in, then
the envelope depends on where Z is so

R_env = f(Z)
It looks like you described it as something like
R_env= (Z+1.2)^2

I would find Z first and then use it to find the envelope and then
find X and Y

Theta=rand(Seed)*360
Z=rand(Seed)
R_env = (Z+1.2)^2
R=R_env*rand(Seed)
X=R*cos(Theta)
Y=R*sin(Theta)


This is independant of your while loop (N variable)
There may be rare occurances where your line points may be within your
boundries, but the path of the line might cross back and forth.
Tony


Post a reply to this message

From: Bill DeWitt
Subject: Re: I'll ask for help here, too
Date: 14 Aug 2002 14:13:28
Message: <3d5a9dc8$1@news.povray.org>
"Timothy R. Cook" <tim### [at] scifi-fantasycom> wrote in message
news:3D5### [at] scifi-fantasycom...
> Bill DeWitt wrote:
> >     It probably really is, but to get to the bottom in the diminishing
space
> > available, while still varying in xy, it can't look like it is very
much.
> > You may need more z in your randomness rather than more randomness in
your
> > z.
>
> Er...huh?  The Z isn't random.  How do I know?

    Ah... well... you had the code and I didn't. Next time I will remember
not to try to help.


Post a reply to this message

From: Timothy R  Cook
Subject: Re: I'll ask for help here, too
Date: 14 Aug 2002 14:15:27
Message: <3D5A9E3D.2000803@scifi-fantasy.com>
Bill DeWitt wrote:
> Ah... well... you had the code and I didn't. Next time
 > I will remember not to try to help.

Well, at least try not to help by saying something you
don't know for certain to be true...

-- 
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

From: Bill DeWitt
Subject: Re: I'll ask for help here, too
Date: 14 Aug 2002 14:23:24
Message: <3d5aa01c@news.povray.org>
"Timothy R. Cook" <tim### [at] scifi-fantasycom> wrote in message
news:3D5### [at] scifi-fantasycom...
> Bill DeWitt wrote:
> > Ah... well... you had the code and I didn't. Next time
>  > I will remember not to try to help.
>
> Well, at least try not to help by saying something you
> don't know for certain to be true...

    Here are some things that are certian to be true but I don't kow how
much help they will be. (1) You seem to have missed my qualifiers and so did
not understand the difference between a guess with a suggestion and an
assertion. (2) You are a jerk. (3)I won't be offering you any more help.


Post a reply to this message

From: Timothy R  Cook
Subject: Re: I'll ask for help here, too
Date: 14 Aug 2002 14:37:09
Message: <3D5AA354.8030403@scifi-fantasy.com>
Bill DeWitt wrote:
> Here are some things that are certian to be true but I don't kow how
> much help they will be. [...] (2) You are a jerk.

I corrected a misassumption you made about the randomness of an
image.  That makes me a jerk?  Do you consider anyone who corrects
you to be a jerk?

-- 
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

Goto Latest 10 Messages Next 2 Messages >>>

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