POV-Ray : Newsgroups : povray.general : mesh + math? Server Time
31 Jul 2024 16:18:16 EDT (-0400)
  mesh + math? (Message 1 to 4 of 4)  
From: Raf256
Subject: mesh + math?
Date: 5 Jan 2007 05:22:17
Message: <459e26d9@news.povray.org>
How about bringing togeather the best two things - mesh modeling (in
external programs) and POV-Ray's functional textures?

It might work like this:

mesh_deformed {
  mesh { NORMAL_MESH }
  deformation { deformation_size 5 pattern { bozo } }
}

it would create an mesh object (copy of NORMAL_MESH, copy, not reference) in
which each corner would be translated by the value of deformation function
in that place.

corner = corner + bozo(cornet) * deformation_size;

where bozo "color" would be used to obrain 3d <x,y,z> vector instead <r,g,b>
color;

Any thoughts...?

-- 
Raf256


Post a reply to this message

From: Warp
Subject: Re: mesh + math?
Date: 5 Jan 2007 05:55:57
Message: <459e2ebd@news.povray.org>
Raf256 <spa### [at] raf256invalid> wrote:
> mesh_deformed {
>   mesh { NORMAL_MESH }
>   deformation { deformation_size 5 pattern { bozo } }
> }

> Any thoughts...?

  Adding even more new keywords and more really specific functionality
is not the way to go. This has been done with povray for 10 years, and
it has really become a mess (at SDL level it's still more or less
manageable - barely - but at source code level it became an incredible
mess).

  POV-Ray 4 will probably use a lot more generic ideas and features
which will probably allow doing what you want and much more (IOW, it
will probably not support mesh deformations directly, explicitly, but
it will probably give tools for you to write a small script which does
the same thing).

-- 
                                                          - Warp


Post a reply to this message

From: Raf256
Subject: Re: mesh + math?
Date: 5 Jan 2007 06:22:37
Message: <459e34fd@news.povray.org>
Warp <459e2ebd@news.povray.org> Friday 05 of January 2007 11:55

>   POV-Ray 4 will probably use a lot more generic ideas and features
> which will probably allow doing what you want and much more (IOW, it
> will probably not support mesh deformations directly, explicitly, but
> it will probably give tools for you to write a small script which does
> the same thing).

But the speed is important... 

-- 
Raf256


Post a reply to this message

From: Warp
Subject: Re: mesh + math?
Date: 5 Jan 2007 07:39:24
Message: <459e46fc@news.povray.org>
Raf256 <spa### [at] raf256invalid> wrote:
> But the speed is important... 

  For creating a deformed version of a mesh? Not likely.

  Besides, pov4 most probably will use a byte-compiled language (which
might even be JIT-compiled). Speed is not an issue here.

-- 
                                                          - Warp


Post a reply to this message

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