POV-Ray : Newsgroups : povray.general : Request: deform Server Time
8 Aug 2024 14:15:45 EDT (-0400)
  Request: deform (Message 11 to 20 of 39)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 10 Messages >>>
From: Chris Huff
Subject: Re: Request: deform
Date: 9 Jan 2001 19:59:47
Message: <chrishuff-BC3EC5.20012709012001@news.povray.org>
In article <3a5ba55b@news.povray.org>, "Chris Colefax" 
<chr### [at] tagpovrayorg> wrote:

> The Compressor and Macros combined give you access to the vertices of 
> meshes (including bicubic patch models), and you are free to warp 
> these at will. Using various MegaPOV features (such as eval_pigment), 
> you could even try out ideas like your pattern warps.

And don't forget the vwarp() function... ;-)
Actually, combined with the displace warp, vwarp() can do anything 
eval_pigment() could be used for.

-- 
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: Wlodzimierz ABX Skiba
Subject: Re: Request: deform
Date: 10 Jan 2001 04:57:24
Message: <3a5c3204@news.povray.org>
Chris Huff wrote in message ...
> This does look like a better syntax. If your technique allowed warps to
> be used as deformations, it would be perfect...maybe a compromise would
> be a "deform" warp, but there will be a lot of duplication, since people
> will want deforms that do the same things as many of the warps.
> Is your technique still limited to deformations that can be "reversed"?


yes I think there is compromise between my deform and warps
every deform has defined methods just like methods for objects
this way there could be simple to write type of warp
warp { deform { TYPE PARAMS } }
which call method not assigned to object
and calculate coordinates without duplication of code

I'll check it before release of patch

ABX


Post a reply to this message

From: Warp
Subject: Re: Request: deform
Date: 10 Jan 2001 05:49:23
Message: <3a5c3e32@news.povray.org>
Rune <run### [at] inamecom> wrote:
: AFAIK meshes, bicubic patches and perhaps iso-surfaces can be transformed
: nonlinearly. Or they could if there was functions in POV-ray that was
: designed to do this...

  No, meshes and bicubic patches can't be transformed non-linearly.

  If you apply a true non-linear transform to a mesh, that would bend the
individual triangles. This is very hard to do.
  You can, however, move the vertex points (with the triangles still being
flat) to get the impression of a non-linear transform.
  This, however, often introduces artifacts. With a very coarse mesh the
artifacts are more clear (just imagine trying to twist 180 degrees a cube
made of 12 triangles).

  And besides, you can already do this with the PCM macros.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Rune
Subject: Re: Request: deform
Date: 10 Jan 2001 11:06:31
Message: <3a5c8887@news.povray.org>
"Chris Colefax" wrote:
> If you would like to experiment a little with mesh and patch
> deformations, without modifying the POV code just yet,
> perhaps you should look at the Compressed Mesh macro file in
> conjunction with Warp's Mesh Compressor:
>
>    http://www.geocities.com/ccolefax
>
> The Compressor and Macros combined give you access to the
> vertices of meshes (including bicubic patch models), and you
> are free to warp these at will. Using various MegaPOV
> features (such as eval_pigment), you could even try out
> ideas like your pattern warps.

Yes, I've thought of that too. Actually I downloaded the said utilities a
little while ago for that exact reason.

I haven't tried out my ideas yet, but since quite a few
calculations-per-vertice have to be done, I think it will be rather slow in
POV-script. It is worth a try though.

Thanks for the feedback!

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 6)
/ Also visit http://www.povrayusers.org


Post a reply to this message

From: Rune
Subject: Re: Request: deform
Date: 10 Jan 2001 11:06:34
Message: <3a5c888a@news.povray.org>
"Warp" wrote:
> Meshes and bicubic patches can't be transformed non-linearly.

How comes I just knew you would say that?

>   If you apply a true non-linear transform to a mesh, that
> would bend the individual triangles.

That would be a perfect non-linear transform. I'm talking about an
approximation. If things have to be perfect in order to be "true", there's
lots of things POV-Ray and MegaPov can't do:

TRUE atmospheric effects.
TRUE radiosity.
TRUE caustics.
TRUE focal blur.
TRUE fractals.
TRUE area lights.
TRUE motion blur.
...and the list goes on...

How come you never complain when people say these things can be done?

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 6)
/ Also visit http://www.povrayusers.org


