POV-Ray : Newsgroups : povray.advanced-users : Applying noise to geometry Server Time
21 Dec 2024 20:41:57 EST (-0500)
  Applying noise to geometry (Message 1 to 10 of 17)  
Goto Latest 10 Messages Next 7 Messages >>>
From: yesbird
Subject: Applying noise to geometry
Date: 27 Feb 2023 13:32:57
Message: <63fcf759@news.povray.org>
Hi,
while working on Yes-project, I am trying to find the way of making
the objects less 'geometrical', giving them more natural and 'noisy'
shapes (like in this attachment, for example). The only way I found in
manual is to play with normals, but I'd like to have an influence on
geometry, to apply more relief.

It's possible to pass a noisy hi-res mesh from ZBrush, as I'm doing now,
but this is not 'pure' POV-way and import takes some 'non-zero' time.

Maybe anyone can advise something about such arbitrary geometry
modifications ?
Thanks in advance.
--
YB


Post a reply to this message


Attachments:
Download 'spral_path.png' (386 KB)

Preview of image 'spral_path.png'
spral_path.png


 

From: ingo
Subject: Re: Applying noise to geometry
Date: 27 Feb 2023 14:15:00
Message: <web.63fd01122d72758917bac71e8ffb8ce3@news.povray.org>
yesbird <sya### [at] gmailcom> wrote:

> It's possible to pass a noisy hi-res mesh from ZBrush, as I'm doing now,
> but this is not 'pure' POV-way and import takes some 'non-zero' time.
>

If you create your mesh with macros you can use (noise)functions to displace
vertices of the mesh. Here an example using crackle pattern for displacement.

---%<------%<------%<---

#version 3.8;

#include "meshmaker.inc"

global_settings {assumed_gamma 1.0}
camera {
   location  <0,1,-10>
   look_at   <0,0,0>
   angle 20
}
light_source { <500,500,-500> rgb <1,0.9,0.8> }
light_source { <-100,100,-500> rgb <0.3,0.3,0.5> }

#declare Crack= function {
  pigment {
    crackle
    colour_map{
      [0, rgb .01]
      [1, rgb .05]
    }
    scale 0.05
  }
}
#declare R= function(u,v) {
  Crack(u,v,0).gray * 5
}

#declare F1= function(u,v){(.5+R(u,v))*cos(u)}
#declare F2= function(u,v){(.5+R(u,v))*sin(u)}
#declare F3= function(u,v){v - R(u,v)}  // pull the spikes up

object{
   Parametric(
      F1, F2, F3,
      <0, -1>,
      <2*pi, 1>,
      500, 500, ""
   )
   uv_mapping
   pigment{rgb 1}
   finish{specular 0.5}
   rotate <60,0,0>
}

---%<------%<------%<---

ingo


Post a reply to this message

From: ingo
Subject: Re: Applying noise to geometry
Date: 27 Feb 2023 14:30:00
Message: <web.63fd03fb2d72758917bac71e8ffb8ce3@news.povray.org>
yesbird <sya### [at] gmailcom> wrote:

> Maybe anyone can advise something about such arbitrary geometry
> modifications ?
> Thanks in advance.

Another method could be to use the trace function to place objects on other
objects. You could cover an object with 'random' sized small blobs to get an
effect like your example. It is the same method as used for creating forests and
grass patches in landscapes.

ingo


Post a reply to this message

From: yesbird
Subject: Re: Applying noise to geometry
Date: 27 Feb 2023 14:52:06
Message: <df22d77a-a8fc-3405-b44f-a225da3dda01@gmail.com>
On 27/02/2023 22:26, ingo wrote:
> Another method could be to use the trace function to place objects on other
> objects. You could cover an object with 'random' sized small blobs to get an
> effect like your example. It is the same method as used for creating forests and
> grass patches in landscapes.
Hi ingo,
thanks for ideas and examples. Although fist method works fine, second
looks more attractive, as, I suppose, will allow 'decorate' imported
mesh, which gives me more control on the object's shape.

Unfortunately, I can't find a more detailed description and/or examples.
Could you please point me to them ?
--
YB


Post a reply to this message

From: yesbird
Subject: Re: Applying noise to geometry
Date: 27 Feb 2023 15:13:43
Message: <84be26af-b5dc-6c8a-4a96-f89059e63a19@gmail.com>
On 27/02/2023 22:52, yesbird wrote:
> Unfortunately, I can't find a more detailed description and/or examples.
> Could you please point me to them ?
> -- 
> YB

