 |
 |
|
 |
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
While playing with Isosurface functions in media, I found that I want the
"threshold" keyword inside my density but I have not found a way to do it.
I tried various ways of including it into a declared texture and placing it
in several places in the density itself. I suspect that I will have to build
it into the function where all values descend to zero and stay there, which
means no sine/cosign type things...8-(
The thing I am trying to do right now is toroidal media using "torus"<...>
which gives me a torus, but then also shows the points of a torus which
surrounds that torus.... not fun.
Any Ideas?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
The threshold keyword simply sets the value that is searched for when
finding the surface of the object, it has nothing to do with the
function itself. Not really sure what you are looking for...maybe the
min and max functions?
min(A, B) will return A or B, depending on which is lowest. max() works
the same, but returns the greater one. If you use 1 for one of the
values, and the density function for the other, it will return the value
of the density function if it is less than 1, otherwise it will return
1.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Here's a formula that John VanSickle gave me when I was looking for a
way to make toroidal media:
sqrt( y*y + (sqrt(x*x+z*z)-1)*(sqrt(x*x+z*z)-1) )
This makes a torus of major and minor radii 1. Some tweaking of the
frequency and phase keywords might be necessary. Enjoy.
Peter Popov
ICQ: 15002700
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Why don't you try using a color map? Something like
density{
function{ ... }
color_map{
[0 rgb 0]
[0.5 rgb 0]
[1.0 rgb 1]
}
}
This should clamp the values of density to 0 (i.e. transparent) unless
function is > 0.5. Is that what you're going for?
In Him,
Ben
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thanks, that's what I did. See p.b.i. "Accretion". The thin flaming ring is
the result so far. Could have been done with a disk 8-( My hope was to build
my other flames along turbulent toroidal magnetic lines... still in the
future somewhere.
Ben Birdsey <bbi### [at] unlgrad1 unl edu> wrote in message
news:37D34B2C.4FC3B474@unlgrad1.unl.edu...
> Why don't you try using a color map? Something like
>
> density{
> function{ ... }
> color_map{
> [0 rgb 0]
> [0.5 rgb 0]
> [1.0 rgb 1]
> }
> }
>
> This should clamp the values of density to 0 (i.e. transparent) unless
> function is > 0.5. Is that what you're going for?
>
> In Him,
> Ben
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Thanks!
Hmmm.. This makes three ways to make a torus, I wonder how many
there are?
Peter Popov <pet### [at] usa net> wrote in message
news:YEHTN98AgfONAna9Zlxr9xZUrTnB@4ax.com...
> Here's a formula that John VanSickle gave me when I was looking for a
> way to make toroidal media:
>
> sqrt( y*y + (sqrt(x*x+z*z)-1)*(sqrt(x*x+z*z)-1) )
>
> This makes a torus of major and minor radii 1. Some tweaking of the
> frequency and phase keywords might be necessary. Enjoy.
>
>
> Peter Popov
> ICQ: 15002700
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Let's cook some donuts (ways to make a torus):
torus
quartic
poly (he he he)
mesh
bicubic_patches
unioned/merged spheres/blobs/cylinders/whatever
isosurface function
density_file surface pigment isosurface
two height_fields
lathe/sor
cylinder + bend.inc
Anyone for any more?
Peter Popov
ICQ: 15002700
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Mon, 6 Sep 1999 20:20:30 -0400, "Bill DeWitt"
<the### [at] earthlink net> wrote:
>Thanks, that's what I did. See p.b.i. "Accretion". The thin flaming ring is
>the result so far. Could have been done with a disk 8-( My hope was to build
>my other flames along turbulent toroidal magnetic lines... still in the
>future somewhere.
Todoidal magnetic lines? Did you just say that? I think I can help you
:) With the invaluable help of Axel Hecht I was able to create a macro
which calculates the magnetic field vector and intensity in any point
in space. The macro needs a PCM1 file as input but a torus mesh can be
easily created with SPatch or anything else you can think of.
Peter Popov
ICQ: 15002700
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
sphere_sweep
Margus
Peter Popov wrote:
>
> Let's cook some donuts (ways to make a torus):
>
> torus
> quartic
> poly (he he he)
> mesh
> bicubic_patches
> unioned/merged spheres/blobs/cylinders/whatever
> isosurface function
> density_file surface pigment isosurface
> two height_fields
> lathe/sor
> cylinder + bend.inc
>
> Anyone for any more?
>
> Peter Popov
> ICQ: 15002700
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Peter Popov <pet### [at] usa net> wrote:
: Let's cook some donuts (ways to make a torus):
: lathe/sor
You can't make a torus with a sor.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Nieminen Juha wrote:
>
> Peter Popov <pet### [at] usa net> wrote:
> : Let's cook some donuts (ways to make a torus):
>
> : lathe/sor
>
> You can't make a torus with a sor.
Well don't get sor about it !
--
Ken Tyler
See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
EGADS! IT'S A PUN! KILL IT, KILL IT!!! :O
--
Lance.
(P.S. u could resort to patches...)
---
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://listen.to/colorblind
Ken wrote in message <37D4FB72.DA4FAB0F@pacbell.net>...
>
>
>Nieminen Juha wrote:
>>
>> Peter Popov <pet### [at] usa net> wrote:
>> : Let's cook some donuts (ways to make a torus):
>>
>> : lathe/sor
>>
>> You can't make a torus with a sor.
>
>Well don't get sor about it !
>
>--
>Ken Tyler
>
>See my 850+ Povray and 3D Rendering and Raytracing Links at:
>http://home.pacbell.net/tylereng/index.html
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Lance Birch wrote:
>
> EGADS! IT'S A PUN! KILL IT, KILL IT!!! :O
They monitor these groups,
On the lookout for Ken,
But that Povray Punster,
Has struck once again.
--
Ken Tyler
See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Peter Popov <pet### [at] usa net> wrote
>
> Todoidal magnetic lines? Did you just say that?
If I did, I must have had my pwingerds in ny noudth! 8-)
>I think I can help you
> :) With the invaluable help of Axel Hecht I was able to create a macro
> which calculates the magnetic field vector and intensity in any point
> in space. The macro needs a PCM1 file as input but a torus mesh can be
> easily created with SPatch or anything else you can think of.
>
EEEeeeikes! I still have that migraine, dude, all I can think of is Ice
Packs! But if you think it will help I would be anxious to see it. I was
planning on making layers of toroidal densities and laying some crackle
media on them.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 7 Sep 1999 06:35:38 -0400, Nieminen Juha <war### [at] cc tut fi> wrote:
> You can't make a torus with a sor.
I stand corrected. Not with a single sor, that is. You can make a
torus using CSG and two sors.
Peter Popov
ICQ: 15002700
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Peter Popov <pet### [at] usa net> wrote in message
news:YEHTN98AgfONAna9Zlxr9xZUrTnB@4ax.com...
> Here's a formula that John VanSickle gave me when I was looking for a
> way to make toroidal media:
>
> sqrt( y*y + (sqrt(x*x+z*z)-1)*(sqrt(x*x+z*z)-1) )
>
> This makes a torus of major and minor radii 1. Some tweaking of the
> frequency and phase keywords might be necessary. Enjoy.
>
I am having the same problem with this that I have had with other
formulas. It appears to make an intersection of two spheres with a sphere
punched out of the middle.
This make a good torus in an Isosurface statement, but chops off the
inner curve in media. I tried laying it over a spherical and cylindrical
density and playing with the density in a color_map but all that gave me was
a faded convex edge (see p.b.i.)
Did you have any better results with media?
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Never mind....
...contain it in a torus of the same size and then use color_map to take
away rings....
Bill DeWitt <the### [at] earthlink net> wrote in message
news:37d5af71@news.povray.org...
>
> Peter Popov <pet### [at] usa net> wrote in message
> news:YEHTN98AgfONAna9Zlxr9xZUrTnB@4ax.com...
> > Here's a formula that John VanSickle gave me when I was looking for a
> > way to make toroidal media:
> >
> > sqrt( y*y + (sqrt(x*x+z*z)-1)*(sqrt(x*x+z*z)-1) )
> >
> > This makes a torus of major and minor radii 1. Some tweaking of the
> > frequency and phase keywords might be necessary. Enjoy.
> >
>
> I am having the same problem with this that I have had with other
> formulas. It appears to make an intersection of two spheres with a sphere
> punched out of the middle.
>
> This make a good torus in an Isosurface statement, but chops off the
> inner curve in media. I tried laying it over a spherical and cylindrical
> density and playing with the density in a color_map but all that gave me
was
> a faded convex edge (see p.b.i.)
>
> Did you have any better results with media?
>
>
>
>
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On Tue, 7 Sep 1999 21:14:16 -0400, "Bill DeWitt"
<the### [at] earthlink net> wrote:
>Never mind....
> ...contain it in a torus of the same size and then use color_map to take
>away rings....
That's what I do, or you can try (if the 'min' function works for
isisurfaces)
min (1, sqrt( y*y + (sqrt(x*x+z*z)-1)*(sqrt(x*x+z*z)-1) ))
John sent mi this function per my request for a toroidal 'wood'
pattern, so it's not clipped like the cylindrical or spherical
patterns are. The change applied above should make it a unity toroidal
pattern clipped to 1.
Peter Popov
ICQ: 15002700
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
Peter Popov <pet### [at] usa net> wrote:
: I stand corrected. Not with a single sor, that is. You can make a
: torus using CSG and two sors.
How?
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 8 Sep 1999 07:06:21 -0400, Nieminen Juha wrote:
>Peter Popov <pet### [at] usa net> wrote:
>: I stand corrected. Not with a single sor, that is. You can make a
>: torus using CSG and two sors.
>
> How?
Difference between the "outside" part - shaped a bit like a flattened
sphere - and the "inside" part - shaped somewhat like a one-sheet
hyperboloid.
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |
|  |
|
 |
On 8 Sep 1999 09:25:06 -0400, par### [at] fwi com (Ron Parker) wrote:
>Difference between the "outside" part - shaped a bit like a flattened
>sphere - and the "inside" part - shaped somewhat like a one-sheet
>hyperboloid.
Beat me to it :)
Peter Popov
ICQ: 15002700
Post a reply to this message
|
 |
|  |
|  |
|
 |
|
 |
|  |