POV-Ray : Newsgroups : povray.binaries.images : Weathered objects Server Time
1 Aug 2024 16:26:20 EDT (-0400)
  Weathered objects (Message 1 to 10 of 14)  
Goto Latest 10 Messages Next 4 Messages >>>
From: Bill Pragnell
Subject: Weathered objects
Date: 3 Apr 2008 06:20:00
Message: <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


Attachments:
Download 'weatheredtest.jpg' (83 KB)

Preview of image 'weatheredtest.jpg'
weatheredtest.jpg


 

From: Severi Salminen
Subject: Re: Weathered objects
Date: 3 Apr 2008 06:33:08
Message: <47f4c074$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...


Post a reply to this message

From: Bill Pragnell
Subject: Re: Weathered objects
Date: 3 Apr 2008 06:45:01
Message: <web.47f4c291884bb0eb731f01d10@news.povray.org>
Severi Salminen <sev### [at] NOTTHISsaunalahtifiinvalid> wrote:
> 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...

You can, using media. Each block is a completely closed mesh. They also come
with an inside_vector, so you can use them in CSG too.

*wink*


Post a reply to this message

From: Kirk Andrews
Subject: Re: Weathered objects
Date: 3 Apr 2008 07:00:01
Message: <web.47f4c606884bb0eba5d4a01d0@news.povray.org>
"Bill Pragnell" <bil### [at] hotmailcom> wrote:
> Severi Salminen <sev### [at] NOTTHISsaunalahtifiinvalid> wrote:
> > 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...
>
> You can, using media. Each block is a completely closed mesh. They also come
> with an inside_vector, so you can use them in CSG too.
>
> *wink*

Excellent!  A brilliant idea.  Thanks Bill--looking forward to that code.


Post a reply to this message

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

Goto Latest 10 Messages Next 4 Messages >>>

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