Found it now:
http://news.povray.org/povray.binaries.tutorials/message/%3Cweb.51f61e827603294573fc9ebb0%40news.povray.org%3E/#%3Cweb.51f61e827603294573fc9ebb0%40news.povray.org%3E
--
YB


Post a reply to this message

From: Cousin Ricky
Subject: Re: Applying noise to geometry
Date: 27 Feb 2023 17:26:05
Message: <63fd2dfd$1@news.povray.org>
On 2023-02-27 15:52 (-4), yesbird wrote:
> On 27/02/2023 22:26, ingo wrote:
>> Another method could be to use the trace function to place objects on
>> other
>> objects. You could cover an object with 'random' sized small blobs to
>> get an
>> effect like your example. It is the same method as used for creating
>> forests and
>> grass patches in landscapes.
> Hi ingo,
> thanks for ideas and examples. Although fist method works fine, second
> looks more attractive, as, I suppose, will allow 'decorate' imported
> mesh, which gives me more control on the object's shape.
> 
> Unfortunately, I can't find a more detailed description and/or examples.
> Could you please point me to them ?

I haven't tried it out for myself, but there is an Object Collection
module that might be helpful for this method:

https://github.com/LeForgeron/PovContributions/tree/master/findsurface/maggot%201.0


Post a reply to this message

From: yesbird
Subject: Re: Applying noise to geometry
Date: 27 Feb 2023 18:43:37
Message: <2519ca7c-3804-d941-50de-b664a19ab119@gmail.com>
On 28/02/2023 01:26, Cousin Ricky wrote:
> I haven't tried it out for myself, but there is an Object Collection
> module that might be helpful for this method:
> 
> https://github.com/LeForgeron/PovContributions/tree/master/findsurface/maggot%201.0
Thanks a lot, this is exactly what I was expected !
It works fine, I need only to play with covering object's orientation a
little.
--
YB


Post a reply to this message


Attachments:
Download 'findsurface.png' (315 KB)

Preview of image 'findsurface.png'
findsurface.png


 

From: Bald Eagle
Subject: Re: Applying noise to geometry
Date: 27 Feb 2023 19:10:00
Message: <web.63fd45ba2d7275891f9dae3025979125@news.povray.org>
yesbird <sya### [at] gmailcom> wrote:
> On 28/02/2023 01:26, Cousin Ricky wrote:
> > I haven't tried it out for myself, but there is an Object Collection
> > module that might be helpful for this method:
> >
> >
https://github.com/LeForgeron/PovContributions/tree/master/findsurface/maggot%201.0
> Thanks a lot, this is exactly what I was expected !
> It works fine, I need only to play with covering object's orientation a
> little.
> --
> YB

I haven't looked any of this over, but look over this thread, and see if any of
that helps you:

http://news.povray.org/povray.binaries.images/message/%3Cweb.603d82a3a906d8e31f9dae300%40news.povray.org%3E/#%3Cweb.603
d82a3a906d8e31f9dae300%40news.povray.org%3E

-BW


Post a reply to this message

From: yesbird
Subject: Re: Applying noise to geometry
Date: 27 Feb 2023 19:28:55
Message: <509e7f25-9981-680f-2c96-07e945f03104@gmail.com>
On 28/02/2023 03:07, Bald Eagle wrote:
> I haven't looked any of this over, but look over this thread, and see if any of
> that helps you:
> 
>
http://news.povray.org/povray.binaries.images/message/%3Cweb.603d82a3a906d8e31f9dae300%40news.povray.org%3E/#%3Cweb.603
> d82a3a906d8e31f9dae300%40news.povray.org%3E
Thanks, Bald, I will try it...

"Curiouser and curiouser!"
--
YB


Post a reply to this message

From: ingo
Subject: Re: Applying noise to geometry
Date: 28 Feb 2023 02:00:00
Message: <web.63fda6072d72758917bac71e8ffb8ce3@news.povray.org>
yesbird <sya### [at] gmailcom> wrote:
> thanks for ideas and examples. Although fist method works fine, second
> looks more attractive, as, I suppose, will allow 'decorate' imported
> mesh, which gives me more control on the object's shape.

I.i.r.c. Poseray https://sites.google.com/site/poseray/ can do mesh displacement
based on uv vectors and images. Never tried it myself.

ingo


Post a reply to this message

Goto Latest 10 Messages Next 7 Messages >>>

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