POV-Ray : Newsgroups : povray.general : Iso -> Parametric Iso ? Server Time
4 Aug 2024 16:15:44 EDT (-0400)
  Iso -> Parametric Iso ? (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: ABX
Subject: Re: Iso -> Parametric Iso ?
Date: 15 May 2003 11:33:03
Message: <fvb7cvgmplund9qmi3ofjrj3ircr3gil1e@4ax.com>
On Thu, 15 May 2003 17:13:37 +0200, "Hugo Asm" <hua### [at] post3teledk> wrote:
> But my
> isosurface mostly does surface displacement on a rounded box, so maybe I
> should try another approch: To import a dense mesh of a box, and apply my
> functions to it, then save the result.

(considering that rounded box macro has "linear" behaviour like in rounded
version of isocsg library)

You have notice that it will not be the same. When you have function of rounded
box and then you apply function of deformation then you receive new surface made
from points <x,y,z> where:

f_rbox(x,y,z) - f_def(x,y,z) = threshold

But if you would first create mesh for box and then displace about value of
f_def at box surface then result may be at different place.

I would do it going along normal of rounded box direction until it could reach
condition listed above. You can use optimization similiar to intersecting
isosurface surface but it would need knowledge written in isosurf.cpp :-)

ABX


Post a reply to this message

From: Hugo Asm
Subject: Re: Iso -> Parametric Iso ?
Date: 15 May 2003 12:04:56
Message: <3ec3baa8$1@news.povray.org>
> I would do it going along normal of rounded box direction until
> it could reach condition listed above.

Arrgh, *pulling my hair*  :o)  This isn't going to be too easy.
But thanks!

Regards,
Hugo


Post a reply to this message

From: Gilles Tran
Subject: Re: Iso -> Parametric Iso ?
Date: 15 May 2003 13:06:50
Message: <3ec3c92a$1@news.povray.org>

fvb7cvgmplund9qmi3ofjrj3ircr3gil1e@4ax.com...
> You have notice that it will not be the same. When you have function of
rounded
> box and then you apply function of deformation then you receive new
surface made
> from points <x,y,z> where:
> f_rbox(x,y,z) - f_def(x,y,z) = threshold

Just wondering: is it possible to "warp" a rounded box (bending, shearing,
twisting...) or another shape? Simple surface displacement can be done using
the formula above, but I've not been able to create more drastic
deformations.

G.

--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: ABX
Subject: Re: Iso -> Parametric Iso ?
Date: 15 May 2003 13:18:05
Message: <phi7cv4dm0mqr40t8t5kb0klp3nfml9fta@4ax.com>
On Thu, 15 May 2003 19:11:41 +0200, "Gilles Tran" <tra### [at] inapginrafr> wrote:
> Just wondering: is it possible to "warp" a rounded box (bending, shearing,
> twisting...) or another shape? Simple surface displacement can be done using
> the formula above, but I've not been able to create more drastic
> deformations.

