POV-Ray : Newsgroups : povray.binaries.images : displace_warp - dispWarp.jpg (1/1) Server Time
2 Oct 2024 04:21:54 EDT (-0400)
  displace_warp - dispWarp.jpg (1/1) (Message 9 to 18 of 18)  
<<< Previous 8 Messages Goto Initial 10 Messages
From: Simen Kvaal
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 25 Jun 2000 18:22:49
Message: <39568639$1@news.povray.org>
>further examples of applications please.  i'm not quite sure what one
>would use this for.  thanks.


Io am just thinking aloud here.

As Tony[B] pointed out; the "classic" fire-demo-algorithm uses this kind of
displacement to mimic a very realistic fire-texture. And think of the
wonderful wood-pigments one can make:

pigment {
    wood
    color_map { something wonderful yet brown }
    warp {
        //something like; don't know the synatx ;)
        pigment {
            leopard
            color_map { [0.3 color rgb 1][0.7 color rgb 0] }
            turbulence 1
            scale 0.2
        }
    }
}

I can imagine this creating displacements resulting in kind of like
blackhole warp, except distributed everywhere and turbulenced.

And why not do something like:

pigment {
    image_map { your favorite picture of a nice person }
    warp { spotted scale 0.2 translate z*clock }
}

to make it bubble like a hot witches cauldron!

Oh, don't get me started!!

Regards,
Simen Kvaal.


Post a reply to this message

From: Simen Kvaal
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 25 Jun 2000 18:27:38
Message: <3956875a@news.povray.org>
When will this make it into the next (?) MegaPOV-release?

Chris Huff skrev i meldingen ...
>Remember the "distortion field"? This feature is similar, but it is an
>actual patch that implements a warp which does the same thing to a
>pattern. The syntax is simple:
>warp {
>    displace_warp {PIGMENT}
>}


Post a reply to this message

From: SamuelT
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 25 Jun 2000 18:45:15
Message: <39568C39.6F528226@aol.com>
Chris Huff wrote:

> > Ah, yes. I was playing with something like this a few weeks ago. You can
> > make subliminal images this way.
>
> I'm not quite sure what you mean...was it a patch? If so, I would be
> interested in what you came up with...my patch simply adds the "color"
> vector to the position vector.

No, it was using combined functions of #declared pigments. I just tried it
again, and your method does it differently, so no, mine wasn't quite like
yours.


> And "subliminal images"?

Err, subliminal messages using images. Hidden images the subconscious mind
picks up. Adverstisements used to use them.

BTW, I'm looking forward to your patch.


--
Samuel Benge

E-Mail: STB### [at] aolcom

Visit my isosurface tutorial at http://members.aol.com/stbenge


Post a reply to this message

From: Chris Huff
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 25 Jun 2000 18:59:44
Message: <chrishuff-C77E7F.18041325062000@news.povray.org>
In article <3956875a@news.povray.org>, "Simen Kvaal" 
<sim### [at] studentmatnatuiono> wrote:

> When will this make it into the next (?) MegaPOV-release?

Don't know...Nathan has said he is busy with something called "life", so 
probably whenever he gets spare time. It will be in my next release of 
MegaPOV+, though. I only release a Mac application and the source code, 
you will have to compile it yourself if you use Windows, Linux, BeOS, 
etc.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Chris Huff
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 25 Jun 2000 19:08:22
Message: <chrishuff-BA3AE4.18125125062000@news.povray.org>
In article <39568639$1@news.povray.org>, "Simen Kvaal" 
<sim### [at] studentmatnatuiono> wrote:

>       //something like; don't know the synatx ;)

The syntax is like this, you had it pretty close.
pigment {
    blah-blah
    warp {
        displace_warp {
            PATTERN+COLOR_MAP or other pigment stuff
        }
    }
}

Though I will probably shorten "displace_warp" to simply "displace" 
before I release it. The "_warp" is a bit redundant, since it is always 
used in a "warp {...}" block.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Chris Huff
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 25 Jun 2000 19:17:03
Message: <chrishuff-DD74F1.18213225062000@news.povray.org>
In article <39568C39.6F528226@aol.com>, SamuelT <STB### [at] aolcom> 
wrote:

> No, it was using combined functions of #declared pigments. I just 
> tried it again, and your method does it differently, so no, mine 
> wasn't quite like yours.

