POV-Ray : Newsgroups : povray.binaries.images : Iso-waves (53KB) Server Time
19 Aug 2024 14:16:43 EDT (-0400)
  Iso-waves (53KB) (Message 1 to 9 of 9)  
From: Tor Olav Kristensen
Subject: Iso-waves (53KB)
Date: 13 Nov 2000 06:06:59
Message: <3A0FCAB9.D1347F95@online.no>
I wanted make some cylinders that were "bent"
according to a random pattern by using an iso-
surface.

I haven't succeeded doing this yet, but here's
an intermediate result. I'm not sure at all
if it's possible to do what I want with an iso-
surface. (But I'm trying.)

This image shows two iso-surfaces.


Tor Olav
-- 
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message


Attachments:
Download 'spaghetti.jpg' (54 KB)

Preview of image 'spaghetti.jpg'
spaghetti.jpg


 

From: Christoph Hormann
Subject: Re: Iso-waves (53KB)
Date: 13 Nov 2000 13:49:24
Message: <3A1037B4.E4631671@schunter.etc.tu-bs.de>
Tor Olav Kristensen wrote:
> 
> I wanted make some cylinders that were "bent"
> according to a random pattern by using an iso-
> surface.
> 
> I haven't succeeded doing this yet, but here's
> an intermediate result. I'm not sure at all
> if it's possible to do what I want with an iso-
> surface. (But I'm trying.)

I don't really understand the problem, because bending isosurface objects
usually isn't that difficult, maybe you should explain a bit more
detailed.

> 
> This image shows two iso-surfaces.
> 
> Tor Olav

Some emitting media near the horizon and a different texture for the upper
part would make it look quite interesting IMO, but it's probably more a
technical study.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
Homepage: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Chris Huff
Subject: Re: Iso-waves (53KB)
Date: 13 Nov 2000 17:30:41
Message: <chrishuff-1047D7.17305213112000@news.povray.org>
In article <3A0FCAB9.D1347F95@online.no>, Tor Olav Kristensen 
<tor### [at] onlineno> wrote:

> I wanted make some cylinders that were "bent" according to a random 
> pattern by using an iso- surface.
> I haven't succeeded doing this yet, but here's an intermediate 
> result. I'm not sure at all if it's possible to do what I want with 
> an iso- surface. (But I'm trying.)

It is very possible, and easy. Just use the pattern to adjust the xyz 
values fed to your function...the easiest way is to declare your 
function before you use it:

#declare Cyl = function {1 - sqrt(sqr(x) + sqr(z))}
#declare PatX = function {...pigment function for x displacement...}
#declare PatY = function {...pigment function for y displacement...}
#declare PatZ = function {...pigment function for z displacement...}

isosurface {
    function {Cyl(x-PatX(x,y,z), y-PatY(x,y,z), z-PatZ(x,y,z))}
    ...
}

This will do an effect similar to the type 0 displace warp...which leads 
to another way of doing it:
#declare BentCyl = 
function {
    pigment {function {1 - sqrt(sqr(x) + sqr(z))}
        warp {displace {pigment...}}
    }
}

isosurface {
    function {Cyl(x, y, z)}
    ...
}

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Iso-waves => Hose Hills (62KB)
Date: 13 Nov 2000 20:17:43
Message: <3A109216.7194079D@online.no>
Christoph Hormann wrote:
> 
> Tor Olav Kristensen wrote:
> >
> > I wanted make some cylinders that were "bent"
> > according to a random pattern by using an iso-
> > surface.
> >
> > I haven't succeeded doing this yet, but here's
> > an intermediate result. I'm not sure at all
> > if it's possible to do what I want with an iso-
> > surface. (But I'm trying.)
> 
> I don't really understand the problem, because bending isosurface objects
> usually isn't that difficult, maybe you should explain a bit more
> detailed.

I have enclosed an image that shows some 
iso-cylinders that I have tried to bend 
so that they follow the iso-surface below.

The problem is that they look like flattened 
hoses whenever they "move" vertically.


> Some emitting media near the horizon and a different texture for the upper
> part would make it look quite interesting IMO, but it's probably more a
> technical study.

Sorry.
I was just exploring the possibilities.

(OK - I put in an unnecessary red light 
and made the lights fade. But I didn't 
really make a serious attempt to be 
artistic :)

I don't know anything about media,
but thanks for the suggestions anyway.


Btw.:
There are 3 iso-surfaces in this image;
a red, a green and a white one.


Regards,

Tor Olav
-- 
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message


Attachments:
Download 'hosehills.jpg' (62 KB)

Preview of image 'hosehills.jpg'
hosehills.jpg


 

From: Andy Cocker
Subject: Re: Iso-waves => Hose Hills (62KB)
Date: 13 Nov 2000 20:22:23
Message: <3a1093cf@news.povray.org>
That's fascinating!

All the best,

Andy Cocker
---------------------------------------------------------------
www.mariner9.net

..... for my music and graphics.
---------------------------------------------------------------
'I spilled spot remover on my dog. He's gone now. '
'I went to a restaurant that serves "breakfast at any time."
So I ordered french toast during the Renaissance. '

 - Steven Wright.
"Tor Olav Kristensen" <tor### [at] onlineno> wrote in message
news:3A109216.7194079D@online.no...
>
> Christoph Hormann wrote:
> >
> > Tor Olav Kristensen wrote:
> > >
> > > I wanted make some cylinders that were "bent"
> > > according to a random pattern by using an iso-
> > > surface.
> > >
> > > I haven't succeeded doing this yet, but here's
> > > an intermediate result. I'm not sure at all
> > > if it's possible to do what I want with an iso-
> > > surface. (But I'm trying.)
> >
> > I don't really understand the problem, because bending isosurface
objects
> > usually isn't that difficult, maybe you should explain a bit more
> > detailed.
>
> I have enclosed an image that shows some
> iso-cylinders that I have tried to bend
> so that they follow the iso-surface below.
>
> The problem is that they look like flattened
> hoses whenever they "move" vertically.
>
>
> > Some emitting media near the horizon and a different texture for the
upper
> > part would make it look quite interesting IMO, but it's probably more a
> > technical study.
>
> Sorry.
> I was just exploring the possibilities.
>
> (OK - I put in an unnecessary red light
> and made the lights fade. But I didn't
> really make a serious attempt to be
> artistic :)
>
> I don't know anything about media,
> but thanks for the suggestions anyway.
>
>
> Btw.:
> There are 3 iso-surfaces in this image;
> a red, a green and a white one.
>
>
> Regards,
>
> Tor Olav
> --
> mailto:tor### [at] hotmailcom
> http://www.crosswinds.net/~tok/tokrays.html


----------------------------------------------------------------------------
----


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Iso-waves (53KB)
Date: 13 Nov 2000 20:39:02
Message: <3A109729.E781EC86@online.no>
Chris Huff wrote:
> 
> In article <3A0FCAB9.D1347F95@online.no>, Tor Olav Kristensen
> <tor### [at] onlineno> wrote:
> 
> > I wanted make some cylinders that were "bent" according to a random
> > pattern by using an iso- surface.
> > I haven't succeeded doing this yet, but here's an intermediate
> > result. I'm not sure at all if it's possible to do what I want with
> > an iso- surface. (But I'm trying.)
> 
> It is very possible, and easy. Just use the pattern to adjust the xyz
> values fed to your function...the easiest way is to declare your
> function before you use it:
> 
> #declare Cyl = function {1 - sqrt(sqr(x) + sqr(z))}
> #declare PatX = function {...pigment function for x displacement...}
> #declare PatY = function {...pigment function for y displacement...}
> #declare PatZ = function {...pigment function for z displacement...}
> 
> isosurface {
>     function {Cyl(x-PatX(x,y,z), y-PatY(x,y,z), z-PatZ(x,y,z))}
>     ...
> }

This looks a bit similar to what I have been doing.

And I'm afraid that your bent cylinders will suffer
from the same flattening as mine when they are not
"moving" in the y-direction.

I.e.:
Their cross-section becomes oval, not circular.

But I'll try to use your code to verify this.


> This will do an effect similar to the type 0 displace warp...which leads
> to another way of doing it:
> #declare BentCyl =
> function {
>     pigment {function {1 - sqrt(sqr(x) + sqr(z))}
>         warp {displace {pigment...}}
>     }
> }
> 
> isosurface {
>     function {Cyl(x, y, z)}
>     ...
> }


I haven't explored warping yet, 
but it seems fun.

Thank you for this suggestion
- I'll look into it.


Just a little question at the end:

Will expressions like this

1 - sqrt(sqr(x) + sqr(z)

evaluate faster than these

$ SphereFunction = function { "sphere" <0> }

1 - Spherefunction (x, 0, z)

?


Tor Olav
-- 
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

From: Chris Huff
Subject: Re: Iso-waves (53KB)
Date: 13 Nov 2000 21:05:48
Message: <chrishuff-6ED144.21060013112000@news.povray.org>
In article <3A109729.E781EC86@online.no>, Tor Olav Kristensen 
<tor### [at] onlineno> wrote:

> And I'm afraid that your bent cylinders will suffer
> from the same flattening as mine when they are not
> "moving" in the y-direction.
> I.e.:
> Their cross-section becomes oval, not circular.

Ok, you didn't say that was the problem...this method acts like 
displacement mapping, it pushes the surface around without caring about 
the overall shape. You want something that acts like a sphere_sweep... 
and I think you will have to use a sphere_sweep to get it.


> I haven't explored warping yet, 
> but it seems fun.

It will give the same results as the above, but the displace warp has 
another type that might be useful to you.


> Just a little question at the end:
> Will expressions like this
> 1 - sqrt(sqr(x) + sqr(z)
> evaluate faster than these
> $ SphereFunction = function { "sphere" <0> }
> 1 - Spherefunction (x, 0, z)
> ?

I don't know which is faster, but the first syntax will continue to work 
in POV 3.5 with little or no modification, but the second("sphere" <0>) 
syntax will be discontinued. And the first one is easier to modify.

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: David Fontaine
Subject: Re: Iso-waves => Hose Hills (62KB)
Date: 13 Nov 2000 23:49:09
Message: <3A10C3E5.26B1DE27@faricy.net>
Tor Olav Kristensen wrote:

> I have enclosed an image that shows some
> iso-cylinders that I have tried to bend
> so that they follow the iso-surface below.
>
> The problem is that they look like flattened
> hoses whenever they "move" vertically.

Its' probably in effect a sweep of a vertical circle, not of a sphere. There may
be some workaround to get a function of distance from the center of the hose,
but don't look at me!

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Iso-waves => Hose Hills (62KB)
Date: 16 Nov 2000 21:02:37
Message: <3A1490DB.52A28FF5@online.no>
David Fontaine wrote:
> 
> Tor Olav Kristensen wrote:
> 
> > I have enclosed an image that shows some
> > iso-cylinders that I have tried to bend
> > so that they follow the iso-surface below.
> >
> > The problem is that they look like flattened
> > hoses whenever they "move" vertically.
> 
> Its' probably in effect a sweep of a vertical circle, not of a sphere. There may
> be some workaround to get a function of distance from the center of the hose,
> but don't look at me!

Yes I agree, and I've been bending my mind to try
to come up with something that will enable me to
do something like a sphere sweep in there.

The problem is that the center of the "hose" does not
lie on a straight line anymore when it is being pushed.

I think that maybe one could try to find the slope and 
direction of the line in the region where the current 
point is and then try to find the point on that line
that is closest to the current point.

And then (I think) one could sample the "pushing" 
pattern in front and behind the point that are used to 
decide the "pushing" amount, in order to estimate the 
slope.

But again:
My PC is to slow to let me explore this :(

(And I don't feel for doing this right now either :)


Regards,

Tor Olav
-- 
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html


Post a reply to this message

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