I do not understand. Are you asking if it is possible to apply more complicated
"warping" deformations to functions and create isosurface (like I did in
http://news.povray.org/povray.binaries.animations/23891/167475/wip.mpg ) or are
you asking if it is possible to apply "warping" deformations to mesh builded
with method described in this thread? Both seems possible when considered in
concrete examples but probably again hard to be defined in universal way.

ABX


Post a reply to this message

From: ABX
Subject: Re: Iso -> Parametric Iso ?
Date: 15 May 2003 13:31:10
Message: <daj7cv08nfm789s0be0kmv6c26rhffjvul@4ax.com>
On Thu, 15 May 2003 19:17:00 +0200, ABX <abx### [at] abxartpl> wrote:
> http://news.povray.org/povray.binaries.animations/23891/167475/wip.mpg

In case you can wonder what "warp" I mean then I was refering to waving of R. Of
course other modifications like
http://news.povray.org/povray.binaries.animations/15156/100730/DEFORM.MPG
are also possible (thought this animation is result of my other old patch)

ABX


Post a reply to this message

From: Christoph Hormann
Subject: Re: Iso -> Parametric Iso ?
Date: 15 May 2003 14:05:23
Message: <3EC3D6E2.92607AD4@gmx.de>
Gilles Tran wrote:
> 
> > f_rbox(x,y,z) - f_def(x,y,z) = threshold
> 
> Just wondering: is it possible to "warp" a rounded box (bending, shearing,
> twisting...) or another shape? Simple surface displacement can be done using
> the formula above, but I've not been able to create more drastic
> deformations.

'bending' is somewhat unprecise mathematically.  Shrearing is even a
linear transformation (can be done with a matrix transform, of course
possible with functions as well).  Twisting is probably meant as 'rotating
with varying rotation angle' - rotation is

#declare fn_rotated=
  function { 
    fn_original(
      x*cos(Angle)+y*sin(Angle), 
      -x*sin(Angle)+y*cos(Angle), z
    ) 
  }

therefore twisting would be something like:

#declare fn_twisted=
  function { 
    fn_original(
      x*cos(AngleFactor*z)+y*sin(AngleFactor*z), 
      -x*sin(AngleFactor*z)+y*cos(AngleFactor*z), z
    ) 
  }

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: ABX
Subject: Re: Iso -> Parametric Iso ?
Date: 15 May 2003 14:13:23
Message: <iul7cvkt29isu4m42nr051lr8jv6qh7067@4ax.com>
On Thu, 15 May 2003 20:05:22 +0200, Christoph Hormann <chr### [at] gmxde>
wrote:
>#declare fn_rotated=
>  function { 
>    fn_original(
>      x*cos(Angle)+y*sin(Angle), 
>      -x*sin(Angle)+y*cos(Angle), z
>    ) 
>  }
>
>therefore twisting would be something like:
>
>#declare fn_twisted=
>  function { 
>    fn_original(
>      x*cos(AngleFactor*z)+y*sin(AngleFactor*z), 
>      -x*sin(AngleFactor*z)+y*cos(AngleFactor*z), z
>    ) 
>  }

writing both as:

#declare fn_rotated=
  function(x,y,z,Angle) { 
    ...
  }

#declare fn_twisted=
  function(x,y,z,AngleFactor) { 
    ...
  }

gives variable deforming along axis but calculations will be probably slower.

ABX


Post a reply to this message

From: ABX
Subject: Re: Iso -> Parametric Iso ?
Date: 15 May 2003 14:15:06
Message: <h6m7cv0b6tmfbj1nnlk7n6kl4g3bimql7g@4ax.com>
On Thu, 15 May 2003 19:17:00 +0200, ABX <abx### [at] abxartpl> wrote:
> are
> you asking if it is possible to apply "warping" deformations to mesh builded
> with method described in this thread?

http://news.povray.org/povray.binaries.images/13547/91145/chevy1.jpg

ABX


Post a reply to this message

From: Gilles Tran
Subject: Re: Iso -> Parametric Iso ?
Date: 15 May 2003 14:54:26
Message: <3ec3e262$1@news.povray.org>

phi7cv4dm0mqr40t8t5kb0klp3nfml9fta@4ax.com...

> I do not understand. Are you asking if it is possible to apply more
complicated
> "warping" deformations to functions and create isosurface (like I did in
> http://news.povray.org/povray.binaries.animations/23891/167475/wip.mpg )

That's it! (I just knew that there was a reason why I was asking you...).
I'll have a look at the functions Christoph and you provided. Many thanks to
both.

G.

-

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Iso -> Parametric Iso ?
Date: 16 May 2003 09:36:13
Message: <Xns937D9FB8BC6FAtorolavkhotmailcom@204.213.191.226>
"Gilles Tran" <tra### [at] inapginrafr> wrote in
news:3ec3c92a$1@news.povray.org: 

...
> Just wondering: is it possible to "warp" a rounded box (bending,
> shearing, twisting...) or another shape? Simple surface displacement
> can be done using the formula above, but I've not been able to create
> more drastic deformations.

The shape in this animation;

http://news.povray.org/povray.binaries.animations/31252/
http://home.no/t-o-k/povray/Quadrivariate_NURBS_Deformation.m1v
(The one on my homepage is of better quality.)

- does not have to be a "cube", it can be any mesh shape you want.

So a lot of different mesh deformations are possible by using
vector valued trivariate NURBS.


Tor Olav


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

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