Hmm, I see...I think it would be possible to duplicate the patch with 
function patterns and 3 pigment functions(one for x, y, and z). It would 
be much more complex to use, though, and probably a lot slower.


> Err, subliminal messages using images. Hidden images the subconscious 
> mind picks up. Adverstisements used to use them.

Yeah, I know what subliminal messages are supposed to do...I just don't 
see how they fit in with my patch. If you aren't careful, the pattern 
gets scrambled beyond recognition, conscious or subconscious.


BTW, it might be interesting to apply this warp to an isosurface 
function pattern used in a pigment function to see how it affects the 
resulting object...did that make sense?

#declare Foo = function {pigment {function {...}...warp {displace 
{...}}}}

isosurface {function {Foo(x,y,z)}}

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

From: Peter Popov
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 25 Jun 2000 19:25:05
Message: <q05dlsgo61bucggu6ki87rkqjncler5out@4ax.com>
On Sun, 25 Jun 2000 18:04:13 -0500, Chris Huff <chr### [at] maccom>
wrote:

>Don't know...Nathan has said he is busy with something called "life", so 
>probably whenever he gets spare time. 

This "life" thingy is very addictive, believe me. I too used to spend
hours in front of the stack of gridded sheets (or, later, the
monitor).


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] usanet
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

From: Mick Hazelgrove
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 26 Jun 2000 02:37:12
Message: <3956fa18$1@news.povray.org>
Very Nice! this one looks very useful.

Mick

"Chris Huff" <chr### [at] maccom> wrote in message
news:chrishuff-55AC14.11432025062000@news.povray.org...
> Remember the "distortion field"? This feature is similar, but it is an
> actual patch that implements a warp which does the same thing to a
> pattern. The syntax is simple:
> warp {
>     displace_warp {PIGMENT}
> }
> Here is an image of a displace_warped checker pattern(left) and a
> gradient pattern(right). The displacing pigment is a bozo pattern with
> an automatically generated color_map.
>
> --
> Christopher James Huff - Personal e-mail: chr### [at] maccom
> TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
> Personal Web page: http://homepage.mac.com/chrishuff/
> TAG Web page: http://tag.povray.org/
>
>


Post a reply to this message

From: ryan constantine
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 26 Jun 2000 02:52:34
Message: <3956FEB3.5D7B38F4@yahoo.com>
would this be like adding two pigments together, like beats in wave
theory, where matching peaks cause constructive interference and
matching troughs create destructive interference and values in between a
mix of the two?  i'm thinking this would cause a mix between say, bozo
and granite to look like neither one.  i am way off?  or am i getting
it?

Chris Huff wrote:
> 
> Remember the "distortion field"? This feature is similar, but it is an
> actual patch that implements a warp which does the same thing to a
> pattern. The syntax is simple:
> warp {
>     displace_warp {PIGMENT}
> }
> Here is an image of a displace_warped checker pattern(left) and a
> gradient pattern(right). The displacing pigment is a bozo pattern with
> an automatically generated color_map.
> 
> --
> Christopher James Huff - Personal e-mail: chr### [at] maccom
> TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
> Personal Web page: http://homepage.mac.com/chrishuff/
> TAG Web page: http://tag.povray.org/
> 
>  [Image]


Post a reply to this message

From: Chris Huff
Subject: Re: displace_warp - dispWarp.jpg (1/1)
Date: 26 Jun 2000 10:40:39
Message: <chrishuff-D15E51.09450926062000@news.povray.org>
In article <3956FEB3.5D7B38F4@yahoo.com>, ryan constantine 
<rco### [at] yahoocom> wrote:

> would this be like adding two pigments together, like beats in wave
> theory, where matching peaks cause constructive interference and
> matching troughs create destructive interference and values in between a
> mix of the two?  i'm thinking this would cause a mix between say, bozo
> and granite to look like neither one.  i am way off?  or am i getting
> it?

No. It distorts a pattern by moving each point by the value of the color 
vector of the displacing pigment at that point. The displacing pigment 
isn't used for colors, but for vectors. The rgb values are used for xyz 
values for translating the each point of the pattern being warped.
I am trying to figure out how to add a "vector_map" keyword, that would 
clear things up a little.

-- 
Christopher James Huff - Personal e-mail: chr### [at] maccom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Personal Web page: http://homepage.mac.com/chrishuff/
TAG Web page: http://tag.povray.org/


Post a reply to this message

<<< Previous 8 Messages Goto Initial 10 Messages

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