Post a reply to this message

From: Rune
Subject: Re: Request: deform
Date: 10 Jan 2001 14:50:03
Message: <3a5cbceb@news.povray.org>
I wrote:
> "Warp" wrote:
> >   If you apply a true non-linear transform to a mesh, that
> > would bend the individual triangles.
>
> If things have to be perfect in order to be "true", there's
> lots of things POV-Ray and MegaPov can't do

> How come you never complain when people say these things can
> be done?

Sorry, I think "complain" is not the right English term here. I can't find
the right word right now. Anyway, no offence is intended...

Rune
--
\ Include files, tutorials, 3D images, raytracing jokes,
/ The POV Desktop Theme, and The POV-Ray Logo Contest can
\ all be found at http://rsj.mobilixnet.dk (updated January 6)
/ Also visit http://www.povrayusers.org


Post a reply to this message

From: Chris Huff
Subject: Re: Field_deform (was: Request: deform)
Date: 10 Jan 2001 20:21:22
Message: <chrishuff-54DBCA.20230310012001@news.povray.org>
In article <3a5b8dfc@news.povray.org>, "Rune" <run### [at] inamecom> 
wrote:

> I thought this method could work for meshes only, since it would do 
> moving of vertices.

Then it should probably be a specialized feature of meshes, not of a 
"deform" feature...hmm, am I the only one who has noticed there seems to 
be a lot more mesh ideas/patch work being done lately?


> The relative type would be useful for things like bone systems, where 
> every part of the mesh is deformed, and the original locations of the 
> vertices should not have any affection at all. In this case you would 
> want to make sure that your entire mesh is enclosed by the fields.

It might be a better idea to just implement a bone system. Maybe a new 
kind of mesh..."boned_mesh"...would be the easiest way to do things. I'm 
not sure the "deform fields" idea will be very easy to use...but inverse 
kinematics features could be worked into a boned mesh feature, and it 
might be easier to make a new kind of object instead of trying to work 
the additional data/algorithms/syntax into the existing mesh object.


> I still don't know what would be the best way to define the fields with.
> Patterns, blob-like fields, maybe both options, or maybe something 
> entirely different?

Patterns would be the most flexible way. Remember, you can make 
blob-like fields with a pattern, too. You might even be able to use the 
blob pattern. :-)

-- 
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: Warp
Subject: Re: Request: deform
Date: 11 Jan 2001 06:28:46
Message: <3a5d98ee@news.povray.org>
Rune <run### [at] inamecom> wrote:
: How come you never complain when people say these things can be done?

  Usually people ask somethink like "is it possible to _simulate_ motion
blur with povray?".

-- 
char*i="b[7FK@`3NB6>B:b3O6>:B:b3O6><`3:;8:6f733:>::b?7B>:>^B>C73;S1";
main(_,c,m){for(m=32;c=*i++-49;c&m?putchar('\n'):m)for(_
=(c>>2)&7;putchar(m),_--?m:(_=(1<<(c&3))-1,(m^=3)&3););}  /*- Warp -*/


Post a reply to this message

From: Tom Melly
Subject: Re: Request: deform
Date: 11 Jan 2001 06:31:43
Message: <3a5d999f$1@news.povray.org>
"Warp" <war### [at] tagpovrayorg> wrote in message
news:3a5d98ee@news.povray.org...
>
>   Usually people ask somethink like "is it possible to _simulate_ motion
> blur with povray?".
>

...as opposed to hurling the monitor across the room or firing it out of a
cannon?


Post a reply to this message

From: Gilles Tran
Subject: Re: Request: deform
Date: 11 Jan 2001 07:48:28
Message: <3A5DAC36.B0953064@inapg.inra.fr>
Tom Melly wrote:

> "Warp" <war### [at] tagpovrayorg> wrote in message
> news:3a5d98ee@news.povray.org...
> >
> >   Usually people ask somethink like "is it possible to _simulate_ motion
> > blur with povray?".
> >
> ...as opposed to hurling the monitor across the room or firing it out of a
> cannon?

... or standing in front of the screen and moving one's head back and forth
very fast ? Oh right, that's faking it.

G.

--

**********************
http://www.oyonale.com
**********************
Graphic experiments
Pov-ray gallery


Post a reply to this message

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

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