POV-Ray : Newsgroups : povray.binaries.images : Weathered objects Server Time
1 Aug 2024 22:18:37 EDT (-0400)
  Weathered objects (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: Thomas de Groot
Subject: Re: Weathered objects
Date: 3 Apr 2008 10:01:46
Message: <47f4f15a@news.povray.org>
"Bill Pragnell" <bil### [at] hotmailcom> schreef in bericht 
news:web.47f4bc094a7a14e5731f01d10@news.povray.org...
>
> If anybody has any other suggestions, now is the time!
>

Yes! This is certainly an interesting development. I suppose this is random 
weathering. Would it be possible to increase the weathering of particular 
places of the object, like edges or corners, more than the flat or rounded 
faces? Or to make oriented weathering like small vertical incisions down 
from the top? Fractures also would be nice of course :-)

Thomas


Post a reply to this message

From: Bill Pragnell
Subject: Re: Weathered objects
Date: 3 Apr 2008 10:25:01
Message: <web.47f4f59a884bb0eb731f01d10@news.povray.org>
"Thomas de Groot" <t.d### [at] internlDOTnet> wrote:
> Yes! This is certainly an interesting development. I suppose this is random
> weathering. Would it be possible to increase the weathering of particular
> places of the object, like edges or corners, more than the flat or rounded
> faces? Or to make oriented weathering like small vertical incisions down
> from the top? Fractures also would be nice of course :-)

At the moment it is pigment-function weathering, so if you can represent it as a
texture pattern it will work! You are limited only by patience and memory for
high-res meshes.

Vertical incisions could be done as a stretched pigment, and fractures as
crackle. I'll try it out tonight and see if it works. Preferential weathering
at corners and edges is of course more realistic, but I'm not sure how it could
be done. A translated turbulent wood could work on one edge, but not many...
hmm, I shall ponder.

Bill


Post a reply to this message

From: Nicolas Alvarez
Subject: Re: Weathered objects
Date: 3 Apr 2008 14:34:59
Message: <47f53163$1@news.povray.org>

> Bill Pragnell wrote:
> 
>> If anybody has any other suggestions, now is the time!
> 
> That actually looks very good! Now if you could apply sub-surface
> scattering to it...

Or if *you* could...

(does ssRay support meshes yet?)


Post a reply to this message

From: Severi Salminen
Subject: Re: Weathered objects
Date: 3 Apr 2008 15:03:36
Message: <47f53818$1@news.povray.org>
Nicolas Alvarez wrote:

>> That actually looks very good! Now if you could apply sub-surface
>> scattering to it...
> 
> Or if *you* could...
> 
> (does ssRay support meshes yet?)

No I can't...yet :( But that was a nice model which just begs to be made
of marbel/wax/whatever similar.


Post a reply to this message

From: triple r
Subject: Re: Weathered objects
Date: 3 Apr 2008 21:10:00
Message: <web.47f58cc2884bb0ebae42298f0@news.povray.org>
"Bill Pragnell" <bil### [at] hotmailcom> wrote:
> Vertical incisions could be done as a stretched pigment, and fractures as
> crackle. I'll try it out tonight and see if it works. Preferential weathering
> at corners and edges is of course more realistic, but I'm not sure how it could
> be done. A translated turbulent wood could work on one edge, but not many...
> hmm, I shall ponder.

Here's my thoughts on preferential weathering:

1) Go over the object with a coarse grid and store the radii.  Store these in an
array.

2) Go over the array and calculate the second derivative or some other measure
of curvature.  Wikipedia should have the Laplacian operator.  Just take r
constant.

3) Of course sharp edges will only have a local effect, so filter the data with
a Gaussian function.  Just calculate an average of every point with its
neighbors, weighted by a Gaussian distribution.  Very simple.

4) Now go back over it with your algorithm.  Same type of grid, so if it's finer
just interpolate the curvature onto the fine grid.  Areas with zero curvature
get the original function.  Areas with high curvature get the full
perturbation.

Think of a cube.  The edges contribute to the curvature of all the points around
them so you get smooth faces and weathered edges without any discontinuities.

Just a thought.

 - Ricky


Post a reply to this message

