|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Can anyone suggest an equation that gives the distance to a unit
circle lying in the x-z plane? It should look like an wood pattern
whose axis is not +z but a circle. Any ideas?
TIA.
---------
Peter Popov
ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
This is untested but I'm fairly sure it's right.
Assume X, Y, Z are the coords of the point in question.
D is the distance to the unit circle.
D = sqrt( pow(Y,2) + pow(sqrt(pow(X,2)+pow(Z,2))-1,2) )
Good luck.
Gordon
<gbe### [at] birdcameroncomau>
Peter Popov wrote in message <3c796fc0.8500773@news.povray.org>...
>Can anyone suggest an equation that gives the distance to a unit
>circle lying in the x-z plane? It should look like an wood pattern
>whose axis is not +z but a circle. Any ideas?
>
>TIA.
>
>
>---------
>Peter Popov
>ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
just a question :
Your system date appear to be 24 Feb 2002.
The question is : what are the new features of POV-Ray 4.2 ?
Cheers,
Fabien.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Can you send a copy ???
Fabien Mosen wrote:
>
> just a question :
> Your system date appear to be 24 Feb 2002.
> The question is : what are the new features of POV-Ray 4.2 ?
>
> Cheers,
> Fabien.
--
//Spider
( spi### [at] bahnhofse ) [ http://www.bahnhof.se/~spider/ ]
#declare life = rand(seed(42))*sqrt(-1);
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Sun, 28 Feb 1999 10:32:22 +0100, Fabien Mosen
<101### [at] compuservecom> wrote:
>just a question :
>Your system date appear to be 24 Feb 2002.
>The question is : what are the new features of POV-Ray 4.2 ?
>
>Cheers,
>Fabien.
Reinstalled IE4.0 :)
At least now I know I am y2k prepared.
---------
Peter Popov
ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Peter Popov wrote in message <3c796fc0.8500773@news.povray.org>...
>Can anyone suggest an equation that gives the distance to a unit
>circle lying in the x-z plane? It should look like an wood pattern
>whose axis is not +z but a circle. Any ideas?
If you have Superpatch, just use this macro (I just wrote this,
haven't tried it yet.)
#macro TorusWood ( Major )
function { sqrt(x*x+y*y+z*z-Major*(2*sqrt(x*x+z*z)-Major)) }
#end
Put it where you'd normally have the name of the pattern, as in:
pigment {
TorusWood( 5 )
color_map {
[0/3 color Red]
[1/3 color Green]
[2/3 color Blue]
[3/3 color Red]
}
}
Here are some other pattern macros:
// A torus-shaped density pattern, from which the above was derived.
#macro Toroidal ( Major ) // minor radius always 1
function { max(0,1-sqrt(x*x+y*y+z*z-Major*(2*sqrt(x*x+z*z)-Major))) }
#end
// Two point-to-point cones around the y-axis, similar to the cylindrical
// pattern except the width of the cylinder at any point is the same as
// the y-coordinate value. (untested)
#macro Conical ( )
function { max(0,1-sqrt(x*x+z*z)/abs(y)) }
#end
// A variable number of concentric cones, can be used with the radial
// pattern to create longitude-latitude lines on a sphere.
#macro Latitudes ( Frequency )
#local Pi = pi; // don't ask, some "feature" of Superpatch
function { Frequency*asin(y/sqrt(x*x+y*y+z*z))/Pi+Frequency/2 }
#end
More coming as soon as I finish my finals and have time for raytracing
again..
--
Ilmari Karonen (ilt### [at] scifi)
http://www.sci.fi/~iltzu/
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Argh.. it this thread going to perpetually sit at the very top/bottom of our
newsreaders? :P
Matt
Peter Popov wrote in message <3c796fc0.8500773@news.povray.org>...
>Can anyone suggest an equation that gives the distance to a unit
>circle lying in the x-z plane? It should look like an wood pattern
>whose axis is not +z but a circle. Any ideas?
>
>TIA.
>
>
>---------
>Peter Popov
>ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
No. His other post is at the bottom now. He has reached 2003 already...
Margus
Matthew Bennett wrote in message <36e57742.0@news.povray.org>...
>Argh.. it this thread going to perpetually sit at the very top/bottom of
our
>newsreaders? :P
>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Margus Ramst" <mar### [at] peakeduee> wrote:
>No. His other post is at the bottom now. He has reached 2003 already...
Maybe he's doing some Y2K testing on POV-Ray ...
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On Tue, 9 Mar 1999 19:30:42 -0000, "Matthew Bennett"
<ben### [at] btinternetcom> wrote:
>Argh.. it this thread going to perpetually sit at the very top/bottom of our
>newsreaders? :P
>
>Matt
Gee, guys, I am *really* sorry for the inconvenience! It all started
when I had to reinstall Internet Exploder 4 . It somehow messed up my
windoze clock and now it's gone completely nuts! I swear I set it back
to 1999 yesterday *and* this morning too, and two minutes ago it
showed 2003! I really hope it does not rewind to 1994 because windoze
95 might just as well kill itself as it will realise it will not have
been born yet. (Arrgh, verb tenses become a real problem when it comes
to time travelling). In fact that's already happened to me once -- all
files that were created/modified after the date indicated by the
system clock were swept away by a routine M$ ScumDisk check :(
Once again, I am really sorry for the date problem. I will make sure
the stupid mf (sorry) knows what date today is before I post anything.
---------
Peter Popov
ICQ: 15002700
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |