POV-Ray : Newsgroups : povray.general : Equiation needed Server Time
12 Aug 2024 21:25:10 EDT (-0400)
  Equiation needed (Message 6 to 15 of 45)  
<<< Previous 5 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Ilmari Karonen
Subject: Re: Equiation needed
Date: 8 Mar 1999 14:53:22
Message: <36e42ab2.0@news.povray.org>
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

From: Matthew Bennett
Subject: Re: Equiation needed
Date: 9 Mar 1999 14:32:18
Message: <36e57742.0@news.povray.org>
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

From: Margus Ramst
Subject: Re: Equiation needed
Date: 9 Mar 1999 15:16:44
Message: <36e581ac.0@news.povray.org>
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

From: povray org admin team
Subject: Re: Equiation needed
Date: 10 Mar 1999 07:20:56
Message: <36e76475.9218281@news.povray.org>
"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

From: Peter Popov
Subject: Re: Equiation needed
Date: 10 Mar 1999 11:08:34
Message: <36e79778.8542518@news.povray.org>
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

From: Tom Melly
Subject: Re: Equiation needed
Date: 12 Apr 1999 08:02:20
Message: <3711d2bc.0@news.povray.org>
microsoft's y2k fixes for win98 will not now be ready until 1/1/1900


Post a reply to this message

From: Chris Huff
Subject: Re: Equiation needed
Date: 12 Apr 1999 08:37:52
Message: <3711DBA3.4C2680CC@compuserve.com>
I heard they were delayed until 2/3/1901.

Tom Melly wrote:

> microsoft's y2k fixes for win98 will not now be ready until 1/1/1900


Post a reply to this message

From: Lance Birch
Subject: Re: Equiation needed
Date: 12 Apr 1999 10:53:52
Message: <3711faf0.0@news.povray.org>
he he, I wonder if they'll release Windows 2000 before or after 2000?  he he
he, then they wouldn't HAVE to fix their Y2K problems... they'd just have to
search and replace all "19"s with "20"s  he he he

--
Lance.


---
For the latest 3D Studio MAX plug-ins, images and much more, go to:
The Zone - http://come.to/the.zone
For a totally different experience, visit my Chroma Key Website:
Colorblind - http://www.fortunecity.com/skyscraper/parallax/359/colorblind


Post a reply to this message

From: Margus Ramst
Subject: Re: Equiation needed
Date: 12 Apr 1999 14:33:00
Message: <37122e4c.0@news.povray.org>
Lance Birch wrote in message <3711faf0.0@news.povray.org>...
>he he, I wonder if they'll release Windows 2000 before or after 2000?  he
he
>he, then they wouldn't HAVE to fix their Y2K problems... they'd just have
to
>search and replace all "19"s with "20"s  he he he
>


Or simply change it to Windows 1900.

Margus


Post a reply to this message

From: Josh English
Subject: Re: Equiation needed
Date: 13 Apr 1999 15:05:40
Message: <37138740.577F8911@spiritone.com>
They can just do a serach and replace routine on the code. I hear that someone
serached for "Microsoft" in all of the documentation on Windows 95, and the help
files and all that... replaced every one of them with "M$" and found 14MB of
extra space had been made available to him...

Probably an urban legend, but it would be fun if it was true

Josh English
english/josh/strm

Lance Birch wrote:

> he he, I wonder if they'll release Windows 2000 before or after 2000?  he he
> he, then they wouldn't HAVE to fix their Y2K problems... they'd just have to
> search and replace all "19"s with "20"s  he he he
>
> --
> Lance.
>
> ---
> For the latest 3D Studio MAX plug-ins, images and much more, go to:
> The Zone - http://come.to/the.zone
> For a totally different experience, visit my Chroma Key Website:
> Colorblind - http://www.fortunecity.com/skyscraper/parallax/359/colorblind


Post a reply to this message

<<< Previous 5 Messages Goto Latest 10 Messages Next 10 Messages >>>

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