From: Bill Pragnell
Subject: Re: Weathered objects
Date: 4 Apr 2008 07:25:01
Message: <web.47f61de6884bb0eb731f01d10@news.povray.org>
"triple_r" <rre### [at] hotmailcom> wrote:
> Here's my thoughts on preferential weathering:
>
> 1) Go over the object with a coarse grid and store the radii.  Store these in an
> array.
> 2) Go over the array and calculate the second derivative or some other measure
> of curvature.  Wikipedia should have the Laplacian operator.  Just take r
> constant.
> 3) Of course sharp edges will only have a local effect, so filter the data with
> a Gaussian function.  Just calculate an average of every point with its
> neighbors, weighted by a Gaussian distribution.  Very simple.
> 4) Now go back over it with your algorithm.  Same type of grid, so if it's finer
> just interpolate the curvature onto the fine grid.  Areas with zero curvature
> get the original function.  Areas with high curvature get the full
> perturbation.

This is a very good scheme, and fits very well with the current algorithm. I
will play with it over the weekend and see how it goes...

Thanks for the pointer. :)


Post a reply to this message

From: Sven Littkowski
Subject: Re: Weathered objects
Date: 6 Apr 2008 21:53:25
Message: <47f97e95$1@news.povray.org>
Your weathered macro is wickedly great! I just love it 
spontaneously!!!!!!!!!!!!!!!

Please notify me as soon as you publish it!!!!!


"Bill Pragnell" <bil### [at] hotmailcom> schrieb im Newsbeitrag 
news:web.47f4bc094a7a14e5731f01d10@news.povray.org...
> Mornin' all.
>
> I've completely re-written my weathered brick macro; shown below is a 
> small
> preview of what it can do. I'll post it in a couple of days when I'm happy 
> it's
> behaving itself and I've commented the code a bit! I'll put it on the 
> object
> collection too.
>
> It's based on the mesh-approximation code I posted a few weeks ago; except 
> now
> it makes a single mesh2 object (faster parsing), offers the option of 
> smoothed
> triangles (faster rendering) and you can save the mesh2 as an .inc file if 
> you
> want (even faster parsing!). Best of all, it can weather any shape that 
> doesn't
> occlude itself from its own centre - many building block shapes are 
> therefore
> possible.
>
> If anybody has any other suggestions, now is the time!
>
> Bill
>


Post a reply to this message

From: Bill Pragnell
Subject: Re: Weathered objects
Date: 7 Apr 2008 10:30:03
Message: <web.47fa2f03884bb0eb731f01d10@news.povray.org>
"Sven Littkowski" <sven [] jamaica-focus [] com> wrote:
> Your weathered macro is wickedly great! I just love it
> spontaneously!!!!!!!!!!!!!!!

Argh! Punctuation overdose!

> Please notify me as soon as you publish it!!!!!

I will.

Actually, it's taking a little longer than I thought, mainly because of the
preferential edge-weathering option. The technique previously described works
OK when detecting the actual edges, but less so when applying the weathering.
The edge region ends up bounded by dead straight lines and it just doesn't look
right. I'm going to try one more approach (similar, yet different!) tonight then
I'll get back to tidying and finishing up the thing to be posted later in the
week.

:)


Post a reply to this message

From: Grim Reaper
Subject: Re: Weathered objects
Date: 4 Jun 2008 04:55:00
Message: <web.48465721884bb0eb6863987c0@news.povray.org>
Where can one get a copy of your weathered object macro?

"Bill Pragnell" <bil### [at] hotmailcom> wrote:
> Mornin' all.
>
> I've completely re-written my weathered brick macro; shown below is a small
> preview of what it can do. I'll post it in a couple of days when I'm happy it's
> behaving itself and I've commented the code a bit! I'll put it on the object
> collection too.
>
> It's based on the mesh-approximation code I posted a few weeks ago; except now
> it makes a single mesh2 object (faster parsing), offers the option of smoothed
> triangles (faster rendering) and you can save the mesh2 as an .inc file if you
> want (even faster parsing!). Best of all, it can weather any shape that doesn't
> occlude itself from its own centre - many building block shapes are therefore
> possible.
>
> If anybody has any other suggestions, now is the time!
>
> Bill


Post a reply to this message

From: Chris B
Subject: Re: Weathered objects
Date: 4 Jun 2008 05:17:40
Message: <48465db4$1@news.povray.org>
"Grim Reaper" <sup### [at] hotmailcom> wrote in message 
news:web.48465721884bb0eb6863987c0@news.povray.org...
> Where can one get a copy of your weathered object macro?
>

Bill posted a copy called 'meshrelief' on the POV-Ray Object Collection:
http://lib.povray.org/searchcollection/index2.php?objectName=meshrelief&version=1.0&contributorTag=Bill

Regards,
Chris B.


Post a reply to this message

<<< Previous 4 Messages Goto Initial 10 Messages

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