POV-Ray : Newsgroups : povray.binaries.images : Interlocking heightfields Server Time
1 Aug 2024 20:13:39 EDT (-0400)
  Interlocking heightfields (Message 3 to 12 of 12)  
<<< Previous 2 Messages Goto Initial 10 Messages
From: John VanSickle
Subject: Re: Interlocking heightfields
Date: 19 May 2008 07:38:27
Message: <483166b3$1@news.povray.org>
Thomas de Groot wrote:
> In povray.general, Stephen asked for a method to make a seamless patchwork 
> of height_fields (topic: Interlocking heightfields; May 11th). John 
> VanSickle was so kind to provide a couple of interesting macros. While 
> learning to use them, I made this simple test image consisting of 16 
> heightfields. I thought I could post it here, as info.

When I used these macros, I gave the height fields a high enough 
resolution so that there was no need for any tricks with the normals. 
There was no smoothing, and the texture applied to the height fields had 
no normal component.  To make the height fields rougher, I put more 
roughness in the pigment used to generate the height fields, so that the 
height fields really were rougher, instead of merely appearing to be.

Regards,
John


Post a reply to this message

From: Thomas de Groot
Subject: Re: Interlocking heightfields
Date: 19 May 2008 08:29:30
Message: <483172aa@news.povray.org>
"John VanSickle" <evi### [at] hotmailcom> schreef in bericht 
news:483166b3$1@news.povray.org...

> When I used these macros, I gave the height fields a high enough 
> resolution so that there was no need for any tricks with the normals. 
> There was no smoothing, and the texture applied to the height fields had 
> no normal component.  To make the height fields rougher, I put more 
> roughness in the pigment used to generate the height fields, so that the 
> height fields really were rougher, instead of merely appearing to be.
>

Yes, there are all kind of possibilities indeed to make the height_fields 
look interesting. Thanks John, for your further suggestions, which I shall 
certainly try out too.

Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Interlocking heightfields
Date: 19 May 2008 10:20:46
Message: <48318cbe$1@news.povray.org>
...in particular, I overlooked that little parameter Test... :-)

Thomas


Post a reply to this message

From: Thomas de Groot
Subject: Re: Interlocking heightfields
Date: 20 May 2008 03:27:54
Message: <48327d7a@news.povray.org>
"Thomas de Groot" <t.d### [at] internlDOTnet> schreef in bericht 
news:48318cbe$1@news.povray.org...
> ...in particular, I overlooked that little parameter Test... :-)
>
> Thomas
>
>

...which altogether, leads finally to this.

Thomas


Post a reply to this message


Attachments:
Download 'JVS_HFpatchwork.jpg' (89 KB)

Preview of image 'JVS_HFpatchwork.jpg'
JVS_HFpatchwork.jpg


 

From: Paolo Gibellini
Subject: Re: Interlocking heightfields
Date: 21 May 2008 09:18:30
Message: <48342126$1@news.povray.org>
Awesome!
;-)
Paolo
 >Thomas de Groot wrote:
> "Thomas de Groot" <t.d### [at] internlDOTnet> schreef in bericht 
> news:48318cbe$1@news.povray.org...
>> ...in particular, I overlooked that little parameter Test... :-)
>>
>> Thomas
>>
>>
> 
> ...which altogether, leads finally to this.
> 
> Thomas
> 
> 
>


Post a reply to this message

From: Thomas de Groot
Subject: Re: Interlocking heightfields
Date: 22 May 2008 03:47:01
Message: <483524f5$1@news.povray.org>
"Paolo Gibellini" <p.g### [at] gmailcom> schreef in bericht 
news:48342126$1@news.povray.org...
> Awesome!
> ;-)
> Paolo

This is just basic stuff as far as I am concerned. All the credit for the 
real work should go to John!!  :-)

Thomas


Post a reply to this message

From: John VanSickle
Subject: Re: Interlocking heightfields
Date: 22 May 2008 08:17:19
Message: <4835644f$1@news.povray.org>
Thomas de Groot wrote:
> "Paolo Gibellini" <p.g### [at] gmailcom> schreef in bericht 
> news:48342126$1@news.povray.org...
>> Awesome!
>> ;-)
>> Paolo
> 
> This is just basic stuff as far as I am concerned. All the credit for the 
> real work should go to John!!  :-)

The macro may need tweaking.  The rippling in the left-hand side of the 
image appears to be an artifact.

Regards,
John


Post a reply to this message

From: Thomas de Groot
Subject: Re: Interlocking heightfields
Date: 22 May 2008 10:25:02
Message: <4835823e$1@news.povray.org>
"John VanSickle" <evi### [at] hotmailcom> schreef in bericht 
news:4835644f$1@news.povray.org...

> The macro may need tweaking.  The rippling in the left-hand side of the 
> image appears to be an artifact.
>

I have been wondering about that. It appears indeed in the close up height 
field blocks.

Thomas


Post a reply to this message

From: John VanSickle
Subject: Re: Interlocking heightfields
Date: 26 May 2008 07:24:25
Message: <483a9de9@news.povray.org>
Thomas de Groot wrote:
> "John VanSickle" <evi### [at] hotmailcom> schreef in bericht 
> news:4835644f$1@news.povray.org...
> 
>> The macro may need tweaking.  The rippling in the left-hand side of the 
>> image appears to be an artifact.
>>
> 
> I have been wondering about that. It appears indeed in the close up height 
> field blocks.

The macro (IIRC) calculates the number of pixels spanned in any 
direction by the heightfield, and sets the height field's resolution to 
that value.  It may be that when the line of view is parallel or 
near-parallel to the diagonal of the height field, that this is not 
quite enough.  Increasing the resolution of the HF (probably by no more 
than 40%) should fix this.

The ripple may also be the result of aliasing, in which case the same 
remedy--increasing the HF resolution--is called for, but there would 
also need to be aa + jittering in the render for the rippling to be 
eliminated, if this is the cause.

Regards,
John


Post a reply to this message

From: Thomas de Groot
Subject: Re: Interlocking heightfields
Date: 26 May 2008 11:26:46
Message: <483ad6b6$1@news.povray.org>
"John VanSickle" <evi### [at] hotmailcom> schreef in bericht 
news:483a9de9@news.povray.org...
>
> The macro (IIRC) calculates the number of pixels spanned in any direction 
> by the heightfield, and sets the height field's resolution to that value. 
> It may be that when the line of view is parallel or near-parallel to the 
> diagonal of the height field, that this is not quite enough.  Increasing 
> the resolution of the HF (probably by no more than 40%) should fix this.
>
That is correct. I have introduced a multiplicator to the Details parameter 
in the macro, which does a nice job, especially for larger images.

> The ripple may also be the result of aliasing, in which case the same 
> remedy--increasing the HF resolution--is called for, but there would also 
> need to be aa + jittering in the render for the rippling to be eliminated, 
> if this is the cause.

Tentatively, I introduced the smooth option in the macro, just to see what 
it does. The rippling is further generated I think by the pigment I used, 
where a downscaled wrinkle is present. The effect is somewhat lessened if  I 
scale it a bit up. However in larger renders, one clearly sees the mesh of 
rectangles so increasing the resolution works best.

All in all, using the macro is just to find the settings which will work 
best together, which is fun to do.

Thomas


Post a reply to this message

<<< Previous 2 Messages Goto Initial 10 Messages

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